"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[7340,7283],{77340:(s,i,e)=>{e.r(i),e.d(i,{default:()=>c});var n=e(86087),t=e(45111),a=e(27723),l=e(7283);const c=({plugin:s,processing:i})=>{const{pluginAction:e}=(0,l.default)();let c="grey",o=i||s.processing?"loading":"info";return"activated"===s.status&&(c="green",o="circle-check"),(0,n.createElement)("div",{className:"cmplz-onboarding-item"},(0,n.createElement)(t.default,{name:o,color:c,size:14}),s.description," ","not-installed"===s.status&&(0,n.createElement)("a",{href:"#",onClick:i=>(async s=>{await e(s,"install_plugin"),await e(s,"activate_plugin")})(s.slug)},!s.processing&&(0,a.__)("Install","complianz-gdpr"),s.processing&&(0,a.__)("Installing...","complianz-gdpr")),"installed"===s.status&&(0,n.createElement)("a",{href:"#",onClick:i=>(async s=>{await e(s,"activate_plugin")})(s.slug)},!s.processing&&(0,a.__)("Activate","complianz-gdpr"),s.processing&&(0,a.__)("Activating...","complianz-gdpr")),"activated"===s.status&&(0,a.__)("Installed!","complianz-gdpr"))}},7283:(s,i,e)=>{e.r(i),e.d(i,{default:()=>c});var n=e(81621),t=e(16535),a=e(27723),l=e(9588);const c=(0,n.vt)(((s,i)=>({loaded:!1,plugins:[{slug:"complianz-terms-conditions",description:(0,a.__)("Need Terms & Conditions? Configure now.","complianz-gdpr"),status:"not-installed",processing:!1},{slug:"burst-statistics",premium:"burst-pro",description:(0,a.__)("Privacy-Friendly Analytics? Here you go!","complianz-gdpr"),status:"not-installed",processing:!1},{slug:"really-simple-ssl",description:(0,a.__)("Really Simple Security? Install now!","complianz-gdpr"),status:"not-installed",processing:!1}],isUpgrade:!1,processing:!0,email:"",includeTips:!1,sendTestEmail:!0,actionStatus:"",modalVisible:!0,setIncludeTips:i=>{s((s=>({includeTips:i})))},setSendTestEmail:i=>{s((s=>({sendTestEmail:i})))},setEmail:i=>{s((s=>({email:i})))},dismissModal:()=>{const i=new URL(window.location.href);i.searchParams.delete("onboarding"),window.history.pushState({},"",i.href),s((s=>({modalVisible:!1})))},saveEmail:async()=>{let e={};e.email=i().email,e.includeTips=i().includeTips,e.sendTestEmail=i().sendTestEmail,s((s=>({processing:!0}))),await l.doAction("update_email",e).then((s=>s)),s((()=>({processing:!1})))},getRecommendedPluginsStatus:async()=>{const e={};e.plugins=i().plugins;const{plugins:n,isUpgrade:t}=await l.doAction("get_recommended_plugins_status",e).then((async s=>s));s({processing:!1,plugins:n,isUpgrade:t,loaded:!0})},setProcessing:(i,e)=>{s((0,t.jM)((s=>{const n=s.plugins.findIndex((s=>s.slug===i));-1!==n&&(s.plugins[n].processing=e)})))},pluginAction:async(e,n)=>{const t={};t.slug=e,t.plugins=i().plugins,i().setProcessing(e,!0);const{plugins:a}=await l.doAction(n,t).then((async s=>s));s({plugins:a})}})))}}]);