PageSourceSearch

https://www.glistco.com/cdn/shop/t/90/assets/cookie-banner.js?v=71670570353907577961777912987

js glistco.com collected 2026-10-07 04:19:34 UTC 1,844 bytes, 2 lines download raw bytes

1customElements.get("cookie-banner")||customElements.define("cookie-banner",class extends ModalElement{constructor(){super(),!theme.config.isTouch||Shopify.designMode?this.init():new theme.initWhenVisible(theme.utils.throttle(this.init.bind(this)))}get testMode(){return this.getAttribute("data-test-mode")==="true"}get delay(){return this.hasAttribute("data-delay")?parseInt(this.getAttribute("data-delay")):5}get acceptButton(){return this.querySelector('button[name="accept"]')}get declineButton(){return this.querySelector('button[name="decline"]')}init(){if(!this.initialized){if(this.initialized=!0,this.testMode){this.load(this.delay);return}window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1",onLoad:this.onConsentLibraryLoaded.bind(this)}])}}load(delay){Shopify.designMode||(setTimeout(()=>this.show(),delay*1e3),this.acceptButton&&this.acceptButton.addEventListener("click",this.acceptPolicy.bind(this)),this.declineButton&&this.declineButton.addEventListener("click",this.declinePolicy.bind(this)))}acceptPolicy(){this.hide(),window.Shopify.customerPrivacy?.setTrackingConsent(!0,this.noop),document.addEventListener("trackingConsentAccepted",()=>{console.log("trackingConsentAccepted event fired")})}declinePolicy(){this.hide(),window.Shopify.customerPrivacy?.setTrackingConsent(!1,this.noop)}onConsentLibraryLoaded(){const userCanBeTracked=window.Shopify.customerPrivacy.userCanBeTracked(),userTrackingConsent=window.Shopify.customerPrivacy.getTrackingConsent();!userCanBeTracked&&userTrackingConsent==="no_interaction"&&this.load(this.delay)}noop(){}afterHide(){super.afterHide(),document.body.classList.remove("has-cookie-banner")}afterShow(){super.afterShow(),document.body.classList.add("has-cookie-banner")}});
2//# sourceMappingURL=/cdn/shop/t/90/assets/cookie-banner.js.map?v=71670570353907577961777912987

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.