1/*! bluetti v2.0.0 | (c) 2022 Bluettipower | MIT License | https://gitee.com/bluetti/shopify-gulp.git */(()=>{class e extends HTMLElement{constructor(){super(),this.updateSections(),this.querySelectorAll("[data-filter-tab]").forEach(e2=>{e2.addEventListener("click",e3=>{e3.target.closest("ul").querySelectorAll("li").forEach(e4=>e4.classList.remove("tm-active")),e3.target.closest("li").classList.add("tm-active"),this.updateSections(e3.target.dataset.filterTab)},!1)})}updateSections(e2){e2=e2||"group_1",document.querySelectorAll("[data-filter]").forEach(e3=>e3.classList.add("uk-hidden")),document.querySelectorAll(`[data-filter="${e2}"]`).forEach(e3=>e3.classList.remove("uk-hidden"))}}customElements.define("tab-filter",e);class t extends HTMLElement{constructor(){super(),this.updateSections(),this.querySelectorAll("[data-filter-tab]").forEach(e2=>{e2.addEventListener("click",e3=>{e3.target.closest("ul").querySelectorAll("li").forEach(e4=>e4.classList.remove("tm-active")),e3.target.closest("li").classList.add("tm-active"),this.updateSections(e3.target.dataset.filterTabPartition,e3.target.dataset.filterTab)},!1)})}updateSections(i2,s2){document.querySelectorAll("[data-filter-partition]").forEach(e2=>{var t2=s2||"group_1";document.querySelectorAll("[data-filter]").forEach(e3=>{i2===e3.dataset.filterPartition&&e3.classList.add("uk-hidden")}),document.querySelectorAll(`[data-filter="${t2}"]`).forEach(e3=>{i2===e3.dataset.filterPartition&&e3.classList.remove("uk-hidden")})})}}customElements.define("tab-filter1",t);class i extends HTMLElement{constructor(){super(),document.addEventListener("scroll",()=>{this.classList.toggle("uk-hidden",document.documentElement.scrollTop<=600)})}}customElements.get("back-to-top")||customElements.define("back-to-top",i);class s extends HTMLElement{constructor(){super(),window.Shopify.loadFeatures([{name:"consent-tracking-api",version:"0.1"}],e2=>{if(e2)throw e2;setTimeout(()=>{this.initCookieBanner()},3e3)}),this.addEventListener("hide",()=>{this.handleAccept(),console.log("hide")})}toggleCookie(e2=!0){this.classList.toggle("active",e2)}handleAccept(e2){window.Shopify.customerPrivacy.setTrackingConsent(!0,this.toggleCookie.bind(this,!1)),document.addEventListener("trackingConsentAccepted",()=>{console.log("trackingConsentAccepted event fired")})}handleDecline(){window.Shopify.customerPrivacy.setTrackingConsent(!1,this.toggleCookie.bind(this,!1))}initCookieBanner(){const e2=window.Shopify.customerPrivacy,t2=e2.userCanBeTracked(),i2=e2.getTrackingConsent();t2&&i2==="no_interaction"?this.toggleCookie():this.remove()}}customElements.define("cookie-banner",s);class r extends HTMLElement{constructor(){super(),this.time=this.dataset.time,this.timer=null,this.timeText=this.querySelector("[data-time]"),this.redirectUrl=this.querySelector("[href]").getAttribute("href"),this.init()}init(){clearInterval(this.timer),this.timeText.innerText=this.time+"s",this.timer=setInterval(()=>{this.timeText.innerText=--this.time+"s",this.time<=0&&(clearInterval(this.timer),this.redirect(this.redirectUrl))},1e3)}redirect(e2="/"){Shopify.designMode||(window.location.href=e2)}}customElements.define("section-redirect",r);class o extends HTMLElement{constructor(){super();let e2=null;const t2=this.dataset.time,i2=UIkit.countdown(this,{date:t2});this.classList.toggle("uk-hidden",!i2.timer),e2=setInterval(()=>{Date.parse(t2)-new Date().getTime()<0&&(this.remove(),window.dispatchEvent(new Event("countdown-end")),clearInterval(e2))},100)}}customElements.define("countdown-time",o)})(); 2//# sourceMappingURL=/cdn/shop/t/5/assets/custom-components.js.map?v=43761958837161809561776764289
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.