Ubuntu
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e49c00b"],{"04ed":function(e,t,n){e.exports=n.p+"img/connect-success.svg"},"07e6":function(e,t,n){e.exports=n.p+"img/info.svg"},"07f4":function(e,t,n){},"0944":function(e,t,n){"use strict";n("d6db")},"0ac9":function(e,t,n){e.exports=n.p+"img/add-language.svg"},"0d3d":function(e,t,n){e.exports=n.p+"img/info-alert.svg"},"0ea3":function(e,t,n){e.exports=n.p+"img/tcf-gcm.svg"},"136f":function(e,t,n){},1381:function(e,t,n){e.exports=n.p+"img/custom-icon.svg"},"15f1":function(e,t,n){},1729:function(e,t,n){e.exports=n.p+"img/scan-result.svg"},1771:function(e,t,n){var i={"./action-alert.svg":"d645","./add-language.svg":"0ac9","./arrow-back.svg":"b5fb","./arrow-bold.svg":"6ee3","./arrow-down.svg":"896a","./arrow-left.svg":"857e","./arrow-right.svg":"50c3","./arrow.svg":"b94f","./blue-tick.svg":"f499","./check-fill.svg":"dcb3","./check.svg":"f222","./circle-warning.svg":"fb71","./close.svg":"bf37","./connect-success.svg":"04ed","./cookie-policy.svg":"b8f6","./crown.svg":"7cd5","./custom-icon.svg":"1381","./custom-logo.svg":"f405","./custom-theme.svg":"2af2","./dashboard/lang.svg":"c3cb","./dashboard/location.svg":"5544","./dashboard/reg.svg":"78d0","./dashboard/scan-history.svg":"6aed","./dashboard/status.svg":"4a95","./error.svg":"2ee5","./external.svg":"ef87","./gdpr-us.png":"969c","./geo-location.svg":"e622","./global-privacy.svg":"d91f","./help.svg":"6a22","./info-alert.svg":"0d3d","./info-new.svg":"34c7","./info.svg":"07e6","./layouts/banner-top.svg":"6f43","./layouts/banner.svg":"9d9c","./layouts/box-bottom-right.svg":"2f94","./layouts/box-top-left.svg":"2cc0","./layouts/box-top-right.svg":"73cc","./layouts/box.svg":"d520","./layouts/center.svg":"f7fc","./layouts/classic-bottom.svg":"89bc","./layouts/classic-top.svg":"bca3","./layouts/popup.svg":"6008","./layouts/pushdown.svg":"69e9","./layouts/sidebar.svg":"7801","./loader.svg":"6e70","./logo.png":"cf05","./logo.svg":"9b19","./new.svg":"9cca","./popup-layout.svg":"3b6a","./privacy-policy.svg":"1dc8","./rocket.svg":"67e3","./scan-now.svg":"5fa2","./scan-result.svg":"1729","./schedule-scan.svg":"fba1","./search.svg":"51f2","./session-expired.svg":"2b0e4","./star.svg":"42a8","./success-circle.svg":"eb98","./success.svg":"2764","./tcf-gcm.svg":"0ea3","./theme.svg":"6d51","./tick.svg":"4ab9","./time-schedule.svg":"6c96","./tooltip.svg":"e56e","./trends.png":"f72a","./warning.svg":"afb7"};function a(e){var t=s(e);return n(t)}function s(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}a.keys=function(){return Object.keys(i)},a.resolve=s,e.exports=a,a.id="1771"},"1dc8":function(e,t,n){e.exports=n.p+"img/privacy-policy.svg"},2764:function(e,t,n){e.exports=n.p+"img/success.svg"},2785:function(e,t,n){"use strict";n("75c1")},"297a":function(e,t,n){"use strict";n("07f4")},"2af2":function(e,t,n){e.exports=n.p+"img/custom-theme.svg"},"2b0e4":function(e,t,n){e.exports=n.p+"img/session-expired.svg"},"2cc0":function(e,t,n){e.exports=n.p+"img/box-top-left.svg"},"2ee5":function(e,t,n){e.exports=n.p+"img/error.svg"},"2f94":function(e,t,n){e.exports=n.p+"img/box-bottom-right.svg"},"34c7":function(e,t,n){e.exports=n.p+"img/info-new.svg"},3636:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e._self._c;return e.isLoaded?t("div",{staticClass:"cky-section cky-section-consent-banner cky-zero-padding cky-zero--margin"},[t("div",{staticClass:"cky-section-header"}),t("div",{staticClass:"cky-section-content"},[t("div",{staticClass:"cky-nav-tab cky-vertical-tab cky-nav-tab-banner-settings",attrs:{role:"navigation"}},[t("div",{staticClass:"cky-nav-tabs-container"},[t("ul",{staticClass:"cky-vertical-tabs"},e._l(e.tabs,(function(n){return t("li",{key:n.id,class:["cky-nav-tab-item",{active:e.currentTab===n.id}]},[t("button",{staticClass:"cky-nav-tab-button",on:{click:function(t){e.currentTab=n.id}}},[e.showIcon(n)?t("cky-icon",{staticClass:"cky-nav-tab-button-icon",attrs:{icon:n.icon}}):e._e(),t("span",{staticClass:"cky-nav-tab-item-title"},[e._v(" "+e._s(e.$i18n.__(n.title,"cookie-law-info"))+" ")])],1)])})),0)]),t("div",{staticClass:"cky-nav-tab-content-container"},[t("div",{staticClass:"cky-nav-tab-content"},[t("div",{staticClass:"cky-nav-tab-section"},[t("div",{staticClass:"cky-row"},[t("div",{staticClass:"cky-col-8"},[t("div",{staticClass:"cky-align-center"},[t("cky-banner-selector"),t("div",{staticClass:"cky-banner-preview-toggler cky-center"},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-banner-preview"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.preview,expression:"preview"}],attrs:{type:"checkbox",id:"cky-banner-preview",disabled:e.noticeDisabled},domProps:{checked:Array.isArray(e.preview)?e._i(e.preview,null)>-1:e.preview},on:{change:function(t){var n=e.preview,i=t.target,a=!!i.checked;if(Array.isArray(n)){var s=null,o=e._i(n,s);i.checked?o<0&&(e.preview=n.concat([s])):o>-1&&(e.preview=n.slice(0,o).concat(n.slice(o+1)))}else e.preview=a}}}),t("span",{staticClass:"cky-toggle-text"},[e._v(e._s(e.$i18n.__("Banner Preview","cookie-law-info")))]),e.noticeDisabled?t("cky-popper",{attrs:{content:e.$i18n.__("The banner has been disabled. You can enable it from ‘General’, if needed.","cookie-law-info")}},[t("span",{staticClass:"cky-toggle-slider cky-disabled",attrs:{"aria-hidden":"true"}})]):t("span",{staticClass:"cky-toggle-slider",attrs:{"aria-hidden":"true"}})],1)])],1)]),t("div",{staticClass:"cky-col-4 cky-align-center cky-justify-end"},[t("cky-button",{ref:"ckyButtonSaveBanner",staticClass:"cky-button cky-button-green",staticStyle:{"margin-left":"15px"},attrs:{disabled:e.publishDisabled},nativeOn:{click:function(t){return e.saveConfig.apply(null,arguments)}}},[e._v(" "+e._s(e.$i18n.__("Publish Changes","cookie-law-info"))+" ")])],1)]),e.banner.id?t("div",{staticClass:"cky-nav-tab-section-content"},[t(e.currentTabComponent,{tag:"component"})],1):e._e()])])])])])]):t("div",{staticClass:"cky-loader-view",staticStyle:{"min-height":"400px"}},[t("p",{staticClass:"cky-loading-text"},[t("cky-loader"),e._v(" "+e._s(e.$i18n.__("Loading...","cookie-law-info"))+" ")],1)])},a=[],s=n("a2b6"),o=n("c4aa"),r=n("8259"),c=n("bde3"),l=n("9e47"),p=n("1f3d"),d=function(){var e=this,t=e._self._c;return e.show?t("div",{staticClass:"cky-banner-preview",attrs:{id:"cky-banner-preview-container"}}):e._e()},u=[],y={name:"CkyBannerPreview",props:{},components:{},data(){return{show:!0}}},g=y,f=n("2877"),h=Object(f["a"])(g,d,u,!1,null,null,null),k=h.exports,b=n("c2c9"),v=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cky-banner-selector"},[t("label",{staticClass:"cky-label"},[e._v(e._s(e.$i18n.__("Consent Template","cookie-law-info")))]),t("cky-dropdown",{ref:"languageSelector",staticClass:"cky-dropdown-banners",attrs:{text:e.getBannerName(e.banner)}},[t("ul",[e._l(e.banners,(function(n){return t("li",{key:n.name,staticClass:"cky-drop-down-item"},[t("cky-popper",{attrs:{content:"GDPR"===n.name?e.$i18n.__("The selected template (opt-in banner) supports GDPR (EU & UK), LGPD (Brazil), PIPEDA (Canada), Law 25 (Quebec), POPIA (South Africa), nFADP (Switzerland), Privacy Act (Australia), PDPL (Saudi Arabia), PDPL (Argentina), PDPL (Andorra), DPA (Faroe Island).","cookie-law-info"):e.$i18n.__("The selected template (opt-out banner) supports CCPA/CPRA (California), VCDPA (Virginia), CPA (Colorado), CTDPA (Connecticut), & UCPA (Utah).","cookie-law-info"),position:"right"}},[t("a",{attrs:{value:n.id,href:"#",target:"_self"},on:{click:function(t){return t.preventDefault(),e.changeBanner(n.id)}}},[e._v(" "+e._s(e.getBannerName(n))+" ")])])],1)})),t("li",{staticClass:"cky-drop-down-item cky-action-link"},[t("a",{on:{click:function(t){return t.preventDefault(),e.showConnectModal.apply(null,arguments)}}},[e._v(" "+e._s(e.$i18n.__("GDPR & US State Laws","cookie-law-info"))+" "),t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})])])],2)]),t("cky-connect-modal",{ref:"CkyConnectModal",attrs:{availablePlan:"pro"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("969c"),alt:"Gdpr-US"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Display GDPR (opt-in) and US State Laws (opt-out) banners at the same time","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Pro and Ultimate plans","cookie-law-info"))}})])]},proxy:!0}])})],1)},m=[],C=n("9947"),_={name:"CkyBannerSelector",components:{CkyDropdown:b["a"],CkyConnectModal:C["a"]},data(){return{laws:["gdpr","ccpa","gdpr&ccpa"]}},methods:{async changeBanner(e){o["a"].toggleBanner(e)},getBannerName(e){return"CCPA"===e.name?"US State Laws":e.name},showConnectModal(){this.$refs.CkyConnectModal.show()}},computed:{banner(){return this.$store.state.banners.current},banners(){return this.$store.state.banners.items||{}}}},w=_,x=(n("694f"),Object(f["a"])(w,v,m,!1,null,null,null)),P=x.exports,$=function(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"cky-loader-view"},[t("p",{staticClass:"cky-loading-text"},[t("cky-loader"),e._v(" "+e._s(e.$i18n.__("Fetching data","cookie-law-info"))+" ")],1)]):t("div",[t("div",{staticClass:"cky-banner-message"},[t("div",{staticClass:"cky-row cky-align-center"},["gdpr"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-in banner) supports GDPR (EU & UK), LGPD (Brazil), PIPEDA (Canada), Law 25 (Quebec), POPIA (South Africa), nFADP (Switzerland), Privacy Act (Australia), PDPL (Saudi Arabia), PDPL (Argentina), PDPL (Andorra), DPA (Faroe Island)","cookie-law-info"))+" ")]):"ccpa"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-out banner) supports CCPA/CPRA (California), VCDPA (Virginia), CPA (Colorado), CTDPA (Connecticut), & UCPA (Utah)","cookie-law-info"))+" ")]):e._e()])]),t("div",{staticClass:"cky-app-box"},[t("cky-banner-region-selector",{attrs:{law:e.appliedLaw}})],1),"ccpa"===e.appliedLaw?t("div",{staticClass:"cky-row"},[t("div",{staticClass:"cky-col-12"},[t("div",{staticClass:"cky-app-box"},[t("div",{staticClass:"cky-row cky-align-center"},[t("label",{staticClass:"cky-col-3 cky-col-label"},[e._v(" "+e._s(e.$i18n.__("Show Banner","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-col-9"},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-toggle-notice"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.banner.properties.config.notice.status,expression:"banner.properties.config.notice.status"}],attrs:{type:"checkbox",id:"cky-toggle-notice"},domProps:{checked:Array.isArray(e.banner.properties.config.notice.status)?e._i(e.banner.properties.config.notice.status,null)>-1:e.banner.properties.config.notice.status},on:{change:function(t){var n=e.banner.properties.config.notice.status,i=t.target,a=!!i.checked;if(Array.isArray(n)){var s=null,o=e._i(n,s);i.checked?o<0&&e.$set(e.banner.properties.config.notice,"status",n.concat([s])):o>-1&&e.$set(e.banner.properties.config.notice,"status",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(e.banner.properties.config.notice,"status",a)}}}),t("span",{staticClass:"cky-toggle-slider",attrs:{"aria-hidden":"true"}})])])])])])]):t("div",{staticClass:"cky-row"},[t("div",{staticClass:"cky-col-12"},[t("div",{staticClass:"cky-app-box"},[t("div",{staticClass:"cky-row cky-align-center cky-app-row"},[t("div",{staticClass:"cky-col-5"},[t("label",{staticClass:"cky-zero-padding cky-col-label cky-action-link",attrs:{for:"cky-toggle-iab"}},[e._v(" "+e._s(e.$i18n.__("Support IAB TCF v2.3","cookie-law-info"))+" "),t("cky-popper",{attrs:{content:e.$i18n.__("Enable the support for IAB Transparency and Consent Framework if you run ads on your site. When enabled, a GDPR-compliant consent banner will appear on your site, allowing your visitors to set granular advertising tracking preferences.","cookie-law-info")}}),t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})],1)]),t("div",{staticClass:"cky-col-7"},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-toggle-iab"}},[t("input",{attrs:{type:"checkbox",id:"cky-toggle-iab"},domProps:{value:!1},on:{click:function(t){t.preventDefault(),e.showConnectModal(e.$i18n.__("Comply with Google’s requirements for serving ads in EEA, UK & Switzerland","cookie-law-info"))}}}),t("span",{staticClass:"cky-toggle-slider",attrs:{id:"cky-toggle-iab-toggle","aria-hidden":"true"}})])])]),t("div",{staticClass:"cky-row cky-align-center"},[t("div",{staticClass:"cky-col-5"},[t("label",{staticClass:"cky-zero-padding cky-col-label cky-action-link",attrs:{for:"cky-toggle-gacm"}},[e._v(" "+e._s(e.$i18n.__("Support Google's Additional Consent Mode","cookie-law-info"))+" "),t("cky-popper",{attrs:{content:e.$i18n.__("Google's Additional Consent (AC) Mode allows the collection of consents for Google's Ad Technology Providers (ATPs) that are not yet registered on the IAB Europe Global Vendor List (GVL). AC Mode is intended only for use alongside IAB TCF.","cookie-law-info")}}),e._m(0)],1)]),t("div",{staticClass:"cky-col-7"},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-toggle-gacm"}},[t("input",{attrs:{type:"checkbox",id:"cky-toggle-gacm"},domProps:{value:!1},on:{click:function(t){t.preventDefault(),e.showConnectModal(e.$i18n.__("Comply with Google’s requirements for serving ads in EEA, UK & Switzerland","cookie-law-info"))}}}),t("span",{staticClass:"cky-toggle-slider",attrs:{id:"cky-toggle-gacm-toggle","aria-hidden":"true"}})])])])])])]),t("cky-connect-modal",{ref:"ckyConnectModal",attrs:{availablePlan:"pro"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("0ea3"),alt:"languages"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.upgradeNoticeTitle)+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Pro and Ultimate plans ","cookie-law-info"))}})])]},proxy:!0}])}),t("div",{staticClass:"cky-row"},[t("div",{staticClass:"cky-col-12"},[t("cky-accordion",{staticClass:"cky-app-accordion-no-border cky-app-accordion-advanced"},[t("cky-accordion-item",{staticClass:"cky-app-accordion-item"},[t("template",{slot:"cky-accordion-trigger"},[t("label",{staticClass:"cky-label cky-app-accordion-title",on:{click:e.toggleAdvanced}},[e.toggleSettings?[e._v(e._s(e.$i18n.__("Hide advanced settings","cookie-law-info")))]:[e._v(e._s(e.$i18n.__("Show advanced settings","cookie-law-info")))]],2)]),t("template",{slot:"cky-accordion-content"},[t("div",{staticClass:"cky-app-box"},[t("div",{staticClass:"cky-form-group cky-row cky-align-center"},[t("label",{staticClass:"cky-col-4 cky-form-heading",staticStyle:{"margin-bottom":"0px"},attrs:{for:"cky-consent-expiration"}},[e._v(e._s(e.$i18n.__("Consent expiration (days)","cookie-law-info"))+" "),t("cky-popper",{attrs:{content:e.expiryMessage,ishtml:!0}})],1),t("div",{staticClass:"cky-col-4"},[t("cky-banner-expiry")],1)])]),t("div",{staticClass:"cky-app-box"},[t("div",{staticClass:"cky-form-group cky-row"},[t("label",{staticClass:"cky-col-4 cky-form-heading",staticStyle:{"margin-bottom":"0px"}},[e._v(e._s(e.$i18n.__("Reload page on consent action","cookie-law-info")))]),t("div",{staticClass:"cky-col-2"},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-reload-on-accept"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.banner.properties.behaviours.reloadBannerOnAccept.status,expression:"\n\t\t\t\t\t\t\t\t\t\t\t\tbanner.properties.behaviours.reloadBannerOnAccept\n\t\t\t\t\t\t\t\t\t\t\t\t\t.status\n\t\t\t\t\t\t\t\t\t\t\t"}],attrs:{type:"checkbox",id:"cky-reload-on-accept"},domProps:{checked:Array.isArray(e.banner.properties.behaviours.reloadBannerOnAccept.status)?e._i(e.banner.properties.behaviours.reloadBannerOnAccept.status,null)>-1:e.banner.properties.behaviours.reloadBannerOnAccept.status},on:{change:function(t){var n=e.banner.properties.behaviours.reloadBannerOnAccept.status,i=t.target,a=!!i.checked;if(Array.isArray(n)){var s=null,o=e._i(n,s);i.checked?o<0&&e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",n.concat([s])):o>-1&&e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",a)}}}),t("span",{staticClass:"cky-toggle-slider",attrs:{"aria-hidden":"true"}})])])])]),"gdpr"===e.appliedLaw?t("cky-accordion",{staticClass:"cky-app-box",attrs:{name:"prior-consent",type:"boxed"}},[t("cky-accordion-item",[t("template",{slot:"cky-accordion-trigger"},[t("label",{staticClass:"cky-app-accordion-title"},[e._v(e._s(e.$i18n.__("Load cookies prior to consent","cookie-law-info")))])]),t("template",{slot:"cky-accordion-content"},[t("cky-notice",{attrs:{type:"warning"}},[t("p",[e._v(" "+e._s(e.$i18n.__("Choosing any of these categories(cookies) to load prior to receiving user consent will make your website non-compliant with GDPR.","cookie-law-info"))+" ")])]),t("div",{staticClass:"cky-banner-tab-cookies"},[e._l(e.cookieGroups,(function(n){return["necessary"!==n.slug?t("div",{key:n.id,staticClass:"cky-form-check cky-align-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.prior_consent,expression:"item.prior_consent"}],staticClass:"cky-cky-form-check-input",attrs:{type:"checkbox",id:"cky-checkbox-prior-consent-"+n.slug},domProps:{checked:Array.isArray(n.prior_consent)?e._i(n.prior_consent,null)>-1:n.prior_consent},on:{change:function(t){var i=n.prior_consent,a=t.target,s=!!a.checked;if(Array.isArray(i)){var o=null,r=e._i(i,o);a.checked?r<0&&e.$set(n,"prior_consent",i.concat([o])):r>-1&&e.$set(n,"prior_consent",i.slice(0,r).concat(i.slice(r+1)))}else e.$set(n,"prior_consent",s)}}}),t("label",{staticClass:"cky-form-check-label",class:["cky-form-check-label"],attrs:{for:"cky-checkbox-prior-consent-"+n.slug}},[e._v(" "+e._s(n.name[e.language])+" ")])]):e._e()]}))],2)],1)],2)],1):e._e(),"gdpr"===e.appliedLaw?t("cky-accordion",{staticClass:"cky-app-box",attrs:{name:"hide-cookies",type:"boxed"}},[t("cky-accordion-item",[t("template",{slot:"cky-accordion-trigger"},[t("label",{staticClass:"cky-app-accordion-title"},[e._v(e._s(e.$i18n.__("Hide categories from banner","cookie-law-info")))])]),t("template",{slot:"cky-accordion-content"},[t("cky-notice",{attrs:{type:"warning"}},[t("p",[e._v(" "+e._s(e.$i18n.__("Hiding any of the categories (with cookies) will make your website non-compliant with GDPR.","cookie-law-info"))+" ")])]),t("div",{staticClass:"cky-banner-tab-cookies"},[e._l(e.cookieGroups,(function(n){return["necessary"!==n.slug?t("div",{key:n.id,staticClass:"cky-form-check cky-align-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.visibility,expression:"item.visibility"}],staticClass:"cky-cky-form-check-input",attrs:{type:"checkbox",id:"cky-checkbox-visibility-"+n.slug,"true-value":!1,"false-value":!0},domProps:{checked:Array.isArray(n.visibility)?e._i(n.visibility,null)>-1:e._q(n.visibility,!1)},on:{change:function(t){var i=n.visibility,a=t.target,s=!a.checked;if(Array.isArray(i)){var o=null,r=e._i(i,o);a.checked?r<0&&e.$set(n,"visibility",i.concat([o])):r>-1&&e.$set(n,"visibility",i.slice(0,r).concat(i.slice(r+1)))}else e.$set(n,"visibility",s)}}}),t("label",{staticClass:"cky-form-check-label",class:["cky-form-check-label"],attrs:{for:"cky-checkbox-visibility-"+n.slug}},[e._v(" "+e._s(n.name[e.language])+" ")])]):e._e()]}))],2)],1)],2)],1):e._e()],1)],2)],1)],1)])],1)},A=[function(){var e=this,t=e._self._c;return t("span",[t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})])}],L=n("a9f4"),S=n("b02b"),T=n("c068"),B=n("462b"),D=function(){var e=this,t=e._self._c;return t("fragment",[t("div",{staticClass:"cky-banner-region-selector"},[t("div",{staticClass:"cky-row"},[t("label",{staticClass:"cky-col-12 cky-section-heading"},[e._v(" "+e._s(e.geoTargetHeading)+" ")]),t("div",{staticClass:"cky-col-12"},e._l(e.regions[e.law],(function(i){return t("div",{key:"region-"+i.code,staticClass:"cky-form-check cky-align-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.selectedRegion,expression:"selectedRegion"}],staticClass:"cky-cky-form-check-input",attrs:{type:"radio",id:"cky-radio-region-"+i.code},domProps:{value:i.code,checked:e._q(e.selectedRegion,i.code)},on:{click:function(t){return t.preventDefault(),e.handleRegionChange(i.code)},change:function(t){e.selectedRegion=i.code}}}),t("label",{staticClass:"cky-form-check-label cky-action-link",attrs:{for:"cky-radio-region-"+i.code}},[e._v(" "+e._s(i.label)+" "),"ALL"!==i.code?t("span",[t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})]):e._e()])])})),0)])]),t("cky-connect-modal",{ref:"ckyLocationModal",attrs:{availablePlan:"pro",feature:"config_geo_rules"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("e622"),alt:"location"}})]},proxy:!0},{key:"message",fn:function(){return["EU"===e.currentRegionCode?t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Display your banner only in the EU and the UK","cookie-law-info"))+" ")]):"US"===e.currentRegionCode?t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Display your banner only in the US","cookie-law-info"))+" ")]):"OTHER"===e.currentRegionCode?t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Select the countries where you want to display your banner","cookie-law-info"))+" ")]):e._e(),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Pro and Ultimate plans","cookie-law-info"))}})])]},proxy:!0}])})],1)},O=[],M=n("76e6"),U={name:"CkyBannerRegionSelector",components:{Fragment:M["a"],CkyConnectModal:C["a"]},props:{law:{type:String,default:"gdpr"}},data(){return{regions:{gdpr:[{label:this.$i18n.__("Worldwide","cookie-law-info"),code:"ALL"},{label:this.$i18n.__("EU Countries & UK","cookie-law-info"),code:"EU"},{label:this.$i18n.__("Select countries","cookie-law-info"),code:"OTHER"}],ccpa:[{label:this.$i18n.__("Worldwide","cookie-law-info"),code:"ALL"},{label:this.$i18n.__("United States","cookie-law-info"),code:"US"},{label:this.$i18n.__("Select countries","cookie-law-info"),code:"OTHER"}]},selectedRegion:"ALL",currentRegionCode:null}},methods:{handleRegionChange(e){this.selectedRegion="ALL","ALL"!==e&&this.showLocationModal(e)},showLocationModal(e){this.$refs.ckyLocationModal.show(),this.currentRegionCode=e}},computed:{banner(){return this.$store.state.banners.current},appliedLaw(){return this.banner.properties.settings.applicableLaw},geoTargetHeading(){return this.$i18n.__("Geo-target Banner","cookie-law-info")}}},E=U,N=Object(f["a"])(E,D,O,!1,null,null,null),G=N.exports,j=function(){var e=this,t=e._self._c;return t("cky-input",{class:{"cky-input-error":e.hasErrors},attrs:{type:"number",inputId:e.inputId,min:e.min,max:e.limit},on:{input:t=>e.checkForErrors(t)},model:{value:e.banner.properties.settings.consentExpiry.value,callback:function(t){e.$set(e.banner.properties.settings.consentExpiry,"value",t)},expression:"banner.properties.settings.consentExpiry.value"}},[e.hasErrors?t("template",{slot:"cky-input-error"},[t("div",{staticClass:"cky-input-error-container"},e._l(e.errors,(function(n,i){return t("div",{key:i,staticClass:"cky-input-inline-error"},[!0===n?[e._v(e._s(e.errorMessages[i]))]:e._e()],2)})),0)]):e._e()],2)},R=[],F={name:"CkyBannerExpiry",components:{},props:{limit:{type:Number,default:9999},min:{type:Number,default:1}},data(){return{errors:{},errorMessages:{maxLimit:this.$i18n.__(`Please enter a value between ${this.min} and ${this.limit}`,"cookie-law-info")},inputId:"cky-consent-expiration"}},methods:{checkForErrors(e){this.errors={},(""===e||e>this.limit||eGDPR does not specify a specific time limit for consent durations, the French Data Protection Authority, CNIL, recommends retaining user choices for a period of six months (180 days) as a best practice.","cookie-law-info")),expiryCcpa:this.$i18n.sprintf(this.$i18n.__("Customise the validity period of your users' consent preferences here. The US State Laws do not specify a specific time limit for retaining user choices.","cookie-law-info"))}}},methods:{toggleAdvanced(){this.toggleSettings=!this.toggleSettings},showConnectModal(e){this.upgradeNoticeTitle=e,this.$refs.ckyConnectModal.show()}},computed:{cookieGroups(){return this.$store.state.cookies.items},banner(){return this.$store.state.banners.current},loading(){return this.$store.state.banners.current.id&&!this.$store.state.banners.current.id>0||!Object.prototype.hasOwnProperty.call(this.info,"plan")},appliedLaw(){return this.banner.properties.settings.applicableLaw},expiryMessage(){return"gdpr"===this.appliedLaw?this.contents.expiryGdpr:this.contents.expiryCcpa},language(){return this.$store.state.languages.default&&this.$store.state.languages.default||"en"},...Object(z["d"])("settings",["info"])},watch:{}},J=q,K=(n("c6d0"),Object(f["a"])(J,$,A,!1,null,null,null)),W=K.exports,Q=function(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"cky-loader-view"},[t("p",{staticClass:"cky-loading-text"},[t("cky-loader"),e._v(" "+e._s(e.$i18n.__("Fetching data","cookie-law-info"))+" ")],1)]):t("div",[t("div",{staticClass:"cky-banner-message"},[t("div",{staticClass:"cky-row cky-align-center"},["gdpr"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-in banner) supports GDPR (EU & UK), LGPD (Brazil), PIPEDA (Canada), Law 25 (Quebec), POPIA (South Africa), nFADP (Switzerland), Privacy Act (Australia), PDPL (Saudi Arabia), PDPL (Argentina), PDPL (Andorra), DPA (Faroe Island)","cookie-law-info"))+" ")]):"ccpa"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-out banner) supports CCPA/CPRA (California), VCDPA (Virginia), CPA (Colorado), CTDPA (Connecticut), & UCPA (Utah)","cookie-law-info"))+" ")]):e._e()])]),t("div",{staticClass:"cky-section-layout"},[t("div",{staticClass:"cky-form-section cky-form-section-group cky-row cky-align-top"},[t("div",{staticClass:"cky-col-12"},[t("h6",[e._v(e._s(e.$i18n.__("Cookie Notice","cookie-law-info")))]),t("cky-banner-type",{attrs:{banner:e.banner}})],1)]),t("div",{staticClass:"cky-form-section cky-row"},[t("div",{staticClass:"cky-col-12"},[t("h6",[e._v(e._s(e.$i18n.__("Preference Centre","cookie-law-info")))]),t("cky-preference-type")],1)])])])},Y=[],X=function(){var e=this,t=e._self._c;return t("fragment",[t("div",{staticClass:"cky-banner-layout-container"},e._l(e.layouts,(function(n){return t("cky-banner-layout-item",{key:""+n.type,attrs:{properties:n,disabled:"popup"===n.type},on:{upgrade:e.showConnectModal}})})),1),t("div",{staticClass:"cky-banner-position-group cky-col-4"},e._l(e.getSelectedLayout.positions,(function(n){return t("cky-radio",{key:`${e.getSelectedLayout.type}-${n}`,attrs:{id:`cky-consent-type-${e.getSelectedLayout.type}-${n}`,value:""+n,label:e.transformText(""+n)},model:{value:e.selectedPosition,callback:function(t){e.selectedPosition=t},expression:"selectedPosition"}})})),1),t("cky-connect-modal",{ref:"ckyConnectModal",attrs:{availablePlan:"pro",feature:"popup_layout"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("3b6a"),alt:"popuplayout"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Use a popup layout to boost your consent opt-in rates","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Pro and Ultimate plans","cookie-law-info"))}})])]},proxy:!0}])})],1)},Z=[],ee=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cky-banner-layout-group"},[t("p",{staticClass:"cky-banner-layout-title cky-action-link"},[e._v(e._s(e.$i18n.__(e.properties.title,"cookie-law-info"))+" "),e.disabled?t("span",[t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})]):e._e()]),t("div",{staticClass:"cky-banner-layout-items"},[t("div",{key:""+e.properties.type,staticClass:"cky-radio-group",on:{click:function(t){return e.showConnectModal()}}},[t("cky-radio",{attrs:{id:"cky-consent-type-"+e.properties.type,value:""+e.properties.type,icon:`layouts/${e.properties.type}.svg`,disabled:e.disabled},model:{value:e.selectedLayout,callback:function(t){e.selectedLayout=t},expression:"selectedLayout"}})],1)])])},te=[],ne=function(){var e=this,t=e._self._c;return t("label",{class:e.radioClass,attrs:{for:e.id,id:e.id+"-radio-label"}},[t("input",{attrs:{id:e.id,type:"radio",name:e.name,disabled:e.disabled},domProps:{checked:e.isChecked,value:e.value},on:{change:function(t){return e.$emit("change",t.target.value)}}}),e.icon?t("span",{staticClass:"cky-radio-icon",attrs:{id:e.id+"-radio-icon"}},[t("img",{attrs:{src:n("1771")("./"+e.icon)}})]):e._e(),e.label?t("span",{staticClass:"cky-radio-label",attrs:{id:e.id+"-radio-label"}},[e._v(" "+e._s(e.label)+" ")]):e._e()])},ie=[],ae={name:"CkyRadio",components:{},model:{prop:"modelValue",event:"change"},props:{id:{type:String,required:!0},name:{type:String,default:""},value:{type:[String,Boolean],required:!0},label:{type:String,default:""},icon:{type:String,default:""},modelValue:{default:""},disabled:{type:Boolean,default:!1}},data(){return{selected:!1}},computed:{radioClass(){return{"cky-radio":!0,"cky-image-radio":""!==this.icon,checked:this.isChecked}},isChecked(){return this.modelValue==this.value}}},se=ae,oe=Object(f["a"])(se,ne,ie,!1,null,null,null),re=oe.exports,ce={name:"CkyBannerLayoutItem",mixins:[T["a"]],components:{CkyRadio:re},props:{properties:{type:Object,default(){return{}}},disabled:{type:Boolean,default:!0}},data(){return{upgradeModalVisible:!1,publicPath:"/wp-content/plugins/cookie-law-info/lite/admin/dist/"}},methods:{showConnectModal(){this.disabled&&this.$emit("upgrade")},getSelectedLayout(e){const t=this.layouts.filter(t=>t.type===e);return t[0]}},computed:{banner(){return this.$store.state.banners.current},layouts:function(){const e=this.banner.properties.settings.applicableLaw;return o["a"].getLayouts(e)},selectedLayout:{get(){let e=this.banner.properties.settings.type;return"classic"===e&&(e="banner"),""+e},set(e){this.banner.properties.settings.type=e,this.banner.properties.settings.preferenceCenterType="classic"===e?"pushdown":"popup";const t=this.getSelectedLayout(e);this.banner.properties.settings.position=t.default}}},mounted(){}},le=ce,pe=(n("8597"),Object(f["a"])(le,ee,te,!1,null,null,null)),de=pe.exports,ue={name:"CkyBannerType",components:{CkyConnectModal:C["a"],Fragment:M["a"],CkyBannerLayoutItem:de,CkyRadio:re},props:{title:{type:String,default:""},type:{type:String,default:"normal"}},methods:{showConnectModal(){this.$refs.ckyConnectModal.show()},transformText(e){const t=e.replace("-"," ");return t.charAt(0).toUpperCase()+t.slice(1)}},computed:{banner(){return this.$store.state.banners.current},layouts:function(){const e=this.banner.properties.settings.applicableLaw;return o["a"].getLayouts(e)},getSelectedLayout(){let e=this.banner.properties.settings.type;"classic"===e&&(e="banner");const t=this.layouts.filter(t=>t.type===e);return t[0]},selectedPosition:{get(){const e=this.banner.properties.settings.position;return""+e},set(e){this.banner.properties.settings.position=e}},...Object(z["d"])("settings",["info"]),loading(){return!Object.prototype.hasOwnProperty.call(this.info,"plan")}}},ye=ue,ge=(n("cd0a"),Object(f["a"])(ye,X,Z,!1,null,null,null)),fe=ge.exports,he=function(){var e=this,t=e._self._c;return t("fragment",[t("div",{staticClass:"cky-preference-layout-container"},[t("div",{staticClass:"cky-preference-layout"},e._l(e.playouts,(function(e){return t("cky-preference-layout-item",{key:""+e.type,attrs:{properties:e}})})),1),"sidebar"===e.getSelectedPlayout.type?t("div",{staticClass:"cky-sidebar-position-group cky-col-4"},e._l(e.getSelectedPlayout.positions,(function(n){return t("cky-radio",{key:`${e.getSelectedPlayout.type}-${n}`,attrs:{id:`cky-preference-type-${e.getSelectedPlayout.type}-${n}`,value:""+n,label:e.transformText(""+n)},model:{value:e.selectedPosition,callback:function(t){e.selectedPosition=t},expression:"selectedPosition"}})})),1):e._e()]),"gdpr"===e.appliedLaw?t("div",{staticClass:"cky-row",class:{"cky-text-muted":e.isDisabled}},[t("div",{staticClass:"cky-col-3"},[t("label",{staticClass:"cky-zero-padding cky-col-label",attrs:{for:"cky-toggle-categories-on-firstlayer"}},[e._v(e._s(e.$i18n.__("Categories on first layer","cookie-law-info"))),t("cky-popper",{attrs:{content:e.$i18n.__("Enabling this option will display cookie categories on the first layer of your banner. The categories will be displayed on the second layer (preference centre) even if this option is disabled.","cookie-law-info"),position:"right"}})],1)]),t("div",{staticClass:"cky-col-5",class:{"cky-text-muted":e.isDisabled}},[t("label",{staticClass:"cky-toggle",attrs:{for:"cky-toggle-categories-on-firstlayer"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.currentBanner.properties.config.categoryPreview.status,expression:"currentBanner.properties.config.categoryPreview.status"}],attrs:{type:"checkbox",id:"cky-toggle-categories-on-firstlayer",disabled:e.isDisabled},domProps:{checked:Array.isArray(e.currentBanner.properties.config.categoryPreview.status)?e._i(e.currentBanner.properties.config.categoryPreview.status,null)>-1:e.currentBanner.properties.config.categoryPreview.status},on:{change:function(t){var n=e.currentBanner.properties.config.categoryPreview.status,i=t.target,a=!!i.checked;if(Array.isArray(n)){var s=null,o=e._i(n,s);i.checked?o<0&&e.$set(e.currentBanner.properties.config.categoryPreview,"status",n.concat([s])):o>-1&&e.$set(e.currentBanner.properties.config.categoryPreview,"status",n.slice(0,o).concat(n.slice(o+1)))}else e.$set(e.currentBanner.properties.config.categoryPreview,"status",a)}}}),e.isDisabled?t("cky-popper",{attrs:{content:e.$i18n.__("This feature is available with Banner + Push down layout only.","cookie-law-info"),ishtml:!0,position:"right"}},[t("span",{staticClass:"cky-toggle-slider",attrs:{id:"cky-toggle-categories-on-firstlayer-text","aria-hidden":"true"}})]):t("span",{staticClass:"cky-toggle-slider",attrs:{id:"cky-toggle-categories-on-firstlayer-text","aria-hidden":"true"}})],1)])]):e._e()])},ke=[],be=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cky-preference-layout-group"},[t("p",{staticClass:"cky-preference-layout-title"},[e._v(e._s(e.properties.title))]),t("div",{staticClass:"cky-preference-layout-items"},[t("div",{key:""+e.properties.type,staticClass:"cky-radio-group"},["pushdown"===e.properties.type&&e.isDisabled?t("cky-popper",{attrs:{content:this.contents,ishtml:!0,position:"right"}},[t("cky-radio",{class:{"cky-icon-disabled":e.isDisabled},attrs:{id:"cky-preference-type-"+e.properties.type,value:""+e.properties.type,icon:`layouts/${e.properties.type}.svg`,disabled:!0},model:{value:e.pselectedLayout,callback:function(t){e.pselectedLayout=t},expression:"pselectedLayout"}})],1):t("cky-radio",{attrs:{id:"cky-preference-type-"+e.properties.type,value:""+e.properties.type,icon:`layouts/${e.properties.type}.svg`},model:{value:e.pselectedLayout,callback:function(t){e.pselectedLayout=t},expression:"pselectedLayout"}})],1)])])},ve=[],me={name:"CkyBannerLayoutItem",mixins:[T["a"]],components:{CkyRadio:re},data(){return{isHovered:!1,contents:this.$i18n.sprintf(this.$i18n.__("The Push down style is supported for the Banner layout only.","cookie-law-info"))}},props:{properties:{type:Object,default(){return{}}}},computed:{...Object(z["c"])("banners",{currentBanner:"getCurrentBanner"}),isDisabled(){let e=this.currentBanner.properties.settings.type;return e.includes("-sidebar")&&(e=e.replace("-sidebar","")),"popup"!==this.properties.type&&"sidebar"!==this.properties.type&&("banner"!==e&&"classic"!==e)},pselectedLayout:{get(){let e=this.currentBanner.properties.settings.preferenceCenterType,t=this.currentBanner.properties.settings.type;return"classic"===t&&(e="pushdown"),e.includes("sidebar")&&(e=e.replace("-left",""),e=e.replace("-right","")),""+e},set(e){const t=this.currentBanner.properties.settings.type;this.currentBanner.properties.settings.preferenceCenterType="sidebar"===e?"sidebar-left":e,"pushdown"===e&&(this.currentBanner.properties.settings.type="classic"),"pushdown"!==e&&"classic"===t&&(this.currentBanner.properties.settings.type="banner")}}}},Ce=me,_e=(n("9f63"),Object(f["a"])(Ce,be,ve,!1,null,null,null)),we=_e.exports,xe={name:"CkyPreferenceType",components:{Fragment:M["a"],CkyPreferenceLayoutItem:we,CkyRadio:re},methods:{transformText(e){return e.charAt(0).toUpperCase()+e.slice(1)},checkCategoryOnSave(e){this.currentBanner.properties.config.preferenceCenter.elements.categories.elements.toggle.status=this.currentBanner.properties.config.preferenceCenter.elements.buttons.elements.save.status="pushdown"!==e||!this.currentBanner.properties.config.categoryPreview.status}},computed:{...Object(z["c"])("banners",{currentBanner:"getCurrentBanner"}),appliedLaw(){return this.currentBanner.properties.settings.applicableLaw},isDisabled(){let e=this.currentBanner.properties.settings.type;return e.includes("-sidebar")&&(e=e.replace("-sidebar","")),"classic"!==e},playouts:function(){return o["a"].getPreferenceLayouts(this.appliedLaw)},getSelectedPlayout(){let e=this.currentBanner.properties.settings.preferenceCenterType;e.includes("sidebar")&&(e=e.replace("-left",""),e=e.replace("-right",""));const t=this.playouts.filter(t=>t.type===e);return this.checkCategoryOnSave(e),t[0]},selectedPosition:{get(){let e=this.currentBanner.properties.settings.preferenceCenterType;return e=e.replace("sidebar-",""),""+e},set(e){this.currentBanner.properties.settings.preferenceCenterType="sidebar-"+e}}}},Pe=xe,$e=(n("77ac"),Object(f["a"])(Pe,he,ke,!1,null,null,null)),Ae=$e.exports,Le={name:"TabLayout",components:{CkyLoader:l["a"],CkyBannerType:fe,CkyPreferenceType:Ae},data(){return{bannerPreview:!1,showPositions:!0,customLogoType:"image"}},methods:{toggleDetailSaveButton(){const e=this.banner.properties.config;let t=!0;this.showCategoriesOnFirstLayer&&e.categoryPreview.status&&(t=!1),e.preferenceCenter.elements.buttons.elements.save.status=t}},computed:{banner(){return this.$store.state.banners.current},loading(){return this.$store.state.banners.current.id&&!this.$store.state.banners.current.id>0||!Object.prototype.hasOwnProperty.call(this.info,"plan")},appliedLaw(){return this.banner.properties.settings.applicableLaw},showCategoriesOnFirstLayer(){return"classic"===this.banner.properties.settings.type},...Object(z["d"])("settings",["info"])},watch:{"banner.properties.settings":{handler(){this.toggleDetailSaveButton()},deep:!0}}},Se=Le,Te=(n("297a"),Object(f["a"])(Se,Q,Y,!1,null,null,null)),Be=Te.exports,De=function(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"cky-loader-view"},[t("p",{staticClass:"cky-loading-text"},[t("cky-loader"),e._v(" "+e._s(e.$i18n.__("Fetching data","cookie-law-info"))+" ")],1)]):t("div",[t("div",{staticClass:"cky-banner-message"},[t("div",{staticClass:"cky-row cky-align-center"},["gdpr"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-in banner) supports GDPR (EU & UK), LGPD (Brazil), PIPEDA (Canada), Law 25 (Quebec), POPIA (South Africa), nFADP (Switzerland), Privacy Act (Australia), PDPL (Saudi Arabia), PDPL (Argentina), PDPL (Andorra), DPA (Faroe Island)","cookie-law-info"))+" ")]):"ccpa"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-out banner) supports CCPA/CPRA (California), VCDPA (Virginia), CPA (Colorado), CTDPA (Connecticut), & UCPA (Utah)","cookie-law-info"))+" ")]):e._e()])]),e.customHtmlMode?t("cky-notice",{attrs:{type:"warning"}},[t("p",[t("span",[e._v(e._s(e.$i18n.__("You're in Custom HTML mode. ")))]),e._v(" "+e._s(e.$i18n.__("The edits that you have made in the HTML Editor will override any changes made to the settings below","cookie-law-info"))+" ")])]):e._e(),t("div",{staticClass:"cky-banner-theme-radio"},[t("label",{staticClass:"cky-col-label",staticStyle:{"font-weight":"500"}},[e._v(e._s(e.$i18n.__("Colour scheme","cookie-law-info")))]),e._l(e.colourSchemes,(function(i){return t("div",{key:i.id,class:["cky-form-check","cky-form-check-inline",{"cky-action-link":"custom"===i.id}],on:{click:function(t){"custom"===i.id&&e.showCustomThemeModal()}}},[t("cky-radio",{attrs:{id:i.id,value:i.id,label:i.label},nativeOn:{click:function(t){return e.handleThemeClick(i.id,t)}},model:{value:e.banner.properties.settings.theme,callback:function(t){e.$set(e.banner.properties.settings,"theme",t)},expression:"banner.properties.settings.theme"}}),"custom"===i.id?t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}}):e._e()],1)}))],2),"custom"===e.banner.properties.settings.theme?t("cky-notice",{staticClass:"cky-custom-theme-notice",attrs:{type:"info"}},[t("div",{staticClass:"cky-align-center cky-theme-notice-content"},[t("div",{staticClass:"cky-notice-icon"},[t("img",{attrs:{src:n("6d51"),alt:"theme"}})]),t("div",{staticClass:"cky-notice-message"},[t("h6",[e._v(" "+e._s(e.$i18n.__("Colour customisation is now limited on Free plan","cookie-law-info"))+" ")]),t("p",{domProps:{innerHTML:e._s(e.$i18n.__("You can continue using your existing customised banner as is. However, further edits or new colour customisations are no longer available in your Free plan.","cookie-law-info"))}})]),t("div",{staticClass:"cky-admin-notice-actions"},[t("cky-button",{nativeOn:{click:function(t){return e.handleConnectToApp.apply(null,arguments)}}},[e._v(" "+e._s(e.$i18n.__("Connect to Web App to Access","cookie-law-info"))+" ")])],1)])]):e._e(),t("tab-content-accordion",{attrs:{language:e.language},on:{"show-custom-logo-modal":e.showCustomLogoModal,"show-revisit-icon-modal":e.showRevisitIconModal,"show-custom-theme-modal":e.showCustomThemeModal,"show-gpc-modal":e.showGPCModal}}),t("cky-connect-modal",{ref:"ckyCustomLogoModal",attrs:{availablePlan:"ultimate",feature:"custom_branding"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("f405"),alt:"customlog"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Add a custom logo on the banner to match your brand's unique identity","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Ultimate plan","cookie-law-info"))}})])]},proxy:!0}])}),t("cky-connect-modal",{ref:"ckyRevisitIconModal",attrs:{feature:"revisit_custom_branding",availablePlan:"ultimate"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("1381"),alt:"revisiticon"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Add a personal flair to your cookie revisit widget with a custom icon","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Ultimate plan","cookie-law-info"))}})])]},proxy:!0}])}),t("cky-connect-modal",{ref:"ckyCustomThemeModal",staticClass:"cky-connect-modal-custom-theme",attrs:{feature:"custom_theme",availablePlan:"premium"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("2af2"),alt:"custom-theme"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Design a banner that blends perfectly with your site","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: All premium plans","cookie-law-info"))}})])]},proxy:!0}])}),t("cky-connect-modal",{ref:"ckyConnectModalGPC",attrs:{availablePlan:"pro",feature:"respect_gpc"},scopedSlots:e._u([{key:"title",fn:function(){return[t("img",{attrs:{src:n("d91f"),alt:"global-privacy"}})]},proxy:!0},{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Respect Global Privacy Control (GPC) signals and honour users’ privacy settings","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: Pro and Ultimate plans","cookie-law-info"))}})])]},proxy:!0}])}),t("CkyCustomThemeHeadsUp",{ref:"ckyCustomThemeHeadsUp",staticClass:"cky-custom-theme-headsup",attrs:{header:e.$i18n.__("Colour customisation is now limited on Free plan","cookie-law-info"),icon:n("fb71"),iconAlt:"warning-icon",cancelBtn:e.$i18n.__("Keep current banner","cookie-law-info"),confirmBtn:e.confirmButtonText},on:{confirmThemeSwitch:e.confirmThemeSwitch,cancelThemeSwitch:e.cancelThemeSwitch},scopedSlots:e._u([{key:"body",fn:function(){return[t("cky-notice",{attrs:{type:"warning"}},[t("ul",[t("li",{domProps:{innerHTML:e._s(e.$i18n.__("If you switch to Light or Dark theme, your existing colour customisations will be replaced with the default version.","cookie-law-info"))}}),t("li",{domProps:{innerHTML:e._s(e.$i18n.__("You can keep using your existing customised banner, but further edits or new colour customisations are no longer available in your Free plan.","cookie-law-info"))}})])])]},proxy:!0}])})],1)},Oe=[],Me=n("c702"),Ue=function(){var e=this,t=e._self._c;return t("cky-modal",{ref:"CkyCustomThemeHeadsUp",staticClass:"cky-custom-theme-headsup",scopedSlots:e._u([{key:"header",fn:function(){return[t("h4",[e.icon?t("img",{staticClass:"cky-header-icon",attrs:{src:e.icon,alt:e.iconAlt}}):e._e(),e._v(" "+e._s(e.header)+" ")])]},proxy:!0},{key:"body",fn:function(){return[e._t("body",(function(){return[t("p",{domProps:{innerHTML:e._s(e.body)}})]}))]},proxy:!0},{key:"footer",fn:function(){return[t("div",{staticClass:"cky-app-modal-actions cky-justify-end"},[t("button",{staticClass:"cky-button cky-button-outline-secondary",on:{click:e.closePopup}},[e._v(" "+e._s(e.cancelBtn)+" ")]),t("cky-button",{staticClass:"cky-button-primary",nativeOn:{click:function(t){return e.confirmThemeSwitch.apply(null,arguments)}}},[e._v(" "+e._s(e.confirmBtn)+" ")])],1)]},proxy:!0}],null,!0)})},Ee=[],Ne=n("8a80"),Ge={name:"CkyCustomThemeHeadsUp",components:{CkyModal:Ne["a"]},props:{header:{type:String,required:!0},body:{type:String,required:!1,default:""},icon:{type:String,required:!1,default:""},iconAlt:{type:String,required:!1,default:"icon"},cancelBtn:{type:String,required:!0},confirmBtn:{type:String,required:!0}},methods:{cancelThemeSwitch(){this.$emit("cancelThemeSwitch")},closePopup(){this.$refs.CkyCustomThemeHeadsUp.close(),this.cancelThemeSwitch()},confirmThemeSwitch(){this.$emit("confirmThemeSwitch")},show(){this.$refs.CkyCustomThemeHeadsUp.show()},close(){this.$refs.CkyCustomThemeHeadsUp.close()}}},je=Ge,Re=(n("0944"),Object(f["a"])(je,Ue,Ee,!1,null,null,null)),Fe=Re.exports,He={name:"TabContent",components:{CkyRadio:re,CkyLoader:l["a"],TabContentAccordion:Me["a"],CkyNotice:B["a"],CkyConnectModal:C["a"],CkyCustomThemeHeadsUp:Fe},data(){return{customHtmlMode:!1,selectedTheme:null}},methods:{saveConfig:async function(){await o["a"].save(),this.$root.$emit("triggerNotification",{type:"success",message:"Successfully saved"})},handleConnectToApp(){this.$router.push({path:"dashboard/plans",query:{available:"premium"}})},showCustomLogoModal(){this.$refs.ckyCustomLogoModal.show()},showRevisitIconModal(){this.$refs.ckyRevisitIconModal.show()},showCustomThemeModal(){this.$refs.ckyCustomThemeModal.show()},showGPCModal(){this.$refs.ckyConnectModalGPC.show()},handleThemeClick(e,t){"custom"!==e?"custom"===this.banner.properties.settings.theme&&"custom"!==e&&(t.preventDefault(),this.selectedTheme=e,this.$refs.ckyCustomThemeHeadsUp.show()):t.preventDefault()},confirmThemeSwitch(){this.banner.properties.settings.theme=this.selectedTheme,this.$refs.ckyCustomThemeHeadsUp.close()},cancelThemeSwitch(){this.banner.properties.settings.theme="custom"}},computed:{banner(){return this.$store.state.banners.current},loading(){return this.$store.state.banners.current.id&&!this.$store.state.banners.current.id>0},appliedLaw(){return this.banner.properties.settings.applicableLaw},presets(){return this.$store.state.banners.presets},contentSections:function(){let e={};if(this.loading)return e;const t=this.banner.properties.settings.applicableLaw;return e=o["a"].getContentSections(t),e},colourSchemes:function(){let e=[];return this.loading||(e=[{id:"light",label:"Light"},{id:"dark",label:"Dark"},{id:"custom",label:"Custom"}]),e},language(){return this.$store.state.languages.default&&this.$store.state.languages.default||"en"},confirmButtonText(){return"light"===this.selectedTheme?this.$i18n.__("Select light theme","cookie-law-info"):"dark"===this.selectedTheme?this.$i18n.__("Select dark theme","cookie-law-info"):this.$i18n.__("Select theme","cookie-law-info")}},watch:{"banner.properties.settings":{async handler(){o["a"].resetPreset(),await o["a"].showPreview()},deep:!0}}},Ie=He,Ve=(n("f7f9"),Object(f["a"])(Ie,De,Oe,!1,null,null,null)),ze=Ve.exports,qe=function(){var e=this,t=e._self._c;return e.loading?t("div",{staticClass:"cky-loader-view"},[t("p",{staticClass:"cky-loading-text"},[t("cky-loader"),e._v(" "+e._s(e.$i18n.__("Fetching data","cookie-law-info"))+" ")],1)]):t("div",[t("div",{staticClass:"cky-banner-message"},[t("div",{staticClass:"cky-row cky-align-center"},["gdpr"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-in banner) supports GDPR (EU & UK), LGPD (Brazil), PIPEDA (Canada), Law 25 (Quebec), POPIA (South Africa), nFADP (Switzerland), Privacy Act (Australia), PDPL (Saudi Arabia), PDPL (Argentina), PDPL (Andorra), DPA (Faroe Island)","cookie-law-info"))+" ")]):"ccpa"===e.appliedLaw?t("p",{staticClass:"cky-col-label"},[e._v(" "+e._s(e.$i18n.__("The selected template (opt-out banner) supports CCPA/CPRA (California), VCDPA (Virginia), CPA (Colorado), CTDPA (Connecticut), & UCPA (Utah)","cookie-law-info"))+" ")]):e._e()])]),t("div",{staticClass:"cky-section-css"},[t("div",{staticClass:"cky-form-group cky-row"},[t("label",{staticClass:"cky-col-12 cky-action-link"},[e._v(" "+e._s(e.$i18n.__("Custom CSS for additional styling","cookie-law-info"))+" "),t("img",{staticClass:"cky-crown-img",attrs:{src:n("7cd5"),alt:"crown-icon"}})]),t("div",{staticClass:"cky-col-12"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.banner.properties.meta.customCSS,expression:"banner.properties.meta.customCSS"}],staticClass:"cky-form-control",attrs:{rows:"12",disabled:!e.info.plan.features.popup_layout,id:"cky-textarea-custom-css"},domProps:{value:e.banner.properties.meta.customCSS},on:{input:function(t){t.target.composing||e.$set(e.banner.properties.meta,"customCSS",t.target.value)}}}),t("cky-connect-modal",{staticClass:"cky-connect-modal-css",attrs:{visible:!0,availablePlan:"premium",feature:"custom_css"},scopedSlots:e._u([{key:"message",fn:function(){return[t("div",{staticClass:"cky-feature-text"},[e._v(" "+e._s(e.$i18n.__("Put your cookie banner in the spotlight with custom CSS","cookie-law-info"))+" ")]),t("div",{staticClass:"cky-available-wrapper"},[t("span",{staticClass:"cky-available-text",domProps:{innerHTML:e._s(e.$i18n.__("Available in: All premium plans","cookie-law-info"))}})])]},proxy:!0}])})],1)])])])},Je=[],Ke={name:"TabCss",components:{CkyLoader:l["a"],CkyConnectModal:C["a"]},data(){return{}},methods:{},computed:{banner(){return this.$store.state.banners.current},loading(){return this.$store.state.banners.current.id&&!this.$store.state.banners.current.id>0},appliedLaw(){return this.banner.properties.settings.applicableLaw},...Object(z["d"])("settings",["info"])}},We=Ke,Qe=(n("3a5b"),Object(f["a"])(We,qe,Je,!1,null,null,null)),Ye=Qe.exports,Xe=n("63ea"),Ze=n.n(Xe),et={name:"Customize",mixins:[c["a"]],components:{CkyLoader:l["a"],CkyIcon:p["a"],CkyBannerPreview:k,CkyDropdown:b["a"],CkyBannerSelector:P,TabGeneral:W,TabLayout:Be,TabContent:ze,TabCss:Ye},data(){return{tabs:[{id:"general",icon:"general",title:"General"},{id:"layout",icon:"layout",title:"Layout"},{id:"content",icon:"note",title:"Content & Colours"},{id:"css",icon:"css",title:"Custom CSS"}],currentTab:"general",previewLoader:!1,loading:!0,initialStoreState:null}},methods:{hasChanges(){return!!(this.initialStoreState&&this.banner&&this.cookieGroups)&&!Ze()(this.initialStoreState,{banner:this.banner,cookies:this.cookieGroups})},handleBeforeUnload(e){this.hasChanges()&&(e.preventDefault(),e.returnValue="")},async loadCookies(){try{await this.$store.dispatch("cookies/reInit")}catch(e){this.showErrors(this.$i18n.__("Failed to load cookies please try again later!","cookie-law-info"))}},showIcon(e){return!!e.icon},loadBanner:async function(){try{await o["a"].getActiveBanner(),await o["a"].loadPresets()}catch(e){console.log(e),this.showErrors(this.$i18n.__("An unexpected error occurred please try reloading the page or logging in again.","cookie-law-info"))}},saveConfig:async function(){this.$refs.ckyButtonSaveBanner.startLoading();try{await o["a"].bulkUpdate({clear:!1}),await this.$store.dispatch("cookies/bulkUpdate"),this.$root.$emit("triggerNotification",{type:"success",message:this.$i18n.__("Update was successful!","cookie-law-info")})}catch(e){console.log(e),this.showErrors(this.$i18n.__("Problem occurred while saving your settings. Please try again later!","cookie-law-info"))}this.$refs.ckyButtonSaveBanner.stopLoading(),await this.loadCookies(),this.initialStoreState={banner:JSON.parse(JSON.stringify(this.banner)),cookies:JSON.parse(JSON.stringify(this.cookieGroups))}},updateContentPreview:Object(s["b"])((async function(){r["a"].startLoading(),await o["a"].updateContentPreview(),r["a"].stopLoading()}),500),updateSettingsPreview:Object(s["c"])((async function(){await o["a"].showPreview()}),500),showErrors(e){this.$root.$emit("triggerNotification",{type:"error",message:e})}},computed:{currentTabComponent:function(){return"tab-"+this.currentTab.toLowerCase()},tab(){return this.tabs.find(e=>e.id==this.currentTab)},banner(){return this.$store.state.banners.current},cookieGroups(){return this.$store.state.cookies.items},preview:{get(){return this.$store.state.banners.preview},set(e){this.$store.state.banners.preview=e}},connected(){let e=this.getOption("account");return e.connected},banners(){return this.$store.state.banners.items||{}},appliedLaw(){return this.banner.properties.settings.applicableLaw},noticeDisabled(){return!1===this.banner.properties.config.notice.status},publishDisabled(){return o["a"].hasErrors()},isLoaded(){return!this.loading&&!!this.banner.id}},watch:{"banner.properties.config":{async handler(){this.loading||(await o["a"].resetTheme(),r["a"].startLoading(),await this.updateSettingsPreview(),r["a"].stopLoading())},deep:!0},"banner.properties.settings":{async handler(){this.loading||(r["a"].startLoading(),await this.updateSettingsPreview(),r["a"].stopLoading())},deep:!0},"banner.contents":{async handler(){this.loading||this.updateContentPreview()},deep:!0},"banner.properties.config.categoryPreview.status":{async handler(){r["a"].startLoading(),await this.updateSettingsPreview(),r["a"].stopLoading()},deep:!0},"banner.properties.config.notice.status":{handler(e){!1===e&&(this.preview=!1)},deep:!0},cookieGroups:{async handler(){r["a"].startLoading(),await this.updateSettingsPreview(),r["a"].stopLoading()},deep:!0},preview:{async handler(){this.preview?(r["a"].startLoading(),await this.updateSettingsPreview(),r["a"].stopLoading()):o["a"].hidePreview()}}},async mounted(){this.loading=!0,await this.loadBanner(),await this.loadCookies(),this.banner&&this.cookieGroups&&(this.initialStoreState={banner:JSON.parse(JSON.stringify(this.banner)),cookies:JSON.parse(JSON.stringify(this.cookieGroups))}),this.loading=!1,await o["a"].loadTemplate(),window.addEventListener("beforeunload",this.handleBeforeUnload)},beforeDestroy(){o["a"].closePreview(!0),o["a"].reset(),window.removeEventListener("beforeunload",this.handleBeforeUnload)}},tt=et,nt=(n("883b"),Object(f["a"])(tt,i,a,!1,null,null,null));t["default"]=nt.exports},"3a5b":function(e,t,n){"use strict";n("5b48")},"3b6a":function(e,t,n){e.exports=n.p+"img/popup-layout.svg"},"4a95":function(e,t,n){e.exports=n.p+"img/status.svg"},"4ab9":function(e,t,n){e.exports=n.p+"img/tick.svg"},"505c":function(e,t,n){"use strict";n("136f")},"50c3":function(e,t,n){e.exports=n.p+"img/arrow-right.svg"},"51f2":function(e,t,n){e.exports=n.p+"img/search.svg"},5544:function(e,t,n){e.exports=n.p+"img/location.svg"},"5b48":function(e,t,n){},"5fa2":function(e,t,n){e.exports=n.p+"img/scan-now.svg"},6008:function(e,t,n){e.exports=n.p+"img/popup.svg"},"67e3":function(e,t,n){e.exports=n.p+"img/rocket.svg"},"694f":function(e,t,n){"use strict";n("aba1")},"69e9":function(e,t,n){e.exports=n.p+"img/pushdown.svg"},"6a22":function(e,t,n){e.exports=n.p+"img/help.svg"},"6aed":function(e,t,n){e.exports=n.p+"img/scan-history.svg"},"6c96":function(e,t,n){e.exports=n.p+"img/time-schedule.svg"},"6d51":function(e,t,n){e.exports=n.p+"img/theme.svg"},"6e70":function(e,t,n){e.exports=n.p+"img/loader.svg"},"6ee3":function(e,t,n){e.exports=n.p+"img/arrow-bold.svg"},"6f43":function(e,t,n){e.exports=n.p+"img/banner-top.svg"},"73cc":function(e,t,n){e.exports=n.p+"img/box-top-right.svg"},"75c1":function(e,t,n){},"76e6":function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var i,a=Symbol(),s=Symbol(),o=Symbol(),r=Symbol(),c=function(e){return"frag"in e};function l(e,t){s in e||(e[s]=t,Object.defineProperty(e,"parentNode",{get:function(){return this[s]||this.parentElement}}))}function p(e){o in e||(e[o]=!0,Object.defineProperty(e,"nextSibling",{get:function(){var e=this.parentNode.childNodes,t=e.indexOf(this);return t>-1&&e[t+1]||null}}))}function d(e,t){while(e.parentNode!==t){var n=e,i=n.parentNode;i&&(e=i)}return e}function u(e){if(!i){var t=Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");i=t.get}var n=i.apply(e),a=Array.from(n).map((function(t){return d(t,e)}));return a.filter((function(e,t){return e!==a[t-1]}))}function y(e){r in e||(e[r]=!0,Object.defineProperties(e,{childNodes:{get:function(){return this.frag||u(this)}},firstChild:{get:function(){return this.childNodes[0]||null}}}),e.hasChildNodes=function(){return this.childNodes.length>0})}function g(){var e;(e=this.frag[0]).before.apply(e,arguments)}function f(){var e=this.frag,t=e.splice(0,e.length);t.forEach((function(e){e.remove()}))}var h=function e(t){var n;return(n=Array.prototype).concat.apply(n,t.map((function(t){return c(t)?e(t.frag):t})))};function k(e,t){var n=e[a];t.before(n),l(n,e),e.frag.unshift(n)}function b(e){if(c(this)){var t=this.frag.indexOf(e);if(t>-1){var n=this.frag.splice(t,1),i=n[0];0===this.frag.length&&k(this,i),e.remove()}}else{var a=u(this),s=a.indexOf(e);s>-1&&e.remove()}return e}function v(e,t){var n=this,i=e.frag||[e];if(c(this)){var a=this.frag;if(t){var s=a.indexOf(t);s>-1&&(a.splice.apply(a,[s,0].concat(i)),t.before.apply(t,i))}else{var o=a[a.length-1];a.push.apply(a,i),o.after.apply(o,i)}C(this)}else t?this.childNodes.includes(t)&&t.before.apply(t,i):this.append.apply(this,i);i.forEach((function(e){l(e,n)}));var r=i[i.length-1];return p(r),e}function m(e){var t=this.frag,n=t[t.length-1];return n.after(e),l(e,this),C(this),t.push(e),e}function C(e){var t=e[a];e.frag[0]===t&&(e.frag.shift(),t.remove())}var _={inserted:function(e){var t=e.parentNode,n=e.nextSibling,i=e.previousSibling,s=Array.from(e.childNodes),o=document.createComment("");0===s.length&&s.push(o),e.frag=s,e[a]=o;var r=document.createDocumentFragment();r.append.apply(r,h(s)),e.replaceWith(r),s.forEach((function(t){l(t,e),p(t)})),y(e),Object.assign(e,{remove:f,appendChild:m,insertBefore:v,removeChild:b,before:g}),Object.defineProperty(e,"innerHTML",{set:function(e){var t=this,n=document.createElement("div");n.innerHTML=e;var i=this.frag.length;Array.from(n.childNodes).forEach((function(e){t.appendChild(e)})),n.append.apply(n,this.frag.splice(0,i))},get:function(){return""}}),t&&(Object.assign(t,{removeChild:b,insertBefore:v}),l(e,t),y(t)),n&&p(e),i&&p(i)},unbind:function(e){e.remove()}},w={name:"Fragment",directives:{frag:_},render:function(e){return e("div",{directives:[{name:"frag"}]},this.$slots["default"])}}},"77ac":function(e,t,n){"use strict";n("927b")},7801:function(e,t,n){e.exports=n.p+"img/sidebar.svg"},"78d0":function(e,t,n){e.exports=n.p+"img/reg.svg"},"857e":function(e,t,n){e.exports=n.p+"img/arrow-left.svg"},8597:function(e,t,n){"use strict";n("9d5a")},"883b":function(e,t,n){"use strict";n("b664")},"896a":function(e,t,n){e.exports=n.p+"img/arrow-down.svg"},"89bc":function(e,t,n){e.exports=n.p+"img/classic-bottom.svg"},"927b":function(e,t,n){},"969c":function(e,t,n){e.exports=n.p+"img/gdpr-us.png"},9947:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("cky-modal",{ref:"ckyConnectModal",staticClass:"cky-connect-modal cky-text-center",attrs:{type:"info",visible:e.visible,dismissable:e.dismissable},scopedSlots:e._u([{key:"body",fn:function(){return[e._t("title")]},proxy:!0},{key:"footer",fn:function(){return[e._t("message"),t("div",{staticClass:"cky-app-modal-actions cky-justify-center"},[t("cky-button",{ref:"ckyButtonConnect",class:{"cky-external-link":e.hasFilter},nativeOn:{click:function(t){return e.handleNavigate()}}},[e._v(" "+e._s(e.$i18n.__("Connect to Web App to Access","cookie-law-info"))+" ")]),t("p",{staticClass:"cky-login-text"},[(e.availablePlan,t("a",{staticClass:"cky-login-and-connect cky-external-link",attrs:{href:""},on:{click:function(t){return t.preventDefault(),e.handleExistingAccountConnection.apply(null,arguments)}}},[e._v(" "+e._s(e.$i18n.__("Have an account? Log in and connect","cookie-law-info"))+" ")]))])],1)]},proxy:!0}],null,!0)})},a=[],s=n("c068"),o=n("8a80"),r={name:"CkyConnectModal",mixins:[s["a"]],components:{CkyModal:o["a"]},data(){return{hasFilter:!1,filterParams:null}},props:{visible:{type:Boolean,default:!1},availablePlan:{type:String,default:"all"},feature:{type:String,default:""}},methods:{show(){this.$refs.ckyConnectModal&&this.$refs.ckyConnectModal.show()},close(){this.$refs.ckyConnectModal&&this.$refs.ckyConnectModal.close()},async handleNavigate(){const e=await this.applyFilter({});if(!e||!0!==e.prevent_navigation){if(this.hasFilterData(e))return e.filter_result&&"object"===typeof e.filter_result?void this.connectToApp(!1,this.feature,e.filter_result):(document.body.classList.remove("cky-app-modal-open"),void this.$router.push({path:"dashboard/plans",query:{available:this.availablePlan}}));document.body.classList.remove("cky-app-modal-open"),this.$router.push({path:"dashboard/plans",query:{available:this.availablePlan}})}},async handleExistingAccountConnection(){const e=await this.applyFilter({});e&&!0===e.prevent_navigation||(this.hasFilterData(e)&&e.filter_result&&"object"===typeof e.filter_result?this.connectToApp(!0,this.feature,e.filter_result):this.connectToApp(!0,this.feature))}},computed:{dismissable(){return!this.visible}},mounted(){this.$root.$on("afterConnection",()=>{this.close()}),this.checkForFilter()}},c=r,l=(n("2785"),n("2877")),p=Object(l["a"])(c,i,a,!1,null,null,null);t["a"]=p.exports},"9b76":function(e,t,n){},"9cca":function(e,t,n){e.exports=n.p+"img/new.svg"},"9d5a":function(e,t,n){},"9d9c":function(e,t,n){e.exports=n.p+"img/banner.svg"},"9deb":function(e,t,n){},"9f63":function(e,t,n){"use strict";n("cf11")},aba1:function(e,t,n){},afb7:function(e,t,n){e.exports=n.p+"img/warning.svg"},b5fb:function(e,t,n){e.exports=n.p+"img/arrow-back.svg"},b664:function(e,t,n){},b8f6:function(e,t,n){e.exports=n.p+"img/cookie-policy.svg"},b94f:function(e,t,n){e.exports=n.p+"img/arrow.svg"},bca3:function(e,t,n){e.exports=n.p+"img/classic-top.svg"},bde3:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("87ea");const a={data(){return{checkFocusTimer:0,hidden:"hidden",visibilityChange:"visibilitychange",hasFocus:!1}},components:{},computed:{account(){return Object(i["e"])("account")}},mounted(){this.initialize()},beforeDestroy(){document.removeEventListener(this.visibilityChange,this.handleVisibilityChange)},methods:{initialize(){!0!==this.account.connected&&("undefined"!==typeof document.hidden?(this.hidden="hidden",this.visibilityChange="visibilitychange"):"undefined"!==typeof document.msHidden?(this.hidden="msHidden",this.visibilityChange="msvisibilitychange"):"undefined"!==typeof document.webkitHidden&&(this.hidden="webkitHidden",this.visibilityChange="webkitvisibilitychange"),document.addEventListener(this.visibilityChange,this.handleVisibilityChange,!1))},handleVisibilityChange(){document[this.hidden]||this.checkForScreenChange()},async checkForScreenChange(){await Object(i["j"])(),this.account.connected&&(document.removeEventListener(this.visibilityChange,this.handleVisibilityChange),this.$router.redirectToDashboard(this.$route.name))}}}},bf37:function(e,t,n){e.exports=n.p+"img/close.svg"},c2c9:function(e,t,n){"use strict";var i=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.hide,expression:"hide"}],staticClass:"cky-dropdown",class:{open:e.visible}},[t("button",{staticClass:"cky-button-icon cky-dropdown-anchor",attrs:{disabled:e.disabled},domProps:{innerHTML:e._s(e.text)},on:{click:function(t){return e.toggle()}}}),t("div",{staticClass:"cky-dropdown-content",on:{click:function(t){return e.hide()}}},[e._t("default")],2)])},a=[],s={name:"CkyDropdown",props:{text:{type:String,default:""},disabled:{type:Boolean,default:!1},sticky:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},data(){return{visible:!1}},methods:{toggle(){this.visible=!this.visible,this.$emit("ckyToggleDropDown")},hide(){this.sticky||(this.visible=!1)}},mounted(){this.visible=this.active}},o=s,r=(n("505c"),n("2877")),c=Object(r["a"])(o,i,a,!1,null,null,null);t["a"]=c.exports},c3cb:function(e,t,n){e.exports=n.p+"img/lang.svg"},c6d0:function(e,t,n){"use strict";n("15f1")},cd0a:function(e,t,n){"use strict";n("9deb")},cf05:function(e,t,n){e.exports=n.p+"img/logo.png"},cf11:function(e,t,n){},d520:function(e,t,n){e.exports=n.p+"img/box.svg"},d645:function(e,t,n){e.exports=n.p+"img/action-alert.svg"},d6db:function(e,t,n){},d91f:function(e,t,n){e.exports=n.p+"img/global-privacy.svg"},e56e:function(e,t,n){e.exports=n.p+"img/tooltip.svg"},e622:function(e,t,n){e.exports=n.p+"img/geo-location.svg"},eb98:function(e,t,n){e.exports=n.p+"img/success-circle.svg"},ef87:function(e,t,n){e.exports=n.p+"img/external.svg"},f222:function(e,t,n){e.exports=n.p+"img/check.svg"},f405:function(e,t,n){e.exports=n.p+"img/custom-logo.svg"},f499:function(e,t,n){e.exports=n.p+"img/blue-tick.svg"},f72a:function(e,t,n){e.exports=n.p+"img/trends.png"},f7f9:function(e,t,n){"use strict";n("9b76")},f7fc:function(e,t,n){e.exports=n.p+"img/center.svg"},fb71:function(e,t,n){e.exports=n.p+"img/circle-warning.svg"},fba1:function(e,t,n){e.exports=n.p+"img/schedule-scan.svg"}}]);