/
home
/
rekodeb
/
webrodez
/
wp-content
/
plugins
/
complianz-gdpr
/
settings
/
build
/
Upload File
HOME
"use strict";(globalThis.webpackChunkcomplianz_gdpr=globalThis.webpackChunkcomplianz_gdpr||[]).push([[2058,6902],{42058:(e,n,a)=>{a.r(n),a.d(n,{default:()=>c});var l=a(86087),r=a(27723),t=a(4219),o=a(52043),i=a(45111),d=a(76902);const c=(0,l.memo)((()=>{const{fieldsLoaded:e,fields:n,updateField:a,getFieldValue:c,changedFields:u,setChangedField:s,updateFieldsData:p,addHelpNotice:g,fetchAllFieldsCompleted:m,allRequiredFieldsCompleted:_,notCompletedRequiredFields:h}=(0,t.default)(),{getMenuLinkById:b}=(0,o.default)(),{cookiebannerRequired:f,getCookieBannerRequired:k}=(0,d.default)();return(0,l.useEffect)((()=>{e&&(u.length>0||k())}),[u]),(0,l.useEffect)((()=>{e&&m()}),[e,n]),(0,l.useEffect)((()=>{e&&c("cookie_banner_required")!==f&&(a("cookie_banner_required",f),s("cookie_banner_required",f),p())}),[e,f]),(0,l.useEffect)((()=>{if(e)if(f){let e=(0,r.__)("The consent banner and cookie blocker are required on your website.","complianz-gdpr")+" "+(0,r.__)("You can enable them both here, then you should check your website if your configuration is working properly.","complianz-gdpr")+" "+(0,r.__)("Please read the below article to debug any issues while in safe mode. Safe mode is available under settings.","complianz-gdpr")+" "+(0,r.__)("You will find tips and tricks on your dashboard after you have configured your consent banner.","complianz-gdpr");g("last-step-feedback","default",e,(0,r.__)("A consent banner is required","complianz-gdpr"),"https://complianz.io/debugging-manual")}else{let e=(0,r.__)("Your site does not require a consent banner. If you think you need a consent banner, please review your wizard settings.","complianz-gdpr");g("last-step-feedback","warning",e,(0,r.__)("A consent banner is not required","complianz-gdpr"))}}),[e,f,u]),(0,l.createElement)(l.Fragment,null,h.length<2&&(0,l.createElement)("b",null,(0,r.__)("Almost there!","complianz-gdpr")),h.length>=2&&(0,l.createElement)("b",null,(0,r.__)("There are %s questions that are required to complete the wizard.","complianz-gdpr").replace("%s",h.length)),_&&(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,r.__)("Click '%s' to complete the configuration. You can come back to change your configuration at any time.","complianz-gdpr").replace("%s",(0,r.__)("Finish","complianz-gdpr"))),f&&(0,l.createElement)("p",null,(0,r.__)("The consent banner and the cookie blocker are now ready to be enabled.","complianz-gdpr")+" "+(0,r.__)("Please check your website after finishing the wizard to verify that your configuration is working properly.","complianz-gdpr"))),!_&&(0,l.createElement)("div",null,(0,l.createElement)("p",null,(0,r.__)("Not all required fields are completed yet.","complianz-gdpr")+" "+(0,r.__)("Please check the wizard to complete all required questions.","complianz-gdpr")),(0,l.createElement)("p",null,(0,r.__)("The following required fields have not been completed:","complianz-gdpr")),(0,l.createElement)("ul",null,h.map(((e,n)=>(0,l.createElement)("li",{key:n},(0,l.createElement)("div",null,e.parent_label?e.parent_label:e.label," ",(0,l.createElement)("a",{href:b(e.menu_id)},(0,l.createElement)(i.default,{name:"circle-chevron-right",color:"black",tooltip:(0,r.__)("Go to question","complianz-gdpr"),size:14})))))))))}))},76902:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});var l=a(81621),r=a(9588);const t=(0,l.vt)(((e,n)=>({cookiebannerRequired:!1,loading:!1,getCookieBannerRequired:async()=>{if(n().loading)return;e({loading:!0});const{required:a}=await r.doAction("get_cookiebanner_required",{}).then((e=>e));e({cookiebannerRequired:a,loading:!1})}})))}}]);