PageSourceSearch

https://untuckit.co.uk/cdn/shop/t/493/assets/template.index.js?v=85350700842147381211791210891

js untuckit.co.uk collected 2026-10-07 13:57:19 UTC 6,109 bytes, 2 lines download raw bytes

1!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"fab4f8a8d9d1b60190690495a8ee19c997d71654"}}catch(e){}}(),(globalThis.webpackChunk||=[]).push([[335,853,915],{646(e,t,n){n.r(t),n.d(t,{getDeviceType:()=>l,isBelowDesktop:()=>r,isDesktop:()=>a,isIOS:()=>c,isMobile:()=>i,isTablet:()=>s});const o=1024;function i(){return window.innerWidth<768}function s(){return window.innerWidth>=768&&window.innerWidth<o}function r(){return window.innerWidth<o}function a(){return!r()}function l(){return i()?"mobile":s()?"tablet":"desktop"}function c(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}n.d(t,["DESKTOP_WIDTH",0,o,"TABLET_WIDTH",0,768])},7978(e,t,n){n.r(t),n.d(t,["INLINE_CART_CLOSE",0,"inlineCart:close","INLINE_CART_SHOW",0,"inlineCart:show","QUICKSHOP_CLOSE",0,"quickshop:close","QUICKSHOP_REFRESH",0,"quickshop:refresh","SEARCH_CLOSE",0,"search:close"])},6440(e,t,n){n.r(t),n.d(t,["MY_STORE_BUTTON_LABEL",0,"My Store","NEAREST_STORE_STORAGE_KEY",0,"utk_nearest_store","SET_STORE_BUTTON_CLASS",0,"store-locator__set-store-btn","SET_STORE_BUTTON_LABEL",0,"Set as My Store","STORE_MANUALLY_SELECTED_EVENT",0,"untuckit:store_manually_selected","STORE_SELECTION_SOURCES",0,{MANUAL:"manual",AUTO:"auto"},"STORE_STORAGE_KEY",0,"utk_selected_store"])},9818(e,t,n){n.r(t),n(4360),n(7483);var o=n(4019),i=n(646);const s=(e=>{console.log("UNTUCKit : Module : Revealer : loaded");return{init:()=>{console.log("UNTUCKit : Module : Revealer : init"),(0,o.waitForElements)(".js-revealer").then(t=>{e(t).twentytwenty({default_offset_pct:.51,no_overlay:!0,click_to_move:!0}),(()=>{const t=e(".twentytwenty-before"),n=e(".twentytwenty-after"),o=e(".twentytwenty-handle");if(e(".js-revealer").parents(".shg-c").length){const e=(0,i.isMobile)()?250:334,o=(0,i.isMobile)()?440:600;t.width(e).height(o),n.width(e).height(o)}(0,i.isMobile)()?(t.css("clip","rect(0px, 127.5px, 440px, 0px)"),n.css("clip","rect(0px, 250px, 440px, 127.5px)"),o.css("left","127.5px")):(t.css("clip","rect(0px, 175.44px, 600px, 0px)"),n.css("clip","rect(0px, 344px, 600px, 175.44px)"),o.css("left","175.44px"))})()}).catch(()=>{console.log("Revealer element not available.")})}}})(n(4266));n.d(t,["default",0,s])},8117(e,t,n){n.r(t);var o=n(4019),i=n(1754),s=n(646);const r={mediaQuery:"min",gap:"24px",type:"slide",perPage:1,arrows:!1,pagination:!1,breakpoints:{[s.TABLET_WIDTH]:{perPage:2},[s.DESKTOP_WIDTH]:{perPage:4,arrows:!0}}},a={init:function(){const e=document.getElementById("trending-now-template");(0,o.waitForElements)("#trending-now-container").then(t=>{const n=t[0];if(!e)return void console.warn("cannot render Trending Now; template is missing");n.innerHTML=e.innerHTML;const o=n.querySelector(".splide");o&&new i.default(o,r).mount()}).catch(()=>{console.warn("cannot render Trending Now; container is missing")})}};n.d(t,["default",0,a])},3795(e,t,n){var o=n(8117),i=n(9818);class s extends HTMLElement{catLists=Array.from(document.querySelectorAll(".mobile-hp-nav__category-list"));constructor(){super(),this.addEventListener("change",e=>{const t=e.target;if(t.matches(".mobile-hp-nav__input")){const e=t.value;console.log(e),this.catLists.forEach(e=>e.classList.add("hidden"));const n=this.catLists.find(t=>t.dataset.navId===e);n&&n.classList.remove("hidden"),this.updateDisplay()}document.addEventListener("resize",()=>{this.updateDisplay()})})}el;updateDisplay(){const e=window.innerWidth-24,t=Math.ceil(e/92),n=document.querySelector(".mobile-hp-nav__category-list:not(.hidden)"),o=n.children.length;if(t<o){console.log("updating num shown");const i=t-.5,s=92*i,r=t-1,a=(e-s)/r;console.debug("spaceToFill: "+e+", numElementsToDisplay: "+t+", totalNumElements: "+o+", numWithPeek: "+i+", numWithPeekPixels: "+s+", numWithoutPeek: "+r+", addToGap: "+a);const l=a<0?8:8+a;n.style.gap=l+"px"}else n.style.gap="8px"}}window.customElements.get("mobile-hp-nav")||customElements.define("mobile-hp-nav",s);var r=n(4757),a=n(2404);class l extends HTMLElement{constructor(){super()}connectedCallback(){this.render(null),r.selectedStoreState.subscribe(e=>{e&&this.render(e)})}render(e){if(e){const{address:t,city:n,storeHref:o}=(0,r.sharedStoreDataMapping)(e);this.renderStoreLocation(e,t,n,o)}else this.renderNoStoreLocation()}renderStoreLocation(e,t,n,o){const i=`\n      <h3 class="store-location-with-ma
1p__store-name">${e.SHOPIFY_DISPLAY_NAME}</h3>\n      <p class="store-location-with-map__store-address">${t}<br> ${n}</p>\n      <a href="${this.getAttribute("directions-link")}${encodeURIComponent(t+", "+n)}" target="_blank" class="store-location-with-map__store-directions">Get Directions</a>\n      <p class="store-location-with-map__store-hours">${e.STORE_HOURS}</p>\n      <a href="tel:${(0,a.toRawPhoneNumber)(e.PHONE)}" class="store-location-with-map__store-phone">${(0,a.transformStorePhone)(e.PHONE)}</a>\n    `,s=this.querySelector(".store-location-with-map__store-info-container");s&&(s.innerHTML=i);const r=this.querySelector(".store-location-with-map__cta--shop-store");r&&(r.href=o);const l=this.querySelector("#map-embed");l&&(l.innerHTML=`\n          <iframe\n            width="100%"\n            height="100%"\n            frameborder="0"\n            style="border:0"\n            loading="lazy"\n            title="Map of ${e.SHOPIFY_DISPLAY_NAME}"\n            referrerpolicy="no-referrer-when-downgrade"\n            src="https://www.google.com/maps/embed/v1/place?key=${window.UNTUCKitConfig.googleMapsApiKey}&q=${e.LATITUDE},${e.LONGITUDE}&zoom=15">\n          </iframe>\n          `),this.dataset.toggle="show-store"}renderNoStoreLocation(){this.dataset.toggle="no-store"}}window.customElements.get("store-location-with-map")||customElements.define("store-location-with-map",l);const c=()=>{console.log("UNTUCKit : Template : IndexTemplate"),o.default.init(),i.default.init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c,{once:!0}):c()}},e=>{e.O(0,[96,804],()=>e(3795)),e.O()}]);
2//# sourceMappingURL=template.index.js.map

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.