PageSourceSearch

https://mymokafe.com/cdn/shop/t/2/compiled_assets/scripts.js?v=142160840923345351481779736493

js mymokafe.com collected 2026-10-07 00:30:19 UTC 19,141 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__["banner-with-text"]&&!Shopify.designMode))try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],banner_with_text=()=>{let headerOverlay=document.querySelector(".overlay"),pageAbout=document.querySelector(".page-about"),pageLookbook=document.querySelector(".page-lookbook"),breadCrumb=document.querySelector(".main-breadcrumb"),colorScheme=document.querySelector(".header-color-light"),colorSchemeDark=document.querySelector(".header-color-dark"),firstSection=document.querySelector("main section:first-of-type");if(headerOverlay&&firstSection.classList.contains("section-banner-with-text")){document.querySelector("main").classList.add("page-about");let pageAbout2=document.querySelector(".page-about"),pageLookbook2=document.querySelector(".page-lookbook");colorScheme&&(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5"),(pageAbout2||pageLookbook2)&&breadCrumb&&breadCrumb.classList.add("color-background-5")),colorSchemeDark&&(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1"),(pageAbout2||pageLookbook2)&&breadCrumb&&breadCrumb.classList.remove("color-background-5"))}else colorScheme&&(pageAbout||pageLookbook)&&breadCrumb&&breadCrumb.classList.add("color-background-5"),colorSchemeDark&&(pageAbout||pageLookbook)&&breadCrumb&&breadCrumb.classList.remove("color-background-5")};banner_with_text(),events.forEach(function(item){document.addEventListener(item,function(){banner_with_text()})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["featured-product"]&&!Shopify.designMode))try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.constProductPageSwiperCall()}showActiveMedia(){this.querySelectorAll(`[data-media-id]:not([data-media-id="${this.openedBy.getAttribute("data-media-id")}"])`).forEach(element=>{element.classList.remove("active")});const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`),activeMediaTemplate=activeMedia.querySelector("template"),activeMediaContent=activeMediaTemplate?activeMediaTemplate.content:null;activeMedia.classList.add("active"),activeMedia.scrollIntoView(),activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMediaContent&&activeMediaContent.querySelector(".js-youtube")&&activeMedia.loadContent()}constProductPageSwiperCall(showActiveMedia){const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);let activeMediaIndex=0;this.querySelectorAll(".swiper-slide").forEach((element,index)=>{element==activeMedia&&(activeMediaIndex=index)});const prodPageSwiper=new Swiper("#product-page-swiper",{zoom:!0,centeredSlides:!1,slidesPerView:1,autoheight:!0,watchSlidesVisibility:!1,watchSlidesProgress:!0,observer:!0,observeParents:!0,init:!1,navigation:{nextEl:".swiper-button-next-prod-page",prevEl:".swiper-button-prev-prod-page"},pagination:{el:".swiper-pagination-product-page",clickable:!0},on:{click:function(e){this.zoom.scale===1?this.zoom.in():this.zoom.out()}}});prodPageSwiper.on("init",function(){prodPageSwiper.slideTo(activeMediaIndex,0,!1)}),prodPageSwiper.init(),document.querySelector(".product-media-modal__toggle").addEventListener("click",function(){prodPageSwiper.destroy()})}}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)}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-modal",ProductModal),customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__.footer)try{class LocalizationForm extends HTMLElement{constructor(){super(),this.elements={input:this.querySelector('input[name="locale_code"], input[name="country_code"]'),button:this.querySelector("button"),panel:this.querySelector("ul")},this.elements.button.addEventListener("click",this.openSelector.bind(this)),this.elements.button.addEventListener("focusout",this.closeSelector.bind(this)),this.addEventListener("keyup",this.onContainerKeyUp.bind(this)),this.querySelectorAll("a").forEach(item=>item.addEventListener("click",this.onItemClick.bind(this)))}hidePanel(){this.elements.button.setAttribute("aria-expanded","fal
1se"),this.elements.panel.setAttribute("hidden",!0)}onContainerKeyUp(event){event.code.toUpperCase()==="ESCAPE"&&(this.hidePanel(),this.elements.button.focus())}onItemClick(event){event.preventDefault(),this.elements.input.value=event.currentTarget.dataset.value,this.querySelector("form")?.submit()}openSelector(){this.elements.button.focus(),this.elements.panel.toggleAttribute("hidden"),this.elements.button.setAttribute("aria-expanded",(this.elements.button.getAttribute("aria-expanded")==="false").toString())}closeSelector(event){const shouldClose=event.relatedTarget&&event.relatedTarget.nodeName==="BUTTON";(event.relatedTarget===null||shouldClose)&&this.hidePanel()}}customElements.define("localization-form",LocalizationForm)}catch(e){console.error(e)}})(),(function(){if(__sections__.header)try{class StickyHeader extends HTMLElement{constructor(){super()}connectedCallback(){this.header=document.querySelector(".shopify-section-header"),this.header_overlay=document.querySelector(".header"),this.headerOverlay=document.querySelector(".overlay"),this.headerBounds={},this.predictiveSearch=this.querySelector("predictive-search"),this.currentScrollTop=0,this.onScrollHandler=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollHandler,!1),this.createObserver()}disconnectedCallback(){window.removeEventListener("scroll",this.onScrollHandler)}createObserver(){new IntersectionObserver((entries,observer2)=>{this.headerBounds=entries[0].intersectionRect,observer2.disconnect()}).observe(this.header)}onScroll(){let logoSlideshowFirst=document.querySelector(".first-logo-slideshow");const scrollTop=window.pageYOffset||document.documentElement.scrollTop;if(logoSlideshowFirst){let logoSlideshowFirstHeight=logoSlideshowFirst.offsetHeight;scrollTop>this.currentScrollTop&&scrollTop>logoSlideshowFirstHeight&&scrollTop>this.headerBounds.bottom?(requestAnimationFrame(this.hide.bind(this)),this.predictiveSearch&&this.predictiveSearch.onFocusOut&&(this.predictiveSearch.onFocusOut(),this.predictiveSearch.onBlur())):scrollTop-logoSlideshowFirstHeight<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?requestAnimationFrame(this.reveal.bind(this)):scrollTop-logoSlideshowFirstHeight<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this)),this.currentScrollTop=scrollTop}else scrollTop>this.currentScrollTop&&scrollTop>this.headerBounds.bottom?(requestAnimationFrame(this.hide.bind(this)),this.predictiveSearch&&this.predictiveSearch.onFocusOut&&(this.predictiveSearch.onFocusOut(),this.predictiveSearch.onBlur())):scrollTop<this.currentScrollTop&&scrollTop>this.headerBounds.bottom?requestAnimationFrame(this.reveal.bind(this)):scrollTop<=this.headerBounds.top&&requestAnimationFrame(this.reset.bind(this)),this.currentScrollTop=scrollTop}hide(){this.header.classList.add("shopify-section-header-hidden","shopify-section-header-sticky"),this.closeMenuDisclosure()}reveal(){this.header.classList.add("shopify-section-header-sticky","animate"),this.header.classList.add("shopify-section-header-sticky","animate"),this.headerOverlay&&this.header_overlay.classList.add("header_overlay-scroll"),this.header.classList.remove("shopify-section-header-hidden")}reset(){this.headerOverlay&&this.header_overlay.classList.remove("header_overlay-scroll"),this.header.classList.remove("shopify-section-header-hidden","shopify-section-header-sticky","animate")}closeMenuDisclosure(){this.disclosures=this.disclosures||this.header.querySelectorAll("details-disclosure"),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);const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],header_overlay=()=>{let headerOverlay=document.querySelector(".overlay"),headerHeightOverlay=headerOverlay&&headerOverlay.offsetHeight;document.documentElement.style.setProperty("--my-header-height",headerHeightOverlay+"px"),headerOverlay?document.querySelector("main").classList.add("header_overlay"):document.querySelector("main").classList.remove("header_overlay")};
1header_overlay(),events.forEach(function(item){document.addEventListener(item,function(){header_overlay()})})}catch(e){console.error(e)}})(),(function(){if(__sections__["main-article"])try{for(const p of document.querySelectorAll(".article-template__content p"))p.innerText==p.innerHTML&&p.classList.add("only");for(const p of document.querySelectorAll(".article-template__content p > a"))p.parentElement.classList.add("only")}catch(e){console.error(e)}})(),(function(){if(__sections__["main-blog"])try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],blog_header_overlay=()=>{let headerOverlay=document.querySelector(".overlay"),colorScheme=document.querySelector(".header-color-light");headerOverlay&&(colorScheme?(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5")):(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1")))};blog_header_overlay(),events.forEach(function(item){document.addEventListener(item,function(){blog_header_overlay()})})}catch(e){console.error(e)}})(),(function(){if(__sections__["main-cart-footer"])try{class CartNote extends HTMLElement{constructor(){super(),this.addEventListener("change",debounce(event=>{const body=JSON.stringify({note:event.target.value});fetch(`${routes.cart_update_url}`,{...fetchConfig(),body})},300))}}customElements.define("cart-note",CartNote)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-collection-banner"])try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],main_collection_banner=()=>{let headerOverlay=document.querySelector(".overlay"),colorScheme=document.querySelector(".header-color-light");headerOverlay&&(colorScheme?(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5")):(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1")))};main_collection_banner(),events.forEach(function(item){document.addEventListener(item,function(){main_collection_banner()})})}catch(e){console.error(e)}})(),(function(){if(__sections__["main-login"])try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],account_header_overlay=()=>{let headerOverlay=document.querySelector(".overlay"),colorScheme=document.querySelector(".header-color-light");headerOverlay&&(colorScheme?(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5")):(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1")))};account_header_overlay(),events.forEach(function(item){document.addEventListener(item,function(){account_header_overlay()})})}catch(e){console.error(e)}})(),(function(){if(__sections__["main-product"])try{class ProductModal extends ModalDialog{constructor(){super()}hide(){super.hide(),window.pauseAllMedia()}show(opener){super.show(opener),this.constProductPageSwiperCall()}showActiveMedia(){this.querySelectorAll(`[data-media-id]:not([data-media-id="${this.openedBy.getAttribute("data-media-id")}"])`).forEach(element=>{element.classList.remove("active")});const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`),activeMediaTemplate=activeMedia.querySelector("template"),activeMediaContent=activeMediaTemplate?activeMediaTemplate.content:null;activeMedia.classList.add("active"),activeMedia.scrollIntoView(),activeMedia.nodeName=="DEFERRED-MEDIA"&&activeMediaContent&&activeMediaContent.querySelector(".js-youtube")&&activeMedia.loadContent()}constProductPageSwiperCall(showActiveMedia){const activeMedia=this.querySelector(`[data-media-id="${this.openedBy.getAttribute("data-media-id")}"]`);let activeMediaIndex=0;this.querySelectorAll(".swiper-slide").forEach((element,index)=>{element==activeMedia&&(activeMediaIndex=index)});const prodPageSwiper=new Swiper("#product-page-swiper",{zoom:!0,centeredSlides:!1,slidesPerView:1,autoheight:!0,watchSlidesVisibility:!1,watchSlidesProgress:!0,observer:!0,observeParents:!0,init:!1,navigation:{nextEl:".swiper-button-next-prod-page",prevEl:".swiper-button-prev-prod-page"},pagination:{el:".swiper-pagination-product-page",clickable:!0},on:{click:function(e){this.zoom.scale===1?this.zoom.in():this.zoom.out()}}});prodPageSwiper.on("init",function(){prodPageSwiper.slideTo(activeMediaIndex,0,!1)}),prodPageSwiper.init(),document.querySelector(".product-media-modal__toggle").addEventListener("click",function(){prodPageSwiper.destroy()})}}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)}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-modal",ProductModal),customElements.define("product-recommendations",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(__sections__["main-register"])try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],account_header_overlay=()=>{let headerOverlay=document.querySelector(".overlay"),colorScheme=document.querySelector(".header-color-light");headerOverlay&&(colorScheme?(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5")):(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1")))};account_header_overlay(),events.forEach(function(item){document.addEventListener(item,function(){account_header_overlay()})})}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-also-like");recommendations&&recommendations.innerHTML.trim().length&&(this.innerHTML=recommendations.innerHTML)}).catch(e=>{console.error(e)}))};new IntersectionObserver(handleIntersection.bind(this),{rootMargin:"0px 0px 200px 0px"}).observe(this)}}customElements.define("product-recommendations-also-like",ProductRecommendations)}catch(e){console.error(e)}})(),(function(){if(!(!__sections__.slideshow&&!Shopify.designMode))try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],slideshow_section=()=>{let headerOverlay=document.querySelector(".overlay"),page=document.querySelector(".template-page"),breadCrumb=document.querySelector(".main-breadcrumb"),firstSection=document.querySelector("main section:first-of-type");page&&headerOverlay&&firstSection.classList.contains("slideshow-section")&&breadCrumb&&(breadCrumb.classList.add("template-page-breadcrumb"),headerOverlay.classList.contains("theme-dark")&&breadCrumb.classList.add("color-background-5"))};slideshow_section(),events.forEach(function(item){document.addEventListener(item,function(){slideshow_section()})})}catch(e){console.error(e)}})(),(function(){if(!(!__sections__["video-banner"]&&!Shopify.designMode))try{const events=["shopify:section:reorder","shopify:section:deselect","shopify:section:select","shopify:section:unload","shopify:section:load"],banner_video=()=>{let headerOverlay=document.querySelector(".overlay"),pageAbout=document.querySelector(".page-about"),pageLookbook=document.querySelector(".page-lookbook"),breadCrumb=document.querySelector(".main-breadcrumb"),colorScheme=document.querySelector(".header-color-light"),colorSchemeDark=document.querySelector(".header-color-dark"),firstSection=document.querySelector("section:first-of-type");if(headerOverlay&&firstSection.classList.contains("video-banner-section")){document.querySelector("main").classList.add("page-about");let pageAbout2=document.querySelector(".page-about"),pageLookbook2=document.querySelector(".page-lookbook");colorScheme&&(headerOverlay.classList.add("theme-dark"),headerOverlay.classList.add("header-color-background-5"),(pageAbout2||pageLookbook2)&&breadCrumb.classList.add("color-background-5")),colorSchemeDark&&(headerOverlay.classList.remove("theme-dark"),headerOverlay.classList.remove("header-color-background-5"),headerOverlay.classList.add("color-background-1"),(pageAbout2||pageLookbook2)&&breadCrumb.classList.remove("color-background-5"))}else colorScheme&&(pageAbout||pageLookbook)&&breadCrumb.classList.add("color-background-5"),colorSchemeDark&&(pageAbout||pageLookbook)&&breadCrumb.classList.remove("color-background-5")};
1banner_video(),events.forEach(function(item){document.addEventListener(item,function(){banner_video()})})}catch(e){console.error(e)}})()})();
2//# sourceMappingURL=/cdn/shop/t/2/compiled_assets/scripts.js.map?v=142160840923345351481779736493

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.