PageSourceSearch

https://nominalx.com/cdn/shop/t/407/assets/__sapp-custom.js?v=61314300217287752241789968159

js nominalx.com collected 2026-09-24 09:26:48 UTC 11,480 bytes, 2 lines download raw bytes

1window.__sapp=window.__sapp||{},window.__sapp.handlers=window.__sapp.handlers||{},(function(S){(function dpoRetry(tries){if(!(tries>60)){if(!window.dpoObserver||!window.meta||!window.meta.product){setTimeout(function(){dpoRetry(tries+1)},100);return}if(!window.dpoObserver.productId){window.dpoObserver.variantId=null;try{window.dpoObserver.loadOptions()}catch(e){console.warn("DPO retry failed",e)}}}})(0);function injectFaq(){var target=document.querySelector(".ProductMeta__Description .easyslider-contents");if(!target)return!1;if(target.querySelector(".eg-minifaq"))return!0;var scripts=document.querySelectorAll("[data-product-qa-block]");if(!scripts.length)return!1;for(var items=[],i=0;i<scripts.length;i++)try{items.push(JSON.parse(scripts[i].textContent))}catch(e){}if(!items.length)return!1;var baseId="es-qa-"+Date.now(),html=items.map(function(item,idx){var id=baseId+"-"+idx,question=(item.question||"").replace(/</g,"&lt;").replace(/>/g,"&gt;"),answer=item.answer||"";return'<div class="easyslider-item easyslider-item-static" data-es-marker="sapp-faq-'+idx+'" data-es-handle="slide-faq-'+idx+'"><div class="easyslider-header" tabindex="0" aria-expanded="false" aria-labelledby="easyslider-label-'+id+'" aria-controls="easyslider-content-'+id+'" role="button"><div class="easyslider-anchor"><span class="easyslider-header-text" id="easyslider-label-'+id+'">'+question+'</span><span class="easyslider-glyph"></span></div></div><div class="easyslider-content" id="easyslider-content-'+id+'" aria-hidden="true" aria-labelledby="easyslider-label-'+id+'" role="region"><div class="easyslider-content-wrapper">'+answer+"</div></div></div>"}).join("")+'<div class="eg-minifaq"><p>FAQ</p></div>';target.insertAdjacentHTML("beforeend",html),document.body.classList.add("EG-NMNPPAB12");var minifaq=target.querySelector(".eg-minifaq");return minifaq&&!minifaq._faqHandlerBound&&(minifaq._faqHandlerBound=!0,minifaq.addEventListener("click",function(e){e.preventDefault();var anchor=document.querySelector("#customers-ask");if(anchor){var offset=window.innerWidth<=768?100:150,top=anchor.getBoundingClientRect().top+window.pageYOffset-offset;window.scrollTo({top:top,behavior:"smooth"})}})),!0}function startFaqInjector(){var startedAt=Date.now(),iv=setInterval(function(){injectFaq(),Date.now()-startedAt>3e4&&clearInterval(iv)},300)}document.readyState==="complete"||document.readyState==="interactive"?startFaqInjector():document.addEventListener("DOMContentLoaded",startFaqInjector,{once:!0});function buildEgThumbnailsEarly(){if(window.innerWidth>=767||document.querySelector(".eg-thumbnails"))return!0;var gallery=document.querySelector(".Product__Wrapper .Product__Gallery, .Product__Slideshow");if(!gallery)return!1;for(var slideshow=gallery.matches(".Product__Slideshow")?gallery:gallery.querySelector(".Product__Slideshow")||gallery,imgs=slideshow.querySelectorAll(".Product__SlideshowSlide img, .Image--mediaWrapper img, img"),seen={},uniq=[],i=0;i<imgs.length;i++){var raw=imgs[i].getAttribute("data-original-src")||imgs[i].getAttribute("data-src")||imgs[i].getAttribute("src")||"";if(raw){var key=raw.replace(/[?#].*$/,"");seen[key]||(seen[key]=1,uniq.push(raw))}}if(!uniq.length)return!1;var wrap=document.createElement("div");wrap.className="eg-thumbnails";var container=document.createElement("div");return container.className="eg-container",wrap.appendChild(container),uniq.forEach(function(src,index){var href=src;href.indexOf("//")===0&&(href="https:"+href);var thumb=document.createElement("div");thumb.className="eg-thumbnail"+(index===0?" active":""),thumb.setAttribute("aria-label","Show image "+(index+1)),thumb.innerHTML='<img src="'+href+'" alt="Thumbnail '+(index+1)+'" loading="lazy" decoding="async">',thumb.addEventListener("click",function(){var flickityEl=slideshow.classList.contains("flickity-enabled")?slideshow:slideshow.querySelector(".flickity-enabled");if(flickityEl&&typeof window.Flickity!="undefined"){var flkty=window.Flickity.data(flickityEl);if(flkty){flkty.select(index);return}}var slides=slideshow.querySelectorAll(".Product__SlideshowSlide, .flickity-slider > *");slides[index]&&slides[index].click()}),container.appendChild(thumb)}),slideshow.parentNode.insertBefore(wrap,slideshow.nextSibling),document.body.classList.add("EG-NMNPPAB11"),!0}
1function startEgThumbnailsEarly(){if(!buildEgThumbnailsEarly())var tries=0,iv=setInterval(function(){(buildEgThumbnailsEarly()||++tries>40)&&clearInterval(iv)},50)}document.readyState==="complete"||document.readyState==="interactive"?startEgThumbnailsEarly():document.addEventListener("DOMContentLoaded",startEgThumbnailsEarly,{once:!0}),document.addEventListener("click",function(e){var t=e.target;if(!(!t||!t.closest)){var openBtn=t.closest('[data-action="open-drawer"][data-drawer-id]');if(openBtn){var openId=openBtn.getAttribute("data-drawer-id"),openDrawer=openId&&document.getElementById(openId);if(openDrawer){openDrawer.setAttribute("aria-hidden","false"),openDrawer.style.maxHeight=window.innerHeight+"px",document.documentElement.classList.add("no-scroll"),openBtn.hasAttribute("aria-expanded")&&openBtn.setAttribute("aria-expanded","true");var overlayO=document.querySelector(".PageOverlay");if(overlayO&&overlayO.classList.add("is-visible"),openId==="sidebar-menu"){var ab28root=document.getElementById("ab28-drawer-root");if((!ab28root||!ab28root.firstElementChild)&&(document.body.classList.add("ab28-fallback"),ab28root&&!ab28root._sappObserved)){ab28root._sappObserved=!0;var mo=new MutationObserver(function(){ab28root.firstElementChild&&(document.body.classList.remove("ab28-fallback"),mo.disconnect())});mo.observe(ab28root,{childList:!0})}}}e.preventDefault(),e.stopImmediatePropagation();return}var closeBtn=t.closest('[data-action="close-drawer"][data-drawer-id]');if(closeBtn){var closeId=closeBtn.getAttribute("data-drawer-id"),closeDrawer=closeId&&document.getElementById(closeId);if(closeDrawer){closeDrawer.setAttribute("aria-hidden","true"),document.documentElement.classList.remove("no-scroll");var overlayC=document.querySelector(".PageOverlay");overlayC&&overlayC.classList.remove("is-visible")}e.preventDefault(),e.stopImmediatePropagation();return}var popoverBtn=t.closest('[data-action="close-popover"]');if(popoverBtn){var popover=popoverBtn.closest(".Popover");if(popover){popover.setAttribute("aria-hidden","true"),document.documentElement.classList.remove("no-scroll");var overlayP=document.querySelector(".PageOverlay");overlayP&&overlayP.classList.remove("is-visible")}e.preventDefault(),e.stopImmediatePropagation()}}},!0),(function(){if(S.__soldoutMarkerInit)return;S.__soldoutMarkerInit=!0;var optionsMap=null;function uniq(arr){for(var seen={},out=[],i=0;i<arr.length;i++){var v=arr[i];seen[v]||(seen[v]=1,out.push(v))}return out}function buildMap(){var el=document.querySelector("[data-product-json]");if(!el)return null;var data;try{data=JSON.parse(el.textContent)}catch(e){return null}var product=data.product||data;if(!product||!product.variants)return null;for(var map={},optsLen=(product.options||[]).length,i=0;i<product.variants.length;i++){var v=product.variants[i];if(map.root=map.root||[],map.root.push(v.option1),map.root=uniq(map.root),v.available){if(optsLen>1){var k1=v.option1;map[k1]=map[k1]||[],map[k1].push(v.option2),map[k1]=uniq(map[k1])}if(optsLen===3){var k2=v.option1+" / "+v.option2;map[k2]=map[k2]||[],map[k2].push(v.option3),map[k2]=uniq(map[k2])}}}return map}function selectedValue(index){var pop=document.querySelector('.OptionSelector.Popover[data-option="'+index+'"] .Popover__Value.is-selected');if(pop)return pop.getAttribute("data-value");var radio=document.querySelector('.ProductForm__Option[data-option="'+index+'"] input[type="radio"]:checked');return radio?radio.value:null}function itemValue(el){var dv=el.getAttribute("data-value");if(dv!=null&&dv!=="")return dv;var input=el.querySelector("input");return input?input.value:null}function toggle(el,soldout){if(soldout){el.classList.add("soldout_variant");var i=el.querySelector("input");i&&i.setAttribute("aria-label","sold out")}else{el.classList.remove("soldout_variant");var v=itemValue(el),i2=el.querySelector("input");i2&&v!=null&&i2.setAttribute("aria-label",v)}}function updateIndex(index){if(optionsMap){var key;index===0?key="root":index===1?key=selectedValue(0):key=selectedValue(0)+" / "+selectedValue(1);var available=optionsMap[key];if(available)for(var items=document.querySelectorAll('.ProductForm__Option[data-option="'+index+'"] .HorizontalList__Item,.OptionSelector.Popover[data-option="'+index+'"] .Popover__Value'),i=0;i<items.length;i++){var v=itemValue(items[i]);toggle(items[i],available.indexOf(v)===-1)}}}function updateAll(){for(var opts=document.querySelectorAll(".ProductForm .ProductForm__Option--labelled,.ProductForm .OptionSelector.Popover"),i=1;i<opts.length;i++)updateIndex(i)}function bind(){document.addEventListener("change",function(e){e.target&&e.target.closest&&e.target.closest('.ProductForm__Option input[type="radio"]')&&setTimeout(updateAll,0)},!0),document.addEventListener("click",function(e){e.target&&e.target.closest&&e.target.closest(".OptionSelector.Popover .Popover__Value")&&setTimeout(updateAll,0)},!0),document.addEventListener("variant:changed",function(){setTimeout(updateAll,0)},!0)}(function init(tries){if(!(tries>
1100)){if(optionsMap||(optionsMap=buildMap()),!optionsMap||!document.querySelector(".ProductForm .ProductForm__Option--labelled,.ProductForm .OptionSelector.Popover")){setTimeout(function(){init(tries+1)},100);return}updateAll(),bind()}})(0)})()})(window.__sapp),loadjs=(function(){var h=function(){},c={},u={},f={};function o(e,n){if(e){var r2=f[e];if(u[e]=n,r2)for(;r2.length;)r2[0](e,n),r2.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function d(r2,t,s,i){var c2,o2,e=document,n=s.async,u2=(s.numRetries||0)+1,f2=s.before||h,l2=r2.replace(/[\?|#].*$/,""),a=r2.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(l2)?((o2=e.createElement("link")).rel="stylesheet",o2.href=a,(c2="hideFocus"in o2)&&o2.relList&&(c2=0,o2.rel="preload",o2.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(l2)?(o2=e.createElement("img")).src=a:((o2=e.createElement("script")).src=r2,o2.async=n===void 0||n),!(o2.onload=o2.onerror=o2.onbeforeload=function(e2){var n2=e2.type[0];if(c2)try{o2.sheet.cssText.length||(n2="e")}catch(e3){e3.code!=18&&(n2="e")}if(n2=="e"){if((i+=1)<u2)return d(r2,t,s,i)}else if(o2.rel=="preload"&&o2.as=="style")return o2.rel="stylesheet";t(r2,n2,e2.defaultPrevented)})!==f2(r2,o2)&&e.head.appendChild(o2)}function r(e,n,r2){var t,s;if(n&&n.trim&&(t=n),s=(t?r2:n)||{},t){if(t in c)throw"LoadJS";c[t]=!0}function i(n2,r3){(function(e2,t2,n3){var r4,s2,i2=(e2=e2.push?e2:[e2]).length,c2=i2,o2=[];for(r4=function(e3,n4,r5){if(n4=="e"&&o2.push(e3),n4=="b"){if(!r5)return;o2.push(e3)}--i2||t2(o2)},s2=0;s2<c2;s2++)d(e2[s2],r4,n3)})(e,function(e2){l(s,e2),n2&&l({success:n2,error:r3},e2),o(t,e2)},s)}if(s.returnPromise)return new Promise(i);i()}return r.ready=function(e,n){return(function(e2,r2){e2=e2.push?e2:[e2];var n2,t,s,i=[],c2=e2.length,o2=c2;for(n2=function(e3,n3){n3.length&&i.push(e3),--o2||r2(i)};c2--;)t=e2[c2],(s=u[t])?n2(t,s):(f[t]=f[t]||[]).push(n2)})(e,function(e2){l(n,e2)}),r},r.done=function(e){o(e,[])},r.reset=function(){c={},u={},f={}},r.isDefined=function(e){return e in c},r})(),loadJS=loadjs;
2//# sourceMappingURL=/cdn/shop/t/407/assets/__sapp-custom.js.map?v=61314300217287752241789968159

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.