PageSourceSearch

https://ninjatransfers.com/cdn/shop/files/pandectes-rules.js?v=1332929767418300145

js ninjatransfers.com collected 2026-09-24 18:07:00 UTC 26,447 bytes, 1 lines download raw bytes

1if (!window.pandectesRulesSettings) {window.pandectesRulesSettings={"version":"5","timestamp":1781623464081,"store":{"id":55802658899,"plan":"enterprise","primaryLocale":"en","headless":false,"checkoutRootDomain":"","storefrontRootDomain":"","storefrontAccessToken":""},"banner":{"enabled":true},"regions":{"strict":["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IS","IE","IT","LV","LI","LT","LU","MT","NL","NO","PL","PT","RO","SK","SI","ES","SE","GB","CH","BR","CAAB","CABC","CAMB","CANB","CANL","CANS","CANT","CANU","CAON","CAPE","CAQC","CASK","CAYT","JP","TH","ZA","AU","NZ","CN","IN","CL","TR","AE"],"visible":"*"},"storage":{"type":"http","domain":"","duration":365,"lastReset":1733849548},"gpc":{"enabled":true},"klaviyo":{"enabled":true},"customEvent":{"enabled":true},"rakuten":{"enabled":true,"cmp":true,"ccpa":true},"facebook":{"enabled":false,"id":""},"amazon":{},"microsoft":{"uet":{"enabled":true,"tags":""},"clarity":{}},"google":{"enabled":true,"gtmId":"GTM-5R28GKW","ga4Id":"G-2LF2K1M91X","adsId":"AW-11051229889","adStorageCategory":4,"analyticsStorageCategory":2,"functionalityStorageCategory":1,"personalizationStorageCategory":1,"securityStorageCategory":0,"redactData":false,"urlPassthrough":false,"dataLayerName":"dataLayer","waitForUpdate":0,"sendPageView":false,"basicMode":false},"blocker":{"enabled":true,"scripts":{"0":[],"1":["www.paypal.com","static.hotjar.com/c/hotjar"],"2":[],"4":["googleads.g.doubleclick.net","static.ads-twitter.com/uwt.js|static.ads-twitter.com/oct.js","analytics.tiktok.com/i18n/pixel","intg.snapchat.com/shopify/shopify-scevent-init.js","googletagmanager.com/gtag/js\\?id=AW|googleadservices.com","s.pinimg.com/ct/core.js|s.pinimg.com/ct/lib","s.adroll.com/j/","bat.bing.com","connect.facebook.net"],"8":[]},"css":{"0":[],"1":[],"2":[],"4":[],"8":[]},"iframes":{"0":[],"1":["player.vimeo.com","www.youtube.com|www.youtube-nocookie.com"],"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=e===window&&t.startsWith("window.")?t.substring(7):t;return new Promise((i,l)=>{let s=null;if(n?.aborted)return l(new Error("Aborted"));const c=()=>{s&&clearTimeout(s),n?.removeEventListener("abort",d)},d=()=>{c(),l(new Error("Aborted"))};n?.addEventListener("abort",d,{once:!0});const u=Date.now(),p=()=>{const n=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,a);return null!=n?(c(),i({value:n})):Date.now()-u>=r?(c(),l(new Error(`Property path "${t}" not found within ${r}ms.`))):void(s=setTimeout(p,o))};p()})}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=[];o.push(`${d}=${window.btoa(e)}`),o.push("path=/"),o.push(`max-age=${t}`),n.length>0?(o.push(`domain=${n}`),o.push("samesite=None;"),o.push("secure;")):(o.push(`domain=.${window.location.hostname}`),o.push("samesite=Lax;")),document.cookie=o.join("; ")}var g=(e,t)=>{const{type:n,duration:o,domain:r}=e;if(null!==t)if(u("updateStorage()"),"html"===n)try{y(d,t)}catch(a){p(t,86400*o,r)}else p(t,86400*o,r);else if(u("clearing storage"),"html"===n)try{f(d)}catch(a){p("",-1,r)}else p("",-1,r)};function h(){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 m=e=>{try{return window.localStorage.getItem(e)}catch(t){return u("localStorage is not available","warn"),null}},f=e=>{try{window.localStorage.removeItem(e)}catch(t){throw u("localStorage is not available","warn"),t}},y=(e,t)=>{try{window.localStorage.setItem(e,t)}catch(n){throw u("localStorage is not available","warn"),n}},w=(e,t)=>{if(!e)return null;const{type:o,duration:a}=e;let i,l;if(o===r.http){if(i=h(),!i&&(i=m(d),i)){try{f(d)}catch(s){}g(e,i)}}else i=m(d),i||(i=h(),i&&(p("",-1,e.domain),g(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,g(e,null),t&&c(t,n.AllBlocked)),l},b=(e,t)=>0===(e&t),A=e=>b(e,t.Preferences),k=e=>b(e,t.Analytics),C=e=>b(e,t.Marketing),E=function(e){return e.Optin="optin",e.Optout="optout",e}({}),v=l("amazon"),P=(e,t,n)=>{s(window,"amznConsent").then(({value:o})=>{const r=null===e?n===E.Optout:C(e);v(`permission: ${r}`),v(`country: ${t}`);const a=o();t&&2==t.length&&a.setCountryCode(t),a.setEnableAdStorage(r).setEnableUserData(r).build()}).catch(()=>
1{v("window.amznConsent not found","warn")})},S=e=>e.amazon.enabled??!1,_=(e,t,n,o)=>{S(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))},B=(e,t,n)=>{S(e)&&P(t,n)},M={functionality:t.Preferences,performance:t.Analytics,targeting:t.Marketing},N=Object.keys(M),O="javascript/blocked",L=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="${O}"][${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)}addBlockStateAttributes(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?N.includes(n)?M[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=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockScriptElement(t)}),this.getBlockedLinks().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockLinkElement(t)}
1),this.getBlockedIframes().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockIframeElement(t)}),this.getBlockedPixels().forEach(t=>{b(e,this.getAssociatedCookieCategory(t))&&this.unblockImgElement(t)});const t=this.getBlockedAjaxCalls();for(let n=t.length-1;n>=0;n--){const o=t[n];b(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=O,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=O,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=b(this.currentConsent,t),r=this.urlMatchesCategoryPattern(e,n,t);return!o&&r})||!1}},$=l("facebook"),j=e=>e.facebook.enabled??!1,I=(e,t,n)=>{if(!j(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===E.Optout:C(t);$(`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(()=>{$("window.fbq not found","warn")})},q=(e,t)=>{if(!j(e))return;const n=C(t);$(`granted: ${n}`),s(window,"fbq").then(({value:e})=>{e("consent",n?"grant":"revoke")}).catch(()=>{$("window.fbq not found","warn")})},x=e=>{const t=document.createElement("script");t.async=!0,t.type="text/javascript",t.src=e,document.head.appendChild(t)},D=function(e){return e.basic="basic",e.plus="plus",e.premium="premium",e.enterprise="enterprise",e}({}),U="[Pandectes :: Google Consent Mode debug]:";function z(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 G(e){return Array.isArray(e)?e.length>0:null!=e}function T(e){return Array.isArray(e)?e.join(", "):String(e)}var R=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,...G(u)?{region:T(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&&(G(u)&&z(o)?W=!0:z(o)||W||console.warn(`${U} all types in a "default" command should be set to "denied" except for security_storage that should be set to "granted"`)),n},H=!1,X=!1,W=!1;function F(e){e&&("default"===e?(H=!0,X&&console.warn(`${U} "default" command was sent but there was already an "update" command before it.`)):"update"===e?(X=!0,H||console.warn(`${U} "update" command was sent but there was no "default" command before it.`)):"config"===e&&(H||console.warn(`${U}
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 J(e){window[e].forEach(e=>{F(R(e))}),window[e].push=function(...e){var t;return t=e[0],"[object Arguments]"===Object.prototype.toString.call(t)&&F(R(e[0])),Array.prototype.push.apply(this,e)}}var V="https://www.googletagmanager.com",K=l("gcm"),Y=!1,Z=e=>A(e)||k(e)||C(e),Q=(e,n)=>{const{securityStorageCategory:r,functionalityStorageCategory:a,analyticsStorageCategory:i,adStorageCategory:l}=e,s={[t.Necessary]:o.Granted,[t.Preferences]:A(n)?o.Granted:o.Denied,[t.Analytics]:k(n)?o.Granted:o.Denied,[t.Marketing]:C(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]}},ee=(e,t)=>{if(t.length){const n=t.split(",");for(let t=0;t<n.length;t++){const o="dataLayer"!==e?`&l=${e}`:"";x(`${V}/gtm.js?id=${n[t].trim()}${o}`),K("loading GTM with ID: '"+n[t].trim()+"'")}}},te=(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&&(x(`${V}/gtag/js?id=${r}`),K("loading GA4 property: '"+r+"'"),window.gtag("config",r,{debug_mode:t,send_page_view:n}))}}},ne=e=>{if(e.length){const t=e.split(",");for(let e=0;e<t.length;e++){const n=t[e].trim();n.length&&(x(`${V}/gtag/js?id=${n}`),K("loading AW property: '"+n+"'"),window.gtag("config",n,{allow_enhanced_conversions:!0}))}}},oe=(e,t,n)=>{null!==t&&s(window,"pandectesConsentListeners").then(({value:n})=>{e!==D.basic?n.forEach(e=>{const n={preferences:t,consentType:"new"};K("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.")})},re=(e,t)=>{const{google:n}=e,{enabled:o,basicMode:r,gtmOnly:a}=n,{store:{plan:i}}=e;if(oe(i,t,a),o&&!a&&(window.gtag("consent","update",Q(n,t)),r&&!Y&&Z(t))){const{gtmId:e,ga4Id:t,adsId:o,debugMode:r,sendPageView:a,dataLayerName:i=""}=n,l=i.trim().length>0?i.trim():"dataLayer";window.gtag("js",new Date),ee(l,e),te(t,r,a),ne(o),Y=!0}},ae=l("klaviyo"),ie=(e,t,n)=>{if(!(e=>e.klaviyo.enabled??!1)(e))return;const r=null===t?n===E.Optin?o.Denied:o.Granted:C(t)?o.Granted:o.Denied;ae(`permission: ${r}`),s(window,"klaviyo").then(({value:e})=>{e.push(["identify",{ad_personalization:r,ad_user_data:r}])}).catch(()=>{ae("Klaviyo object not found on window","warn")})},le=ie,se=ie,ce=l("clarity"),de=e=>e.microsoft?.clarity?.enabled??!1,ue=(e,t,n)=>{if(!de(e))return;const r=null===t?{source:162,ad_Storage:n===E.Optin?o.Denied:o.Granted,analytics_Storage:n===E.Optin?o.Denied:o.Granted}:{source:162,ad_Storage:C(t)?o.Granted:o.Denied,analytics_Storage:k(t)?o.Granted:o.Denied};ce(`signal: ${JSON.stringify(r)}`),window.clarity||(window.clarity=(...e)=>{(window.clarity.q=window.clarity.q||[]).push(e)}),window.clarity("consentv2",r)},pe=(e,t,n)=>{var o,r,a,i,l,s,c,d;de(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)),ue(e,t,n)):ce("Microsoft Clarity id missing","warn"))},ge=ue,he=l("uet"),me=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)},fe=(e,t,n)=>{const r=null===e?n===E.Optin?o.Denied:o.Granted:C(e)?o.Granted:o.Denied;he(`ad_storage: ${r} / ${t}`),window.uetq.push("consent",t,{ad_storage:r})},ye=(e,t)=>{e.microsoft.uet.enabled&&fe(t,"update")}
1,we="Pandectes_Consent_Update",be=l("customEvent"),Ae=(e,t,o)=>{let r,a;null!==e?(a=t?"new":"stored",r=e===n.AllBlocked?"deny":e===n.AllAllowed?"allow":"mixed"):(e=o===E.Optin?n.AllBlocked:n.AllAllowed,r=o===E.Optin?"deny":"allow",a="default");const i={event:we,pandectes_action:a,pandectes_status:r,pandectes_categories:{C0000:"allow",C0001:A(e)?"allow":"deny",C0002:k(e)?"allow":"deny",C0003:C(e)?"allow":"deny"}};return be(JSON.stringify(i)),i},ke=e=>{s(window,"Shopify.analytics").then(({value:t})=>{t?.publish(we,e)}).catch(()=>{be("Shopify.analytics object not found on window","warn")})},Ce=e=>e.customEvent.enabled??!1,Ee=(e,t)=>{if(!Ce(e))return;window.dataLayer=window.dataLayer||[];const n=Ae(t,!0,null);window.dataLayer.push(n),ke(n)},ve=l("rakuten"),Pe=navigator.globalPrivacyControl,Se=(e,t,n)=>{const{rakuten:{enabled:r,cmp:a,ccpa:i}}=e;if(!r)return;const l=null!==t?C(t)?o.Granted:o.Denied:n===E.Optin?o.Denied:o.Granted;ve(`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]:[])},_e=Se,Be=Se,Me=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 Ne(e){const{storage:t,banner:{enabled:o}}=e,r=(t?w(t):null)?.preferences??null;if(o){const t=new L(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},store:{plan:i}}=e,{enabled:l,basicMode:s,debugMode:c,gtmOnly:d,redactData:u,urlPassthrough:p,gtmId:g,ga4Id:h,adsId:m,waitForUpdate:f,sendPageView:y,dataLayerName:w}=o;if(!l)return;const b=w.trim().length>0?w.trim():"dataLayer";if(window.gtag=function(...e){window[b].push(arguments)},window[b]=window[b]||[],c&&J(b),oe(i,t,d),d)return window.gtag("js",new Date),void ee(b,g);const A={"developer_id.dMTZkMj":!0,...u?{ads_data_redaction:!0}:{},...p?{url_passthrough:!0}:{}};window.gtag("set",A),"*"===r||"object"==typeof r&&r.length===a.length?window.gtag("consent","default",{...Q(o,n.AllBlocked),wait_for_update:f}):(r.length&&window.gtag("consent","default",{...Q(o,n.AllBlocked),wait_for_update:f,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",{...Q(o,n.AllAllowed),wait_for_update:f})),null!==t&&window.gtag("consent","update",Q(o,t)),(!s||null!==t&&Z(t))&&(window.gtag("js",new Date),ee(b,g),te(h,c,y),ne(m),Y=!0)})(e,r),window.addEventListener(Me.Initialized,o=>{const{detail:{policy:a,region:i,banner:l}}=o;l?(((e,t,n)=>{if(!Ce(e))return;window.dataLayer=window.dataLayer||[];const o=Ae(t,!1,n);window.dataLayer.push(o),ke(o)})(e,r,a),I(e,r,a),pe(e,r,a),((e,t,n)=>{e.microsoft.uet.enabled&&(window.uetq=window.uetq||[],fe(t,"default",n),e.microsoft.uet.tags.split(",").forEach(me))})(e,r,a),le(e,r,a),_e(e,r,a),_(e,r,i,a),null===r&&(a===E.Optin?t.update(n.AllBlocked):t.update(n.AllAllowed))):(t.update(n.AllAllowed),t.destroy(),re(e,n.AllAllowed),q(e,n.AllAllowed),B(e,n.AllAllowed,i),ye(e,n.AllAllowed),ge(e,n.AllAllowed),Be(e,n.AllAllowed),se(e,n.AllAllowed),Ee(e,n.AllAllowed))}),window.addEventListener(Me.ConsentLegacy,n=>{const{detail:o}=n,r=o?.preferences??null,a=o?.country&&o.country.code||"";t.update(r),re(e,r),q(e,r),B(e,r,a),ye(e,r),ge(e,r),Be(e,r),se(e,r),Ee(e,r)})}}return s(window,"pandectesRulesSettings").then(({value:e})=>Ne(e)).catch(e=>{console.error("pandectes-rules: could not find pandectesRulesSettings",e)}),e.initialize=Ne,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.