PageSourceSearch

https://moshimoshimind.com/cdn/shop/t/13/assets/custom.js?v=66282098100872350911789564523

js moshimoshimind.com collected 2026-10-02 05:01:28 UTC 7,593 bytes, 16 lines download raw bytes

1function getMaxHeight({elems}){let maxHeight=0;return elems?(elems.forEach(elem=>{const height=elem.offsetHeight;console.log("height: ",height),height>maxHeight&&(maxHeight=height)}),maxHeight):0}const announcementBarWrapper=document.querySelector('[data-section-type="announcement-bar"] .AnnouncementBar__Wrapper');if(announcementBarWrapper){const barElems=announcementBarWrapper.querySelectorAll(".AnnouncementBar__Content"),barElemsInner=announcementBarWrapper.querySelectorAll(".AnnouncementBar__Content-inner"),sliderTime=document.querySelector('[data-section-type="announcement-bar"]').hasAttribute("data-sliderTime")?document.querySelector('[data-section-type="announcement-bar"]').dataset.sliderTime*1e3:5e3;if(1<barElems.length){let lastActive,currentActive,counter=0,activeSlider=!1;const setActive=position=>{currentActive&&(lastActive=currentActive,lastActive.classList.add("last-active"),currentActive.classList.remove("active"),setTimeout(()=>{lastActive&&lastActive.classList.remove("last-active")},700)),barElems[position].classList.add("active"),currentActive=barElems[position],counter<barElems.length-1?counter=++counter:counter=0};let interval=setInterval(()=>{setActive(counter)},sliderTime);const stopinterval=()=>{clearInterval(interval)};if(window.addEventListener("resize",function(){if(window.matchMedia("(max-width: 641px)").matches){const maxHeight=getMaxHeight({elems:barElemsInner});announcementBarWrapper.style.height=`${maxHeight}px`,activeSlider||(activeSlider=!0,interval=setInterval(()=>{setActive(counter)},sliderTime))}else activeSlider=!1,announcementBarWrapper.style.height="auto",stopinterval()}),barElems&&(window.matchMedia("(max-width: 641px)").matches?(activeSlider=!0,setActive(counter)):(activeSlider=!1,stopinterval())),window.matchMedia("(max-width: 641px)").matches){const maxHeight=getMaxHeight({elems:barElemsInner});announcementBarWrapper.style.height=`${maxHeight}px`}}}class PageContentPopup{constructor({url}){this.dom={},this.settings={url},document.body.classList.add("loading"),this.getContent()}getContent(){fetch(this.settings.url,{mode:"cors"}).then(response=>response.text()).then(content=>{this.settings.content=content,this.init()}).catch(()=>{document.body.classList.remove("loading")})}init(){this.dom.popup=this.returnHtml(),this.addEventListeners(),document.body.appendChild(this.dom.popup),setTimeout(()=>{this.open(),document.body.classList.remove("loading")},20)}returnHtml(){const htmlString=`
2        <aside class="light-modal">
3            <div class="light-modal__overlay" data-close></div>
4                <div class="light-modal__container">
5                    <button class="light-modal__close" data-close>
6                        <svg class="Icon Icon--close " role="presentation" viewBox="0 0 16 14">
7                            <path d="M15 0L1 14m14 0L1 0" stroke="currentColor" fill="none" fill-rule="evenodd"></path>
8                        </svg>
9                    </button>
10                    <div class="light-modal__inner">
11                    ${this.settings.content}
12                    </div>
13                </div>
14            </div>
15        </aside>`;var div=document.createElement("div");return div.innerHTML=htmlString.trim(),div.firstChild}addEventListeners(){this.dom.closeElems=this.dom.popup.querySelectorAll("[data-close]"),this.dom.closeElems&&this.dom.closeElems.forEac
15h(closeButtom=>{closeButtom.addEventListener("click",()=>{this.close()})})}open(){this.dom.popup.classList.add("open"),window.scrollLock.disablePageScroll()}close(){this.dom.popup.classList.remove("open"),window.scrollLock.enablePageScroll()}}const pageContentPupupButtons=document.querySelectorAll(".js-page-content-popup");pageContentPupupButtons.forEach(pageContentPupupButton=>{const url=pageContentPupupButton.hasAttribute("data-url")?pageContentPupupButton.dataset.url:null;if(!url){pageContentPupupButton.remove();return}let popup=null;pageContentPupupButton.classList.remove("js-page-content-popup"),pageContentPupupButton.addEventListener("click",e=>{e.preventDefault(),popup===null?popup=new PageContentPopup({url}):popup.open()})});{let storedProductSkusInSession=JSON.parse(sessionStorage.getItem("productSkus")),globalFilterKeywords=[],globalFilterKeywordsInit=!1;class CustomfilterKeyword{constructor(elem,index,keepGlobalFilterKeywords){this.dom={main:elem,input:elem.querySelector(".js--keyword"),counter:elem.querySelector(".js--count")},this.options={keepIndex:keepGlobalFilterKeywords},this.dom.main.classList.add("is-init"),this.index=index,this.init()}init(){this.eventlisteners(),setTimeout(()=>{this.dom.input.classList.add("animate")},100)}eventlisteners(){this.dom.input.addEventListener("click",e=>{e.stopPropagation(),this.setChecked(),this.verify()}),document.addEventListener("allCustomfilterKeyword:init",()=>{this.setCheckedByUrl()},{once:!0}),this.addCounter()}addCounter(){let totalCount=0;document.querySelectorAll(".js--list").forEach(element=>{element.value.includes(this.dom.input.value)&&element.hasAttribute("data-count")&&(totalCount+=Number(element.getAttribute("data-count")))}),this.dom.counter.innerText=`(${totalCount})`}setCheckedByUrl(){const url=new URL(window.location.href),urlParam
15s=new URLSearchParams(url.search),_this=this;if(urlParams)for(var value of urlParams.values())value===_this.dom.input.value&&(_this.dom.input.checked=!0,this.setChecked())}setChecked(){globalFilterKeywordsInit&&globalFilterKeywords.filter(x=>x.dom.input.value==this.dom.input.value).forEach(matchingKey=>{matchingKey.dom.input.checked=this.dom.input.checked})}verify(){let arrayOfCheckedItems=[];globalFilterKeywords.forEach(opt=>{opt.dom.input.checked&&arrayOfCheckedItems.push(opt)}),document.querySelectorAll('input[name="'+this.dom.input.name+'"].js--list').forEach(opt=>{arrayOfCheckedItems.some(k=>opt.value.includes(k.dom.input.value))?opt.checked=!0:opt.checked=!1})}}const initCustomFilter=({keepGlobalFilterKeywords=!1})=>{document.querySelectorAll(".js--custom_filter:not(.is-init)").forEach((keyword,index)=>{const filterKeyword=new CustomfilterKeyword(keyword,index,keepGlobalFilterKeywords);keepGlobalFilterKeywords===!1&&globalFilterKeywords.push(filterKeyword)}),globalFilterKeywordsInit=!0,document.dispatchEvent(new CustomEvent("allCustomfilterKeyword:init"))};initCustomFilter({}),document.addEventListener("filter:reloaded",()=>{initCustomFilter({keepGlobalFilterKeywords:!0})})}document.addEventListener("DOMContentLoaded",function(){const firstAccordion=document.querySelector(".ProductForm .Collapsible.Collapsible--large");if(!firstAccordion)return;const button=firstAccordion.querySelector('[data-action="toggle-collapsible"]');button&&button.getAttribute("aria-expanded")==="false"&&button.click()}),document.addEventListener("DOMContentLoaded",function(){if(!window.matchMedia("(max-width: 767px)").matches)return;const addToCartButton=document.querySelector('.ProductForm__AddToCart[data-action="add-to-cart"]'),stickyButton=document.querySelector(".button-scroll-to-addtocart");if(!addToCartButton||!stickyButton)return;new IntersectionObserver(function(entries){const entry=entries[0];if(entry.isIntersecting){stickyButton.classList.remove("active");return}entry.boundingClientRect.top<0?stickyButton.classList.add("active"):stickyButton.classList.remove("active")},{threshold:0}).observe(addToCartButton),stickyButton.addEventListener("click",function(){stickyButton.classList.remove("active"),addToCartButton.scrollIntoView({behavior:"smooth",block:"center"})})});
16//# sourceMappingURL=/cdn/shop/t/13/assets/custom.js.map?v=66282098100872350911789564523

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.