PageSourceSearch

https://inlightbeauty.co.uk/cdn/shop/files/pandectes-rules.js?v=4718664371921035289

js inlightbeauty.co.uk collected 2026-09-28 23:53:42 UTC 26,009 bytes, 1 lines download raw bytes

1if (!window.pandectesRulesSettings) {window.pandectesRulesSettings={"version":"5","timestamp":1787058243837,"store":{"id":25559440,"plan":"plus","primaryLocale":"en","headless":false},"banner":{"enabled":true},"regions":{"strict":"*","visible":"*"},"storage":{"type":"http","domain":"","duration":365,"lastReset":1709644866},"gpc":{"enabled":false},"klaviyo":{"enabled":false},"customEvent":{"enabled":true},"rakuten":{"enabled":false,"cmp":false,"ccpa":false},"facebook":{"enabled":false,"id":""},"amazon":{"enabled":false},"microsoft":{"uet":{"enabled":false,"tags":""},"clarity":{"enabled":false,"id":""}},"google":{"enabled":true,"gtmId":"","ga4Id":"GT-KF6WVJ2B, G-Y9V2QY4686","adsId":"AW-919201511","gtmOnly":false,"adStorageCategory":4,"analyticsStorageCategory":2,"functionalityStorageCategory":1,"personalizationStorageCategory":1,"securityStorageCategory":0,"redactData":true,"urlPassthrough":false,"dataLayerName":"dataLayer","waitForUpdate":2000,"sendPageView":true,"debugMode":false,"basicMode":false},"blocker":{"enabled":false,"scripts":{"0":[],"1":[],"2":[],"4":[],"8":[]},"css":{"0":[],"1":[],"2":[],"4":[],"8":[]},"iframes":{"0":[],"1":[],"2":[],"4":[],"8":[]},"pixels":{"0":[],"1":[],"2":[],"4":[],"8":[]}}};var PandectesRules=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var t=function(e){return e[e.Necessary=0]="Necessary",e[e.Preferences=1]="Preferences",e[e.Analytics=2]="Analytics",e[e.Marketing=4]="Marketing",e[e.Unclassified=8]="Unclassified",e}({}),n=function(e){return e[e.AllBlocked=t.Preferences|t.Marketing|t.Analytics]="AllBlocked",e[e.PreferencesOnlyAllowed=e.AllBlocked^t.Preferences]="PreferencesOnlyAllowed",e[e.AnalyticsOnlyAllowed=e.AllBlocked^t.Analytics]="AnalyticsOnlyAllowed",e[e.MarketingOnlyAllowed=e.AllBlocked^t.Marketing]="MarketingOnlyAllowed",e[e.PreferencesAndAnalyticsAllowed=e.AllBlocked^t.Preferences^t.Analytics]="PreferencesAndAnalyticsAllowed",e[e.PreferencesAndMarketingAllowed=e.AllBlocked^t.Preferences^t.Marketing]="PreferencesAndMarketingAllowed",e[e.AnalyticsAndMarketingAllowed=e.AllBlocked^t.Analytics^t.Marketing]="AnalyticsAndMarketingAllowed",e[e.AllAllowed=0]="AllAllowed",e}({}),o=function(e){return e.Granted="granted",e.Denied="denied",e}({}),r=function(e){return e.http="http",e.html="html",e}({}),a=new URLSearchParams(window.location.search).get("trace")||sessionStorage.getItem("pandectes-trace")||"",i=a.split(",");var l=e=>(t,n="debug")=>{(i.includes(e)||"*"===a)&&console[n](`[${function(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}`}()}] ${e}@pandectes → ${t}`)};function s(e,t,n,o=100,r=5e3){const a=Array.isArray(t)?t:[t],i=a.map(t=>e===window&&t.startsWith("window.")?t.substring(7):t);return new Promise((l,s)=>{let c=null;if(n?.aborted)return s(new Error("Aborted"));const d=()=>{c&&clearTimeout(c),n?.removeEventListener("abort",u)},u=()=>{d(),s(new Error("Aborted"))};n?.addEventListener("abort",u,{once:!0});const p=Date.now(),g=()=>{const n=i.map(t=>function(e,t){return t?null!=e?t.replace(/\[(\d+)\]/g,".$1").replace(/\["([^"]+)"\]/g,".$1").replace(/\['([^']+)'\]/g,".$1").split(".").filter(Boolean).reduce((e,t)=>{if(null!=e&&("object"==typeof e||"function"==typeof e))return e[t]},e):void 0:e}(e,t));if(n.every(e=>null!=e)){d();const e=n;return l({value:Array.isArray(t)?e:e[0]})}if(Date.now()-p>=r){d();const e=a.filter((e,t)=>void 0===n[t]||null===n[t]);return s(new Error(`Property path(s) "${e.join('", "')}" not found within ${r}ms.`))}c=setTimeout(g,o)};g()})}l("shopify");var c=(e,t)=>{if(window.Shopify?.customerPrivacy){const o=window.Shopify.customerPrivacy,r=o.currentVisitorConsent(),{preferences:a,marketing:i,analytics:l}=(n=t,{preferences:!1===Boolean(1&n),analytics:!1===Boolean(2&n),marketing:!1===Boolean(4&n)});if((a?"yes":"no")===r.preferences&&(l?"yes":"no")===r.analytics&&(i?"yes":"no")===r.marketing)return;o.setTrackingConsent({...e.headless?{headlessStorefront:e.headless,storefrontRootDomain:e.storefrontRootDomain,checkoutRootDomain:e.checkoutRootDomain,storefrontAccessToken:e.storefrontAccessToken}:{},preferences:a,analytics:l,marketing:i},()=>{})}var n},d="_pandectes_gdpr",u=l("storage");function p(e,t,n){const o=[`${d}=${e?window.btoa(e):""}`,"path=/",`max-age=${t}`];return n.length>0?o.push(`domain=${n}`,"SameSite=None","Secure"):e&&o.push("SameSite=Lax"),o.join("; ")}
1function g(e,t,n){document.cookie=p(e,t,n),0===n.length&&(document.cookie=p("",-1,`.${window.location.hostname}`))}var h=(e,t)=>{const{type:n,duration:o,domain:r}=e;if(null!==t)if(u("updateStorage()"),"html"===n)try{w(d,t)}catch(a){g(t,86400*o,r)}else g(t,86400*o,r);else if(u("clearing storage"),"html"===n)try{y(d)}catch(a){g("",-1,r)}else g("",-1,r)};function m(){const e=document.cookie.split("; ");for(const t of e){const[e,...n]=t.split("=");if(e===d){const e=n.join("=");if(!e)return null;try{return window.atob(e)}catch{return u("invalid consent cookie","warn"),null}}}return null}var f=e=>{try{return window.localStorage.getItem(e)}catch(t){return u("localStorage is not available","warn"),null}},y=e=>{try{window.localStorage.removeItem(e)}catch(t){throw u("localStorage is not available","warn"),t}},w=(e,t)=>{try{window.localStorage.setItem(e,t)}catch(n){throw u("localStorage is not available","warn"),n}},b=(e,t)=>{if(!e)return null;const{type:o,duration:a}=e;let i,l;if(o===r.http){if(i=m(),!i&&(i=f(d),i)){try{y(d)}catch(s){}h(e,i)}}else i=f(d),i||(i=m(),i&&(g("",-1,e.domain),h(e,i)));try{if(i){const e=JSON.parse(i)||null;e?l=null==e.preferences?null:e:l=null}else l=null}catch(s){console.warn(s),l=null}return l&&a>0&&(l.timestamp<e.lastReset||Math.floor(Date.now()/1e3)-l.timestamp>86400*e.duration)&&(l=null,h(e,null),t&&c(t,n.AllBlocked)),l},A=(e,t)=>0===(e&t),k=e=>A(e,t.Preferences),C=e=>A(e,t.Analytics),E=e=>A(e,t.Marketing),v=function(e){return e.Optin="optin",e.Optout="optout",e}({}),S=l("amazon"),P=(e,t,n)=>{s(window,"amznConsent").then(({value:o})=>{const r=null===e?n===v.Optout:E(e);S(`permission: ${r}`),S(`country: ${t}`);const a=o();t&&2==t.length&&a.setCountryCode(t),a.setEnableAdStorage(r).setEnableUserData(r).build()}).catch(()=>{S("window.amznConsent not found","warn")})},_=e=>e.amazon.enabled??!1,B=(e,t,n,o)=>{_(e)&&((()=>{if(window.amznConsent||document.querySelector("script[data-amzn-consent]"))return;const e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://c.amazon-adsystem.com/aat/amzn-consent.js",e.dataset.amznConsent="true",document.head.appendChild(e)})(),P(t,n,o))},M=(e,t,n)=>{_(e)&&P(t,n)},N={functionality:t.Preferences,performance:t.Analytics,targeting:t.Marketing},O=Object.keys(N),L="javascript/blocked",$=class e{config;currentConsent=n.AllBlocked;scriptPatterns;linkPatterns;pixelPatterns;iframePatterns;blockedAjaxCalls=[];cookieCategoryAttribute="data-cookiecategory";mutationObserver=null;static originalCreateElement=document.createElement;static originalAppendChild=Node.prototype.appendChild;static originalInsertBefore=Node.prototype.insertBefore;static originalReplaceChild=Node.prototype.replaceChild;static originalXMLHttpReqSend=XMLHttpRequest.prototype.send;static originalXMLHttpReqOpen=XMLHttpRequest.prototype.open;static originalFetch=window.fetch.bind(window);constructor(e){this.config=e,this.scriptPatterns=e.scripts,this.linkPatterns=e.css,this.pixelPatterns=e.pixels,this.iframePatterns=e.iframes}initialize(e){this.config.enabled&&(null!==e&&(this.currentConsent=e),this.currentConsent!==n.AllAllowed&&(console.log("Blocker is running."),this.setupMutationObserver(),this.patchCreateElement(),this.patchNodeInsertionMethods()))}destroy(){this.unPatchNodeInsertionMethods(),this.unPatchCreateElement(),this.disconnectMutationObserver(),console.log("Blocker not running.")}createElement(t){return e.originalCreateElement.call(document,t)}getBlockPatterns(e){return{script:this.scriptPatterns,link:this.linkPatterns,iframe:this.iframePatterns,pixel:this.pixelPatterns}[e]}copyScriptElement(e){const t=this.createElement("script"),n=e.getAttribute("data-src");return n&&(t.src=n),e.textContent&&(t.textContent=e.textContent),e.hasAttribute("nomodule")&&t.setAttribute("nomodule",""),"module"!==e.getAttribute("type")&&(t.type="text/javascript"),t}replaceWithOrAppendToBody(t,n){t.parentNode?e.originalReplaceChild.call(t.parentNode,n,t):(e.originalAppendChild.call(document.body,n),t.remove())}getBlockedScripts(){return document.querySelectorAll(`script[type="${L}"][${this.cookieCategoryAttribute}]`)}getBlockedLinks(){return document.querySelectorAll(`link[${this.cookieCategoryAttribute}]`)}getBlockedIframes(){return document.querySelectorAll(`iframe[${this.cookieCategoryAttribute}]`)}getBlockedPixels(){return document.querySelectorAll(`img[${this.cookieCategoryAttribute}]`)}getBlockedAjaxCalls(){return this.blockedAjaxCalls}unblockScriptElement(e){const t=this.copyScriptElement(e);this.replaceWithOrAppendToBody(e,t)}removeBlockStateAttributes(e){const t=this.isLinkElement(e)?"data-href":"data-src";e.removeAttribute(t),e.removeAttribute(this.cookieCategoryAttribute)}
1addBlockStateAttributes(e,t,n){const o=this.isLinkElement(e)?"data-href":"data-src";e.setAttribute(o,t),e.setAttribute(this.cookieCategoryAttribute,n?.toString())}getBlockstateUrl(e){const t=this.isLinkElement(e)?"data-href":"data-src";return e.getAttribute(t)}unblockLinkElement(e){const t=this.getBlockstateUrl(e);t&&(e.href=t),this.removeBlockStateAttributes(e)}unblockIframeElement(e){const t=this.getBlockstateUrl(e);t&&(e.src=t),this.removeBlockStateAttributes(e)}unblockImgElement(e){const t=this.getBlockstateUrl(e);t&&(e.src=t),this.removeBlockStateAttributes(e)}getAssociatedCookieCategory(e){const n=e.getAttribute(this.cookieCategoryAttribute);return n?O.includes(n)?N[n]:Number(n):t.Preferences}isLinkElement(e){return"LINK"===e.nodeName}isIframeElement(e){return"IFRAME"===e.nodeName}isImgElement(e){return"IMG"===e.nodeName}isScriptElement(e){return"SCRIPT"===e.nodeName}update(e){if(!this.config.enabled)return;this.currentConsent=e,this.getBlockedScripts().forEach(t=>{A(e,this.getAssociatedCookieCategory(t))&&this.unblockScriptElement(t)}),this.getBlockedLinks().forEach(t=>{A(e,this.getAssociatedCookieCategory(t))&&this.unblockLinkElement(t)}),this.getBlockedIframes().forEach(t=>{A(e,this.getAssociatedCookieCategory(t))&&this.unblockIframeElement(t)}),this.getBlockedPixels().forEach(t=>{A(e,this.getAssociatedCookieCategory(t))&&this.unblockImgElement(t)});const t=this.getBlockedAjaxCalls();for(let n=t.length-1;n>=0;n--){const o=t[n];A(e,o.category)&&(o.unblock(),t.splice(n,1))}}setupMutationObserver(){this.mutationObserver=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{this.blockElement(e)})})}),this.mutationObserver.observe(document.documentElement,{childList:!0,subtree:!0})}disconnectMutationObserver(){this.mutationObserver?.disconnect()}blockElement(e){this.isScriptElement(e)?this.blockScriptElement(e):this.isLinkElement(e)?this.blockLinkElement(e):this.isIframeElement(e)?this.blockIframeElement(e):this.isImgElement(e)&&this.blockImgElement(e)}domManipulationMethods={insertBefore:{original:Node.prototype.insertBefore,proto:Node.prototype,methodName:"insertBefore",nodeArgsExtractor:e=>[e[0]]},appendChild:{original:Node.prototype.appendChild,proto:Node.prototype,methodName:"appendChild",nodeArgsExtractor:e=>[e[0]]},replaceChild:{original:Node.prototype.replaceChild,proto:Node.prototype,methodName:"replaceChild",nodeArgsExtractor:e=>[e[0]]},before:{original:Element.prototype.before,proto:Element.prototype,methodName:"before",nodeArgsExtractor:e=>[...e]},after:{original:Element.prototype.after,proto:Element.prototype,methodName:"after",nodeArgsExtractor:e=>[...e]},prepend:{original:Element.prototype.prepend,proto:Element.prototype,methodName:"prepend",nodeArgsExtractor:e=>[...e]},append:{original:Element.prototype.append,proto:Element.prototype,methodName:"append",nodeArgsExtractor:e=>[...e]},replaceChildren:{original:Element.prototype.replaceChildren,proto:Element.prototype,methodName:"replaceChildren",nodeArgsExtractor:e=>[...e]},insertAdjacentElement:{original:Element.prototype.insertAdjacentElement,proto:Element.prototype,methodName:"insertAdjacentElement",nodeArgsExtractor:e=>[e[1]]},replaceWith:{original:Element.prototype.replaceWith,proto:Element.prototype,methodName:"replaceWith",nodeArgsExtractor:e=>[...e]}};patchNodeInsertionMethods(){const e=this;Object.entries(this.domManipulationMethods).forEach(([,{original:t,proto:n,methodName:o,nodeArgsExtractor:r}])=>{try{n[o]=function(...n){return r(n).forEach(t=>
1e.blockElement(t)),t.call(this,...n)}}catch(a){console.warn(`Pandectes: could not patch ${o}.`,a)}})}unPatchNodeInsertionMethods(){Object.entries(this.domManipulationMethods).forEach(([,{original:e,proto:t,methodName:n}])=>{t[n]=e})}patchFetch(){const e=window.fetch.bind(window),t=this;window.fetch=function(n,o){const r="string"==typeof n?n:n.url,a=t.shouldBlockUrlUnderCurrentConsent(r,"script");if(!1!==a){let i,l;const s=new Promise((e,t)=>{i=e,l=t});return t.blockedAjaxCalls.push({category:a,url:r,unblock:()=>{e(n,o).then(i).catch(l)}}),s}return e(n,o)}}unPatchFetch(){window.fetch=e.originalFetch}patchXhrSend(){const e=XMLHttpRequest.prototype.send,t=XMLHttpRequest.prototype.open,n=this;XMLHttpRequest.prototype.send=function(t){const o=this,r=o._url,a=n.shouldBlockUrlUnderCurrentConsent(r,"script");if(!1===a)return e.call(this,t);n.blockedAjaxCalls.push({category:a,url:r,unblock:()=>{e.call(o,t)}})},XMLHttpRequest.prototype.open=function(e,n,...o){return this._url="string"==typeof n?n:n.toString(),t.apply(this,[e,n,...o])}}patchCreateElement(){const t=this,n=(n,o)=>{const r=e.originalCreateElement.call(document,n,o);if("script"===n.toLowerCase()){const e=Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,"src");e&&e.set&&Object.defineProperty(r,"src",{set(n){const o=t.shouldBlockUrlUnderCurrentConsent(n,"script");if(o)return this.type=L,void t.addBlockStateAttributes(this,n,o);e.set?.call(this,n)},get:e.get})}return r};try{Object.defineProperty(document,"createElement",{value:n,writable:!0,configurable:!0})}catch(o){console.warn("Pandectes: could not patch document.createElement; relying on MutationObserver for blocking.",o)}}unPatchCreateElement(){try{Object.defineProperty(document,"createElement",{value:e.originalCreateElement,writable:!0,configurable:!0})}catch{}}blockScriptElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"script");n&&t.length&&(e.type=L,e.async=!1,e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}blockLinkElement(e){if("stylesheet"!==e.rel)return;const t=e.href||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"link");n&&(e.removeAttribute("href"),this.addBlockStateAttributes(e,t,n))}blockIframeElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"iframe");n&&(e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}blockImgElement(e){const t=e.src||"",n=this.shouldBlockUrlUnderCurrentConsent(t,"pixel");n&&(e.removeAttribute("src"),this.addBlockStateAttributes(e,t,n))}urlMatchesPattern(e,t){return e.toString().match(t)}urlMatchesCategoryPattern(e,t,n){return this.getBlockPatterns(t)[n].some(t=>this.urlMatchesPattern(e,t))}shouldBlockUrlUnderCurrentConsent(e,n){return[t.Preferences,t.Analytics,t.Marketing].find(t=>{const o=A(this.currentConsent,t),r=this.urlMatchesCategoryPattern(e,n,t);return!o&&r})||!1}},j=l("facebook"),I=e=>e.facebook.enabled??!1,q=(e,t,n)=>{if(!I(e))return;var o,r,a,i,l,c;o=window,r=document,a="script",o.fbq||(i=o.fbq=function(){i.callMethod?i.callMethod.apply(i,arguments):i.queue.push(arguments)},o._fbq||(o._fbq=i),i.push=i,i.loaded=!0,i.version="2.0",i.queue=[],(l=r.createElement(a)).async=!0,l.src="https://connect.facebook.net/en_US/fbevents.js",(c=r.getElementsByTagName(a)[0]).parentNode.insertBefore(l,c));const d="undefined"!=typeof navigator&&!!navigator.globalPrivacyControl,u=null===t?n===v.Optout:E(t);j(`granted: ${u}`),s(window,"fbq").then(({value:t})=>{t("consent",u?"grant":"revoke"),e.facebook.id?.length&&t("init",e.facebook.id),d&&t("dataProcessingOptions",["LDU"],0,0),u&&t("track","PageView")}).catch(()=>{j("window.fbq not found","warn")})},x=(e,t)=>{if(!I(e))return;const n=E(t);j(`granted: ${n}`),s(window,"fbq").then(({value:e})=>{e("consent",n?"grant":"revoke")}).catch(()=>{j("window.fbq not found","warn")})},D=e=>{const t=document.createElement("script");t.async=!0,t.type="text/javascript",t.src=e,document.head.appendChild(t)},U=function(e){return e.basic="basic",e.plus="plus",e.premium="premium",e.enterprise="enterprise",e}({}),z="[Pandectes :: Google Consent Mode debug]:";function G(e){const{ad_storage:t,ad_user_data:n,ad_personalization:o,functionality_storage:r,analytics_storage:a,personalization_storage:i}=e;return"denied"===t&&"denied"===n&&"denied"===o&&"denied"===r&&"denied"===a&&"denied"===i}function T(e){return Array.isArray(e)?e.length>0:null!=e}function R(e){return Array.isArray(e)?e.join(", "):String(e)}var H=e=>{const t=e[0],n=e[1],o=e[2];if("consent"!==t)return"config"===t?"config":void 0;const{ad_storage:r,ad_user_data:a,ad_personalization:i,functionality_storage:l,analytics_storage:s,personalization_storage:c,security_storage:d,region:u}=o,p={Command:t,Mode:n,...T(u)?{region:R(u)}:{},ad_storage:r,ad_user_data:a,ad_personalization:i,functionality_storage:l,analytics_storage:s,personalization_storage:c,security_storage:d};return console.table(p),"default"===n&&(T(u)&&G(o)?F=!0:G(o)||F||console.warn(`${z} all types in a "default" command should be set to "denied" except for security_storage that should be set to "granted"`)),n},X=!1,W=!1,F=!1;function J(e){e&&("default"===e?(X=!0,W&&console.warn(`${z} "default" command was sent but there was already an "update" command before it.`)):"update"===e?(W=!0,X||console.warn(`${z} "update" command was sent but there was no "default" command before it.`)):"config"===e&&(X||console.warn(`${z}
1 a tag read consent state before a default was set (late consent signal). This often happens if Google Tag Gateway has been adopted. To verify visit https://help.pandectes.io/en/article/google-tag-gateway-gtg-and-consent-cl8mqk/.`)))}function V(e){window[e].forEach(e=>{J(H(e))}),window[e].push=function(...e){var t;return t=e[0],"[object Arguments]"===Object.prototype.toString.call(t)&&J(H(e[0])),Array.prototype.push.apply(this,e)}}var K="https://www.googletagmanager.com",Y=l("gcm"),Z=e=>{const t=e?.trim();return t||"dataLayer"},Q=!1,ee=e=>k(e)||C(e)||E(e),te=(e,n)=>{const{securityStorageCategory:r,functionalityStorageCategory:a,analyticsStorageCategory:i,adStorageCategory:l}=e,s={[t.Necessary]:o.Granted,[t.Preferences]:k(n)?o.Granted:o.Denied,[t.Analytics]:C(n)?o.Granted:o.Denied,[t.Marketing]:E(n)?o.Granted:o.Denied,[t.Unclassified]:o.Denied};return{security_storage:s[r],functionality_storage:s[a],personalization_storage:s[a],analytics_storage:s[i],ad_storage:s[l],ad_user_data:s[l],ad_personalization:s[l]}},ne=(e,t)=>{if(t.length){const n=t.split(",");for(let t=0;t<n.length;t++){const o="dataLayer"!==e?`&l=${e}`:"";D(`${K}/gtm.js?id=${n[t].trim()}${o}`),Y("loading GTM with ID: '"+n[t].trim()+"'")}}},oe=(e,t,n)=>{if(e.length){const o=e.split(",");for(let e=0;e<o.length;e++){const r=o[e].trim();r.length&&(D(`${K}/gtag/js?id=${r}`),Y("loading GA4 property: '"+r+"'"),window.gtag("config",r,{debug_mode:t,send_page_view:n}))}}},re=e=>{if(e.length){const t=e.split(",");for(let e=0;e<t.length;e++){const n=t[e].trim();n.length&&(D(`${K}/gtag/js?id=${n}`),Y("loading AW property: '"+n+"'"),window.gtag("config",n,{allow_enhanced_conversions:!0}))}}},ae=(e,t)=>{const{google:n}=e,{enabled:o,basicMode:r,gtmOnly:a}=n,{store:{plan:i}}=e;if(((e,t,n)=>{null!==t&&s(window,"pandectesConsentListeners").then(({value:n})=>{e!==U.basic?n.forEach(e=>{const n={preferences:t,consentType:"new"};Y("pandectesConsentListeners: "+JSON.stringify(n)),e(n)}):console.warn("%c Pandectes: Upgrade your plan to use Pandectes CMP Template for Google Tag Manager","background: orange; color: black; font-weight: bold")}).catch(e=>{n&&console.warn(e+" Check that you have loaded the Pandectes CMP Template for Google Tag Manager correctly.")})})(i,t,a),o&&!a&&(window.gtag("consent","update",te(n,t)),r&&!Q&&ee(t))){const{gtmId:e="",ga4Id:t="",adsId:o="",debugMode:r=!1,sendPageView:a=!0,dataLayerName:i}=n,l=Z(i);window.gtag("js",new Date),ne(l,e),oe(t,r,a),re(o),Q=!0}},ie=l("klaviyo"),le=(e,t,n)=>{if(!(e=>e.klaviyo.enabled??!1)(e))return;const r=null===t?n===v.Optin?o.Denied:o.Granted:E(t)?o.Granted:o.Denied;ie(`permission: ${r}`),s(window,"klaviyo").then(({value:e})=>{e.push(["identify",{ad_personalization:r,ad_user_data:r}])}).catch(()=>{ie("Klaviyo object not found on window","warn")})},se=le,ce=le,de=l("clarity"),ue=e=>e.microsoft?.clarity?.enabled??!1,pe=(e,t,n)=>{if(!ue(e))return;const r=null===t?{source:162,ad_Storage:n===v.Optin?o.Denied:o.Granted,analytics_Storage:n===v.Optin?o.Denied:o.Granted}:{source:162,ad_Storage:E(t)?o.Granted:o.Denied,analytics_Storage:C(t)?o.Granted:o.Denied};de(`signal: ${JSON.stringify(r)}`),window.clarity||(window.clarity=(...e)=>{(window.clarity.q=window.clarity.q||[]).push(e)}),window.clarity("consentv2",r)},ge=(e,t,n)=>{var o,r,a,i,l,s,c,d;ue(e)&&(e.microsoft?.clarity?.id?(o=e.microsoft.clarity.id,document.querySelector("script[data-clarity-tag]")||o.length&&(r=window,a=document,l="script",s=o,r[i="clarity"]=r[i]||function(){(r[i].q=r[i].q||[]).push(arguments)},(c=a.createElement(l)).async=1,c.src="https://www.clarity.ms/tag/"+s,c.dataset.clarityTag="true",(d=a.getElementsByTagName(l)[0]).parentNode.insertBefore(c,d)),pe(e,t,n)):de("Microsoft Clarity id missing","warn"))},he=pe,me=l("uet"),fe=e=>{const t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src="//bat.bing.com/bat.js",t.onload=function(){window.uetq=new UET({ti:e,q:window.uetq}),window.uetq.push("pageLoad")},document.head.appendChild(t)},ye=(e,t,n)=>{const r=null===e?n===v.Optin?o.Denied:o.Granted:E(e)?o.Granted:o.Denied;me(`ad_storage: ${r} / ${t}`),window.uetq.push("consent",t,{ad_storage:r})},we=(e,t)=>{e.microsoft.uet.enabled&&ye(t,"update")},be="Pandectes_Consent_Update",Ae=l("customEvent"),ke=(e,t,o)=>{let r,a;null!==e?(a=t?"new":"stored",r=e===n.AllBlocked?"deny":e===n.AllAllowed?"allow":"mixed"):(e=o===v.Optin?n.AllBlocked:n.AllAllowed,r=o===v.Optin?"deny":"allow",a="default");const i={event:be,pandectes_action:a,pandectes_status:r,pandectes_categories:{C0000:"allow",C0001:k(e)?"allow":"deny",C0002:C(e)?"allow":"deny",C0003:E(e)?"allow":"deny"}};return Ae(JSON.stringify(i)),i},Ce=e=>{s(window,"Shopify.analytics").then(({value:t})=>{t?.publish(be,e)}).catch(()=>{Ae("Shopify.analytics object not found on window","warn")})},Ee=e=>e.customEvent.enabled??!1,ve=(e,t)=>
1{if(!Ee(e))return;window.dataLayer=window.dataLayer||[];const n=ke(t,!0,null);window.dataLayer.push(n),Ce(n)},Se=l("rakuten"),Pe=navigator.globalPrivacyControl,_e=(e,t,n)=>{const{rakuten:{enabled:r,cmp:a,ccpa:i}}=e;if(!r)return;const l=null!==t?E(t)?o.Granted:o.Denied:n===v.Optin?o.Denied:o.Granted;Se(`permission: ${l}`);const s=Pe?"N":"Y",c=l===o.Granted?"Y":"N";i&&(window.__rmuspc=s+c),a&&(window.__rmcp2=l===o.Granted?[1,2,3,4,5,6,7,8,9,10]:[])},Be=_e,Me=_e,Ne=function(e){return e.DialogOpened="PandectesDialogOpened",e.DialogClosed="PandectesDialogClosed",e.ButtonClicked="PandectesButtonClicked",e.Consent="PandectesConsentUpdate",e.ConsentLegacy="PandectesConsentUpdateLegacy",e.Api="PandectesApi",e.Initialized="PandectesInitialized",e}({});function Oe(e){const{storage:t,banner:{enabled:o}}=e,r=(t?b(t):null)?.preferences??null;if(o){const t=new $(e.blocker);try{t.initialize(r)}catch(a){console.error("pandectes-rules: blocker failed to initialize",a)}((e,t)=>{const{google:o}=e,{regions:{strict:r,visible:a}}=e,{enabled:i,basicMode:l=!1,debugMode:s=!1,gtmOnly:c=!1,redactData:d=!1,urlPassthrough:u=!1,gtmId:p="",ga4Id:g="",adsId:h="",waitForUpdate:m=500,sendPageView:f=!0,dataLayerName:y}=o;if(!i)return;const w=Z(y);if(window.gtag=function(...e){window[w].push(arguments)},window[w]=window[w]||[],s&&V(w),c)return window.gtag("js",new Date),void ne(w,p);const b={"developer_id.dMTZkMj":!0,...d?{ads_data_redaction:!0}:{},...u?{url_passthrough:!0}:{}};window.gtag("set",b),"*"===r||"object"==typeof r&&r.length===a.length?window.gtag("consent","default",{...te(o,n.AllBlocked),wait_for_update:m}):(r.length&&window.gtag("consent","default",{...te(o,n.AllBlocked),wait_for_update:m,region:r.map(e=>2===e.length?e:4===e.length?e.slice(0,2)+"-"+e.slice(2,4):void 0)}),window.gtag("consent","default",{...te(o,n.AllAllowed),wait_for_update:m})),null!==t&&window.gtag("consent","update",te(o,t)),(!l||null!==t&&ee(t))&&(window.gtag("js",new Date),ne(w,p),oe(g,s,f),re(h),Q=!0)})(e,r),window.addEventListener(Ne.Initialized,o=>{const{detail:{policy:a,region:i,banner:l}}=o;l?(((e,t,n)=>{if(!Ee(e))return;window.dataLayer=window.dataLayer||[];const o=ke(t,!1,n);window.dataLayer.push(o),Ce(o)})(e,r,a),q(e,r,a),ge(e,r,a),((e,t,n)=>{e.microsoft.uet.enabled&&(window.uetq=window.uetq||[],ye(t,"default",n),e.microsoft.uet.tags.split(",").forEach(fe))})(e,r,a),se(e,r,a),Be(e,r,a),B(e,r,i,a),null===r&&(a===v.Optin?t.update(n.AllBlocked):t.update(n.AllAllowed))):(t.update(n.AllAllowed),t.destroy(),ae(e,n.AllAllowed),x(e,n.AllAllowed),M(e,n.AllAllowed,i),we(e,n.AllAllowed),he(e,n.AllAllowed),Me(e,n.AllAllowed),ce(e,n.AllAllowed),ve(e,n.AllAllowed))}),window.addEventListener(Ne.ConsentLegacy,n=>{const{detail:o}=n,r=o?.preferences??null,a=o?.country&&o.country.code||"";t.update(r),ae(e,r),x(e,r),M(e,r,a),we(e,r),he(e,r),Me(e,r),ce(e,r),ve(e,r)})}}return s(window,"pandectesRulesSettings").then(({value:e})=>Oe(e)).catch(e=>{(e instanceof Error?e.message:String(e)).includes("pandectesRulesSettings")?console.error("pandectes-rules: could not find pandectesRulesSettings",e):console.error("pandectes-rules: failed to initialize",e)}),e.initialize=Oe,e}({});}

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.