PageSourceSearch

https://popmaster.pl/application/assets/storefront/chunk-customer_privacy_initializer.D6fo-kv.js

js popmaster.pl collected 2026-10-06 22:16:41 UTC 22,687 bytes, 92 lines download raw bytes

1import{o as w,H as Y,p as D,q as K,i as ne,b as I,J as C,R as oe,L as j,w as G,c as ae,K as ie,N as ce,T as re,C as de,r as he}from"./storefrontApp.CsApItsi.min.js";import{P as _,a as le,$ as p,e as r,b,d as N,f as B,w as Ce,g as pe,t as O}from"./chunk-vendor-lit.NvY0u02.js";import{B as u}from"./chunk-btn_controller.BPcEEeZ.js";import{S as T}from"./chunk-storefront_base_lit_element.lX23Jvc.js";import{C as h,L as E,a as P,b as g,c as A,A as z,M as W,F as _e,P as ue,G as Q,U as F,W as ve,d as me}from"./chunk-consents_saved_handler.DPUC2ei.js";import{t as v}from"./chunk-translations_directive.DWSzkd6.js";import{B as ye}from"./chunk-base_http_api_url.H743YfZ.js";import{S as J}from"./chunk-storefront_settings_constants.DIF02Gz.js";import{B as S}from"./chunk-backdrop_constants.5bk4eBT.js";import{e as x,f as R,h as H,i as ge,s as M,g as k,U as m,j as Ae,w as Ee}from"./chunk-index.esm.BJO8Gf1.js";import{m as we}from"./chunk-vendor-rxjs.Dp7kflo.js";import"./chunk-vendor-di.Bh23gdA.js";import"./chunk-vendor-lodash.CWHFt7Z.js";import"./chunk-vendor-phoenix.cdKS79L.js";import"./chunk-keystrokes_controller.BSiCZ0Y.js";const i={changeConsent:"changeConsent",grantAllConsents:"grantAllConsents",saveConsents:"saveConsents",showBaseConsents:"showBaseConsents",showAdvancedConsents:"showAdvancedConsents",grantNecessaryConsents:"grantNecessaryConsents",showPrivacyPolicy:"showPrivacyPolicy"};class fe extends _{constructor(){super(),this._grantAllConsents=()=>{const e=new CustomEvent(i.grantAllConsents,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._grantAllConsents)}static{this.moduleName="consents-accept-all"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._grantAllConsents)}}var be=Object.defineProperty,f=(o,e,s,t)=>{for(var n=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(n=c(e,s,n)||n);return n&&be(e,s,n),n};class y extends T{constructor(){super(),this.name="",this.disabled=!1,this.checked=!1,this.label="",this.getApi(w).then(e=>{this.name&&(this.name==="all"?e.selectConsentsUI$().subscribe(s=>{this.checked=s.every(t=>t.isChecked)}):e.selectConsentUI$(this.name).subscribe(s=>{s&&(this.checked=s.isChecked)}))})}static{this.moduleName="consents-checkbox"}_dispatchConsentChangeEvent(e){const s=e.target.checked,t=new CustomEvent(i.changeConsent,{bubbles:!0,detail:{name:this.name,checked:s}});this.dispatchEvent(t)}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}render(){const e={checkbox:!0,checkbox_disabled:this.disabled};return p`
2            <div class="control">
3                <div class="control__element control__element_checkbox">
4                    <div class="${le(e)}">
5                        <div class="checkbox__control">
6                            <input
7                                class="checkbox__input"
8                                type="checkbox"
9                                id="${this.name}"
10                                name="${this.name}"
11                                ?disabled="${this.disabled}"
12                                .checked="${this.checked}"
13                                @change="${this._dispatchConsentChangeEvent}"
14                            />
15
16                            <label
17                                class="checkbox__label"
18                                for="${this.name}"
19                            ></label>
20                        </div>
21
22                        <div class="checkbox__content">
23                            <label
24                                class="label ${this.name?"":"font_semibold"}"
25                                for="${this.name}"
26                                >${this.label}</label
27                            >
28
29                            <div class="checkbox__description">${this.getSlot("default")}</div>
30                        </div>
31                    </div>
32                </div>
33            </div>
34        `}}f([r({type:String})],y.prototype,"name");f([r({type:Boolean,reflect:!0})],y.prototype,"disabled");f([r({type:Boolean,reflect:!0})],y.prototype,"checked");f([r({type:String})],y.prototype,"label");const q="show_consent_modal",V="1";class Ne extends ye{getInfoPage(e){return`${this.webapiUrl}/pages/${e}`}}var Se=Object.defineProperty,l=(o,e,s,t)=>{for(var n=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(n=c(e,s,n)||n);return n&&Se(e,s,n),n};class d extends T{constructor(){super(),this.basicOpened=!0,this.advancedOpened=!1,this.privacyPolicyOpened=!1,this.modalLabel="",this.privacyPolicyPageId="",this._selectedConsents={},this._privacyPolicyHTML=void 0,this._consentsBasic=b(),this._consentsAdvanced=b(),this._privacyPolicyContentModal=b(),this._changingConsents=!1,this._registerCommandHandlers=()=>{this.commandBus.on(h.showConsentsModal,this._openModal),this.commandBus.on(h.showAdvancedConsentsModal,this._openAdvancedModal),this.commandBus.on(h.showAdvancedConsentsForConsentsChange,this._openAdvancedModalForConsentsChange)},this._openModal=()=>{this._isClosed()&&(this._showBaseConsentsModal(),this._addEventListeners())},this._openAdvancedModal=()=>{this._isClosed()&&(this._showAdvancedConsentsModal(),this._addEventListeners())},this._openAdvancedModalForConsentsChange=()=>{this._changingConsents=!0,this._openAdvancedModal()},this._preventConsentModalFromClosingOnEscape=t=>{t.key==="Escape"&&(t.stopImmediatePropagation(),this._consentsAdvanced.value?.opened===!0&&this._showBaseConsentsModal())},this._preventConsentModalFromClosingOnBackdropClick=t=>{t.stopImmediatePropagation()},this._showBaseConsentsModal=async()=>{await this._consentsAdvanced.value?.close(),await this._privacyPolicyContentModal.value?.close(),this._changingConsents===!1?this._consentsBasic.value?.open():this._consentsApi?.updateConsentsUI()},this._showAdvancedConsentsModal=async()=>{await this._privacyPolicyContentModal.value?.close(),await this._consentsBasic.value?.close(),this._consentsAdvanced.value?.open()},this._showPrivacyPolicy=async()=>{this._getPrivacyPolicyHTMLIfNone(),await this._consentsBasic.value?.close(),this._privacyPolicyContentModal.value?.open()},this._getPrivacyPolicyHTMLIfNone=async()=>
34{if(!this._privacyPolicyHTML){let t;t=new Ne(this._settingsApi);try{const a=await this._httpRequestApi.fetch({url:t.getInfoPage(Number(this.privacyPolicyPageId)),method:"get"}).response;this._privacyPolicyHTML=a.data.content}catch(n){console.error("Error fetching privacy policy:",n)}}},this._grantAllConsents=()=>{this._consentsApi?.grantConsents(E),this._consentsApi?.saveConsents(),this._markAsSeen(),this._closeConsentsModal()},this._grantNecessaryConsents=()=>{this._consentsApi?.grantConsents([]),this._consentsApi?.saveConsents(),this._markAsSeen(),this._closeConsentsModal()},this._saveConsents=()=>{this._consentsApi?.saveConsents(),this._markAsSeen(),this._closeConsentsModal()},this._closeConsentsModal=async()=>{await this._consentsBasic.value?.close(),await this._consentsAdvanced.value?.close(),await this._privacyPolicyContentModal.value?.close(),this.basicOpened=!1,this.advancedOpened=!1,this.privacyPolicyOpened=!1,document.removeEventListener("keydown",this._preventConsentModalFromClosingOnEscape),document.removeEventListener(S.clicked,this._preventConsentModalFromClosingOnBackdropClick)},this._markAsSeen=()=>{this._consentsStore?.set(q,V)},this._changeConsent=t=>{const{detail:{name:n,checked:a}}=t;
34n==="all"&&this._consentsApi?.getConsentsUI().forEach(({name:c})=>{this._consentsApi?.updateConsentUI({name:c,isChecked:a})}),this._consentsApi?.updateConsentUI({name:n,isChecked:a})},this._httpRequestApi=this.getApiSync(Y),this.getApi(w).then(t=>{this._consentsApi=t,this._updateSelectedConsents()});const e=this.getApiSync(D);this._consentsStore=e.getStore(P),this._isComponentActive()||(this.basicOpened=!1);const s=document.querySelector('[href*="#cookies-settings"]');s&&s.addEventListener("click",t=>{t.preventDefault(),this._openAdvancedModalForConsentsChange()}),this._settingsApi=this.getApiSync(J.api)}static{this.moduleName=K}_updateSelectedConsents(){const e=this._consentsApi.getGrantedNames();E.forEach(s=>{this._selectedConsents[s]=!!e.includes(s)})}_addEventListeners(){document.addEventListener(S.clicked,this._preventConsentModalFromClosingOnBackdropClick),document.addEventListener("keydown",this._preventConsentModalFromClosingOnEscape),document.addEventListener(i.grantAllConsents,this._grantAllConsents),document.addEventListener(i.grantNecessaryConsents,this._grantNecessaryConsents),document.addEventListener(i.saveConsents,this._saveConsents),document.addEventListener(i.showBaseConsents,this._showBaseConsentsModal),document.addEventListener(i.showAdvancedConsents,this._showAdvancedConsentsModal),document.addEventListener(i.changeConsent,this._changeConsent),document.addEventListener(i.showPrivacyPolicy,this._showPrivacyPolicy)}_isClosed(){return!this.basicOpened&&!this.advancedOpened}connectedCallback(){super.connectedCallback(),this._registerCommandHandlers(),window.location.hash==="#cookies-settings"&&this._openAdvancedModalForConsentsChange(),this._isComponentActive()&&this._addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(i.grantAllConsents,this._grantAllConsents),document.removeEventListener(i.saveConsents,this._saveConsents),document.removeEventListener(i.grantNecessaryConsents,this._grantNecessaryConsents),document.removeEventListener(i.showBaseConsents,this._showBaseConsentsModal),document.removeEventListener(i.showAdvancedConsents,this._showAdvancedConsentsModal),document.removeEventListener(i.changeConsent,this._changeConsent),document.removeEventListener("keydown",this._preventConsentModalFromClosingOnEscape),document.removeEventListener(S.clicked,this._preventConsentModalFromClosingOnBackdropClick),document.removeEventListener(i.showPrivacyPolicy,this._showPrivacyPolicy)}_isComponentActive(){return this._consentsStore?.get(q)===V?!1:(this._changingConsents=!1,!0)}render(){return p`
35            <h-modal
36                ${N(this._consentsBasic)}
37                .opened="${this.basicOpened}"
38                class="modal-wrapper_l consents-modal"
39                hidden
40                modal-label="${this.modalLabel}"
41            >
42                <h-modal-header class="consents-modal__header">${this.getSlot("base-header")}</h-modal-header>
43
44                <h-modal-body class="consents-modal__body">${this.getSlot("base-content")}</h-modal-body>
45
46                <h-modal-footer class="consents-modal__footer"> ${this.getSlot("base-buttons")} </h-modal-footer>
47            </h-modal>
48
49            <h-modal
50                ${N(this._consentsAdvanced)}
51                .opened="${this.advancedOpened}"
52                class="modal-wrapper_l consents-modal"
53                hidden
54            >
55                <h-modal-header>${this.getSlot("advanced-header")}</h-modal-header>
56
57                <h-modal-body>
57 ${this.getSlot("advanced-content")} </h-modal-body>
58
59                <h-modal-footer> ${this.getSlot("advanced-buttons")} </h-modal-footer>
60            </h-modal>
61
62            ${B(this.privacyPolicyPageId,()=>p`<h-modal
63                    ${N(this._privacyPolicyContentModal)}
64                    .opened="${this.privacyPolicyOpened}"
65                    class="modal-wrapper_l consents-modal"
66                    hidden
67                >
68                    <h-modal-header
69                        ><h2 class="h2 font_semibold">${v("Privacy policy")}</h2>
70                        <consents-show-base
71                            class="btn btn_icon"
72                            aria-label="${v("Close window")}"
73                        >
74                            <h-icon
75                                icon-name="icon-x"
76                                role="button"
77                                size="xl"
78                                clickable
79                            ></h-icon> </consents-show-base
80                    ></h-modal-header>
81
82                    <h-modal-body>
83                        ${B(this._privacyPolicyHTML,()=>p`<div class="consents-modal__privacy-policy">${pe(this._privacyPolicyHTML)}</div>`,()=>p`<div class="loader p-all-xs-2"><div class="loader__spinner"></div></div>`)}
84                    </h-modal-body>
85
86                    <h-modal-footer>
87                        <consents-accept-necessary class="btn btn_outline">${v("Allow only necessary")}</consents-accept-necessary>
88                        <consents-show-advanced class="btn btn_outline">${v("Customize consents")}</consents-show-advanced>
89                        <consents-accept-all class="btn btn_primary">${v("Allow all")}</consents-accept-all>
90                    </h-modal-footer>
91                </h-modal>`,()=>Ce)}
92        `}}l([r({type:Boolean,reflect:!0})],d.prototype,"basicOpened");l([r({type:Boolean,reflect:!0})],d.prototype,"advancedOpened");l([r({type:Boolean,reflect:!0})],d.prototype,"privacyPolicyOpened");l([r({type:String,attribute:"modal-label"})],d.prototype,"modalLabel");l([r({type:String,attribute:"privacy-policy-page-id"})],d.prototype,"privacyPolicyPageId");l([O()],d.prototype,"_selectedConsents");l([O()],d.prototype,"_privacyPolicyHTML");class Me extends _{constructor(){super(),this._saveConsents=()=>{const e=new CustomEvent(i.saveConsents,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._saveConsents)}static{this.moduleName="consents-save"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._saveConsents)}}class ke extends _{constructor(){super(),this._showAdvancedConsents=()=>{const e=new CustomEvent(i.showAdvancedConsents,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._showAdvancedConsents)}static{this.moduleName="consents-show-advanced"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._showAdvancedConsents)}}class Pe extends _{constructor(){super(),this._showBaseConsents=()=>{const e=new CustomEvent(i.showBaseConsents,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._showBaseConsents)}static{this.moduleName="consents-show-base"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._showBaseConsents)}}var Ie=Object.defineProperty,Z=(o,e,s,t)=>{for(var n=void 0,a=o.length-1,c;a>=0;a--)(c=o[a])&&(n=c(e,s,n)||n);return n&&Ie(e,s,n),n};class $ extends T{constructor(){super(),this._hasConsentsGranted=!1,this._markConsentsAsGranted=()=>{this._hasConsentsGranted=!0},this.getApi(w).then(e=>{this._consentsApi=e,this._initConsentHandlers()})}static{this.moduleName="consents-controller"}_initConsentHandlers(){if(this._consentsApi)switch(this.consentsControllerType){case g.FUNCTIONAL_CONSENT_NAME:this._consentsApi.onFunctionalConsentGranted(this._markConsentsAsGranted);break;case g.MARKETING_CONSENT_NAME:this._consentsApi.onMarketingConsentGranted(this._markConsentsAsGranted);break;case g.ANALYTICS_CONSENT_NAME:this._consentsApi.onAnalyticsConsentGranted(this._markConsentsAsGranted);break;case g.PLATFORM_CONSENT_NAME:this._consentsApi.onPlatformConsentGranted(this._markConsentsAsGranted);break}}
92render(){return p`${this._hasConsentsGranted?this.getSlot("granted"):this.getSlot("withdrawn")}`}}Z([r({type:String,attribute:"type"})],$.prototype,"consentsControllerType");Z([O()],$.prototype,"_hasConsentsGranted");class Oe extends ne{constructor(e,s){super(),this.moduleName=w,this.#e=!1,this.#s=e,this.#e=s}#e;#s;grantConsents(e){this.#s.grantConsents(e)}withdrawConsents(e){this.#s.withdrawConsents(e)}saveConsents(){this.#s.saveConsents()}getGrantedNames(){return this.#s.getGrantedNames()}showConsentsModal(){this.#s.showConsentsModal()}showAdvancedConsentsModal(){this.#s.showAdvancedConsentsModal()}showAdvancedModalForConsentsChange(){this.#s.showAdvancedModalForConsentsChange()}onAnalyticsConsentGranted(e){this.#e?this.#s.onConsentGranted(A[z],e):e()}onMarketingConsentGranted(e){this.#e?this.#s.onConsentGranted(A[W],e):e()}onFunctionalConsentGranted(e){this.#e?this.#s.onConsentGranted(A[_e],e):e()}onPlatformConsentGranted(e){this.#e?this.#s.onConsentGranted(A[ue],e):e()}isCookieInformationEnabled(){return this.#e}updateConsent({name:e,isGranted:s}){this.#s.updateConsent({name:e,isGranted:s})}updateConsentUI({name:e,isChecked:s}){this.#s.updateConsentUI({name:e,isChecked:s})}selectConsent$(e){return this.#s.selectConsent$(e)}selectConsentUI$(e){return this.#s.selectConsentUI$(e)}updateConsentsUI(){this.#s.updateConsentsUI()}getConsentsUI(){return this.#s.getConsentsUI()}selectConsentsUI$(){return this.#s.selectConsentsUI$()}}class Te extends _{constructor(){super(),this._grantNecessaryConsents=()=>{const e=new CustomEvent(i.grantNecessaryConsents,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._grantNecessaryConsents)}static{this.moduleName="consents-accept-necessary"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._grantNecessaryConsents)}}class $e extends I{constructor(e,s){super();const t=`${e}${Q}`;this.eventBus.once(t,s)}}class Le extends I{constructor({consentsRepository:e,httpRequesterApi:s,storeFactoryApi:t}){super(),this.saveConsents=()=>
92{this.#t.getConsentsUI().forEach(({name:a,isChecked:c})=>{c?this._grantConsent(a):this._withdrawConsent(a)}),this.#n.setObject(F,this.getGrantedNames()),this.eventBus.emit(new C(h.saved,[...this.#t.getGrantedConsents()])),this._sendUserConsentsData()},this.#e=s,this.#t=e,this.#s=t;const n=t.getStore(P);this.#n=n??t.createStore("local",P),E.forEach(a=>{this.#t.addConsent({name:a,isGranted:!1,isChecked:!1})}),this._updateConsentsWithStoredValues()}#e;#s;#t;#n;_updateConsentsWithStoredValues(){const e=this.#n.getObject(F);e&&this.grantConsents(e)}_grantConsent(e){this.#t.updateConsent({name:e,isGranted:!0}),this.#t.updateConsentUI({name:e,isChecked:!0});const s=`${e}${Q}`;this.eventBus.emit(new C(s))}_withdrawConsent(e){this.#t.updateConsent({name:e,isGranted:!1}),this.#t.updateConsentUI({name:e,isChecked:!1});const s=`${e}${ve}`;this.eventBus.emit(new C(s))}_sendUserConsentsData(){try{this.#e.fetch({url:`/__s/consents_granted/${this._toAnalyticsString()}`,method:oe.get})}catch{}}_toAnalyticsString(){const e=this.#t.getGrantedConsents();return E.length===e.length?"all":e.length>0?this.#t.getGrantedConsents().map(n=>n.name).join(","):"none"}grantConsents(e){e.forEach(s=>this._grantConsent(s))}withdrawConsents(e){e.forEach(s=>this._withdrawConsent(s))}getGrantedNames(){return this.#t.getGrantedConsents().map(e=>e.name)}onConsentGranted(e,s){const t=this.#t.getConsent(e);if(t){if(t.isGranted)return s();new $e(t.name,s)}}updateConsentsUI(){this.#t.getConsents().forEach(({name:e,isGranted:s})=>{this.#t.updateConsentUI({name:e,isChecked:s})})}showConsentsModal(){this.commandBus.executeSync(new C(h.showConsentsModal))}showAdvancedConsentsModal(){this.commandBus.executeSync(new C(h.showAdvancedConsentsModal))}showAdvancedModalForConsentsChange(){this.commandBus.executeSync(new C(h.showAdvancedConsentsForConsentsChange))}updateConsent({name:e,isGranted:s}){this.#t.updateConsent({name:e,isGranted:s})}updateConsentUI({name:e,isChecked:s}){this.#t.updateConsentUI({name:e,isChecked:s})}selectConsent$(e){return this.#t.selectConsent$(e)}selectConsentUI$(e){return this.#t.selectConsentUI$(e)}getConsentsUI(){return this.#t.getConsentsUI()}selectConsentsUI$(){return this.#t.selectConsentsUI$()}}var X;X=j;const Ue=class ee{constructor({name:e,isGranted:s}){this[X]=!0,this.name=e,this.isGranted=s}static create(e){return new ee(e)}};let Ge=Ue;class Be{toModel(e){return Ge.create(e)}toDTO(e){return{name:e.name,isGranted:e.isGranted}}}var se;se=j;const Fe=class te{constructor({name:e,isChecked:s}){this[se]=!0,this.name=e,this.isChecked=s}static create(e){return new te(e)}};let xe=Fe;class Re{toModel(e){return xe.create(e)}toDTO(e){return{name:e.name,isChecked:e.isChecked}}}class He{#e;#s;#t;constructor(e){this.#e=e,this.#s=new Be,this.#t=new Re}addConsent({name:e,isGranted:s,isChecked:t}){const n=this.#s.toModel({name:e,isGranted:s}),a=this.#t.toModel({name:e,isChecked:t});this.#e.update(x(n),x(a,{ref:m}))}updateConsent({name:e,isGranted:s}){this.#e.update(R(e,G(t=>{t.isGranted=s})))}updateConsentUI({name:e,isChecked:s}){this.#e.update(R(e,G(t=>{t&&(t.isChecked=s)}),{ref:m}))}selectConsent$(e){return this.#e.pipe(H(e))}selectConsentUI$(e){return this.#e.pipe(H(e,{ref:m}))}getConsent(e){return this.#e.query(ge(e))}selectConsents$(){return this.#e.pipe(M())}selectConsentsUI$(){return this.#e.pipe(M({ref:m}))}getConsents(){return this.#e.query(k())}getConsentsUI(){return this.#e.query(k({ref:m}))}selectGrantedConsents$(){return this.#e.pipe(M(),we(e=>e.filter(s=>s.isGranted)))}getGrantedConsents(){return this.#e.query(k()).filter(e=>e.isGranted)}}const qe=({storeName:o="consents"}={})=>ae({name:o},Ee({idKey:"name"}),Ae({idKey:"name"}));class Ve extends _{constructor(){super(),this._showPrivacyPolicy=()=>{const e=new CustomEvent(i.showPrivacyPolicy,{bubbles:!0});this.dispatchEvent(e)},new u(this,this._showPrivacyPolicy)}static{this.moduleName="consents-show-privacy-policy"}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this._showPrivacyPolicy)}}class Ye extends I{#e;#s;constructor(e){super(),this.#e=e,this.#s=this._checkForAnalyticsTrackers(),this.#s||this._registerConsentUpdateHandler()}_checkForAnalyticsTrackers(){return document.querySelectorAll(ie).length>0}_registerConsentUpdateHandler(){this.#e.getGrantedNames().length>0&&this._sendConsentUpdate(),new me(()=>{this._sendConsentUpdate()})}
92_sendConsentUpdate(){const e=this._getUpdatedConsents();window.dataLayer=window.dataLayer||[];function s(...t){window.dataLayer.push(arguments)}try{s("consent","update",e)}catch(t){console.error("Failed to update consent for dataLayer",t)}}_getUpdatedConsents(){const e=this._getMarketingConsent(),s=this._getAnalyticsConsent();return{ad_storage:e,ad_user_data:e,ad_personalization:e,analytics_storage:s}}_getMarketingConsent(){return this.#e.getGrantedNames().indexOf(W)>-1?"granted":"denied"}_getAnalyticsConsent(){return this.#e.getGrantedNames().indexOf(z)>-1?"granted":"denied"}}class is extends ce{static{this.dependencies=[re.feature]}static{this.featureName=K}async init(){const e=this.getApiSync(Y),s=this.getApiSync(D),t=qe(),n=new He(t),a=new Le({consentsRepository:n,httpRequesterApi:e,storeFactoryApi:s}),c=await this.getApi(J.api),L=c.getSkinSettings().isCookieInformationEnabled==="1",U=new Oe(a,L);return this._initGlobalConsentModeService(U,c,L),{cores:[{type:de,instance:[d,fe,Te,Pe,ke,Ve,y,Me,$]},{type:he.api,instance:U}]}}_initGlobalConsentModeService(e,s,t){t&&s.isFeatureEnabled("dev_consent_mode_init_fix")&&!s.isFeatureEnabled("dev_google_analytics_refactor")&&new Ye(e)}}export{is as CustomerPrivacyInitializer};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.