1 line
6.2 KiB
JavaScript
1 line
6.2 KiB
JavaScript
|
|
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[8525,5683],{35683:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var o=n(81621),s=n(9588);const i=(0,o.vt)(((t,e)=>({licenseStatus:cmplz_settings.licenseStatus,processing:!1,licenseNotices:[],noticesLoaded:!1,getLicenseNotices:async()=>{const{licenseStatus:e,notices:n}=await s.doAction("license_notices",{}).then((t=>t));t((t=>({noticesLoaded:!0,licenseNotices:n,licenseStatus:e})))},activateLicense:async e=>{let n={};n.license=e,t({processing:!0});const{licenseStatus:o,notices:i}=await s.doAction("activate_license",n);t((t=>({processing:!1,licenseNotices:i,licenseStatus:o})))},deactivateLicense:async()=>{t({processing:!0});const{licenseStatus:e,notices:n}=await s.doAction("deactivate_license");t((t=>({processing:!1,licenseNotices:n,licenseStatus:e})))}})))},8525:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var o=n(51609),s=n(27723),i=n(35683),a=n(4219);const c=()=>{const t=new URL(window.location.href);t.searchParams.delete("tour"),window.history.pushState({},"",t.href)},r={defaultStepOptions:{cancelIcon:{enabled:!0},keyboardNavigation:!1},useModalOverlay:!1,margin:15},l=({ShepherdTourContext:t})=>{const e=(0,o.useContext)(t);return e.on("cancel",c),(0,o.useEffect)((()=>{e&&e.start()}),[e]),null},p=[{title:(0,s.__)("Welcome to Complianz","complianz-gdpr"),text:"<p>"+(0,s.__)("Get ready for privacy legislation around the world. Follow a quick tour or start configuring the plugin!","complianz-gdpr")+"</p>",classes:"cmplz-shepherd",buttons:[{type:"cancel",classes:"button button-default",text:(0,s.__)("Configure","complianz-gdpr"),action(){new URL(window.location.href).searchParams.delete("tour"),window.location.hash="wizard"}},{classes:"button button-primary",text:(0,s.__)("Start tour","complianz-gdpr"),action(){return window.location.hash=cmplz_settings.is_premium?"settings/license":"dashboard",this.next()}}]},{title:(0,s.__)("Dashboard","complianz-gdpr"),text:"<p>"+(0,s.__)("This is your Dashboard. When the Wizard is completed, this will give you an overview of tasks, tools, and documentation.","complianz-gdpr")+"</p>",classes:"cmplz-shepherd",buttons:[{classes:"button button-default",text:(0,s.__)("Previous","complianz-gdpr"),action(){return window.location.hash=cmplz_settings.is_premium?"settings/license":"dashboard",this.back()}},{classes:"button button-primary",text:(0,s.__)("Next","complianz-gdpr"),action(){return window.location.hash="wizard/consent",this.next()}}]},{title:(0,s.__)("The Wizard","complianz-gdpr"),text:"<p>"+(0,s.__)("This is where everything regarding cookies is configured. We will come back to the Wizard soon.","complianz-gdpr")+"</p>",classes:"cmplz-shepherd",buttons:[{classes:"button button-default",text:(0,s.__)("Previous","complianz-gdpr"),action(){return window.location.hash="dashboard",this.back()}},{classes:"button button-primary",text:(0,s.__)("Next","complianz-gdpr"),action(){return window.location.hash="banner",this.next()}}]},{title:(0,s.__)("Consent Banner","complianz-gdpr"),text:"<p>"+(0,s.__)("Here you can configure and style your consent banner if the Wizard is completed. An extra tab will be added with region-specific settings.","complianz-gdpr")+"</p>",classes:"cmplz-shepherd",buttons:[{classes:"button button-default",text:(0,s.__)("Previous","complianz-gdpr"),action(){return window.location.hash="wizard/consent",this.back()}},{classes:"button button-primary",text:(0,s.__)("Next","complianz-gdpr"),action(){return window.location.hash="integrations",this.next()}}]},{title:(0,s.__)("Integrations","complianz-gdpr"),text:"<p>"+(0,s.__)("Based on your answers in the Wizard, we will automatically enable integrations with relevant services and plugins. In case you want to block extra scripts, you can add them to the Script Center.","complianz-gdpr")+"</p>",classes:"cmplz-shepherd",buttons:[{classes:"button button-default",text:(0,s.__)("Previous","complianz-gdpr"),action(){return window.location.hash="banner",this.back()}},{classes:"button button-primary",text:(0,s.__)("Next","complianz-gdpr"),action(
|