PageSourceSearch

https://istyle.sk/cdn/shop/t/3/compiled_assets/scripts.js?v=80298964110288814611789155482

js istyle.sk collected 2026-10-07 19:23:46 UTC 13,534 bytes, 2 lines download raw bytes

1(function(){var __sections__={};(function(){for(var i=0,s=document.getElementById("sections-script").getAttribute("data-sections").split(",");i<s.length;i++)__sections__[s[i]]=!0})(),(function(){if(!(!__sections__["apple-video-popup"]&&!Shopify.designMode))try{customElements.get("apple-video-popup")||customElements.define("apple-video-popup",class extends HTMLElement{connectedCallback(){this.abort||(this.abort=new AbortController,this.dialog=this.querySelector("dialog"),this.video=this.querySelector("video"),this.link=this.querySelector(".apple-popup-link"),this.playButton=this.querySelector("[data-play]"),!(!this.dialog||!this.video||!this.link)&&(this.editor=this.dataset.editor==="true",this.startedAt=performance.now(),this.clockBase=Number(this.dataset.serverNow)*1e3,this.clockAt=performance.now(),this.key="istyle_apple_popup_"+this.dataset.campaign.replace(/[^a-z0-9_-]/gi,"_"),this.desktop=matchMedia("(min-width: 768px)"),this.reducedMotion=matchMedia("(prefers-reduced-motion: reduce)"),this.on(this.querySelector("[data-close]"),"click",()=>this.close()),this.on(this.querySelector("[data-preview]"),"click",()=>this.open()),this.on(this.dialog,"close",()=>this.restore()),this.on(this.dialog,"keydown",event=>{if(event.key!=="Tab")return;const items=[...this.dialog.querySelectorAll("button, a[href]")].filter(element=>!element.hidden&&element.getClientRects().length>0),first=items[0],last=items[items.length-1];(event.shiftKey&&document.activeElement===first||!event.shiftKey&&document.activeElement===last)&&(event.preventDefault(),(event.shiftKey?last:first)?.focus())}),this.on(this.dialog,"click",event=>{if(event.target!==this.dialog)return;const rect=this.dialog.getBoundingClientRect();(event.clientX<rect.left||event.clientX>rect.right||event.clientY<rect.top||event.clientY>rect.bottom)&&this.close()}),this.on(this.playButton,"click",()=>this.play()),this.on(this.link,"click",()=>{this.track("select_promotion"),this.close()}),this.on(this.video,"error",()=>{this.video.getAttribute("src")&&(this.playButton.hidden=!0,this.video.poster||(this.video.hidden=!0,this.querySelector(".apple-popup-fallback").hidden=!1))}),this.on(this.desktop,"change",()=>{this.dialog.open&&this.loadVideo()}),this.on(this.reducedMotion,"change",()=>{this.reducedMotion.matches&&this.dialog.open&&(this.video.pause(),this.playButton.hidden=!1)}),this.on(document,"visibilitychange",()=>{document.hidden&&this.dialog.open&&(this.video.pause(),this.playButton.hidden=!1),this.tick()}),this.on(window,"pageshow",()=>this.tick()),this.on(window,"pagehide",()=>this.close()),["CookiebotOnAccept","CookiebotOnDecline","CookiebotOnDialogHide","CookiebotOnDialogDisplay","CookiebotOnConsentReady"].forEach(name=>this.on(window,name,()=>this.tick())),!this.editor&&this.dataset.enabled==="true"&&this.syncClock()))}on(target,event,callback){target?.addEventListener(event,callback,{signal:this.abort.signal})}disconnectedCallback(){clearTimeout(this.timer),this.close(),this.abort?.abort(),this.abort=null}async syncClock(){const controller=new AbortController,timeout=setTimeout(()=>controller.abort(),3e3);try{const response=await fetch(this.dataset.root||"/",{method:"HEAD",cache:"no-store",credentials:"same-origin",signal:controller.signal}),serverDate=Date.parse(response.headers.get("date")||"");response.ok&&Number.isFinite(serverDate)&&(this.clockBase=serverDate,this.clockAt=performance.now())}catch{}finally{clearTimeout(timeout),this.isConnected&&(this.clockReady=!0,this.tick())}}now(){return this.clockBase+performance.now()-this.clockAt}date(value){return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(Z|[+-]\d{2}:\d{2})$/.test(value)?Date.parse(value):NaN}consentReady(){const bot=window.Cookiebot;if(!bot)return!document.getElementById("Cookiebot");const banner=document.getElementById("CybotCookiebotDialog"),visible=banner&&getComputedStyle(banner).display!=="none"&&getComputedStyle(banner).visibility!=="hidden"&&banner.getClientRects().length>0;return bot.hasResponse===!0&&!bot.dialog?.visible&&!visible}seen(){return this.shown?!0:document.cookie.split(";").some(item=>item.trim().startsWith(this.key+"="))}tick(){if(clearTimeout(this.timer),this.editor||!this.isConnected||this.dataset.enabled!=="true"||!this.clockReady)return;const start=this.date(this.dataset.start),end=this.dataset.end?this.date(this.dataset.end):1/0;if(!Number.isFinite(start)||Number.isNaN(end)||end<=start||!this.link.getAttribute("href")||!this.dataset.desktop||!this.dataset.mobile)return;const now=this.now();if(now>=end){this.close();return}if(this.dialog.open){this.consentReady()?Number.isFinite(end)&&(this.timer=setTimeout(()=>this.tick(),Math.min(1e3,end-now))):this.close();return}if(this.seen()||/^\/(?:[a-z]{2}(?:-[a-z]{2})?\/)?(?:cart|checkout|checkouts|account)(?:\/|$)/i.test(location.pathname))return;if(now<start){this.timer=setTimeout(()=>this.tick(),Math.min(6e4,start-now));return}if(document.hidden||!this.consentReady()||document.querySelector("dialog[open], .hpstr_modal.open, .drawer.active")){this.readyAt=null,this.timer=setTimeout(()=>this.tick(),1e3);return}this.readyAt==null&&(this.readyAt=performance.now());const remaining=Number(this.dataset.delay)*1e3-(performance.now()-this.readyAt);if(remaining>0){this.timer=setTimeout(()=>this.tick(),remaining);return}this.open()}open(){if(!(this.dialog.open||!this.editor&&this.seen()||!this.link.getAttribute("href"))&&typeof this.dialog.showModal=="function"&&(this.previousFocus=document.activeElement,this.previousOverflow=document.documentElement.style.overflow,this.dialog.showModal(),document.documentElement.style.overflow="hidden",this.locked=!0,this.loadVideo(),this.querySelector("[data-close]").focus({preventScroll:!0}),!this.editor)){this.shown=!0;const seconds=Math.max(1,Number(this.dataset.hours)||24)*3600;document.cookie=this.key+"=1; Max-Age="+seconds+"; Path=/; SameSite=Lax; Secure",this.track("view_promotion"),this.tick()}}loadVideo(){const mobile=!this.desktop.matches;this.video.pause(),this.video.hidden=!1,this.querySelector(".apple-popup-fallback").hidden=!0,this.video.muted=!0,this.video.poster=mobile?this.dataset.mobilePoster:this.dataset.desktopPoster,this.video.src=mobile?this.dataset.mobile:this.dataset.desktop,this.video.load(),this.playButton.hidden=!this.reducedMotion.matches,this.reducedMotion.matches||this.play()}play(){if(!this.dialog.open)return;this.video.ended&&(this.video.currentTime=0),this.playButton.hidden=!0;const pending=this.video.play();pending&&pending.catch(()=>{this.dialog.open&&(this.playButton.hidden=!1)})}close(){this.video?.pause(),this.dialog?.open&&this.dialog.close(),this.restore(
1)}restore(){this.video?.pause(),this.locked&&(document.documentElement.style.overflow=this.previousOverflow,this.locked=!1,this.previousFocus?.isConnected&&this.previousFocus.focus({preventScroll:!0}))}track(eventName){if(this.editor||window.Cookiebot?.consent?.statistics!==!0)return;const promotion={creative_slot:"apple_video_popup",promotion_id:this.dataset.campaign,promotion_name:this.dataset.promotion,creative_name:this.dataset.creative+(this.desktop.matches?" Desktop":" Mobile")};try{eventName==="select_promotion"&&(sessionStorage.setItem("lastClickedPromotionId",promotion.promotion_id),sessionStorage.setItem("lastClickedPromotionName",promotion.promotion_name),sessionStorage.setItem("lastClickedCreativeName",promotion.creative_name),sessionStorage.setItem("lastClickedCreativeSlot",promotion.creative_slot)),window.PromotionTracking?.push(eventName,promotion)}catch{}}})}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".section-header"),this.headerIsAlwaysSticky=this.getAttribute("data-sticky-type")==="always"||this.getAttribute("data-sticky-type")==="reduce-logo-size",this.headerBounds={},this.setHeaderHeight(),window.matchMedia("(max-width: 990px)").addEventListener("change",this.setHeaderHeight.bind(this)),this.headerIsAlwaysSticky&&(this.header.classList.add("shopify-section-header-sticky"),document.dispatchEvent(new CustomEvent("headerSticky",{detail:{isSticky:!0}}))),this.currentScrollTop=0,this.preventReveal=!1,this.predictiveSearch=this.querySelector("predictive-search"),this.onScrollHandler=this.onScroll.bind(this),this.hideHeaderOnScrollUp=()=>this.preventReveal=!0,this.addEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}setHeaderHeight(){document.documentElement.style.setProperty("--header-height",`${this.header.offsetHeight}px`)}disconnectedCallback(){this.removeEventListener("preventHeaderReveal",this.hideHeaderOnScrollUp),window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(!(this.predictiveSearch&&this.predictiveSearch.isOpen)){if(scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom){if(this.header.classList.add("scrolled-past-header"),this.preventHide)return;requestAnimationFrame(this.hide.bind(this))}else scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(this.header.classList.add("scrolled-past-header"),this.preventReveal?(window.clearTimeout(this.isScrolling),this.isScrolling=setTimeout(()=>{this.preventReveal=!1},66),requestAnimationFrame(this.hide.bind(this))):requestAnimationFrame(this.reveal.bind(this))):scrollTop<=this.headerBounds.top&&(this.header.classList.remove("scrolled-past-header"),requestAnimationFrame(this.reset.bind(this)));this.currentScrollTop=scrollTop}}hide(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),document.dispatchEvent(new CustomEvent("headerSticky",{detail:{isSticky:!1}})),this.closeMenuDisclosure())}reveal(){this.headerIsAlwaysSticky||(this.header.classList.add("shopify-section-header-sticky","animate"),document.dispatchEvent(new CustomEvent("headerSticky",{detail:{isSticky:!0}})),this.header.classList.remove("shopify-section-header-hidden"))}reset(){this.headerIsAlwaysSticky||(this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate"),document.dispatchEvent(new CustomEvent("headerSticky",{detail:{isSticky:!1}})))}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("header-menu"),this.disclosures.forEach(disclosure=>disclosure.close())}closeSearchModal(){this.searchModal=this.searchModal||this.header.querySelector("details-modal"),this.searchModal.close(!1)}}customElements.define("sticky-header",StickyHeader)}catch(e){console.error(e)}})(),(function(){if(__sections__["product-recommendations-cart"])try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");
1html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML),html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded")}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__["product-recommendations"])try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML),html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded")}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["related-products"]&&!Shopify.designMode))try{class ProductRecommendations extends HTMLElement{constructor(){super();const handleIntersection=(entries,observer)=>{entries[0].isIntersecting&&(observer.unobserve(this),fetch(this.dataset.url).then(response=>response.text()).then(text=>{const html=document.createElement("div");html.innerHTML=text;const recommendations=html.querySelector("product-recommendations");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML),html.querySelector(".grid__item")&&this.classList.add("product-recommendations--loaded")}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/3/compiled_assets/scripts.js.map?v=80298964110288814611789155482

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.