Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/cookie-law-info/lite/admin/dist/js/chunk-08056162.js
Назад
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08056162"],{"04ed":function(e,t,a){e.exports=a.p+"img/connect-success.svg"},"07e6":function(e,t,a){e.exports=a.p+"img/info.svg"},"0d3d":function(e,t,a){e.exports=a.p+"img/info-alert.svg"},1510:function(e,t,a){"use strict";a("5296")},1771:function(e,t,a){var i={"./action-alert.svg":"d645","./arrow-back.svg":"b5fb","./arrow-bold.svg":"6ee3","./arrow-down.svg":"896a","./arrow-left.svg":"857e","./arrow-right.svg":"50c3","./arrow.svg":"b94f","./check-fill.svg":"dcb3","./check.svg":"f222","./close.svg":"bf37","./connect-success.svg":"04ed","./crown.svg":"7cd5","./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","./help.svg":"6a22","./info-alert.svg":"0d3d","./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","./search.svg":"51f2","./star.svg":"42a8","./success-circle.svg":"eb98","./success.svg":"2764","./tick.svg":"4ab9","./tooltip.svg":"e56e","./warning.svg":"afb7"};function n(e){var t=s(e);return a(t)}function s(e){if(!a.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=s,e.exports=n,n.id="1771"},"21e5":function(e,t,a){"use strict";a("a92b")},2764:function(e,t,a){e.exports=a.p+"img/success.svg"},"2cc0":function(e,t,a){e.exports=a.p+"img/box-top-left.svg"},"2ee5":function(e,t,a){e.exports=a.p+"img/error.svg"},"2f94":function(e,t,a){e.exports=a.p+"img/box-bottom-right.svg"},3636:function(e,t,a){"use strict";a.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(a){return t("li",{key:a.id,class:["cky-nav-tab-item",{active:e.currentTab===a.id}]},[t("button",{staticClass:"cky-nav-tab-button",on:{click:function(t){e.currentTab=a.id}}},[e.showIcon(a)?t("cky-icon",{staticClass:"cky-nav-tab-button-icon",attrs:{icon:a.icon}}):e._e(),t("span",{staticClass:"cky-nav-tab-item-title"},[e._v(" "+e._s(a.title)+" ")])],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 a=e.preview,i=t.target,n=!!i.checked;if(Array.isArray(a)){var s=null,r=e._i(a,s);i.checked?r<0&&(e.preview=a.concat([s])):r>-1&&(e.preview=a.slice(0,r).concat(a.slice(r+1)))}else e.preview=n}}}),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)])},n=[],s=a("a2b6"),r=a("c4aa"),o=a("8259"),c=a("bde3"),l=a("9e47"),p=a("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=[],g={name:"CkyBannerPreview",props:{},components:{},data(){return{show:!0}}},y=g,h=a("2877"),f=Object(h["a"])(y,d,u,!1,null,null,null),b=f.exports,k=a("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(a){return t("li",{key:a.name,staticClass:"cky-drop-down-item"},[t("cky-popper",{attrs:{content:"GDPR"===a.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:a.id,href:"#",target:"_self"},on:{click:function(t){return t.preventDefault(),e.changeBanner(a.id)}}},[e._v(" "+e._s(e.getBannerName(a))+" ")])])],1)})),t("li",{staticClass:"cky-drop-down-item"},[t("cky-popper",{attrs:{content:e.$i18n.__("Please upgrade to the Pro or Ultimate plan to show GDPR or US State Laws banner to your site visitors based on their geolocation.","cookie-law-info"),position:"right"}},[t("a",{staticClass:"disabled",attrs:{href:"#",target:"_self",disabled:!0}},[e._v(" "+e._s(e.$i18n.__("GDPR & US State Laws","cookie-law-info"))+" ")])])],1)],2)])],1)},m=[],C={name:"CkyBannerSelector",components:{CkyDropdown:k["a"]},data(){return{laws:["gdpr","ccpa","gdpr&ccpa"]}},methods:{async changeBanner(e){r["a"].toggleBanner(e)},getBannerName(e){return"CCPA"===e.name?"US State Laws":e.name}},computed:{banner(){return this.$store.state.banners.current},banners(){return this.$store.state.banners.items||{}}}},w=C,_=(a("3dcd"),Object(h["a"])(w,v,m,!1,null,null,null)),P=_.exports,x=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 a=e.banner.properties.config.notice.status,i=t.target,n=!!i.checked;if(Array.isArray(a)){var s=null,r=e._i(a,s);i.checked?r<0&&e.$set(e.banner.properties.config.notice,"status",a.concat([s])):r>-1&&e.$set(e.banner.properties.config.notice,"status",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.banner.properties.config.notice,"status",n)}}}),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",attrs:{for:"cky-toggle-iab"}},[e._v(" "+e._s(e.$i18n.__("Support IAB TCF v2.2","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("span",{staticClass:"cky-pro-badge"},[e._v(e._s(e.$i18n.__("Premium","cookie-law-info")))])],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.showUpgradeModal(e.$i18n.__("Upgrade to unlock IAB TCF v2.2 support and other advanced features","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",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")}}),t("span",{staticClass:"cky-pro-badge"},[e._v(e._s(e.$i18n.__("Premium","cookie-law-info")))])],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.showUpgradeModal(e.$i18n.__("Upgrade to unlock Google's Additional Consent Mode support and other advanced features","cookie-law-info"))}}}),t("span",{staticClass:"cky-toggle-slider",attrs:{id:"cky-toggle-gacm-toggle","aria-hidden":"true"}})])])])])])]),t("cky-upgrade-modal",{ref:"ckyUpgradeModal",scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.upgradeNoticeTitle)+" ")]},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 a=e.banner.properties.behaviours.reloadBannerOnAccept.status,i=t.target,n=!!i.checked;if(Array.isArray(a)){var s=null,r=e._i(a,s);i.checked?r<0&&e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",a.concat([s])):r>-1&&e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.banner.properties.behaviours.reloadBannerOnAccept,"status",n)}}}),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(a){return["necessary"!==a.slug?t("div",{key:a.id,staticClass:"cky-form-check cky-align-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:a.prior_consent,expression:"item.prior_consent"}],staticClass:"cky-cky-form-check-input",attrs:{type:"checkbox",id:"cky-checkbox-prior-consent-"+a.slug},domProps:{checked:Array.isArray(a.prior_consent)?e._i(a.prior_consent,null)>-1:a.prior_consent},on:{change:function(t){var i=a.prior_consent,n=t.target,s=!!n.checked;if(Array.isArray(i)){var r=null,o=e._i(i,r);n.checked?o<0&&e.$set(a,"prior_consent",i.concat([r])):o>-1&&e.$set(a,"prior_consent",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(a,"prior_consent",s)}}}),t("label",{staticClass:"cky-form-check-label",class:["cky-form-check-label"],attrs:{for:"cky-checkbox-prior-consent-"+a.slug}},[e._v(" "+e._s(a.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(a){return["necessary"!==a.slug?t("div",{key:a.id,staticClass:"cky-form-check cky-align-center"},[t("input",{directives:[{name:"model",rawName:"v-model",value:a.visibility,expression:"item.visibility"}],staticClass:"cky-cky-form-check-input",attrs:{type:"checkbox",id:"cky-checkbox-visibility-"+a.slug,"true-value":!1,"false-value":!0},domProps:{checked:Array.isArray(a.visibility)?e._i(a.visibility,null)>-1:e._q(a.visibility,!1)},on:{change:function(t){var i=a.visibility,n=t.target,s=!n.checked;if(Array.isArray(i)){var r=null,o=e._i(i,r);n.checked?o<0&&e.$set(a,"visibility",i.concat([r])):o>-1&&e.$set(a,"visibility",i.slice(0,o).concat(i.slice(o+1)))}else e.$set(a,"visibility",s)}}}),t("label",{staticClass:"cky-form-check-label",class:["cky-form-check-label"],attrs:{for:"cky-checkbox-visibility-"+a.slug}},[e._v(" "+e._s(a.name[e.language])+" ")])]):e._e()]}))],2)],1)],2)],1):e._e()],1)],2)],1)],1)])],1)},$=[],A=a("a9f4"),L=a("b02b"),S=a("c068"),B=a("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(a){return t("div",{key:"region-"+a.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-"+a.code},domProps:{value:a.code,checked:e._q(e.selectedRegion,a.code)},on:{click:function(t){t.preventDefault(),"ALL"!==a.code&&e.showUpgradeModal()},change:function(t){e.selectedRegion=a.code}}}),t("label",{staticClass:"cky-form-check-label",attrs:{for:"cky-radio-region-"+a.code}},[e._v(" "+e._s(a.label)+" "),"ALL"!==a.code?t("span",{staticClass:"cky-pro-badge"},[e._v(e._s(e.$i18n.__("Premium","cookie-law-info"))+" ")]):e._e()])])})),0)])]),t("cky-upgrade-modal",{ref:"ckyUpgradeModal",scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$i18n.__("Upgrade to unlock geo-targeting and other advanced features","cookie-law-info"))+" ")]},proxy:!0}])})],1)},O=[],T=a("76e6"),U=a("0bd0"),E={name:"CkyBannerRegionSelector",components:{Fragment:T["a"],CkyUpgradeModal:U["a"]},props:{law:{type:String,default:"gdpr"}},data(){return{regions:{gdpr:[{label:this.$i18n.__("Worldwide","cookie-law-info"),regions:[],code:"ALL"},{label:this.$i18n.__("EU Countries & UK","cookie-law-info"),regions:["EU"],code:"EU"},{label:this.$i18n.__("Select countries","cookie-law-info"),regions:[],code:"OTHER"}],ccpa:[{label:this.$i18n.__("Worldwide","cookie-law-info"),regions:[],code:"ALL"},{label:this.$i18n.__("United States","cookie-law-info"),regions:["NA:US"],code:"US"},{label:this.$i18n.__("Select countries","cookie-law-info"),regions:[],code:"OTHER"}]}}},methods:{showUpgradeModal(){this.$refs.ckyUpgradeModal.show()}},computed:{banner(){return this.$store.state.banners.current},selectedRegion(){return"ALL"},appliedLaw(){return this.banner.properties.settings.applicableLaw},geoTargetHeading(){return this.$i18n.__("Geo-target Banner","cookie-law-info")}}},N=E,j=Object(h["a"])(N,D,O,!1,null,null,null),G=j.exports,M=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(a,i){return t("div",{key:i,staticClass:"cky-input-inline-error"},[!0===a?[e._v(e._s(e.errorMessages[i]))]:e._e()],2)})),0)]):e._e()],2)},F=[],I={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||e<this.min)&&(this.errors["maxLimit"]=!0),r["a"].setErrors(this.errors)}},computed:{banner(){return this.$store.state.banners.current},hasErrors(){return Object.keys(this.errors).length},getValue(){return this.banner.properties.settings.consentExpiry.value}},watch:{getValue(e){this.checkForErrors(e)}}},R=I,V=Object(h["a"])(R,M,F,!1,null,null,null),H=V.exports,z=a("2f62"),J={name:"TabGeneral",mixins:[S["a"]],components:{CkyLoader:l["a"],CkyAccordion:A["a"],CkyAccordionItem:L["a"],CkyNotice:B["a"],CkyBannerRegionSelector:G,CkyBannerExpiry:H,CkyUpgradeModal:U["a"]},data(){return{selectedLocation:"all",toggleSettings:!1,contents:{expiryGdpr:this.$i18n.sprintf(this.$i18n.__("Customise the validity period of your users' consent preferences here. While the <b>GDPR</b> does not specify a specific time limit for consent durations, the French Data Protection Authority, <b>CNIL</b>, recommends retaining user choices for a period of six months (<b>180</b> 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 <b>US State Laws</b> do not specify a specific time limit for retaining user choices.","cookie-law-info"))}}},methods:{toggleAdvanced(){this.toggleSettings=!this.toggleSettings},showUpgradeModal(e){this.upgradeNoticeTitle=e,this.$refs.ckyUpgradeModal.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:{}},K=J,Q=(a("6bd4"),Object(h["a"])(K,x,$,!1,null,null,null)),W=Q.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(a){return t("cky-banner-layout-item",{key:""+a.type,attrs:{properties:a,disabled:"popup"===a.type},on:{upgrade:e.showUpgradeModal}})})),1),t("div",{staticClass:"cky-banner-position-group cky-col-4"},e._l(e.getSelectedLayout.positions,(function(a){return t("cky-radio",{key:`${e.getSelectedLayout.type}-${a}`,attrs:{id:`cky-consent-type-${e.getSelectedLayout.type}-${a}`,value:""+a,label:e.transformText(""+a)},model:{value:e.selectedPosition,callback:function(t){e.selectedPosition=t},expression:"selectedPosition"}})})),1),t("cky-upgrade-modal",{ref:"ckyUpgradeModal",scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$i18n.__("Upgrade to unlock popup layout and other advanced features","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"},[e._v(e._s(e.properties.title)+" "),e.disabled?t("span",{staticClass:"cky-pro-badge"},[e._v(e._s(e.$i18n.__("Premium","cookie-law-info")))]):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.showUpgradeModal()}}},[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=[],ae=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:a("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=[],ne={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=ne,re=Object(h["a"])(se,ae,ie,!1,null,null,null),oe=re.exports,ce={name:"CkyBannerLayoutItem",mixins:[S["a"]],components:{CkyRadio:oe},props:{properties:{type:Object,default(){return{}}},disabled:{type:Boolean,default:!0}},data(){return{upgradeModalVisible:!1,publicPath:"/wp-content/plugins/cookie-law-info/admin/dist/"}},methods:{showUpgradeModal(){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 r["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=(a("cdb3"),Object(h["a"])(le,ee,te,!1,null,null,null)),de=pe.exports,ue={name:"CkyBannerType",components:{CkyUpgradeModal:U["a"],Fragment:T["a"],CkyBannerLayoutItem:de,CkyRadio:oe},props:{title:{type:String,default:""},type:{type:String,default:"normal"}},methods:{showUpgradeModal(){this.$refs.ckyUpgradeModal.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 r["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")}}},ge=ue,ye=(a("ae53"),Object(h["a"])(ge,X,Z,!1,null,null,null)),he=ye.exports,fe=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(a){return t("cky-radio",{key:`${e.getSelectedPlayout.type}-${a}`,attrs:{id:`cky-preference-type-${e.getSelectedPlayout.type}-${a}`,value:""+a,label:e.transformText(""+a)},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 a=e.currentBanner.properties.config.categoryPreview.status,i=t.target,n=!!i.checked;if(Array.isArray(a)){var s=null,r=e._i(a,s);i.checked?r<0&&e.$set(e.currentBanner.properties.config.categoryPreview,"status",a.concat([s])):r>-1&&e.$set(e.currentBanner.properties.config.categoryPreview,"status",a.slice(0,r).concat(a.slice(r+1)))}else e.$set(e.currentBanner.properties.config.categoryPreview,"status",n)}}}),e.isDisabled?t("cky-popper",{attrs:{content:e.$i18n.__("This feature is available with <b>Banner + Push down</b> 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()])},be=[],ke=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:[S["a"]],components:{CkyRadio:oe},data(){return{isHovered:!1,contents:this.$i18n.sprintf(this.$i18n.__("The <b>Push down</b> style is supported for the <b>Banner</b> 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,we=(a("7c50"),Object(h["a"])(Ce,ke,ve,!1,null,null,null)),_e=we.exports,Pe={name:"CkyPreferenceType",components:{Fragment:T["a"],CkyPreferenceLayoutItem:_e,CkyRadio:oe},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 r["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}}}},xe=Pe,$e=(a("c994"),Object(h["a"])(xe,fe,be,!1,null,null,null)),Ae=$e.exports,Le={name:"TabLayout",components:{CkyLoader:l["a"],CkyBannerType:he,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,Be=(a("8a14"),Object(h["a"])(Se,q,Y,!1,null,null,null)),De=Be.exports,Oe=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(a){return t("div",{key:a.id,staticClass:"cky-form-check cky-form-check-inline"},[t("cky-radio",{attrs:{id:a.id,value:a.id,label:a.label},model:{value:e.banner.properties.settings.theme,callback:function(t){e.$set(e.banner.properties.settings,"theme",t)},expression:"banner.properties.settings.theme"}})],1)}))],2),t("tab-content-accordion",{attrs:{language:e.language}})],1)},Te=[],Ue=a("c702"),Ee={name:"TabContent",components:{CkyRadio:oe,CkyLoader:l["a"],TabContentAccordion:Ue["a"],CkyNotice:B["a"]},data(){return{customHtmlMode:!1}},methods:{saveConfig:async function(){await r["a"].save(),this.$root.$emit("triggerNotification",{type:"success",message:"Successfully saved"})}},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=r["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"}},watch:{"banner.properties.settings":{async handler(){r["a"].resetPreset(),await r["a"].showPreview()},deep:!0}}},Ne=Ee,je=(a("5054"),Object(h["a"])(Ne,Oe,Te,!1,null,null,null)),Ge=je.exports,Me=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"},[e._v(" "+e._s(e.$i18n.__("Custom CSS for additional styling","cookie-law-info"))+" ")]),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-upgrade-modal",{staticClass:"cky-upgrade-modal-css",attrs:{visible:!0},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$i18n.__("Upgrade to unlock custom css and other advanced features","cookie-law-info"))+" ")]},proxy:!0}])})],1)])])])},Fe=[],Ie={name:"TabCss",components:{CkyLoader:l["a"],CkyUpgradeModal:U["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"])}},Re=Ie,Ve=(a("1510"),Object(h["a"])(Re,Me,Fe,!1,null,null,null)),He=Ve.exports,ze=a("63ea"),Je=a.n(ze),Ke={name:"Customize",mixins:[c["a"]],components:{CkyLoader:l["a"],CkyIcon:p["a"],CkyBannerPreview:b,CkyDropdown:k["a"],CkyBannerSelector:P,TabGeneral:W,TabLayout:De,TabContent:Ge,TabCss:He},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!Je()(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 r["a"].getActiveBanner(),await r["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 r["a"].bulkUpdate(),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(){o["a"].startLoading(),await r["a"].updateContentPreview(),o["a"].stopLoading()}),500),updateSettingsPreview:Object(s["c"])((async function(){await r["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 r["a"].hasErrors()},isLoaded(){return!this.loading&&!!this.banner.id}},watch:{"banner.properties.config":{async handler(){this.loading||(await r["a"].resetTheme(),o["a"].startLoading(),await this.updateSettingsPreview(),o["a"].stopLoading())},deep:!0},"banner.properties.settings":{async handler(){this.loading||(o["a"].startLoading(),await this.updateSettingsPreview(),o["a"].stopLoading())},deep:!0},"banner.contents":{async handler(){this.loading||this.updateContentPreview()},deep:!0},"banner.properties.config.categoryPreview.status":{async handler(){o["a"].startLoading(),await this.updateSettingsPreview(),o["a"].stopLoading()},deep:!0},"banner.properties.config.notice.status":{handler(e){!1===e&&(this.preview=!1)},deep:!0},cookieGroups:{async handler(){o["a"].startLoading(),await this.updateSettingsPreview(),o["a"].stopLoading()},deep:!0},preview:{async handler(){this.preview?(o["a"].startLoading(),await this.updateSettingsPreview(),o["a"].stopLoading()):r["a"].hidePreview()}}},async mounted(){this.loading=!0,await this.loadBanner(),this.loading=!1,await r["a"].loadTemplate(),await this.loadCookies(),this.initialStoreState={banner:JSON.parse(JSON.stringify(this.banner)),cookies:JSON.parse(JSON.stringify(this.cookieGroups))},window.addEventListener("beforeunload",this.handleBeforeUnload)},beforeDestroy(){r["a"].closePreview(!0),r["a"].reset(),window.removeEventListener("beforeunload",this.handleBeforeUnload)}},Qe=Ke,We=(a("21e5"),Object(h["a"])(Qe,i,n,!1,null,null,null));t["default"]=We.exports},"3dcd":function(e,t,a){"use strict";a("c7ab")},"434a":function(e,t,a){},"4a95":function(e,t,a){e.exports=a.p+"img/status.svg"},"4ab9":function(e,t,a){e.exports=a.p+"img/tick.svg"},5054:function(e,t,a){"use strict";a("434a")},"50c3":function(e,t,a){e.exports=a.p+"img/arrow-right.svg"},"51f2":function(e,t,a){e.exports=a.p+"img/search.svg"},5296:function(e,t,a){},5544:function(e,t,a){e.exports=a.p+"img/location.svg"},6008:function(e,t,a){e.exports=a.p+"img/popup.svg"},"692e":function(e,t,a){},"69e9":function(e,t,a){e.exports=a.p+"img/pushdown.svg"},"6a22":function(e,t,a){e.exports=a.p+"img/help.svg"},"6aed":function(e,t,a){e.exports=a.p+"img/scan-history.svg"},"6bd4":function(e,t,a){"use strict";a("cc13")},"6e70":function(e,t,a){e.exports=a.p+"img/loader.svg"},"6ee3":function(e,t,a){e.exports=a.p+"img/arrow-bold.svg"},"6f43":function(e,t,a){e.exports=a.p+"img/banner-top.svg"},"72ca":function(e,t,a){"use strict";a("ab77")},"73cc":function(e,t,a){e.exports=a.p+"img/box-top-right.svg"},"76e6":function(e,t,a){"use strict";a.d(t,"a",(function(){return S}));var i,n=Symbol(),s=Symbol(),r=Symbol(),o=Symbol(),c=function(e){return"frag"in e},l={get:function(){return this[s]||this.parentElement},configurable:!0},p=function(e,t){s in e||(e[s]=t,Object.defineProperty(e,"parentNode",l))},d={get:function(){var e=this.parentNode.childNodes,t=e.indexOf(this);return t>-1&&e[t+1]||null}},u=function(e){r in e||(e[r]=!0,Object.defineProperty(e,"nextSibling",d))},g=function(e,t){while(e.parentNode!==t){var a=e,i=a.parentNode;i&&(e=i)}return e},y=function(e){if(!i){var t=Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");i=t.get}var a=i.apply(e),n=Array.from(a).map((function(t){return g(t,e)}));return n.filter((function(e,t){return e!==n[t-1]}))},h={get:function(){return this.frag||y(this)}},f={get:function(){return this.childNodes[0]||null}};function b(){return this.childNodes.length>0}var k=function(e){o in e||(e[o]=!0,Object.defineProperties(e,{childNodes:h,firstChild:f}),e.hasChildNodes=b)};function v(){var e;(e=this.frag[0]).before.apply(e,arguments)}function m(){var e=this.frag,t=e.splice(0,e.length);t.forEach((function(e){e.remove()}))}var C=function e(t){var a;return(a=Array.prototype).concat.apply(a,t.map((function(t){return c(t)?e(t.frag):t})))},w=function(e,t){var a=e[n];t.before(a),p(a,e),e.frag.unshift(a)};function _(e){if(c(this)){var t=this.frag.indexOf(e);if(t>-1){var a=this.frag.splice(t,1),i=a[0];0===this.frag.length&&w(this,i),e.remove()}}else{var n=y(this),s=n.indexOf(e);s>-1&&e.remove()}return e}function P(e,t){var a=this,i=e.frag||[e];if(c(this)){if(e[s]===this&&e.parentElement)return e;var n=this.frag;if(t){var r=n.indexOf(t);r>-1&&(n.splice.apply(n,[r,0].concat(i)),t.before.apply(t,i))}else{var o=n[n.length-1];n.push.apply(n,i),o.after.apply(o,i)}$(this)}else t?this.childNodes.includes(t)&&t.before.apply(t,i):this.append.apply(this,i);i.forEach((function(e){p(e,a)}));var l=i[i.length-1];return u(l),e}function x(e){if(e[s]===this&&e.parentElement)return e;var t=this.frag,a=t[t.length-1];return a.after(e),p(e,this),$(this),t.push(e),e}var $=function(e){var t=e[n];e.frag[0]===t&&(e.frag.shift(),t.remove())},A={set:function(e){var t=this;if(this.frag[0]!==this[n]&&this.frag.slice().forEach((function(e){return t.removeChild(e)})),e){var a=document.createElement("div");a.innerHTML=e,Array.from(a.childNodes).forEach((function(e){t.appendChild(e)}))}},get:function(){return""}},L={inserted:function(e){var t=e.parentNode,a=e.nextSibling,i=e.previousSibling,s=Array.from(e.childNodes),r=document.createComment("");0===s.length&&s.push(r),e.frag=s,e[n]=r;var o=document.createDocumentFragment();o.append.apply(o,C(s)),e.replaceWith(o),s.forEach((function(t){p(t,e),u(t)})),k(e),Object.assign(e,{remove:m,appendChild:x,insertBefore:P,removeChild:_,before:v}),Object.defineProperty(e,"innerHTML",A),t&&(Object.assign(t,{removeChild:_,insertBefore:P}),p(e,t),k(t)),a&&u(e),i&&u(i)},unbind:function(e){e.remove()}},S={name:"Fragment",directives:{frag:L},render:function(e){return e("div",{directives:[{name:"frag"}]},this.$slots["default"])}}},7801:function(e,t,a){e.exports=a.p+"img/sidebar.svg"},"78d0":function(e,t,a){e.exports=a.p+"img/reg.svg"},"7c50":function(e,t,a){"use strict";a("df80")},"7cd2":function(e,t,a){},"7cd5":function(e,t,a){e.exports=a.p+"img/crown.svg"},"857e":function(e,t,a){e.exports=a.p+"img/arrow-left.svg"},"896a":function(e,t,a){e.exports=a.p+"img/arrow-down.svg"},"89bc":function(e,t,a){e.exports=a.p+"img/classic-bottom.svg"},"8a14":function(e,t,a){"use strict";a("7cd2")},"9d9c":function(e,t,a){e.exports=a.p+"img/banner.svg"},a92b:function(e,t,a){},ab77:function(e,t,a){},ae53:function(e,t,a){"use strict";a("ced2")},afb7:function(e,t,a){e.exports=a.p+"img/warning.svg"},b5fb:function(e,t,a){e.exports=a.p+"img/arrow-back.svg"},b94f:function(e,t,a){e.exports=a.p+"img/arrow.svg"},bca3:function(e,t,a){e.exports=a.p+"img/classic-top.svg"},bde3:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=a("87ea");const n={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,a){e.exports=a.p+"img/close.svg"},c2c9:function(e,t,a){"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)])},n=[],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}},r=s,o=(a("72ca"),a("2877")),c=Object(o["a"])(r,i,n,!1,null,null,null);t["a"]=c.exports},c3cb:function(e,t,a){e.exports=a.p+"img/lang.svg"},c7ab:function(e,t,a){},c994:function(e,t,a){"use strict";a("692e")},cc13:function(e,t,a){},cdb3:function(e,t,a){"use strict";a("d6fd")},ced2:function(e,t,a){},cf05:function(e,t,a){e.exports=a.p+"img/logo.png"},d520:function(e,t,a){e.exports=a.p+"img/box.svg"},d645:function(e,t,a){e.exports=a.p+"img/action-alert.svg"},d6fd:function(e,t,a){},df80:function(e,t,a){},e56e:function(e,t,a){e.exports=a.p+"img/tooltip.svg"},eb98:function(e,t,a){e.exports=a.p+"img/success-circle.svg"},ef87:function(e,t,a){e.exports=a.p+"img/external.svg"},f222:function(e,t,a){e.exports=a.p+"img/check.svg"},f7fc:function(e,t,a){e.exports=a.p+"img/center.svg"}}]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка