PageSourceSearch

https://ernolaszlo.com/cdn/shop/t/924/assets/cookie-banner.js?v=124731314165469790931785404295

js ernolaszlo.com collected 2026-10-02 04:04:15 UTC 2,356 bytes, 2 lines download raw bytes

1requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xCookieBanner",delay=>({show:!1,showPreferencesPopup:!1,saleOfDataRegion:!1,prefs:{analytics:!1,marketing:!1,preferences:!1,sale_of_data:!1},init(){setTimeout(()=>{window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],error=>{if(error)throw error;const userCanBeTracked=window.Shopify.customerPrivacy.userCanBeTracked(),userTrackingConsent=window.Shopify.customerPrivacy.getTrackingConsent();this.saleOfDataRegion=window.Shopify.customerPrivacy.saleOfDataRegion(),this.syncFromShopify(),!userCanBeTracked&&userTrackingConsent==="no_interaction"&&requestAnimationFrame(()=>{this.show=!0}),document.addEventListener("visitorConsentCollected",()=>{this.syncFromShopify()})})},delay*1e3)},syncFromShopify(){const cp=window.Shopify.customerPrivacy;if(!cp)return;const current=cp.currentVisitorConsent();this.prefs.analytics=current.analytics==="yes",this.prefs.marketing=current.marketing==="yes",this.prefs.preferences=current.preferences==="yes",this.prefs.sale_of_data=current.sale_of_data==="yes"},handleAccept(){window.Shopify.customerPrivacy&&(window.Shopify.customerPrivacy.setTrackingConsent(!0,()=>{}),requestAnimationFrame(()=>{this.show=!1}))},handleDecline(){window.Shopify.customerPrivacy&&(window.Shopify.customerPrivacy.setTrackingConsent(!1,()=>{}),requestAnimationFrame(()=>{this.show=!1}))},handleManagePreferences(){this.syncFromShopify(),this.showPreferencesPopup=!0},closePreferences(){this.showPreferencesPopup=!1},handleAcceptAll(){this.prefs.analytics=!0,this.prefs.marketing=!0,this.prefs.preferences=!0,this.saleOfDataRegion&&(this.prefs.sale_of_data=!0),this.persist()},handleDeclineAll(){this.prefs.analytics=!1,this.prefs.marketing=!1,this.prefs.preferences=!1,this.saleOfDataRegion&&(this.prefs.sale_of_data=!1),this.persist()},handleSaveChoices(){this.persist()},persist(){const cp=window.Shopify.customerPrivacy;if(!cp)return;const payload={analytics:this.prefs.analytics,marketing:this.prefs.marketing,preferences:this.prefs.preferences};this.saleOfDataRegion&&(payload.sale_of_data=this.prefs.sale_of_data),cp.setTrackingConsent(payload,()=>{requestAnimationFrame(()=>{this.show=!1,this.showPreferencesPopup=!1})})}}))})});
2//# sourceMappingURL=/cdn/shop/t/924/assets/cookie-banner.js.map?v=124731314165469790931785404295

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.