403Webshell
Server IP : 212.114.33.6  /  Your IP : 216.73.217.30
Web Server : Apache
System : Linux ger18 6.12.94+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.94-1 (2026-06-20) x86_64
User : immotrainerde ( 2287)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /srv/www/immotrainerde/htdocs/wp-content/d64050cb6adad70a65bca1b4a13d2bd8/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /srv/www/immotrainerde/htdocs/wp-content/d64050cb6adad70a65bca1b4a13d2bd8/dist/1152458288.js
var realCookieBanner_customize;(()=>{"use strict";var e,t={41594:e=>{e.exports=React},44497:e=>{e.exports=mobx},68495:(e,t,o)=>{o.r(t),o.d(t,{ChecklistStore:()=>L,ConsentStore:()=>K,CookieStore:()=>ge,CustomizeBannerStore:()=>be,OptionStore:()=>Ae,RootStore:()=>dt,ScannerStore:()=>Ge,StatsStore:()=>Ke,TcfStore:()=>lt,useStores:()=>pt});const s=ReactJSXRuntime,n=devowlWp_utils,i=devowlWp_customize;var r=o(5720),a=o(73491),c=o(41594),l=o(41256),d=o(78915);const p=/(\r\n|\r|\n|<br[ ]?\/>)/g;var u=o(19117),g=o(8116);const h=(e,t)=>{const o=(0,c.useRef)(0);(0,c.useEffect)(()=>{if(o.current++,1!==o.current)return e()},t)};function y(e,t=new Map){if(t.has(e))return t.get(e);let o;if("structuredClone"in window&&(e instanceof Date||e instanceof RegExp||e instanceof Map||e instanceof Set))o=structuredClone(e),t.set(e,o);else if(Array.isArray(e)){o=new Array(e.length),t.set(e,o);for(let s=0;s<e.length;s++)o[s]=y(e[s],t)}else if(e instanceof Map){o=new Map,t.set(e,o);for(const[s,n]of e.entries())o.set(s,y(n,t))}else if(e instanceof Set){o=new Set,t.set(e,o);for(const s of e)o.add(y(s,t))}else{if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))return e;o={},t.set(e,o);for(const[s,n]of Object.entries(e))o[s]=y(n,t)}return o}const b={};function m(e){let t=b[e];if(!t){const o=(0,c.createContext)({});t=[o,()=>(0,c.useContext)(o)],b[e]=t}return t}const v=e=>m(e)[1]();function f(e,t,o={},s={}){const{refActions:n,observe:i,inherit:r,deps:a}=s,l=m(e),[d,p]=(0,c.useState)(()=>{const e=Object.keys(o),s=Object.keys(n||{}),i=(t,...i)=>new Promise(r=>p(a=>{const c={...a},l=[];let d=!0;const p=new Proxy(c,{get:(...t)=>{const[i,r]=t;let a=Reflect.get(...t);if(!d)return a;if(-1===l.indexOf(r)&&(a=y(a),Reflect.set(i,r,a),l.push(r)),"string"==typeof r){let t;if(e.indexOf(r)>-1?t=o[r]:s.indexOf(r)>-1&&(t=n[r]),t)return(...e)=>t(p,...e)}return a}}),u=t(p,...i),g=e=>{d=!1,r(e)};return u instanceof Promise?u.then(g):g(void 0),c})),r={set:e=>i("function"==typeof e?e:t=>Object.assign(t,e)),...t,...e.reduce((e,t)=>(e[t]=(...e)=>i(o[t],...e),e),{}),...s.reduce((e,t)=>(e[t]=(...e)=>n[t](d,...e),e),{})};return r.suspense||(r.suspense={}),r});i?.length&&h(()=>{i.filter(e=>t[e]!==d[e]).length&&d.set(i.reduce((e,o)=>(e[o]=t[o],e),{}))},[i.map(e=>t[e])]),Array.isArray(a)&&h(()=>{d.set(t)},a);const[{Provider:u}]=l;let g=d;r?.length&&(g={...d,...r.reduce((e,o)=>(e[o]=t[o],e),{})});const b=(0,c.useMemo)(()=>({}),[]);return(0,c.useEffect)(()=>{const{suspense:e}=d;if(e)for(const t in e){const o=e[t],s=b[t];o instanceof Promise&&s!==o&&(b[t]=o,o.then(e=>d.set({[t]:e})))}},[d]),[u,g]}const S=Symbol(),C=()=>v(S),k=Symbol(),w=()=>v(k),x=({style:e})=>{const{message:t}=u.A.useApp(),{__:o,_i:n}=C(),{fomoCoupon:i}=w(),r=i?.coupon,l=i?.valueInPercent,d=i?.validUntil,p=(0,c.useCallback)(()=>{if(d){const e=new Date(d).getTime()-(new Date).getTime();if(e<=0)return;const t=e/1e3;return[Math.floor(t/3600),Math.floor(t/60)%60,Math.floor(t%60)].map(e=>e<10?`0${e}`:e).filter((e,t)=>"00"!==e||t>0).join(":")}},[d]),[,h]=(0,c.useState)();(0,c.useEffect)(()=>{const e=setInterval(()=>{h((new Date).getTime())},1e3);return()=>{clearInterval(e)}},[]);const y=p();return y?(0,s.jsx)(g.A,{style:e,message:n(o("Use coupon {{tag}}%s{{/tag}} in the next {{strongHours}}%s hours{{/strongHours}} and save {{strongPercent}}%d %%{{/strongPercent}} in the first year!",r,y,l),{tag:(0,s.jsx)(a.A,{color:"success",style:{marginRight:0,cursor:"pointer"},onClick:()=>{!function(e){const t=document.createElement("textarea");t.innerHTML=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}(r),t.success(o("Successfully copied coupon to clipboard!"))}}),strongHours:(0,s.jsx)("strong",{style:{color:"#d33131"}}),strongPercent:(0,s.jsx)("strong",{})})}):null};var j=o(19991),O=o(6099),A=o(92453);const B=({title:e,description:t,link:o,linkText:n,logo:i})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(j.A,{children:e}),(0,s.jsxs)(O.A,{wrap:!1,style:{marginBottom:10},children:[(0,s.jsx)(A.A,{flex:"auto",children:!!t&&(0,s.jsxs)("p",{style:{margin:0},children:[(0,s.jsx)("span",{dangerouslySetInnerHTML:{__html:t}})," ",!!o&&!!n&&(0,s.jsx)("a",{href:o,target:"_blank",rel:"noreferrer",className:"button-link",children:n})]})}),(0,s.jsx)(A.A,{flex:"150px",style:{alignSelf:"center"},children:!!i&&(0,s.jsx)("img",{src:i,style:{maxWidth:"calc(100% - 20px)",height:"auto",marginLeft:20}})})]})]}),I=({mode:e="pro",visible:t=!1,showHints:o=!0,showFomoCouponCounter:n=!0,title:i,testDrive:r=!1,assetName:a,assetMaxHeight:u,description:g,feature:h,onClose:y,inContainer:b,inContainerElement:m})=>{const{__:v,_i:f}=C(),{proUrl:S,hint:k,isPro:j}=w(),[O,A]=(0,c.useState)(),P=(0,c.useCallback)(()=>{"pro"===e?window.open(`${S}&feature=${h}&promo=in-app`,"_blank").focus():window.location.href=`#/licensing?navigateAfterActivation=${encodeURIComponent(window.location.href)}`,y?.()},[y,e]);if((0,c.useEffect)(()=>{b&&O&&O.parentElement.parentElement.parentElement.removeAttribute("tabIndex")},[O]),b&&!m)return null;const T=a?`https://assets.devowl.io/in-app/wp-real-cookie-banner/${a}`:void 0;return(0,s.jsxs)(d.A,{transitionName:b?null:void 0,open:!!b||t,title:(0,s.jsxs)("span",{children:[(0,s.jsx)(l.A,{})," ",i," ","pro"===e&&v("Get PRO!")]}),onOk:P,onCancel:y,cancelText:v("No, not interested..."),okText:v("pro"===e?"I want to learn more!":j?"Activate license":"Activate free license"),className:"rcb-antd-hero-modal",width:a?800:700,getContainer:b?m:void 0,children:[!!a&&(a.endsWith(".webm")?(0,s.jsx)("video",{autoPlay:!0,muted:!0,loop:!0,style:{marginTop:10,maxHeight:u},children:(0,s.jsx)("source",{src:T,type:"video/webm"})}):(0,s.jsx)("img",{style:{marginTop:10,maxHeight:u},src:T})),(0,s.jsxs)("div",{style:{maxWidth:600,margin:"auto"},ref:A,children:[(0,s.jsx)("p",{children:"string"==typeof g?(I=g,"string"==typeof I?I.split(p).map((e,t)=>e.match(p)?(0,c.createElement)("br",{key:t}):e):I):g}),r&&"pro"===e&&(0,s.jsx)("p",{children:f(v("Check out this feature with a {{a}}free sandbox{{/a}} before buying!"),{a:(0,s.jsx)("a",{href:v("https://try.devowl.io/?product=RCB"),target:"_blank",rel:"noreferrer"})})})]}),!!k&&o&&"pro"===e&&(0,s.jsx)("div",{style:{maxWidth:600,margin:"auto",textAlign:"left"},children:(0,s.jsx)(B,{...k})}),n&&"pro"===e&&(0,s.jsx)(x,{style:{marginBottom:15}})]});var I},R="#2db7f5";function F(e,t){const{__:o}=C(),{isPro:n,isLicensed:i}=w(),[l,d]=(0,c.useState)(!1),p="boolean"==typeof t?t:n,u=(0,c.useCallback)(e=>{d(!0),e?.preventDefault()},[d]),g=(0,c.useMemo)(()=>p?null:(0,s.jsx)(a.A,{icon:(0,s.jsx)(r.A,{}),color:R,style:{cursor:"pointer"},onClick:u,children:e.tagText||o("Unlock feature")}),[u,e]),h=(0,c.useMemo)(()=>p&&"license-activation"!==e.mode?null:(0,s.jsx)(I,{visible:l,onClose:()=>d(!1),...e}),[l,d,e]);return{isPro:p,isLicensed:i,tag:g,modal:h,open:u}}const E=({children:e,wrapperAttributes:t={},...o})=>{const{modal:n,tag:i}=F(o);return(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsx)("span",{...t,children:i})]})};var _=o(41490),D=o(44497);let M;const H=(...e)=>(M||(M=(0,n.createRequestFactory)(window[n.BaseOptions.getPureSlug("real-cookie-banner",!0)]))).request(...e),U={path:"/checklist",method:n.RouteHttpVerb.GET},N={path:"/checklist/:id",method:n.RouteHttpVerb.PUT};class L extends n.BaseOptions{constructor(e){super(),this.busyChecklist=!1,this.probablyFetchByChangedItem=(0,D.flow)(function*(e,t){if(t)return void(yield this.fetchChecklist());const o=Array.isArray(e)?e:[e];this.items.filter(({id:e,checked:t})=>o.indexOf(e)>-1&&!t).length>0&&(yield this.fetchChecklist())}),this.fetchChecklist=(0,D.flow)(function*(){this.busyChecklist=!0;try{this.checklist=yield H({location:U,sendReferer:!0})}catch(e){throw console.log(e),e}finally{this.busyChecklist=!1}}),this.toggleChecklistItem=(0,D.flow)(function*(e,t){this.busyChecklist=!0;try{this.checklist=yield H({location:N,request:{state:t},sendReferer:!0,params:{id:e}})}catch(e){throw console.log(e),e}finally{this.busyChecklist=!1}}),this.rootStore=e}get items(){return this.checklist&&Object.keys(this.checklist.items).map(e=>({id:e,...this.checklist.items[e]}))||[]}get completed(){return this.items.filter(({checked:e})=>e)}get checkable(){const{isPro:e}=this.rootStore.optionStore.others;return this.items.filter(({needsPro:t})=>!t||e&&t)}get done(){return this.completed.length>=this.checkable.length||!!this.checklist?.dismissed}}(0,_.Cg)([D.observable],L.prototype,"busyChecklist",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof ResponseRouteChecklistGet?Object:ResponseRouteChecklistGet)],L.prototype,"checklist",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],L.prototype,"items",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],L.prototype,"completed",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],L.prototype,"checkable",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],L.prototype,"done",null);const V={path:"/consent/:id",method:n.RouteHttpVerb.DELETE};class z{get revision(){return this.store.revisions.get(this.revision_hash)}get revision_independent(){return this.store.revisionsIndependent.get(this.revision_independent_hash)}get custom_bypass_readable(){const{custom_bypass:e}=this;return e?e.charAt(0).toUpperCase()+e.slice(1):""}get export(){return JSON.parse(JSON.stringify({...this.plain,revision:this.revision.data,revision_independent:this.revision_independent.data}))}constructor(e,t){this.busy=!1,this.delete=(0,D.flow)(function*(){this.busy=!0;try{yield H({location:V,params:{id:this.id}}),yield this.store.fetchAll()}catch(e){throw console.log(e),e}finally{this.busy=!1}}),(0,D.runInAction)(()=>(0,D.set)(this,e)),this.store=t,this.plain=e}fetchRevisions(){return Promise.all([this.store.fetchRevision({hash:this.revision_hash}),this.store.fetchRevisionIndependent({hash:this.revision_independent_hash})])}}(0,_.Cg)([D.observable],z.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Number)],z.prototype,"id",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"plugin_version",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"design_version",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"ipv4",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"ipv6",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"ipv4_hash",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"ipv6_hash",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"uuid",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"previous_decision",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"decision",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"decision_labels",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"created",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"blocker",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"blocker_thumbnail",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"dnt",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"custom_bypass",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"user_country",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"revision_hash",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"revision_independent_hash",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"button_clicked",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"context",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"viewport_width",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"viewport_height",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"referer",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"url_imprint",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"url_privacy_policy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"forwarded",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"forwarded_blocker",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"previous_tcf_string",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"tcf_string",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"previous_gcm_consent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"gcm_consent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"recorder",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],z.prototype,"ui_view",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],z.prototype,"revision",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],z.prototype,"revision_independent",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],z.prototype,"custom_bypass_readable",null);class G{constructor(e,t){this.data=e,this.store=t}}class W{constructor(e,t){this.data=e,this.store=t}}const q={path:"/consent/all",method:n.RouteHttpVerb.DELETE},$={path:"/consent/all",method:n.RouteHttpVerb.GET},J={path:"/consent/referer",method:n.RouteHttpVerb.GET},Y={path:"/revision/:hash",method:n.RouteHttpVerb.GET},X={path:"/revision/independent/:hash",method:n.RouteHttpVerb.GET};class K extends n.BaseOptions{constructor(e){super(),this.busyConsent=!1,this.busyReferer=!1,this.count=0,this.truncatedIpsCount=0,this.perPage=50,this.offset=0,this.pageCollection=new Map,this.revisions=new Map,this.revisionsIndependent=new Map,this.referer=[],this.filters=D.observable.object({page:1,dates:[void 0,void 0],context:void 0,referer:void 0,ip:void 0,uuid:void 0},{},{deep:!1}),this.fetchAll=(0,D.flow)(function*(e){this.busyConsent=!0;try{const{page:t,referer:o,ip:s,uuid:n,context:i}=this.filters,r=this.filters.dates.map(e=>e?e.format("YYYY-MM-DD"):""),{count:a,truncatedIpsCount:c,items:l}=yield H({location:$,params:{per_page:this.perPage,offset:(t-1)*this.perPage,from:r[0],to:r[1],ip:s,uuid:n,referer:o,context:i,...e||{}}});this.count=a,c&&(this.truncatedIpsCount=c),this.pageCollection.clear();for(const e of l)this.pageCollection.set(e.id,new z(e,this))}catch(e){throw this.count=0,this.truncatedIpsCount=0,this.pageCollection.clear(),console.log(e),e}finally{this.busyConsent=!1}}),this.fetchRevision=(0,D.flow)(function*(e){try{const t=yield H({location:Y,params:e});this.revisions.set(e.hash,new G(t,this))}catch(e){throw console.log(e),e}}),this.fetchRevisionIndependent=(0,D.flow)(function*(e){try{const t=yield H({location:X,params:e});this.revisionsIndependent.set(e.hash,new W(t,this))}catch(e){throw console.log(e),e}}),this.fetchReferer=(0,D.flow)(function*(e){this.busyReferer=!0;try{const t=yield H({location:J,params:e});this.referer=t.items}catch(e){throw console.log(e),e}finally{this.busyReferer=!1}}),this.deleteAll=(0,D.flow)(function*(){this.busyConsent=!0;try{yield H({location:q}),this.applyPage(0),yield this.fetchAll()}catch(e){throw console.log(e),e}finally{this.busyConsent=!1}}),this.rootStore=e,(0,D.runInAction)(()=>{this.filters.context=this.rootStore.optionStore.others.context})}applyPage(e){this.filters.page=e}applyDates(e){this.filters.dates=e}applyContext(e){this.filters.context=e}applyReferer(e){this.filters.referer=e}applyIp(e){this.filters.ip=e}applyUuid(e){this.filters.uuid=e}}(0,_.Cg)([D.observable],K.prototype,"busyConsent",void 0),(0,_.Cg)([D.observable],K.prototype,"busyReferer",void 0),(0,_.Cg)([D.observable],K.prototype,"count",void 0),(0,_.Cg)([D.observable],K.prototype,"truncatedIpsCount",void 0),(0,_.Cg)([D.observable],K.prototype,"perPage",void 0),(0,_.Cg)([D.observable],K.prototype,"offset",void 0),(0,_.Cg)([D.observable],K.prototype,"pageCollection",void 0),(0,_.Cg)([D.observable],K.prototype,"revisions",void 0),(0,_.Cg)([D.observable],K.prototype,"revisionsIndependent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Array)],K.prototype,"referer",void 0),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyPage",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyDates",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyContext",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyReferer",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyIp",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],K.prototype,"applyUuid",null);class Q extends n.AbstractPost{get templateModel(){return dt.get.cookieStore.templatesBlocker.get(this.data.meta?.presetId)}get rules(){return this.data?.meta.rules.split("\n")}get tcfVendors(){return this.data?.meta.tcfVendors?this.data.meta.tcfVendors.split(",").filter(Boolean).map(Number):[]}get tcfPurposes(){return this.data?.meta.tcfPurposes?this.data.meta.tcfPurposes.split(",").filter(Boolean).map(Number):[]}get services(){return this.data?.meta.services.split(",").filter(Boolean).map(Number)}get rootStore(){return this.collection.store.rootStore}get isUpdateAvailable(){for(const{post_id:e}of this.rootStore.optionStore.templateNeedsUpdate)if(e===this.data.id)return!0;return!1}constructor(e,t={}){super(e,t),(0,D.reaction)(()=>this.data?.usedTemplate,e=>(0,D.runInAction)(()=>{e&&dt.get.cookieStore.addBlockerTemplates([e])}),{fireImmediately:!0})}setName(e){this.data.title.raw=e}setStatus(e){this.data.status=e}setDescription(e){this.data.content.raw=e}setMeta(e){this.data.meta=e}transformDataForPatch(){const e=super.transformDataForPatch();return{title:e.title,content:e.content,status:e.status,meta:e.meta,slug:e.title}}afterPatch(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}afterDelete(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}afterPersist(){this.collection.store.blockers.store.rootStore.optionStore.fetchCurrentRevision()}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"templateModel",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"rules",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"tcfVendors",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"tcfPurposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"services",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"rootStore",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Q.prototype,"isUpdateAvailable",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],Q.prototype,"setName",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof PostStatus?Object:PostStatus]),(0,_.Sn)("design:returntype",void 0)],Q.prototype,"setStatus",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],Q.prototype,"setDescription",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],Q.prototype,"setMeta",null),Q=(0,_.Cg)([n.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:H,create:{path:"/rcb-blocker"},patch:{path:"/rcb-blocker/:id"},delete:{path:"/rcb-blocker/:id"}}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object,"undefined"==typeof Partial?Object:Partial])],Q);class Z extends n.AbstractPostCollection{constructor(e){super(),this.store=e}get sortedBlockers(){const e=Array.from(this.entries.values());return e.sort((e,t)=>e.data.menu_order<t.data.menu_order?-1:e.data.menu_order>t.data.menu_order||e.key<t.key?1:e.key>t.key?-1:0),e}instance(e){return new Q(this).fromResponse(e)}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Z.prototype,"sortedBlockers",null),Z=(0,_.Cg)([n.ClientCollection.annotate({path:"/rcb-blocker",singlePath:"/rcb-blocker/:id",namespace:"wp/v2",methods:[n.RouteHttpVerb.GET],request:H}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof CookieStore?Object:CookieStore])],Z);const ee={path:"/templates/blocker/:identifier",method:n.RouteHttpVerb.GET,obfuscatePath:"full"};class te{constructor(e,t){this.busy=!1,this.fetchUse=(0,D.flow)(function*(){try{this.busy=!0;const e=yield H({location:ee,params:{identifier:this.data.identifier}});return this.use=e,this.store.addServiceTemplates(e.consumerData.serviceTemplates),this.use}catch(e){throw console.log(e),e}finally{this.busy=!1}}),(0,D.runInAction)(()=>{this.data=e}),this.store=t}}(0,_.Cg)([D.observable],te.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],te.prototype,"data",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof ResponseRouteTemplatesBlockerUseGet?Object:ResponseRouteTemplatesBlockerUseGet)],te.prototype,"use",void 0);class oe extends n.AbstractPost{get templateModel(){return dt.get.cookieStore.templatesServices.get(this.data.meta?.presetId)}get rootStore(){return this.collection.store.collection.store.rootStore}get technicalDefinitions(){return JSON.parse(this.data.meta.technicalDefinitions||"[]")}get googleConsentModeConsentTypes(){return JSON.parse(this.data.meta.googleConsentModeConsentTypes||"[]")}get dataProcessingInCountries(){return JSON.parse(this.data.meta.dataProcessingInCountries||"[]")}get dataProcessingInCountriesSpecialTreatments(){return JSON.parse(this.data.meta.dataProcessingInCountriesSpecialTreatments||"[]")}get isUpdateAvailable(){for(const{post_id:e}of this.rootStore.optionStore.templateNeedsUpdate)if(e===this.data.id)return!0;return!1}get codeDynamics(){return JSON.parse(this.data.meta.codeDynamics||"{}")}constructor(e,t={}){super(e,t),(0,D.reaction)(()=>this.data?.usedTemplate,e=>(0,D.runInAction)(()=>{e&&dt.get.cookieStore.addServiceTemplates([e])}),{fireImmediately:!0})}afterPatch(){const e=this.collection.store.collection,[t]=this.data["rcb-cookie-group"];e.entries.forEach(e=>{t!==e.key?e.cookies.entries.delete(this.key):e.cookies.entries.set(this.key,this)}),this.rootStore.optionStore.fetchCurrentRevision(),this.rootStore.cookieStore.unassignedCookies.delete(this.key)}setOrder(e){this.data.menu_order=e}setName(e){this.data.title.raw=e}setStatus(e){this.data.status=e}setPurpose(e){this.data.content.raw=e}setGroup(e){this.data["rcb-cookie-group"]=[e]}setMeta(e){this.data.meta=e}transformDataForPersist(){return{...super.transformDataForPersist(),"rcb-cookie-group":[this.collection.store.key]}}transformDataForPatch(){const e=super.transformDataForPatch();return{title:e.title,content:e.content,status:e.status,meta:e.meta,menu_order:e.menu_order,"rcb-cookie-group":this.data["rcb-cookie-group"],slug:e.title}}afterDelete(){this.collection.store.cookies.store.collection.store.rootStore.optionStore.fetchCurrentRevision()}afterPersist(){const{optionStore:e,checklistStore:t}=this.collection.store.cookies.store.collection.store.rootStore;e.fetchCurrentRevision(),t.probablyFetchByChangedItem("add-cookie")}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"templateModel",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"rootStore",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Array),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"technicalDefinitions",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Array),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"googleConsentModeConsentTypes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Object),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"dataProcessingInCountries",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Object),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"dataProcessingInCountriesSpecialTreatments",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"isUpdateAvailable",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type","undefined"==typeof Record?Object:Record),(0,_.Sn)("design:paramtypes",[])],oe.prototype,"codeDynamics",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"afterPatch",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Number]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setOrder",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setName",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof PostStatus?Object:PostStatus]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setStatus",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setPurpose",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Number]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setGroup",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],oe.prototype,"setMeta",null),oe=(0,_.Cg)([n.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:H,create:{path:"/rcb-cookie"},patch:{path:"/rcb-cookie/:id"},delete:{path:"/rcb-cookie/:id"}}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object,"undefined"==typeof Partial?Object:Partial])],oe);const se={path:"/cookies/order",method:n.RouteHttpVerb.PUT};class ne extends n.AbstractPostCollection{get sortedCookies(){const e=Array.from(this.entries.values());return e.sort((e,t)=>e.data.menu_order<t.data.menu_order?-1:e.data.menu_order>t.data.menu_order||e.key<t.key?1:e.key>t.key?-1:0),e}constructor(e){super(),this.orderCookies=(0,D.flow)(function*(e){this.busy=!0;try{yield H({location:se,request:{ids:e}});let t=0;for(const o of e)this.entries.get(o).setOrder(t),t++}catch(e){throw console.log(e),e}finally{this.busy=!1}}),this.store=e}instance(e){return new oe(this).fromResponse(e)}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ne.prototype,"sortedCookies",null),ne=(0,_.Cg)([n.ClientCollection.annotate({path:"/rcb-cookie",singlePath:"/rcb-cookie/:id",namespace:"wp/v2",methods:[n.RouteHttpVerb.GET],request:H}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof CookieGroupModel?Object:CookieGroupModel])],ne);class ie extends n.AbstractCategory{get cookiesCount(){return this.fetchedAllCookies?this.cookies.entries.size:this.data.count}constructor(e,t={}){super(e,t),this.fetchedAllCookies=!1,this.fetchCookies=(0,D.flow)(function*(){yield this.cookies.get({request:{status:["draft","publish","private"]},params:{per_page:100,"rcb-cookie-group":this.key,context:"edit"}}),this.fetchedAllCookies=!0}),(0,D.runInAction)(()=>{this.cookies=new ne(this)})}setName(e){this.data.name=e}setDescription(e){this.data.description=e}setOrder(e){this.data.meta.order=e}afterDelete(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}afterPatch(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}afterPersist(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===ne?Object:ne)],ie.prototype,"cookies",void 0),(0,_.Cg)([D.observable],ie.prototype,"fetchedAllCookies",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ie.prototype,"cookiesCount",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],ie.prototype,"setName",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],ie.prototype,"setDescription",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Number]),(0,_.Sn)("design:returntype",void 0)],ie.prototype,"setOrder",null),ie=(0,_.Cg)([n.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:H,create:{path:"/rcb-cookie-group"},patch:{path:"/rcb-cookie-group/:id"},delete:{path:"/rcb-cookie-group/:id"}}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof CookieGroupCollection?Object:CookieGroupCollection,"undefined"==typeof Partial?Object:Partial])],ie);const re={path:"/cookie-groups/order",method:n.RouteHttpVerb.PUT};class ae extends n.AbstractCategoryCollection{get sortedGroups(){const e=Array.from(this.entries.values());return e.sort((e,t)=>e.data.meta.order<t.data.meta.order?-1:e.data.meta.order>t.data.meta.order?1:0),e}constructor(e){super(),this.orderCookieGroups=(0,D.flow)(function*(e){this.busy=!0;try{yield H({location:re,request:{ids:e}});let t=0;for(const o of e)this.entries.get(o).setOrder(t),t++}catch(e){throw console.log(e),e}finally{this.busy=!1}}),this.store=e}instance(e){return new ie(this).fromResponse(e)}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ae.prototype,"sortedGroups",null),ae=(0,_.Cg)([n.ClientCollection.annotate({path:"/rcb-cookie-group",singlePath:"/rcb-cookie-group/:id",namespace:"wp/v2",methods:[n.RouteHttpVerb.GET],request:H}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof CookieStore?Object:CookieStore])],ae);const ce={path:"/templates/services/:identifier",method:n.RouteHttpVerb.GET,obfuscatePath:"full"};class le{constructor(e,t){this.busy=!1,this.fetchUse=(0,D.flow)(function*(){try{this.busy=!0;const e=yield H({location:ce,params:{identifier:this.data.identifier}});return this.use=e,this.use}catch(e){throw console.log(e),e}finally{this.busy=!1}}),(0,D.runInAction)(()=>{this.data=e}),this.store=t}}(0,_.Cg)([D.observable],le.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],le.prototype,"data",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof ResponseRouteTemplatesServiceUseGet?Object:ResponseRouteTemplatesServiceUseGet)],le.prototype,"use",void 0);const de={path:"/cookies/unassigned",method:n.RouteHttpVerb.GET},pe={path:"/templates/blocker",method:n.RouteHttpVerb.GET},ue={path:"/templates/services",method:n.RouteHttpVerb.GET};class ge{get blockersCount(){return this.fetchedAllBlockers?this.blockers.entries.size:this.rootStore.optionStore.allBlockerCount}get cookiesCount(){return Array.from(this.groups.entries.values()).map(({cookiesCount:e})=>e).reduce((e,t)=>e+t,0)}constructor(e){this.busy=!1,this.unassignedCookies=new Map,this.templatesBlocker=new Map,this.busyTemplatesBlocker=!1,this.templatesServices=new Map,this.busyTemplatesServices=!1,this.fetchedAllBlockers=!1,this.fetchGroups=(0,D.flow)(function*(){yield this.groups.get({params:{per_page:100}}),yield this.fetchUnassignedCookies()}),this.fetchUnassignedCookies=(0,D.flow)(function*(){try{const e=yield H({location:de});for(const t of Object.values(e))this.unassignedCookies.set(t.id,t)}catch(e){throw console.log(e),e}}),this.fetchBlockers=(0,D.flow)(function*(){yield this.blockers.get({request:{status:["draft","publish","private"]},params:{per_page:100,context:"edit"}}),this.fetchedAllBlockers=!0}),this.fetchTemplatesBlocker=(0,D.flow)(function*(e){this.busyTemplatesBlocker=!0;try{const{items:t}=yield H({location:pe,params:e});this.templatesBlocker.clear(),this.addBlockerTemplates(t)}catch(e){throw console.log(e),e}finally{this.busyTemplatesBlocker=!1}}),this.fetchTemplatesServices=(0,D.flow)(function*(e){this.busyTemplatesServices=!0;try{const{items:t}=yield H({location:ue,params:e});if(["redownload","invalidate"].indexOf(e?.storage)>-1){const{activeLanguages:t,currentLanguage:o}=this.rootStore.optionStore.others;for(const s of t)s!==o&&(yield H({location:ue,params:{...e,_dataLocale:s}}))}this.templatesServices.clear(),this.addServiceTemplates(t)}catch(e){throw console.log(e),e}finally{this.busyTemplatesServices=!1}}),this.rootStore=e,(0,D.runInAction)(()=>{this.groups=new ae(this),this.blockers=new Z(this)})}get essentialGroup(){if(0===this.groups.entries.size)return;const e=this.groups.entries.values();let t;for(;(t=e.next().value)&&!t.data.meta.isEssential;);return t}addBlockerTemplates(e){for(const t of e)this.templatesBlocker.set(t.identifier,new te(t,this))}addServiceTemplates(e){for(const t of e)this.templatesServices.set(t.identifier,new le(t,this))}}(0,_.Cg)([D.observable],ge.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===ae?Object:ae)],ge.prototype,"groups",void 0),(0,_.Cg)([D.observable],ge.prototype,"unassignedCookies",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===Z?Object:Z)],ge.prototype,"blockers",void 0),(0,_.Cg)([D.observable],ge.prototype,"templatesBlocker",void 0),(0,_.Cg)([D.observable],ge.prototype,"busyTemplatesBlocker",void 0),(0,_.Cg)([D.observable],ge.prototype,"templatesServices",void 0),(0,_.Cg)([D.observable],ge.prototype,"busyTemplatesServices",void 0),(0,_.Cg)([D.observable],ge.prototype,"fetchedAllBlockers",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ge.prototype,"blockersCount",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ge.prototype,"cookiesCount",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],ge.prototype,"essentialGroup",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Array]),(0,_.Sn)("design:returntype",void 0)],ge.prototype,"addBlockerTemplates",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Array]),(0,_.Sn)("design:returntype",void 0)],ge.prototype,"addServiceTemplates",null);class he{constructor(e,t){(0,D.runInAction)(()=>(0,D.set)(this,e)),this.store=t}static getIframeStore(){try{return document.querySelector("#customize-preview > iframe").contentWindow.realCookieBanner_customize_banner.RootStore.get}catch(e){return}}applyInUi(){if(!this.store.rootStore.optionStore.others.isPro&&this.needsPro)return!1;const e=(0,i.getSidebarCustomize)();return this.previewInUi(),setTimeout(()=>{this.store.presetDefaults.forEach((t,o)=>{e(o).set(void 0===this.settings[o]?t:this.settings[o])})},100),!0}previewInUi(){const{presetDefaults:e}=this.store,{settings:t}=this.store.rootStore.optionStore.others.customizeIdsBanner,o=[];this.resetPreviewInUiSettings={};for(const s of Object.keys(t)){const n=t[s];for(const t of Object.keys(n)){const r=n[t];if(!e.has(r))continue;const a=(0,i.getSanitizedControlValue)(r,e.get(r));if(null!==a){this.resetPreviewInUiSettings[r]=[s,t,a];const n=Object.prototype.hasOwnProperty.call(this.settings,r)?this.settings[r]:e.get(r);o.push([s,t,n])}}}he.getIframeStore().customizeBannerStore.setBannerFromPreset(o)}resetPreviewInUi(){this.resetPreviewInUiSettings&&(he.getIframeStore().customizeBannerStore.setBannerFromPreset(Object.values(this.resetPreviewInUiSettings)),this.resetPreviewInUiSettings={})}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",String)],he.prototype,"id",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",String)],he.prototype,"name",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Boolean)],he.prototype,"needsPro",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",String)],he.prototype,"description",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof Array?Object:Array)],he.prototype,"tags",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],he.prototype,"settings",void 0);const ye={path:"/presets/banner",method:n.RouteHttpVerb.GET};class be{constructor(e){this.visible=!1,this.individualPrivacyOpen=!1,this.previewCheckboxActiveState=!1,this.previewStickyMenuOpenState=!1,this.busyPresets=!1,this.presets=new Map,this.presetConstants=new Map,this.presetDefaults=new Map,this.debounceFromCustomize={},this.fetchPresets=(0,D.flow)(function*(){this.busyPresets=!0;try{const{defaults:e,constants:t,items:o}=yield H({location:ye});for(const t of Object.keys(e))this.presetDefaults.set(t,e[t]);for(const e of Object.keys(t))this.presetConstants.set(e,t[e]);for(const e of Object.keys(o))this.presets.set(e,new he({id:e,...o[e]},this))}catch(e){throw console.log(e),e}finally{this.busyPresets=!1}}),this.rootStore=e}setBannerFromCustomize(e,t,o,s=!0){const{customizeValuesBanner:n}=this.rootStore.optionStore.others,i=t.toString();if(s&&["css","animationInDuration","animationOutDuration"].indexOf(i)>-1)clearTimeout(this.debounceFromCustomize[i]),this.debounceFromCustomize[i]=setTimeout(()=>this.setBannerFromCustomize(e,t,o,!1),500);else{const s=n[e][t];n[e][t]=o,i.startsWith("animationOut")&&s!==o&&this.forceAnimationOutSimulation()}}setBannerFromPreset(e){for(const t of e){const[e,o,s]=t;this.rootStore.optionStore.others.customizeValuesBanner[e][o]=s}}forceAnimationOutSimulation(){const{customizeValuesBanner:e}=this.rootStore.optionStore.others;"none"!==e.layout.animationOut&&(this.visible=!1,setTimeout(()=>(0,D.runInAction)(()=>{this.visible=!0}),+e.layout.animationOutDuration+1e3))}setVisible(e){this.visible=e}setIndividualPrivacyOpen(e){this.individualPrivacyOpen=e}setPreviewCheckboxActiveState(e){this.previewCheckboxActiveState=e}setPreviewStickyMenuOpenState(e){this.previewStickyMenuOpenState=e}exportPhp(){const e={},t=(0,i.getSidebarCustomize)();return this.presetDefaults.forEach((o,s)=>{let n=t(s).get();"boolean"==typeof o?n=!!+n:isNaN(n)||""===n||(n=+n),JSON.stringify(o)!==JSON.stringify(n)&&(e[this.presetConstants.get(s)]=n)}),this.jsonToPHPArray(e)}jsonToPHPArray(e){const t=JSON.stringify(e,null,4).split("\n");return t.shift(),t.pop(),t.join("\n").replace(/^(\s+)"([A-Za-z\\]+::[A-Z_]+)"(:)/gm,"$1$2 =>").replace(/^(\s+)([A-Za-z\\]+)::/gm,(e,t,o)=>`${t}${o.replace(/\\\\/gm,"\\")}::`)}}(0,_.Cg)([D.observable],be.prototype,"visible",void 0),(0,_.Cg)([D.observable],be.prototype,"individualPrivacyOpen",void 0),(0,_.Cg)([D.observable],be.prototype,"previewCheckboxActiveState",void 0),(0,_.Cg)([D.observable],be.prototype,"previewStickyMenuOpenState",void 0),(0,_.Cg)([D.observable],be.prototype,"busyPresets",void 0),(0,_.Cg)([D.observable],be.prototype,"presets",void 0),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof T?Object:T,"undefined"==typeof P?Object:P,Object,void 0]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setBannerFromCustomize",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof Array?Object:Array]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setBannerFromPreset",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"forceAnimationOutSimulation",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Boolean]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setVisible",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Boolean]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setIndividualPrivacyOpen",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Boolean]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setPreviewCheckboxActiveState",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Boolean]),(0,_.Sn)("design:returntype",void 0)],be.prototype,"setPreviewStickyMenuOpenState",null);class me extends n.AbstractPost{get rootStore(){return this.collection.store.rootStore}constructor(e,t={}){super(e,t)}setOrder(e){this.data.menu_order=e}setLabel(e){this.data.title.raw=e}setStatus(e){this.data.status=e}setMeta(e){this.data.meta=e}transformDataForPatch(){const e=super.transformDataForPatch();return{title:e.title,content:"",status:e.status,meta:e.meta,menu_order:e.menu_order,slug:e.title}}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],me.prototype,"rootStore",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Number]),(0,_.Sn)("design:returntype",void 0)],me.prototype,"setOrder",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[String]),(0,_.Sn)("design:returntype",void 0)],me.prototype,"setLabel",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof PostStatus?Object:PostStatus]),(0,_.Sn)("design:returntype",void 0)],me.prototype,"setStatus",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],me.prototype,"setMeta",null),me=(0,_.Cg)([n.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:H,create:{path:"/rcb-banner-link"},patch:{path:"/rcb-banner-link/:id"},delete:{path:"/rcb-banner-link/:id"}}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object,"undefined"==typeof Partial?Object:Partial])],me);const ve={path:"/banner-links/order",method:n.RouteHttpVerb.PUT};class fe extends n.AbstractPostCollection{get sortedBannerLinks(){const e=Array.from(this.entries.values());return e.sort((e,t)=>e.data.menu_order<t.data.menu_order?-1:e.data.menu_order>t.data.menu_order||e.key<t.key?1:e.key>t.key?-1:0),e}constructor(e){super(),this.orderCookies=(0,D.flow)(function*(e){this.busy=!0;try{yield H({location:ve,request:{ids:e}});let t=0;for(const o of e)this.entries.get(o).setOrder(t),t++}catch(e){throw console.log(e),e}finally{this.busy=!1}}),this.store=e}instance(e){return new me(this).fromResponse(e)}}(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],fe.prototype,"sortedBannerLinks",null),fe=(0,_.Cg)([n.ClientCollection.annotate({path:"/rcb-banner-link",singlePath:"/rcb-banner-link/:id",namespace:"wp/v2",methods:[n.RouteHttpVerb.GET],request:H}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof OptionStore?Object:OptionStore])],fe);const Se={path:"/country-bypass/database",method:n.RouteHttpVerb.PUT},Ce={path:"/migration/:migration",method:n.RouteHttpVerb.DELETE},ke={path:"/nav-menu/add-links",method:n.RouteHttpVerb.POST},we={path:"/revision/current",method:n.RouteHttpVerb.GET},xe={path:"/revision/current",method:n.RouteHttpVerb.PUT},je={path:"/settings",method:n.RouteHttpVerb.GET},Oe={path:"/settings",method:n.RouteHttpVerb.PATCH};class Ae extends n.BaseOptions{get isOnlyRcbCookieCreated(){return!(1!==this.allCookieCount||this.isTcf&&this.allTcfVendorConfigurationCount)}get areSettingsFetched(){return void 0!==this.isRespectDoNotTrack}constructor(e){super(),this.busySettings=!1,this.busyCountryBypassUpdate=!1,this.busyAddLinksToNavigationMenu=!1,this.needsRevisionRetrigger=!1,this.fetchedBannerLinks=!1,this.publicCookieCount=0,this.allCookieCount=0,this.allBlockerCount=0,this.allTcfVendorConfigurationCount=0,this.allScannerResultTemplatesCount=0,this.allScannerResultExternalUrlsCount=0,this.cookieCounts={draft:0,private:0,publish:0},this.cloudReleaseInfo={blocker:null,service:null},this.navMenus=[],this.templateNeedsUpdate=[],this.googleConsentModeNoticesHtml=[],this.servicesDataProcessingInUnsafeCountriesNoticeHtml="",this.servicesWithEmptyPrivacyPolicyNoticeHtml="",this.createdTagManagers={gtm:[],mtm:[]},this.contexts={"":""},this.isBannerActive=!1,this.isBlockerActive=!1,this.hidePageIds=[],this.forwardTo=[],this.countryBypassCountries=[],this.isTcf=!1,this.isGcm=!1,this.isGcmShowRecommandationsWithoutConsent=!1,this.isGcmCollectAdditionalDataViaUrlParameters=!1,this.isGcmRedactAdsDataWithoutConsent=!0,this.isGcmListPurposes=!0,this.bannerlessConsentChecks={essential:[],legalBasisConsentWithoutVisualContentBlocker:[],legalBasisLegitimateInterest:[]},this.isBannerStickyLinksEnabled=!1,this.fetchSettings=(0,D.flow)(function*(e){this.busySettings=!0;try{const t=e||(yield H({location:je}));this.isBannerActive=t["rcb-banner-active"],this.isBlockerActive=t["rcb-blocker-active"],this.hidePageIds=(t["rcb-hide-page-ids"]||"").split(",").map(Number).filter(Boolean),this.setCookiesViaManager=t["rcb-set-cookies-via-manager"]||"none",this.operatorCountry=t["rcb-operator-country"],this.operatorContactAddress=t["rcb-operator-contact-address"],this.operatorContactPhone=t["rcb-operator-contact-phone"],this.operatorContactEmail=t["rcb-operator-contact-email"],this.operatorContactFormId=t["rcb-operator-contact-form-id"],this.cookiePolicyId=t["rcb-cookie-policy-id"],this.territorialLegalBasis=t["rcb-territorial-legal-basis"].split(","),this.isAcceptAllForBots=t["rcb-accept-all-for-bots"],this.isRespectDoNotTrack=t["rcb-respect-do-not-track"],this.isBannerLessConsent=t["rcb-banner-less-consent"],this.bannerLessConsentShowOnPageIds=(t["rcb-banner-less-show-on-page-ids"]||"").split(",").map(Number).filter(Boolean),this.cookieDuration=t["rcb-cookie-duration"],this.failedConsentDocumentationHandling=t["rcb-failed-consent-documentation-handling"],this.isSaveIp=t["rcb-save-ip"],this.isDataProcessingInUnsafeCountries=t["rcb-data-processing-in-unsafe-countries"],this.isAgeNotice=t["rcb-age-notice"],this.ageNoticeAgeLimit=t["rcb-age-notice-age-limit"],this.isListServicesNotice=t["rcb-list-services-notice"],this.isConsentForwarding=t["rcb-consent-forwarding"]||!1,this.forwardTo=(t["rcb-forward-to"]||"").split("|").filter(Boolean),this.crossDomains=t["rcb-cross-domains"]||"",this.isCountryBypass=t["rcb-country-bypass"],this.countryBypassCountries=(t["rcb-country-bypass-countries"]||"").split(",").filter(Boolean),this.countryBypassType=t["rcb-country-bypass-type"],this.countryBypassDbDownloadTime=t["rcb-country-bypass-db-download-time"],this.isTcf=t["rcb-tcf"],this.tcfAcceptedTime=t["rcb-tcf-accepted-time"],this.tcfGvlDownloadTime=t["rcb-tcf-gvl-download-time"],this.consentDuration=t["rcb-consent-duration"],this.isGcm=t["rcb-gcm"],this.isGcmShowRecommandationsWithoutConsent=t["rcb-gcm-recommandations"],this.isGcmCollectAdditionalDataViaUrlParameters=t["rcb-gcm-additional-url-parameters"],this.isGcmRedactAdsDataWithoutConsent=t["rcb-gcm-redact-without-consent"],this.isGcmListPurposes=t["rcb-gcm-list-purposes"],this.affiliateLink=t["rcb-affiliate-link"],this.affiliateLabelBehind=t["rcb-affiliate-label-behind"],this.affiliateLabelDescription=t["rcb-affiliate-description"],this.isBannerStickyLinksEnabled=t["rcb-banner-sticky-links-enabled"],yield this.fetchCurrentRevision()}catch(e){throw console.log(e),e}finally{this.busySettings=!1}}),this.fetchBannerLinks=(0,D.flow)(function*(){yield this.bannerLinks.get({request:{status:["draft","publish","private"]},params:{per_page:100,context:"edit"}}),this.fetchedBannerLinks=!0}),this.updateSettings=(0,D.flow)(function*({isBannerActive:e,isBlockerActive:t,hidePageIds:o,setCookiesViaManager:s,operatorCountry:n,operatorContactAddress:i,operatorContactEmail:r,operatorContactFormId:a,operatorContactPhone:c,cookiePolicyId:l,territorialLegalBasis:d,isAcceptAllForBots:p,isRespectDoNotTrack:u,cookieDuration:g,failedConsentDocumentationHandling:h,isSaveIp:y,isDataProcessingInUnsafeCountries:b,isAgeNotice:m,isBannerLessConsent:v,bannerLessConsentShowOnPageIds:f,ageNoticeAgeLimit:S,isListServicesNotice:C,isConsentForwarding:k,forwardTo:w,crossDomains:x,affiliateLink:j,affiliateLabelBehind:O,affiliateLabelDescription:A,isCountryBypass:P,countryBypassCountries:B,countryBypassType:T,isTcf:I,isGcm:R,isGcmShowRecommandationsWithoutConsent:F,isGcmCollectAdditionalDataViaUrlParameters:E,isGcmRedactAdsDataWithoutConsent:_,isGcmListPurposes:D,consentDuration:M,isBannerStickyLinksEnabled:U},N){this.busySettings=!0;try{const L=yield H({location:Oe,request:{...void 0===e?{}:{"rcb-banner-active":e},...void 0===t?{}:{"rcb-blocker-active":t},...void 0===o?{}:{"rcb-hide-page-ids":o.join(",")},...void 0===s?{}:{"rcb-set-cookies-via-manager":s},...void 0===n?{}:{"rcb-operator-country":n},...void 0===i?{}:{"rcb-operator-contact-address":i},...void 0===c?{}:{"rcb-operator-contact-phone":c},...void 0===r?{}:{"rcb-operator-contact-email":r},...void 0===a?{}:{"rcb-operator-contact-form-id":a},...void 0===l?{}:{"rcb-cookie-policy-id":l},...void 0===d?{}:{"rcb-territorial-legal-basis":d.join(",")},...void 0===p?{}:{"rcb-accept-all-for-bots":p},...void 0===v?{}:{"rcb-banner-less-consent":v},...void 0===f?{}:{"rcb-banner-less-show-on-page-ids":f.join(",")},...void 0===u?{}:{"rcb-respect-do-not-track":u},...void 0===g?{}:{"rcb-cookie-duration":g},...void 0===h?{}:{"rcb-failed-consent-documentation-handling":h},...void 0===y?{}:{"rcb-save-ip":y},...void 0===b?{}:{"rcb-data-processing-in-unsafe-countries":b},...void 0===m?{}:{"rcb-age-notice":m},...void 0===S?{}:{"rcb-age-notice-age-limit":S},...void 0===C?{}:{"rcb-list-services-notice":C},...void 0===k?{}:{"rcb-consent-forwarding":k},...void 0===w?{}:{"rcb-forward-to":w.join("|")},...void 0===x?{}:{"rcb-cross-domains":x},...void 0===P?{}:{"rcb-country-bypass":P},...void 0===B?{}:{"rcb-country-bypass-countries":B.join(",")},...void 0===T?{}:{"rcb-country-bypass-type":T},...void 0===I?{}:{"rcb-tcf":I},...void 0===R?{}:{"rcb-gcm":R},...void 0===F?{}:{"rcb-gcm-recommandations":F},...void 0===E?{}:{"rcb-gcm-additional-url-parameters":E},...void 0===_?{}:{"rcb-gcm-redact-without-consent":_},...void 0===D?{}:{"rcb-gcm-list-purposes":D},...void 0===j?{}:{"rcb-affiliate-link":j},...void 0===O?{}:{"rcb-affiliate-label-behind":O},...void 0===A?{}:{"rcb-affiliate-description":A},...void 0===M?{}:{"rcb-consent-duration":M},...void 0===U?{}:{"rcb-banner-sticky-links-enabled":U}}});if(this.fetchedBannerLinks&&N){const e=this.bannerLinks.sortedBannerLinks;for(const t of e)N.find(({id:e})=>t.data.id===e)||(yield t.delete());for(let t=0;t<N.length;t++){const{isExternalUrl:o,label:s,pageType:n,externalUrl:i,hideCookieBanner:r,id:a,pageId:c,isTargetBlank:l}=N[t],d={isExternalUrl:o,pageType:n,externalUrl:i,hideCookieBanner:r,pageId:c,isTargetBlank:l};if(a){const l=e.find(({data:{id:e}})=>a===e);if(l){const{data:{title:{raw:e},menu_order:a,meta:{isExternalUrl:p,pageType:u,externalUrl:g,hideCookieBanner:h,pageId:y}}}=l;e===s&&a===t&&p===o&&u===n&&y===c&&g===i&&h===r||(l.setLabel(s),l.setOrder(t),l.setMeta(d),yield l.patch())}}else{const e=new me(this.bannerLinks,{title:{raw:s},content:{raw:"",protected:!1},status:"publish",menu_order:t,meta:d});yield e.persist()}}}this.fetchSettings(L),this.rootStore.checklistStore.fetchChecklist()}catch(e){throw console.log(e),e}finally{this.busySettings=!1}}),this.fetchCurrentRevision=(0,D.flow)(function*(){this.busySettings=!0;try{this.setFromCurrentRevision(yield H({location:we}))}catch(e){throw console.log(e),e}finally{this.busySettings=!1}}),this.updateCurrentRevision=(0,D.flow)(function*(e){this.busySettings=!0;try{this.setFromCurrentRevision(yield H({location:xe,request:e}))}catch(e){throw console.log(e),e}finally{this.busySettings=!1}}),this.setModalHintSeen=(0,D.flow)(function*(e){this.busySettings=!0;try{this.others.modalHints.push(e),yield H({location:n.locationRestKeyValueMapPatch,params:{name:"rcb-notice-states",key:`modal-hint-${e}`},request:{value:!0}})}catch(e){throw console.log(e),e}finally{this.busySettings=!1}}),this.dismissConfigProNotice=(0,D.flow)(function*(){try{this.others.isConfigProNoticeVisible=!1,yield H({location:n.locationRestKeyValueMapPatch,params:{name:"rcb-notice-states",key:"get-pro-main-button"},request:{value:!0}})}catch(e){throw console.log(e),e}}),this.dismissServiceDataProcessingInUnsafeCountriesNotice=(0,D.flow)(function*(){try{this.servicesDataProcessingInUnsafeCountriesNoticeHtml="",yield H({location:n.locationRestKeyValueMapPatch,params:{name:"rcb-notice-states",key:"service-data-processing-in-unsafe-countries"},request:{value:!1}})}catch(e){throw console.log(e),e}}),this.dismissBannerlessConsentLegitimateServicesNotice=(0,D.flow)(function*(){try{yield H({location:n.locationRestKeyValueMapPatch,params:{name:"rcb-notice-states",key:"dismissed-bannerless-consent-legint-services"},request:{value:!1}}),yield this.fetchCurrentRevision()}catch(e){throw console.log(e),e}}),this.dismissBannerlessConsentServicesWithoutVisualContentBlockerNotice=(0,D.flow)(function*(){try{yield H({location:n.locationRestKeyValueMapPatch,params:{name:"rcb-notice-states",key:"dismissed-bannerless-consent-services-without-visual-content-blocker"},request:{value:!1}}),yield this.fetchCurrentRevision()}catch(e){throw console.log(e),e}}),this.dismissMigration=(0,D.flow)(function*(){try{const{id:e}=this.dashboardMigration;this.dashboardMigration=void 0,yield H({location:Ce,params:{migration:e}})}catch(e){throw console.log(e),e}}),this.addLinksToNavigationMenu=(0,D.flow)(function*(e){this.busyAddLinksToNavigationMenu=!0;try{const{success:t}=yield H({location:ke,request:{id:e}});return t&&(this.rootStore.checklistStore.fetchChecklist(),yield this.fetchCurrentRevision()),t}catch(e){throw console.log(e),e}finally{this.busyAddLinksToNavigationMenu=!1}}),this.updateCountryBypassDatabase=(0,D.flow)(function*(){this.busyCountryBypassUpdate=!0;try{const{dbDownloadTime:e}=yield H({location:Se});this.countryBypassDbDownloadTime=e}catch(e){throw console.log(e),e}finally{this.busyCountryBypassUpdate=!1}}),this.rootStore=e,this.pureSlug=n.BaseOptions.getPureSlug("real-cookie-banner"),this.pureSlugCamelCased=n.BaseOptions.getPureSlug("real-cookie-banner",!0),(0,D.runInAction)(()=>{Object.assign(this,window[this.pureSlugCamelCased]),this.bannerLinks=new fe(this),this.fomoCoupon=this.others.fomoCoupon})}setFromCurrentRevision({contexts:e,created_tag_managers:t,needs_retrigger:o,public_cookie_count:s,all_cookie_count:n,all_blocker_count:i,all_tcf_vendor_configuration_count:r,all_scanner_result_templates_count:a,all_scanner_result_external_urls_count:c,cookie_counts:l,cloud_release_info:d,consents_deleted_at:p,bannerless_consent_checks:u,nav_menus:g,tcf_vendor_configuration_counts:h,dashboard_migration:y,fomo_coupon:b,template_needs_update:m,check_saving_consent_via_rest_api_endpoint_working_html:v,template_update_notice_html:f,template_successors_notice_html:S,google_consent_mode_notices_html:C,services_data_processing_in_unsafe_countries_notice_html:k,services_with_empty_privacy_policy_notice_html:w}){this.createdTagManagers=t,this.needsRevisionRetrigger=o,this.publicCookieCount=s,this.allCookieCount=n,this.allBlockerCount=i,this.allTcfVendorConfigurationCount=r,this.allScannerResultTemplatesCount=a,this.allScannerResultExternalUrlsCount=c,this.templateNeedsUpdate=m,this.templateUpdateNoticeHtml=f,this.checkSavingConsentViaRestApiEndpointWorkingHtml=v,this.templateSuccessorsNoticeHtml=S,this.googleConsentModeNoticesHtml=C,this.servicesDataProcessingInUnsafeCountriesNoticeHtml=k,this.servicesWithEmptyPrivacyPolicyNoticeHtml=w,this.cookieCounts=l,this.cloudReleaseInfo=d,this.consentsDeletedAt=p,this.bannerlessConsentChecks=u,this.navMenus=g,this.tcfVendorConfigurationCounts=h,this.contexts=e,this.dashboardMigration=y,this.fomoCoupon=b}setShowLicenseFormImmediate(e,t){this.others.showLicenseFormImmediate=e,this.others.isLicensed=t}}let Pe;function Be(){return Pe||(Pe=(0,n.createLocalizationFactory)(n.BaseOptions.getPureSlug("real-cookie-banner")))}(0,_.Cg)([D.observable],Ae.prototype,"busySettings",void 0),(0,_.Cg)([D.observable],Ae.prototype,"busyCountryBypassUpdate",void 0),(0,_.Cg)([D.observable],Ae.prototype,"busyAddLinksToNavigationMenu",void 0),(0,_.Cg)([D.observable],Ae.prototype,"needsRevisionRetrigger",void 0),(0,_.Cg)([D.observable],Ae.prototype,"fetchedBannerLinks",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===fe?Object:fe)],Ae.prototype,"bannerLinks",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"publicCookieCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"allCookieCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"allBlockerCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"allTcfVendorConfigurationCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"allScannerResultTemplatesCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"allScannerResultExternalUrlsCount",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"cookieCounts",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"cloudReleaseInfo",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"navMenus",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"tcfVendorConfigurationCounts",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"templateNeedsUpdate",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"checkSavingConsentViaRestApiEndpointWorkingHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"templateUpdateNoticeHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"templateSuccessorsNoticeHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"googleConsentModeNoticesHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"servicesDataProcessingInUnsafeCountriesNoticeHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"servicesWithEmptyPrivacyPolicyNoticeHtml",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"createdTagManagers",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"contexts",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"dashboardMigration",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"fomoCoupon",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isBannerActive",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isBlockerActive",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"hidePageIds",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"setCookiesViaManager",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"operatorCountry",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"operatorContactAddress",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"operatorContactPhone",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"operatorContactEmail",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"operatorContactFormId",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"cookiePolicyId",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"territorialLegalBasis",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isAcceptAllForBots",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isRespectDoNotTrack",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isBannerLessConsent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"bannerLessConsentShowOnPageIds",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"cookieDuration",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"failedConsentDocumentationHandling",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isSaveIp",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isDataProcessingInUnsafeCountries",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isAgeNotice",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"ageNoticeAgeLimit",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isListServicesNotice",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isConsentForwarding",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"forwardTo",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"crossDomains",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"affiliateLink",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"affiliateLabelBehind",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"affiliateLabelDescription",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isCountryBypass",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"countryBypassCountries",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"countryBypassType",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"countryBypassDbDownloadTime",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isTcf",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"tcfAcceptedTime",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"tcfGvlDownloadTime",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isGcm",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isGcmShowRecommandationsWithoutConsent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isGcmCollectAdditionalDataViaUrlParameters",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isGcmRedactAdsDataWithoutConsent",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isGcmListPurposes",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"consentDuration",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"consentsDeletedAt",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"bannerlessConsentChecks",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ae.prototype,"isBannerStickyLinksEnabled",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof OtherOptions?Object:OtherOptions)],Ae.prototype,"others",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ae.prototype,"isOnlyRcbCookieCreated",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ae.prototype,"areSettingsFetched",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof ResponseRouteRevisionCurrentGet?Object:ResponseRouteRevisionCurrentGet]),(0,_.Sn)("design:returntype",void 0)],Ae.prototype,"setFromCurrentRevision",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Boolean,Boolean]),(0,_.Sn)("design:returntype",void 0)],Ae.prototype,"setShowLicenseFormImmediate",null);const Te=(...e)=>Be()._n(...e),Ie=(...e)=>Be()._x(...e),Re=(...e)=>Be().__(...e),Fe=(...e)=>Be()._i(...e),Ee={path:"/scanner/result/ignore",method:n.RouteHttpVerb.POST};class _e{get identifier(){return this.data.host}get inactive(){return"full"===this.blockedStatus||this.data.ignored}get blockedStatus(){const{foundCount:e,blockedCount:t}=this.data;return 0===t?"none":e===t?"full":"partial"}get blockedStatusText(){switch(this.blockedStatus){case"full":return Re("Fully blocked");case"partial":return Re("Partially blocked");default:return Re("Not blocked")}}constructor(e,t){this.busy=!1,this.ignore=(0,D.flow)(function*(e){this.busy=!0;try{yield H({location:Ee,request:{type:"host",value:this.data.host,ignored:e}}),this.data.ignored=e}catch(e){throw console.log(e),e}finally{this.busy=!1}}),(0,D.runInAction)(()=>{this.data=e}),this.store=t}}function De(e,t=50,o="..."){if(!e||e.length<=t)return e;const s=t-o.length,n=Math.ceil(s/2),i=Math.floor(s/2);return e.substr(0,n)+o+e.substr(e.length-i)}(0,_.Cg)([D.observable],_e.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],_e.prototype,"data",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],_e.prototype,"identifier",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],_e.prototype,"inactive",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],_e.prototype,"blockedStatus",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],_e.prototype,"blockedStatusText",null);class Me{get markup(){return this.store.resultMarkup.get(this.data.id)}get blockedUrlTruncate(){return De(this.data.blockedUrl,50,"[...]")}get sourceUrlTruncate(){return De(this.data.sourceUrl,50,"[...]")}constructor(e,t){this.busy=!1,this.fetchMarkup=(0,D.flow)(function*(){yield this.store.fetchMarkup(this.data.id)}),(0,D.runInAction)(()=>{this.data=e}),this.store=t}}(0,_.Cg)([D.observable],Me.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Me.prototype,"data",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Me.prototype,"markup",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Me.prototype,"blockedUrlTruncate",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Me.prototype,"sourceUrlTruncate",null);class He{get identifier(){return this.data.identifier}get type(){return this.templateModel instanceof le?"service":"blocker"}get inactive(){return this.data.consumerData.isCreated||this.data.consumerData.isIgnored}constructor(e,t){this.busy=!1,this.ignore=(0,D.flow)(function*(e){this.busy=!0;try{yield H({location:Ee,request:{type:"template",value:this.identifier,ignored:e}}),this.data.consumerData.isIgnored=e}catch(e){throw console.log(e),e}finally{this.busy=!1}}),(0,D.runInAction)(()=>{this.data=e}),this.store=t;const{cookieStore:o}=t.rootStore;Object.hasOwn(e,"rules")?(o.addBlockerTemplates([e]),this.templateModel=o.templatesBlocker.get(e.identifier)):(o.addServiceTemplates([e]),this.templateModel=o.templatesServices.get(e.identifier))}}(0,_.Cg)([D.observable],He.prototype,"busy",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],He.prototype,"data",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],He.prototype,"templateModel",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],He.prototype,"identifier",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],He.prototype,"type",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],He.prototype,"inactive",null);const Ue={path:"/scanner/queue",method:n.RouteHttpVerb.POST},Ne={path:"/scanner/result/externals/:type/:identifier",method:n.RouteHttpVerb.GET,obfuscatePath:"full"},Le={path:"/scanner/result/externals",method:n.RouteHttpVerb.GET},Ve={path:"/scanner/result/markup/:id",method:n.RouteHttpVerb.GET},ze={path:"/scanner/result/templates",method:n.RouteHttpVerb.GET};class Ge{get sortedTemplates(){const e=Array.from(this.resultTemplates.values());return e.sort((e,t)=>(e.data.consumerData.isIgnored,t.data.consumerData.isIgnored,e.data.headline.localeCompare(t.data.headline))),e}get sortedExternalUrls(){const e=Array.from(this.resultExternalUrls.values());return e.sort((e,t)=>e.inactive===t.inactive?0:e.inactive?1:-1),e}get templatesCount(){return this.fetchedAllResultTemplates?this.resultTemplates.size:this.rootStore.optionStore.allScannerResultTemplatesCount}get externalUrlsCount(){return this.fetchedAllResultExternalUrls?this.resultExternalUrls.size:this.rootStore.optionStore.allScannerResultExternalUrlsCount}get canShowResults(){return this.templatesCount+this.externalUrlsCount>0&&this.rootStore.checklistStore.checklist?.items.scanner.checked&&this.rootStore.optionStore.others.isLicensed}get foundScanResultsCount(){return this.resultTemplates.size+this.resultExternalUrls.size}get needsAttentionCount(){return[...this.resultTemplates.values(),...this.resultExternalUrls.values()].filter(({inactive:e})=>!e).length}constructor(e){this.resultTemplates=new Map,this.busyResultTemplates=!1,this.fetchedAllResultTemplates=!1,this.resultExternalUrls=new Map,this.resultAllExternalUrls=new Map,this.busyExternalUrls=!1,this.fetchedAllResultExternalUrls=!1,this.busyMarkup=!1,this.resultMarkup=new Map,this.addUrlsToQueue=(0,D.flow)(function*(e){return yield H({location:Ue,request:e})}),this.fetchResultTemplates=(0,D.flow)(function*(){this.busyResultTemplates=!0;try{this.resultTemplatesFromResponse(yield H({location:ze})),this.fetchedAllResultTemplates=!0}catch(e){throw console.log(e),e}finally{this.busyResultTemplates=!1}}),this.fetchResultExternals=(0,D.flow)(function*(){this.busyExternalUrls=!0;try{this.resultExternalUrlsFromResponse(yield H({location:Le})),this.fetchedAllResultExternalUrls=!0}catch(e){throw console.log(e),e}finally{this.busyExternalUrls=!1}}),this.fetchResultAllExternals=(0,D.flow)(function*(e){const t=e instanceof _e?"host":"template",{identifier:o}=e;e.busy=!0;try{const{items:e}=yield H({location:Ne,params:{type:t,identifier:"host"===t?o.replace(/\./g,"_"):o}});let s=this.resultAllExternalUrls.get(o);if(s){const t=e.map(({id:e})=>e);for(const e of s.keys())-1===t.indexOf(e)&&s.delete(e)}else s=new Map;for(const t of Object.values(e))s.set(t.id,new Me(t,this)),this.resultAllExternalUrls.set(o,s)}catch(e){throw console.log(e),e}finally{e.busy=!1}}),this.fetchMarkup=(0,D.flow)(function*(e){this.busyMarkup=!0;try{const t=yield H({location:Ve,params:{id:e}});this.resultMarkup.set(e,t)}catch(e){throw console.log(e),e}finally{this.busyMarkup=!1}}),this.rootStore=e}resultTemplatesFromResponse({items:e}){const t=Object.keys(e);for(const e of this.resultTemplates.keys())-1===t.indexOf(e)&&this.resultTemplates.delete(e);for(const o of t)this.resultTemplates.set(o,new He(e[o],this))}resultExternalUrlsFromResponse({items:e}){const t=Object.keys(e);for(const e of this.resultExternalUrls.keys())-1===t.indexOf(e)&&this.resultExternalUrls.delete(e);for(const o of t){const t=this.resultExternalUrls.get(o);t?(0,D.set)(t,{data:e[o]}):this.resultExternalUrls.set(o,new _e(e[o],this))}}}(0,_.Cg)([D.observable],Ge.prototype,"resultTemplates",void 0),(0,_.Cg)([D.observable],Ge.prototype,"busyResultTemplates",void 0),(0,_.Cg)([D.observable],Ge.prototype,"fetchedAllResultTemplates",void 0),(0,_.Cg)([D.observable],Ge.prototype,"resultExternalUrls",void 0),(0,_.Cg)([D.observable],Ge.prototype,"resultAllExternalUrls",void 0),(0,_.Cg)([D.observable],Ge.prototype,"busyExternalUrls",void 0),(0,_.Cg)([D.observable],Ge.prototype,"fetchedAllResultExternalUrls",void 0),(0,_.Cg)([D.observable],Ge.prototype,"busyMarkup",void 0),(0,_.Cg)([D.observable],Ge.prototype,"resultMarkup",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"sortedTemplates",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"sortedExternalUrls",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"templatesCount",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"externalUrlsCount",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"canShowResults",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"foundScanResultsCount",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],Ge.prototype,"needsAttentionCount",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof ResponseRouteScannerResultTemplatesGet?Object:ResponseRouteScannerResultTemplatesGet]),(0,_.Sn)("design:returntype",void 0)],Ge.prototype,"resultTemplatesFromResponse",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof ResponseRouteScannerResultExternalsGet?Object:ResponseRouteScannerResultExternalsGet]),(0,_.Sn)("design:returntype",void 0)],Ge.prototype,"resultExternalUrlsFromResponse",null);const We=moment;var qe=o.n(We);const $e={path:"/stats/buttonsClicked",method:n.RouteHttpVerb.GET},Je={path:"/stats/customBypass",method:n.RouteHttpVerb.GET},Ye={path:"/stats/main",method:n.RouteHttpVerb.GET},Xe="YYYY-MM-DD";class Ke extends n.BaseOptions{constructor(e){super(),this.busyStats={main:!1,buttonClicked:!1,customBypass:!1},this.stats=D.observable.object({main:void 0,buttonsClicked:void 0,customBypass:void 0},{},{deep:!1}),this.filters=D.observable.object({dates:void 0,context:void 0},{},{deep:!1}),this.fetchMain=(0,D.flow)(function*(){this.busyStats.main=!0;try{const e=this.filters.dates.map(e=>e.format(Xe)),t=yield H({location:Ye,params:{from:e[0],to:e[1],context:this.filters.context}});this.stats.main=t,t.length>0&&this.rootStore.checklistStore.probablyFetchByChangedItem("view-stats")}catch(e){throw console.log(e),e}finally{this.busyStats.main=!1}}),this.fetchButtonsClicked=(0,D.flow)(function*(){this.busyStats.buttonClicked=!0;try{const e=this.filters.dates.map(e=>e.format(Xe)),t=yield H({location:$e,params:{from:e[0],to:e[1],context:this.filters.context}});this.stats.buttonsClicked=t}catch(e){throw console.log(e),e}finally{this.busyStats.buttonClicked=!1}}),this.fetchCustomBypass=(0,D.flow)(function*(){this.busyStats.customBypass=!0;try{const e=this.filters.dates.map(e=>e.format(Xe)),t=yield H({location:Je,params:{from:e[0],to:e[1],context:this.filters.context}});this.stats.customBypass=t}catch(e){throw console.log(e),e}finally{this.busyStats.customBypass=!1}}),this.rootStore=e,(0,D.runInAction)(()=>{this.filters.dates=[qe()().subtract(30,"days"),qe()()],this.filters.context=this.rootStore.optionStore.others.context})}applyDates(e){this.filters.dates=e}applyContext(e){this.filters.context=e}}(0,_.Cg)([D.observable],Ke.prototype,"busyStats",void 0),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],Ke.prototype,"applyDates",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],Ke.prototype,"applyContext",null);class Qe{constructor(e,t){(0,D.runInAction)(()=>{this.data=e}),this.store=t}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Qe.prototype,"data",void 0);class Ze{constructor(e,t,o){(0,D.runInAction)(()=>{this.special=t,this.data=e}),this.store=o}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],Ze.prototype,"data",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Boolean)],Ze.prototype,"special",void 0);class et{constructor(e,t,o){(0,D.runInAction)(()=>{this.special=t,this.data=e}),this.store=o}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],et.prototype,"data",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Boolean)],et.prototype,"special",void 0);class tt{get vendorConfiguration(){for(const e of this.store.vendorConfigurations.entries.values())if(e.vendorModel?.data.id===this.data.id)return e}get restrictivePurposes(){const e={normal:{}};for(const t of[...this.legIntPurposes,...this.purposes])e.normal[t.data.id.toString()]={enabled:!0,legInt:this.legIntPurposes.indexOf(t)>-1&&!t.special?"yes":"no"};return e}get purposes(){return this.data?.purposes.map(e=>this.store.purposes.get(`${e}`))}get legIntPurposes(){return this.data?.legIntPurposes.map(e=>this.store.purposes.get(`${e}`))}get specialPurposes(){return this.data?.specialPurposes.map(e=>this.store.specialPurposes.get(`${e}`))}get features(){return this.data?.features.map(e=>this.store.features.get(`${e}`))}get specialFeatures(){return this.data?.specialFeatures.map(e=>this.store.specialFeatures.get(`${e}`))}get dataCategories(){return this.data?.dataDeclaration.map(e=>this.store.dataCategories.get(`${e}`))}constructor(e,t){(0,D.runInAction)(()=>{this.data=e}),this.store=t}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],tt.prototype,"data",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"vendorConfiguration",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"restrictivePurposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"purposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"legIntPurposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"specialPurposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"features",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"specialFeatures",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],tt.prototype,"dataCategories",null);const ot=jQuery;var st=o.n(ot);class nt extends n.AbstractPost{get restrictivePurposes(){const e=JSON.parse(this.data.meta.restrictivePurposes);return st().extend(!0,{},this.vendorModel?.restrictivePurposes||{},e)}get dataProcessingInCountries(){return JSON.parse(this.data.meta.dataProcessingInCountries||"[]")}get dataProcessingInCountriesSpecialTreatments(){return JSON.parse(this.data.meta.dataProcessingInCountriesSpecialTreatments||"[]")}constructor(e,t={}){super(e,t),(0,D.reaction)(()=>this.data.vendor,e=>(0,D.runInAction)(()=>{if(e){const{vendors:t}=this.collection.store,o=e.id.toString();let s=t.get(o);s||(s=new tt(e,this.collection.store),t.set(o,s)),this.vendorModel=s}}),{fireImmediately:!0}),(0,D.reaction)(()=>this.data.meta?.vendorId,e=>{e&&(this.vendorModel=this.collection.store.vendors.get(e.toString()))},{fireImmediately:!0})}setStatus(e){this.data.status=e}setMeta(e){this.data.meta=e}transformDataForPatch(){const e=super.transformDataForPatch();return{status:e.status,meta:e.meta}}afterPatch(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}afterDelete(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}afterPersist(){this.collection.store.rootStore.optionStore.fetchCurrentRevision()}}(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===tt?Object:tt)],nt.prototype,"vendorModel",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type","undefined"==typeof TcfVendorConfigurationRestrictivePurposes?Object:TcfVendorConfigurationRestrictivePurposes),(0,_.Sn)("design:paramtypes",[])],nt.prototype,"restrictivePurposes",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Object),(0,_.Sn)("design:paramtypes",[])],nt.prototype,"dataProcessingInCountries",null),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",Object),(0,_.Sn)("design:paramtypes",[])],nt.prototype,"dataProcessingInCountriesSpecialTreatments",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof PostStatus?Object:PostStatus]),(0,_.Sn)("design:returntype",void 0)],nt.prototype,"setStatus",null),(0,_.Cg)([D.action,(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object]),(0,_.Sn)("design:returntype",void 0)],nt.prototype,"setMeta",null),nt=(0,_.Cg)([n.ClientModel.annotate({keyId:"id",namespace:"wp/v2",request:H,create:{path:"/rcb-tcf-vendor-conf"},patch:{path:"/rcb-tcf-vendor-conf/:id"},delete:{path:"/rcb-tcf-vendor-conf/:id"}}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",[Object,"undefined"==typeof Partial?Object:Partial])],nt);class it extends n.AbstractPostCollection{constructor(e){super(),this.store=e}instance(e){return new nt(this).fromResponse(e)}}it=(0,_.Cg)([n.ClientCollection.annotate({path:"/rcb-tcf-vendor-conf",singlePath:"/rcb-tcf-vendor-conf/:id",namespace:"wp/v2",methods:[n.RouteHttpVerb.GET],request:H}),(0,_.Sn)("design:type",Function),(0,_.Sn)("design:paramtypes",["undefined"==typeof TcfStore?Object:TcfStore])],it);const rt={path:"/tcf/declarations",method:n.RouteHttpVerb.GET},at={path:"/tcf/gvl",method:n.RouteHttpVerb.PUT},ct={path:"/tcf/vendors",method:n.RouteHttpVerb.GET};class lt extends n.BaseOptions{get vendorConfigurationCount(){return this.fetchedAllVendorConfigurations?this.vendorConfigurations.entries.size:this.rootStore.optionStore.allTcfVendorConfigurationCount}constructor(e){super(),this.busyGvl=!1,this.busyVendors=!1,this.busyDeclarations=!1,this.fetchedAllVendorConfigurations=!1,this.vendors=new Map,this.purposes=new Map,this.specialPurposes=new Map,this.features=new Map,this.specialFeatures=new Map,this.dataCategories=new Map,this.fetchVendorConfigurations=(0,D.flow)(function*(){const e=Math.ceil(this.vendorConfigurationCount/100);for(let t=0;t<e;t++)yield this.vendorConfigurations.get({request:{status:["draft","publish","private"]},params:{offset:100*t,per_page:100,context:"edit"}});this.fetchedAllVendorConfigurations=!0}),this.fetchVendors=(0,D.flow)(function*(){this.busyVendors=!0;try{const{vendorListVersion:e,vendors:t}=yield H({location:ct});for(const e of Object.keys(t))this.vendors.set(e,new tt(t[e],this));this.vendorListVersion=e}catch(e){throw console.log(e),e}finally{this.busyVendors=!1}}),this.fetchDeclarations=(0,D.flow)(function*(){this.busyDeclarations=!0;try{const{gvlSpecificationVersion:e,tcfPolicyVersion:t,purposes:o,specialPurposes:s,features:n,specialFeatures:i,dataCategories:r}=yield H({location:rt});for(const e of Object.keys(o))this.purposes.set(e,new et(o[e],!1,this));for(const e of Object.keys(s))this.specialPurposes.set(e,new et(s[e],!0,this));for(const e of Object.keys(n))this.features.set(e,new Ze(n[e],!1,this));for(const e of Object.keys(i))this.specialFeatures.set(e,new Ze(i[e],!0,this));for(const e of Object.keys(r))this.dataCategories.set(e,new Qe(r[e],this));this.declarations={purposes:o,specialPurposes:s,features:n,specialFeatures:i,dataCategories:r},this.gvlSpecificationVersion=e,this.tcfPolicyVersion=t}catch(e){throw console.log(e),e}finally{this.busyDeclarations=!1}}),this.updateGvl=(0,D.flow)(function*(){this.busyGvl=!0;try{const{gvlDownloadTime:e}=yield H({location:at});this.rootStore.optionStore.tcfGvlDownloadTime=e}catch(e){throw console.log(e),e}finally{this.busyGvl=!1}}),this.rootStore=e,(0,D.runInAction)(()=>{this.vendorConfigurations=new it(this)})}}(0,_.Cg)([D.observable],lt.prototype,"busyGvl",void 0),(0,_.Cg)([D.observable],lt.prototype,"busyVendors",void 0),(0,_.Cg)([D.observable],lt.prototype,"busyDeclarations",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",void 0===it?Object:it)],lt.prototype,"vendorConfigurations",void 0),(0,_.Cg)([D.observable],lt.prototype,"fetchedAllVendorConfigurations",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],lt.prototype,"vendorListVersion",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],lt.prototype,"gvlSpecificationVersion",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type",Object)],lt.prototype,"tcfPolicyVersion",void 0),(0,_.Cg)([D.observable,(0,_.Sn)("design:type","undefined"==typeof Omit?Object:Omit)],lt.prototype,"declarations",void 0),(0,_.Cg)([D.observable],lt.prototype,"vendors",void 0),(0,_.Cg)([D.observable],lt.prototype,"purposes",void 0),(0,_.Cg)([D.observable],lt.prototype,"specialPurposes",void 0),(0,_.Cg)([D.observable],lt.prototype,"features",void 0),(0,_.Cg)([D.observable],lt.prototype,"specialFeatures",void 0),(0,_.Cg)([D.observable],lt.prototype,"dataCategories",void 0),(0,_.Cg)([D.computed,(0,_.Sn)("design:type",void 0),(0,_.Sn)("design:paramtypes",[])],lt.prototype,"vendorConfigurationCount",null);class dt{get context(){return this.contextMemo?this.contextMemo:this.contextMemo=(0,n.createContextFactory)(this)}constructor(){this.optionStore=new Ae(this),this.customizeBannerStore=new be(this),this.cookieStore=new ge(this),this.consentStore=new K(this),this.statsStore=new Ke(this),this.checklistStore=new L(this),this.tcfStore=new lt(this),this.scannerStore=new Ge(this)}static get StoreProvider(){return dt.get.context.StoreProvider}static get get(){return dt.me?dt.me:dt.me=new dt}}const pt=()=>dt.get.context.useStores();var ut=o(64349),gt=o(65666);const ht=({children:e,configProvider:t={},app:o={}})=>(0,s.jsx)(gt.Ay,{prefixCls:"rcb-antd",iconPrefixCls:"rcb-antd-anticon",theme:{token:{colorPrimary:"#2271b1",borderRadius:3}},...t,children:(0,s.jsx)(ut.Z_3,{value:{prefixCls:"rcb-antd-anticon"},children:(0,s.jsx)(u.A,{message:{top:50},...o,children:(0,s.jsx)(dt.StoreProvider,{children:e})})})}),yt=({children:e})=>{const{optionStore:{others:{isPro:t,isLicensed:o,hints:n,proUrl:i,isDemoEnv:r},fomoCoupon:a}}=pt(),[c,l]=((...e)=>f(S,...e))({__:Re,_i:Fe,_n:Te,_x:Ie}),[d,p]=((...e)=>f(k,...e))({isPro:t,isLicensed:o,isDemoEnv:r,hint:n?.proDialog,proUrl:i,fomoCoupon:a},{},{inherit:["isLicensed","fomoCoupon"]});return(0,s.jsx)(c,{value:l,children:(0,s.jsx)(d,{value:p,children:e})})},bt=({children:e})=>(0,s.jsx)(ht,{children:(0,s.jsx)(yt,{children:e})});function mt(e,t){(0,i.getSidebarCustomize)().control(e,()=>{const o=document.querySelector(`label[for="_customize-input-${e}"]`),i=document.createElement("span");o.appendChild(i),(0,n.createRoot)(i).render((0,s.jsx)(bt,{children:(0,s.jsx)(E,{...t,wrapperAttributes:{style:{marginLeft:5}}})}))})}const vt=({settings:e})=>{const t=(0,i.useCustomizeValues)(e),o=(0,c.useMemo)(()=>{const[{value:e},...o]=Object.values(t),s=Math.min(...o.filter(({visible:e})=>e).map(Number)),n=s<=10?100:s<=12?93:90;return+e<n&&n},[JSON.stringify(t)]);return(0,i.useA11yDispatcher)({setting:e[0],valid:!o}),!1===o?null:(0,s.jsx)(i.A11yNotice,{severity:"warning",text:Re('We recommend a scaling factor of at least %d %% in order to comply with the {{aPerc}}"perceptibility" of the WCAG 2.2 standard{{/aPerc}} and thereby meet the {{aEuMinimum}}EU\'s minimum legal requirements for accessibility{{/aEuMinimum}}.',o)})},ft=({settings:e})=>{const t=(0,i.useCustomizeValues)(e),o=(0,c.useMemo)(()=>{const{[e[0]]:{value:o},[e[1]]:{value:s},[e[2]]:{value:n}}=t;return"banner"!==o&&(!s||n<50)},[JSON.stringify(t)]);return(0,i.useA11yDispatcher)({setting:e[1],valid:!o}),!1===o?null:(0,s.jsx)(i.A11yNotice,{severity:"warning",text:Re('We recommend to show an overlay until consent and an overlay opacity over 50 %% to comply with the {{aPerc}}"perceptibility" of the WCAG 2.2 standard{{/aPerc}} and thereby meet the {{aEuMinimum}}EU\'s minimum legal requirements for accessibility{{/aEuMinimum}}.')})};var St=o(48420),Ct=o(50275),kt=o(51078),wt=o(57922);function xt(e,t){const o={},s=[];for(const n in e){const i=e[n],{breadcrumb:r,valid:a}=i;if(a&&!t)continue;const c=r.split(" ▸ ").map(e=>e.trim());let l=o;for(const e of c)l[e]||(l[e]={__:i},s.push(l[e])),l=l[e]}for(const e of s){const{__:t,...o}=e;Object.keys(o).length>0&&delete e.__}return o}const jt=({node:e})=>0===Object.keys(e).length?null:(0,s.jsx)("ul",{style:{listStyle:"disc",paddingLeft:20},children:Object.keys(e).map(t=>{const{__:o}=e[t];return(0,s.jsx)("li",{style:o?{listStyle:"none",marginLeft:-20}:void 0,children:o?(0,s.jsxs)(s.Fragment,{children:[o.valid?(0,s.jsx)(St.A,{style:{color:"green"}}):(0,s.jsx)(Ct.A,{style:{color:"#df3b3b"}})," ",(0,s.jsx)("a",{href:"#",onClick:e=>{o.instance.focus(),e.preventDefault()},children:t})]}):(0,s.jsxs)(s.Fragment,{children:[t,(0,s.jsx)(jt,{node:e[t]})]})},t)})}),Ot=(0,wt.PA)(()=>{const[e,t]=(0,c.useState)(!1),[o,n]=(0,c.useState)({}),[r,l]=(0,c.useState)(!1);(0,c.useEffect)(()=>{window.location.href.indexOf("customAutofocus[rcb-a11y-score]=1")>-1&&t(!0)},[]),(0,c.useEffect)(()=>{document.addEventListener(i.SETTING_ACCESSIBILITY_CHANGED_EVENT,({detail:e})=>{e.setting.startsWith("rcb-")&&n(t=>({...t,[e.setting]:e}))})},[]);const d=Object.values(o).filter(({visible:e})=>e);d.sort(({breadcrumb:e},{breadcrumb:t})=>e.localeCompare(t));const{score:p,max:u}=d.reduce((e,{valid:t})=>(e.max++,t&&e.score++,e),{max:0,score:0}),g=p/u*100,h=g>=95?"green":g>=50?"orange":"red";return(0,s.jsxs)(i.SameSectionAccordion,{state:e,onToggle:()=>t(!e),title:(0,s.jsxs)(s.Fragment,{children:[Re("Accessibility score")," ",(0,s.jsxs)(a.A,{color:h,children:[g.toFixed(0)," %"]})]}),children:[(0,s.jsx)("p",{className:"description",children:Fe(Re("Reach 100 points to meet all of Real Cookie Banner's recommendations for making your cookie banner be easily accessible to people with disabilities on the basis of the {{a}}WCAG Standard 2.2{{/a}}. You can find out which sections of your cookie banner need to be changed and which improvements we suggest under the individual options in the customizer."),{a:(0,s.jsx)("a",{href:Re("https://www.w3.org/TR/WCAG22/"),target:"_blank",rel:"noreferrer"})})}),100===g?(0,s.jsx)(kt.Ay,{status:"success",subTitle:Re("Congratulations, your Cookie Banner is accessible! Thank you for making your cookie banner easily accessible to people with disabilities.")}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"description",children:Re("The following configurations do not comply with the requirements:")}),(0,s.jsx)("p",{style:{textAlign:"right"},children:(0,s.jsx)("a",{onClick:()=>l(!r),children:Re(r?"Hide passed rules":"Show passed rules")})}),(0,s.jsx)(jt,{node:xt(d,r)})]})]})}),At=({decision:e})=>{const{backboneView:t}=(0,i.useCustomControl)(),o=(0,i.getSidebarCustomize)()(dt.get.optionStore.others.customizeIdsBanner.settings.decision[e]),n=o.get(),r={button:Re("Button"),link:Re("Link"),hide:Re("Hide")};let a=!1;(0,c.useEffect)(()=>o.bind("change",()=>!a&&t.renderContent()),[]);const l=(0,c.useCallback)(e=>{a=!0,o.set(e.target.value),a=!1,t.renderContent()},[o]);return(0,s.jsx)("select",{value:n,onChange:l,children:Object.keys(r).map(e=>(0,s.jsx)("option",{value:e,children:r[e]},e))})},Pt=()=>{const{value:e,setValue:t}=(0,i.useCustomControl)(),{isPro:o,modal:n,tag:r}=F({title:Re("Want to have a choice in the first view?"),testDrive:!0,feature:"groups-first-view",assetName:Re("pro-modal/groups-first-view.png"),description:Re("Visitors of your website can choose which service groups they want to accept immediately after loading the cookie banner, without the need to go into the individual privacy settings.")});return(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsxs)("label",{children:[(0,s.jsx)("input",{className:i.CUSTOM_CONTROL_INPUT_CHECKBOX_CLASS_NAME,type:"checkbox",disabled:!o,value:"1",checked:!!o&&e,onChange:()=>t(!e)}),Re("Allow to choose service groups directly in the first view of the cookie banner")," ",r]})]})};let Bt=0;const Tt="react-use-plain-css-";function It(e){return e?e.startsWith(Tt)?e:`${Tt}${e}`:`${Tt}${(Bt++).toString(36)}`}const Rt=()=>{const{optionStore:{others:{customizeIdsBanner:{sections:{mobile:e}}}}}=pt(),{value:t,setValue:o}=(0,i.useCustomControl)(),[n,r]=(0,c.useState)("375,812"),[a,l]=(0,c.useState)(!1),{isPro:d,modal:p,tag:u}=F({title:Re("Want to optimize the cookie banner for mobile users?"),testDrive:!0,feature:"mobile-experience",assetName:Re("pro-modal/mobile-optimization.png"),description:Re("Cookie banners are a necessary evil that takes up a lot of space, especially on smartphones. With mobile optimization you can customize the cookie banner so that it is more discreet and at the same time easy to read on smartphones.")});(0,c.useEffect)(()=>{(0,i.listenPanelExpanded)(e,l)},[]);const[g,h]=n.split(",").map(Number);return function(e,t,o){const s=(0,c.useMemo)(()=>It(t),[t]);(0,c.useLayoutEffect)(()=>{const t=function(e,t){const o=It(t);let s=document.getElementById(o);return s||(s=document.createElement("style"),s.style.type="text/css",s.id=o,s.setAttribute("skip-rucss","true"),document.getElementsByTagName("head")[0].appendChild(s)),s.innerHTML=e,o}(e,s);return()=>{o||document.getElementById(t)?.remove()}},[e,s,o])}(t&&a?`#customize-preview {\n    width: ${g}px !important;\n    height: ${h}px !important;\n    margin: auto 0 auto calc(${g}px / 2 * -1) !important;\n    max-height: 100%;\n    max-width: 100%;\n    left: 50%;\n}\n\n#customize-footer-actions .devices-wrapper {\n    display: none;\n}`:""),(0,s.jsxs)(s.Fragment,{children:[p,(0,s.jsxs)("label",{children:[(0,s.jsx)("input",{className:i.CUSTOM_CONTROL_INPUT_CHECKBOX_CLASS_NAME,type:"checkbox",disabled:!d,value:"1",checked:!!d&&t,onChange:()=>o(!t)}),Re("Enable mobile optimization")," ",u]}),(0,s.jsx)("span",{className:"description customize-control-description",style:{marginTop:5},children:Re("To ensure that the cookie banner does not take up too much space on mobile devices, its display can be reduced for this class of device.")}),t&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"customize-control-title",style:{marginTop:10},children:Re("Simulate device in preview")}),(0,s.jsxs)("select",{value:n,onChange:e=>r(e.target.value),children:[(0,s.jsx)("option",{value:"411,731",children:"Pixel 2"}),(0,s.jsx)("option",{value:"411,823",children:"Pixel 2 XL"}),(0,s.jsx)("option",{value:"320,568",children:"iPhone 5/SE"}),(0,s.jsx)("option",{value:"375,667",children:"iPhone 6/7/8"}),(0,s.jsx)("option",{value:"414,736",children:"iPhone 6/7/8 Plus"}),(0,s.jsx)("option",{value:"375,812",children:"iPhone X"})]})]})]})},Ft=()=>{const{value:e,setValue:t}=(0,i.useCustomControl)(),{isPro:o,modal:n,tag:r}=F({title:Re("Want to show legal links with a sticky icon?"),testDrive:!0,feature:"sticky-links",assetName:Re("pro-modal/sticky-legal-links.webm"),description:Re("Display a sticky icon on your website that makes the legal links easily accessible on every subpage. Not only does it look fancy, it also boosts your data protection!")});return(0,s.jsxs)(s.Fragment,{children:[n,(0,s.jsxs)("label",{children:[(0,s.jsx)("input",{className:i.CUSTOM_CONTROL_INPUT_CHECKBOX_CLASS_NAME,type:"checkbox",disabled:!o,value:"1",checked:!!o&&e,onChange:()=>t(!e)}),Re("Enable sticky links widget")," ",r]})]})};let Et,_t;const Dt=(0,wt.PA)(({preset:e,onApply:t})=>{const[o,n]=(0,c.useState)(!1),{isPro:i,open:r,modal:l}=F({title:Re("Want to use %s preset?",e.name),testDrive:!0,feature:"customize-preset",description:Re("Only a limited number of presets are available for the free version of Real Cookie Banner. Start now with the PRO version and create a design from a preset with just one click.")}),d=he.getIframeStore().customizeBannerStore,p=(0,c.useCallback)(()=>{clearTimeout(Et),clearInterval(_t),Et=setTimeout(()=>{n(!1),e.previewInUi(),_t=setInterval(()=>{d.setIndividualPrivacyOpen(!d.individualPrivacyOpen)},1e3*Mt)},100)},[n,e,d]),u=(0,c.useCallback)(()=>{clearTimeout(Et),clearInterval(_t),d.setIndividualPrivacyOpen(!1),o||(Et=setTimeout(()=>{e.resetPreviewInUi()},100))},[e,o]),g=(0,c.useCallback)(()=>{clearInterval(_t),e.applyInUi()?(n(!0),t?.()):r()},[n,e]);return(0,s.jsxs)("div",{className:"customize-rcb-preset",onMouseEnter:p,onMouseLeave:u,children:[l,(0,s.jsxs)("strong",{children:[e.name," ",!i&&e.needsPro&&(0,s.jsx)(a.A,{color:R,children:"PRO"}),e.tags?.map(([e,t])=>(0,s.jsx)(a.A,{color:e,children:t},t))]}),(0,s.jsx)("span",{children:e.description}),(0,s.jsx)("div",{className:"btn-apply hidden",onClick:g,children:Re(o?"Applied!":"Apply")})]})}),Mt=5,Ht=(0,wt.PA)(()=>{const[e,t]=(0,c.useState)(!1),[o,n]=(0,c.useState)(!1),{customizeBannerStore:r}=pt(),{busyPresets:a,presets:l}=r,d=e=>{e&&!o&&(r.fetchPresets(),n(!0)),t(e)},p=()=>{d(!1)};return(0,c.useEffect)(()=>{window.location.href.indexOf("customAutofocus[rcb-presets]=1")>-1&&async function(e,t=500,o=0){let s=0;for(;!e();){if(o>0&&s>=o)return;await new Promise(e=>setTimeout(e,t)),s++}return e()}(()=>he.getIframeStore()).then(()=>d(!0))},[]),(0,s.jsxs)(i.SameSectionAccordion,{state:e,onToggle:d,title:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:a?"spinner is-active":"",style:{margin:0}})," ",Re("Presets")]}),grouped:!0,children:[(0,s.jsx)("p",{className:"description",children:Re("You can choose between different presets. Presets only change the style, but no texts or content. Tip: Hover the mouse over a preset to see a real-time preview. Wait %d seconds, and you will see a preview of the individual privacy settings screen.",Mt)}),(0,s.jsx)("br",{}),Array.from(l.values()).map(e=>(0,s.jsx)(Dt,{preset:e,onApply:p},e.id))]})});!function(){const{optionStore:{others:{isPro:e,customizeIdsBanner:t,customizeDefaultsBanner:o,isPoweredByLinkDisabledByException:r,activeLanguages:a,frontend:{isDataProcessingInUnsafeCountries:c,isAgeNotice:l,isListServicesNotice:d,isTcf:p,isGcm:u}}}}=dt.get,{panel:g,headlines:h,others:{customHtmlDecisionButtonTypeDiffers:y,customHtmlDecisionLegalNoticeAll:b,customHtmlDecisionLegalNoticeEssentials:m,customHtmlDecisionLegalNoticeIndividual:v,customHtmlMobileHideHeaderIgnoreDueCloseIcon:f,customHtmlLayoutMaxHeightNotice:S,customHtmlLayoutAnimationInClsNotice:C},sections:k,settings:{layout:w,decision:x,design:j,headerDesign:O,bodyDesign:A,footerDesign:P,texts:B,individualLayout:T,group:I,saveButton:R,mobile:F,sticky:E}}=t,_=(0,i.getSidebarCustomize)(),D=e=>!!e,M=t=>D(t)&&e,H=e=>e>0,U=e=>"hide"!==e,N=e=>"hide"===e,L=e=>"none"!==e,V=()=>c||l||d,z=()=>!p,G=()=>p||u,W=()=>!d,q=()=>a.length>1,$=()=>{const e=_(w.type).get(),t=_(w.maxHeight).get();return"dialog"===e&&t<740||"banner"===e&&t<500},J=()=>_(x.acceptAll).get()!==_(x.acceptEssentials).get(),Y=()=>!J(),X=()=>!_(A.acceptEssentialsUseAcceptAll).get()||J(),K={[A.acceptEssentialsUseAcceptAll]:X,[x.acceptAll]:X,[x.acceptEssentials]:X},Q=()=>_(R.type).get()!==_(x.acceptAll).get(),Z=()=>!Q(),ee=()=>!_(R.useAcceptAll).get()||Q(),te={[R.useAcceptAll]:ee,[x.acceptAll]:ee,[R.type]:ee},oe={...te,[R.type]:e=>ee()&&"button"===e};(0,i.sidebarFactory)({panel:g,ids:t,defaults:o,contentBesideSection:{[k.design]:()=>(0,s.jsx)(i.HeadlineBeforeSection,{children:Re("Cookie banner/dialog design")}),[k.mobile]:()=>(0,s.jsx)(i.HeadlineBeforeSection,{children:Re("Miscellaneous")}),[k.individualLayout]:()=>(0,s.jsx)(i.HeadlineBeforeSection,{children:Re("Individual privacy settings")}),[k.layout]:()=>(0,s.jsxs)(bt,{children:[(0,s.jsx)(Ht,{}),(0,s.jsx)(Ot,{})]}),[k.customCss]:{render:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.HeadlineBeforeSection,{children:Re("Useful links")}),(0,s.jsxs)("ul",{style:{listStyle:"initial",padding:"10px 15px 10px 30px"},children:[(0,s.jsx)("li",{children:Fe(Re("Avoid popular mistakes when creating a cookie banner. {{a}}Learn more!{{/a}}"),{a:(0,s.jsx)("a",{href:Re("https://devowl.io/cookie-banner/common-mistakes/"),rel:"noreferrer",target:"_blank"})})}),(0,s.jsx)("li",{children:Fe(Re("Find out what you should pay attention to in the {{a}}wording of your cookie banner{{/a}}!"),{a:(0,s.jsx)("a",{href:Re("https://devowl.io/cookie-banner/text/"),rel:"noreferrer",target:"_blank"})})}),(0,s.jsx)("li",{children:Fe(Re("Learn what to look for when {{a}}designing your cookie banner{{/a}}!"),{a:(0,s.jsx)("a",{href:Re("https://devowl.io/cookie-banner/design/"),rel:"noreferrer",target:"_blank"})})}),(0,s.jsx)("li",{children:Fe(Re("Learn more about {{a}}accessibility and the legal conditions!{{/a}}"),{a:(0,s.jsx)("a",{href:Re("https://devowl.io/knowledge-base/accessibility-of-real-cookie-banner/"),rel:"noreferrer",target:"_blank"})})})]})]}),type:"after"}},controls:{acceptAllButtonType:()=>(0,s.jsx)(At,{decision:"acceptAll"}),acceptEssentialsButtonType:()=>(0,s.jsx)(At,{decision:"acceptEssentials"}),acceptIndividualButtonType:()=>(0,s.jsx)(At,{decision:"acceptIndividual"}),rcbGroupsFirstView:()=>(0,s.jsx)(bt,{children:(0,s.jsx)(Pt,{})}),mobileSwitcher:()=>(0,s.jsx)(bt,{children:(0,s.jsx)(Rt,{})}),stickyLinksSwitcher:()=>(0,s.jsx)(bt,{children:(0,s.jsx)(Ft,{})})},conditionals:{[S]:{[w.maxHeightEnabled]:!0,[w.maxHeight]:$,[w.type]:$},[w.maxHeight]:{[w.maxHeightEnabled]:!0},[w.dialogMaxWidth]:{[w.type]:"dialog"},[w.dialogMargin]:{[w.type]:"dialog",[w.dialogPosition]:e=>"middleCenter"!==e},[w.dialogPosition]:{[w.type]:"dialog"},[w.bannerPosition]:{[w.type]:"banner"},[w.bannerMaxWidth]:{[w.type]:"banner"},[w.animationInDuration]:{[w.animationIn]:L},[w.animationInOnlyMobile]:{[w.animationIn]:L},[w.animationOutDuration]:{[w.animationOut]:L},[w.animationOutOnlyMobile]:{[w.animationOut]:L},[w.dialogBorderRadius]:{[w.type]:"dialog"},[w.overlayBg]:{[w.overlay]:!0},[w.overlayBgAlpha]:{[w.overlay]:!0},[w.overlayBlur]:{[w.overlay]:!0},[C]:{[w.animationIn]:e=>["none","fadeIn"].concat(["bounce","bounceIn","flash","flipInX","flipInY","headShake","jackInTheBox","jello","lightSpeedIn","pulse","rollIn","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rubberBand","shake","swing","tada","wobble","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp"]).indexOf(e)>-1},[b]:{[x.acceptAll]:N},[y]:{[x.acceptAll]:J,[x.acceptEssentials]:J,...K},[m]:{[x.acceptEssentials]:N,...K},[v]:{[x.acceptIndividual]:N},[x.groupsFirstView]:{[x.groupsFirstView]:z,[x.showGroups]:!0},[x.saveButton]:{[x.groupsFirstView]:!0,[x.showGroups]:!0},[j.borderColor]:{[j.borderWidth]:H},[j.fontFamily]:{[j.fontInheritFamily]:!1},[j.boxShadowOffsetX]:{[j.boxShadowEnabled]:!0},[j.boxShadowOffsetY]:{[j.boxShadowEnabled]:!0},[j.boxShadowBlurRadius]:{[j.boxShadowEnabled]:!0},[j.boxShadowSpreadRadius]:{[j.boxShadowEnabled]:!0},[j.boxShadowColor]:{[j.boxShadowEnabled]:!0},[j.boxShadowColorAlpha]:{[j.boxShadowEnabled]:!0},[O.bg]:{[O.inheritBg]:!1},[O.textAlign]:{[O.inheritTextAlign]:!1},[O.logoRetina]:{[O.logo]:e=>e&&!e.endsWith(".svg")},[O.logoMaxHeight]:{[O.logo]:D},[O.logoPosition]:{[O.logo]:D,[B.headline]:D},[O.logoMargin]:{[O.logo]:D},[O.fontFamily]:{[O.fontInheritFamily]:!1},[O.fontSize]:{[B.headline]:D},[O.fontFamily]:{[O.fontInheritFamily]:!1},[O.borderColor]:{[O.borderWidth]:H},[A.descriptionFontSize]:{[A.descriptionInheritFontSize]:!1},[A.dottedGroupsInheritFontSize]:{[A.dottedGroupsInheritFontSize]:z},[A.dottedGroupsFontSize]:{[A.dottedGroupsInheritFontSize]:!1,[A.dottedGroupsFontSize]:z},[A.dottedGroupsBulletColor]:{[A.dottedGroupsBulletColor]:z,[x.showGroups]:!0},[h.bodyDesignTeachings]:{[h.bodyDesignTeachings]:V},[h.bodyDesignTeachingsFont]:{[h.bodyDesignTeachingsFont]:V},[h.bodyDesignTeachingsSeparator]:{[A.teachingsSeparatorActive]:!0,[h.bodyDesignTeachingsSeparator]:V},[A.teachingsInheritTextAlign]:{[A.teachingsInheritTextAlign]:V},[A.teachingsTextAlign]:{[A.teachingsInheritTextAlign]:!1,[A.teachingsTextAlign]:V},[A.teachingsInheritFontSize]:{[A.teachingsInheritFontSize]:V},[A.teachingsFontSize]:{[A.teachingsInheritFontSize]:!1,[A.teachingsFontSize]:V},[A.teachingsInheritTextAlign]:{[A.teachingsInheritTextAlign]:V},[A.teachingsFontColor]:{[A.teachingsInheritFontColor]:!1,[A.teachingsFontColor]:V},[A.teachingsSeparatorWidth]:{[A.teachingsSeparatorActive]:!0,[A.teachingsSeparatorWidth]:V},[A.teachingsSeparatorHeight]:{[A.teachingsSeparatorActive]:!0,[A.teachingsSeparatorHeight]:V},[A.teachingsSeparatorColor]:{[A.teachingsSeparatorActive]:!0,[A.teachingsSeparatorColor]:V},[h.bodyDesignAccordion]:{[h.bodyDesignAccordion]:G},[A.accordionMargin]:{[A.accordionMargin]:G},[A.accordionPadding]:{[A.accordionPadding]:G},[A.accordionArrowType]:{[A.accordionArrowType]:G},[A.accordionArrowColor]:{[A.accordionArrowColor]:G,[A.accordionArrowType]:L},[A.accordionBg]:{[A.accordionBg]:G},[A.accordionActiveBg]:{[A.accordionActiveBg]:G},[A.accordionHoverBg]:{[A.accordionHoverBg]:G},[h.bodyDesignAccordionBorder]:{[h.bodyDesignAccordionBorder]:G},[A.accordionBorderWidth]:{[A.accordionBorderWidth]:G},[A.accordionBorderColor]:{[A.accordionBorderColor]:G,[A.accordionBorderWidth]:H},[h.bodyDesignAccordionTitle]:{[h.bodyDesignAccordionTitle]:G},[A.accordionTitleFontSize]:{[A.accordionTitleFontSize]:G},[A.accordionTitleFontColor]:{[A.accordionTitleFontColor]:G},[A.accordionTitleFontWeight]:{[A.accordionTitleFontWeight]:G},[h.bodyDesignAccordionDescription]:{[h.bodyDesignAccordionDescription]:G},[A.accordionDescriptionMargin]:{[A.accordionDescriptionMargin]:G},[A.accordionDescriptionFontSize]:{[A.accordionDescriptionFontSize]:G},[A.accordionDescriptionFontColor]:{[A.accordionDescriptionFontColor]:G},[A.accordionDescriptionFontWeight]:{[A.accordionDescriptionFontWeight]:G},[h.textsTcfStacks]:{[h.textsTcfStacks]:W},[B.tcfStacksCustomName]:{[B.tcfStacksCustomName]:W},[B.tcfStacksCustomDescription]:{[B.tcfStacksCustomDescription]:W},[A.acceptAllOneRowLayout]:{[x.acceptAll]:U,[x.acceptEssentials]:U},[A.acceptAllFontSize]:{[x.acceptAll]:U},[A.acceptAllPadding]:{[x.acceptAll]:U},[A.acceptAllBg]:{[x.acceptAll]:"button"},[A.acceptAllTextAlign]:{[x.acceptAll]:U},[A.acceptAllBorderWidth]:{[x.acceptAll]:"button"},[A.acceptAllBorderColor]:{[x.acceptAll]:"button",[A.acceptAllBorderWidth]:H},[A.acceptAllFontColor]:{[x.acceptAll]:U},[A.acceptAllFontWeight]:{[x.acceptAll]:U},[A.acceptAllHoverBg]:{[x.acceptAll]:"button"},[A.acceptAllHoverFontColor]:{[x.acceptAll]:U},[A.acceptAllHoverBorderColor]:{[x.acceptAll]:"button",[A.acceptAllBorderWidth]:H},[h.bodyDesignAcceptAllBorder]:{[x.acceptAll]:"button"},[h.bodyDesignAcceptAllFont]:{[x.acceptAll]:U},[h.bodyDesignAcceptAllHover]:{[x.acceptAll]:U},[A.acceptEssentialsUseAcceptAll]:{[x.acceptAll]:Y,[x.acceptEssentials]:Y},[A.acceptEssentialsFontSize]:{[x.acceptEssentials]:U,[A.acceptAllOneRowLayout]:!1,[A.acceptEssentialsFontSize]:z,...K},[A.acceptEssentialsPadding]:{[x.acceptEssentials]:U,[A.acceptAllOneRowLayout]:!1,...K},[A.acceptEssentialsBg]:{[x.acceptEssentials]:"button",...K},[A.acceptEssentialsTextAlign]:{[x.acceptEssentials]:U,...K},[A.acceptEssentialsBorderWidth]:{[x.acceptEssentials]:"button",...K},[A.acceptEssentialsBorderColor]:{[x.acceptEssentials]:"button",[A.acceptEssentialsBorderWidth]:H,...K},[A.acceptEssentialsFontColor]:{[x.acceptEssentials]:U,...K},[A.acceptEssentialsFontWeight]:{[x.acceptEssentials]:U,[A.acceptEssentialsFontWeight]:z,...K},[A.acceptEssentialsHoverBg]:{[x.acceptEssentials]:"button",...K},[A.acceptEssentialsHoverFontColor]:{[x.acceptEssentials]:U,...K},[A.acceptEssentialsHoverBorderColor]:{[x.acceptEssentials]:"button",[A.acceptEssentialsBorderWidth]:H,...K},[h.bodyDesignAcceptEssentialsBorder]:{[x.acceptEssentials]:"button",...K},[h.bodyDesignAcceptEssentialsFont]:{[x.acceptEssentials]:U,...K},[h.bodyDesignAcceptEssentialsHover]:{[x.acceptEssentials]:U,...K},[A.acceptIndividualFontSize]:{[x.acceptIndividual]:U},[A.acceptIndividualPadding]:{[x.acceptIndividual]:U},[A.acceptIndividualBg]:{[x.acceptIndividual]:"button"},[A.acceptIndividualTextAlign]:{[x.acceptIndividual]:U},[A.acceptIndividualBorderWidth]:{[x.acceptIndividual]:"button"},[A.acceptIndividualBorderColor]:{[x.acceptIndividual]:"button",[A.acceptIndividualBorderWidth]:H},[A.acceptIndividualFontColor]:{[x.acceptIndividual]:U},[A.acceptIndividualFontWeight]:{[x.acceptIndividual]:U},[A.acceptIndividualHoverBg]:{[x.acceptIndividual]:"button"},[A.acceptIndividualHoverFontColor]:{[x.acceptIndividual]:U},[A.acceptIndividualHoverBorderColor]:{[x.acceptIndividual]:"button",[A.acceptIndividualBorderWidth]:H},[h.bodyDesignAcceptIndividualBorder]:{[x.acceptIndividual]:"button"},[h.bodyDesignAcceptIndividualFont]:{[x.acceptIndividual]:U},[h.bodyDesignAcceptIndividualHover]:{[x.acceptIndividual]:U},[P.poweredByLink]:{[P.poweredByLink]:()=>!r},[P.bg]:{[P.inheritBg]:!1},[P.textAlign]:{[P.inheritTextAlign]:!1},[P.fontFamily]:{[j.fontInheritFamily]:!1},[P.fontSize]:{[B.headline]:D},[P.fontFamily]:{[P.fontInheritFamily]:!1},[P.borderColor]:{[P.borderWidth]:H},[h.footerLanguageSwitcher]:{[h.footerLanguageSwitcher]:q},[P.languageSwitcher]:{[P.languageSwitcher]:q},[B.acceptAll]:{[x.acceptAll]:U},[B.acceptEssentials]:{[x.acceptEssentials]:U},[B.acceptIndividual]:{[x.acceptIndividual]:U},[B.poweredBy]:{[P.poweredByLink]:!0},[T.inheritDialogMaxWidth]:{[w.type]:"dialog"},[T.dialogMaxWidth]:{[w.type]:"dialog",[T.inheritDialogMaxWidth]:!1},[T.inheritBannerMaxWidth]:{[w.type]:"banner"},[T.bannerMaxWidth]:{[w.type]:"banner",[T.inheritBannerMaxWidth]:!1},[I.checkboxBorderColor]:{[I.checkboxBorderWidth]:H},[I.checkboxActiveBorderColor]:{[I.checkboxBorderWidth]:H},[I.groupBg]:{[I.groupInheritBg]:!1},[I.groupBorderColor]:{[I.groupBorderWidth]:H},[R.useAcceptAll]:{[x.acceptAll]:Z,[R.type]:Z},[R.type]:te,[R.padding]:te,[R.bg]:oe,[R.textAlign]:te,[h.saveButtonFont]:te,[R.fontColor]:te,[R.fontSize]:{[R.fontSize]:z,...te},[R.fontWeight]:{[R.fontWeight]:z,...te},[R.borderWidth]:oe,[R.borderColor]:{[R.borderWidth]:H,...oe},[h.saveButtonHover]:te,[R.hoverBg]:oe,[R.hoverFontColor]:te,[R.hoverBorderColor]:{[R.borderWidth]:H,...oe},[h.saveButtonBorder]:oe,[F.hideHeader]:{[F.enabled]:M},[F.maxHeight]:{[F.enabled]:M},[F.alignment]:{[F.enabled]:M},[F.scalePercent]:{[F.enabled]:M},[F.scalePercentVertical]:{[F.enabled]:M},[f]:{[F.hideHeader]:!0,[x.showCloseIcon]:!0,[x.acceptEssentials]:N},[E.bubbleBorderColor]:{[E.bubbleBorderWidth]:H,[E.enabled]:M},[E.bubbleHoverBorderColor]:{[E.bubbleBorderWidth]:H,[E.enabled]:M},[E.boxShadowOffsetX]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.boxShadowOffsetY]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.boxShadowBlurRadius]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.boxShadowSpreadRadius]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.boxShadowColor]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.boxShadowColorAlpha]:{[E.boxShadowEnabled]:!0,[E.enabled]:M},[E.animationsEnabled]:{[E.enabled]:M},[E.alignment]:{[E.enabled]:M},[E.bubbleBorderRadius]:{[E.enabled]:M},[E.icon]:{[E.enabled]:M},[E.iconCustom]:{[E.enabled]:M,[E.icon]:e=>"custom"===e},[E.iconCustomRetina]:{[E.enabled]:M,[E.iconCustom]:e=>e&&!e.endsWith(".svg"),[E.icon]:e=>"custom"===e},[E.iconSize]:{[E.enabled]:M},[E.iconColor]:{[E.enabled]:M},[E.bubbleMargin]:{[E.enabled]:M},[E.bubblePadding]:{[E.enabled]:M},[E.bubbleBg]:{[E.enabled]:M},[E.bubbleBorderWidth]:{[E.enabled]:M},[E.boxShadowEnabled]:{[E.enabled]:M},[E.bubbleHoverBg]:{[E.enabled]:M},[E.bubbleHoverBorderColor]:{[E.enabled]:M},[E.hoverIconColor]:{[E.enabled]:M},[E.hoverIconCustom]:{[E.enabled]:M,[E.icon]:e=>"custom"===e},[E.hoverIconCustomRetina]:{[E.enabled]:M,[E.hoverIconCustom]:e=>e&&!e.endsWith(".svg"),[E.icon]:e=>"custom"===e},[E.menuFontSize]:{[E.enabled]:M},[E.menuBorderRadius]:{[E.enabled]:M},[E.menuItemSpacing]:{[E.enabled]:M},[E.menuItemPadding]:{[E.enabled]:M},[h.stickyIcon]:{[E.enabled]:M},[h.stickyBorder]:{[E.enabled]:M},[h.stickyBoxShadow]:{[E.enabled]:M},[h.stickyHover]:{[E.enabled]:M},[h.stickyMenu]:{[E.enabled]:M},[h.textsSticky]:{[E.enabled]:M},[B.stickyChange]:{[E.enabled]:M},[B.stickyHistory]:{[E.enabled]:M},[B.stickyRevoke]:{[E.enabled]:M},[B.stickyRevokeSuccessMessage]:{[E.enabled]:M}},onReady:()=>{mt(w.overlayBlur,{title:Re("Want to stand out from the crowd?"),testDrive:!0,feature:"blur",assetName:Re("pro-modal/blur.png"),description:Re("Blur the background and set the focus on the cookie banner so that your visitors agree to as many services and cookies as possible.")}),mt(w.animationIn,{title:Re("Want to have cool animations?"),testDrive:!0,feature:"animations-in",assetName:Re("pro-modal/animations-in.png"),description:Re("The cookie banner can be displayed with an animation. Choose from over 40 animations the most suitable!"),tagText:Re("Unlock animations")}),mt(w.animationOut,{title:Re("Want to have cool animations?"),testDrive:!0,feature:"animations-out",assetName:Re("pro-modal/animations-in.png"),description:Re("The cookie banner can be hidden with an animation. Choose from over 40 animations the most suitable!"),tagText:Re("Unlock animations")});const e=e=>(0,i.a11yConstrastRatio)({...e,minimumRatio:p?5:4.5,severity:p?"error":"warning",renderNotice:p?()=>Re("You need to use a minimum contrast ratio between background and font color of %d to be compliant with TCF!",5):void 0}),t=e=>(0,i.a11yConstrastRatio)({...e,minimumRatio:4.5,severity:"warning"});t({settings:[j.bg,j.fontColor]}),t({settings:[O.bg,O.fontColor,O.inheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[j.bg,A.teachingsFontColor]}),t({settings:[P.bg,P.fontColor,P.inheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[P.bg,P.hoverFontColor,P.inheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[I.checkboxActiveBg,I.checkboxActiveColor]}),t({settings:[I.groupBg,I.headlineFontColor,I.groupInheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[I.groupBg,I.descriptionFontColor,I.groupInheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[I.groupBg,I.linkColor,I.groupInheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),t({settings:[I.groupBg,I.linkHoverColor,I.groupInheritBg,j.bg],modifier:([e,t],[o,s])=>[o?s:e,t]}),e({settings:[A.acceptAllBg,A.acceptAllFontColor,x.acceptAll,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]}),e({settings:[A.acceptAllHoverBg,A.acceptAllHoverFontColor,x.acceptAll,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]}),e({settings:[A.acceptEssentialsBg,A.acceptEssentialsFontColor,x.acceptEssentials,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]}),e({settings:[A.acceptEssentialsHoverBg,A.acceptEssentialsHoverFontColor,x.acceptEssentials,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]}),e({settings:[R.bg,R.fontColor,R.type,R.useAcceptAll,x.acceptAll,j.bg],modifier:([e,t],[o,s,n,i])=>["link"===(s?n:o)?i:e,t]}),e({settings:[R.hoverBg,R.hoverFontColor,R.type,R.useAcceptAll,x.acceptAll,j.bg],modifier:([e,t],[o,s,n,i])=>["link"===(s?n:o)?i:e,t]}),e({settings:[A.acceptIndividualBg,A.acceptIndividualFontColor,x.acceptIndividual,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]}),e({settings:[A.acceptIndividualHoverBg,A.acceptIndividualHoverFontColor,x.acceptIndividual,j.bg],modifier:([e,t],[o,s])=>["link"===o?s:e,t]});const o=e=>(0,i.a11yFontWeight)({...e,notAccessible:["lighter"],severity:"warning"});o({settings:[j.fontWeight]}),o({settings:[O.fontWeight]}),o({settings:[A.acceptAllFontWeight]}),o({settings:[A.acceptEssentialsFontWeight]}),o({settings:[A.acceptIndividualFontWeight]}),o({settings:[P.fontWeight]}),o({settings:[I.headlineFontWeight]}),o({settings:[R.fontWeight]});const r=[],a=e=>{r.push(e.settings[0]),(0,i.a11yFontSize)({...e,severity:"warning"})};a({settings:[j.fontSize],minimumPx:12}),a({settings:[O.fontSize],minimumPx:16}),a({settings:[A.descriptionFontSize],minimumPx:12}),a({settings:[A.dottedGroupsFontSize],minimumPx:12}),a({settings:[A.teachingsFontSize],minimumPx:12}),a({settings:[A.acceptAllFontSize],minimumPx:16}),a({settings:[A.acceptEssentialsFontSize],minimumPx:16}),a({settings:[A.acceptIndividualFontSize],minimumPx:16}),a({settings:[I.headlineFontSize],minimumPx:14}),a({settings:[I.descriptionFontSize],minimumPx:12}),a({settings:[R.fontSize],minimumPx:16}),(0,i.a11yTextDecoration)({settings:[j.linkTextDecoration],notAccessible:["none"],severity:"warning"});{a({settings:[A.accordionTitleFontSize],minimumPx:12}),a({settings:[A.accordionTitleFontSize],minimumPx:12}),o({settings:[A.accordionTitleFontWeight]}),o({settings:[A.accordionDescriptionFontWeight]}),t({settings:[A.accordionBg,A.accordionTitleFontColor]}),t({settings:[A.accordionBg,A.accordionDescriptionFontColor]}),a({settings:[E.menuFontSize],minimumPx:12}),a({settings:[E.iconSize],minimumPx:24}),t({settings:[E.bubbleBg,E.iconColor]}),t({settings:[E.bubbleHoverBg,E.hoverIconColor]});const e=[F.scalePercent,...r];(0,i.getSidebarCustomize)().control(e[0],({container:t})=>{(0,n.createRoot)(jQuery("<div />").addClass("customize-control-a11y-mobile-experience").appendTo(t).get(0)).render((0,s.jsx)(vt,{settings:e}))})}const c=[w.type,w.overlay,w.overlayBgAlpha];(0,i.getSidebarCustomize)().control(c[1],({container:e})=>{(0,n.createRoot)(jQuery("<div />").addClass("customize-control-a11y-overlay").appendTo(e).get(0)).render((0,s.jsx)(ft,{settings:c}))})}})}()},75206:e=>{e.exports=ReactDOM}},o={};function s(e){var n=o[e];if(void 0!==n)return n.exports;var i=o[e]={exports:{}};return t[e](i,i.exports,s),i.exports}s.m=t,e=[],s.O=(t,o,n,i)=>{if(!o){var r=1/0;for(d=0;d<e.length;d++){for(var[o,n,i]=e[d],a=!0,c=0;c<o.length;c++)(!1&i||r>=i)&&Object.keys(s.O).every(e=>s.O[e](o[c]))?o.splice(c--,1):(a=!1,i<r&&(r=i));if(a){e.splice(d--,1);var l=n();void 0!==l&&(t=l)}}return t}i=i||0;for(var d=e.length;d>0&&e[d-1][2]>i;d--)e[d]=e[d-1];e[d]=[o,n,i]},s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={904:0};s.O.j=t=>0===e[t];var t=(t,o)=>{var n,i,[r,a,c]=o,l=0;if(r.some(t=>0!==e[t])){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);if(c)var d=c(s)}for(t&&t(o);l<r.length;l++)i=r[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(d)},o=self.webpackChunkrealCookieBanner_=self.webpackChunkrealCookieBanner_||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var n=s.O(void 0,[683],()=>s(68495));n=s.O(n),realCookieBanner_customize=n})();
//# sourceMappingURL=https://sourcemap.devowl.io/real-cookie-banner/5.2.28/b55b1e6c7cfa319522bfbedb4da25b4c/customize.pro.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit