1"use strict";(self.webpackChunkironman_shopify_theme=self.webpackChunkironman_shopify_theme||[]).push([[336],{255:function(e,t,n){n.d(t,{A:function(){return o}});var s=n(6540);const i=s.createContext({}),r=!0;function a({baseColor:e,highlightColor:t,width:n,height:s,borderRadius:i,circle:a,direction:o,duration:c,enableAnimation:l=r,customHighlightBackground:d}){const u={};return"rtl"===o&&(u["--animation-direction"]="reverse"),"number"==typeof c&&(u["--animation-duration"]=`${c}s`),l||(u["--pseudo-element-display"]="none"),"string"!=typeof n&&"number"!=typeof n||(u.width=n),"string"!=typeof s&&"number"!=typeof s||(u.height=s),"string"!=typeof i&&"number"!=typeof i||(u.borderRadius=i),a&&(u.borderRadius="50%"),void 0!==e&&(u["--base-color"]=e),void 0!==t&&(u["--highlight-color"]=t),"string"==typeof d&&(u["--custom-highlight-background"]=d),u}function o({count:e=1,wrapper:t,className:n,containerClassName:o,containerTestId:c,circle:l=!1,style:d,...u}){var h,m,p;const f=s.useContext(i),w={...u};for(const[e,t]of Object.entries(u))void 0===t&&delete w[e];const g={...f,...w,circle:l},x={...d,...a(g)};let j="react-loading-skeleton";n&&(j+=` ${n}`);const v=null!==(h=g.inline)&&void 0!==h&&h,b=[],y=Math.ceil(e);for(let t=0;t<y;t++){let n=x;if(y>e&&t===y-1){const t=null!==(m=n.width)&&void 0!==m?m:"100%",s=e%1,i="number"==typeof t?t*s:`calc(${t} * ${s})`;n={...n,width:i}}const i=s.createElement("span",{className:j,style:n,key:t},"â");v?b.push(i):b.push(s.createElement(s.Fragment,{key:t},i,s.createElement("br",null)))}return s.createElement("span",{className:o,"data-testid":c,"aria-live":"polite","aria-busy":null!==(p=g.enableAnimation)&&void 0!==p?p:r},t?b.map((e,n)=>s.createElement(t,{key:n},e)):b)}},1109:function(e,t,n){var s=n(5338),i=n(6558),r=n(5458),a=n(6540),o=n(1689),c=n(1793),l=n(53),d=n(4848);function u({comparisonPageURL:e}){const[t,n]=(0,a.useState)((0,c.Oz)());return(0,a.useEffect)(()=>{const{signal:e,abort:t}=new AbortController;return window.addEventListener("compare",()=>{n((0,c.Oz)())},{signal:e}),t},[]),(0,a.useLayoutEffect)(l.initProductComparisonDrawerCarousel,[t]),(0,d.jsxs)("div",{className:"product-comparison-drawer-wrap",children:[(0,d.jsx)("div",{className:"compared-products-wrap",children:(0,d.jsxs)("div",{className:"swiper",children:[(0,d.jsx)("div",{className:"swiper-wrapper",children:t.map(e=>(0,d.jsx)(o.A,{handle:e},e))}),(0,d.jsx)("div",{className:"swiper-scrollbar"})]})}),(0,d.jsxs)("div",{className:"action-btns",children:[(0,d.jsx)("a",{href:e,title:"View comparisons",className:"button primary small",children:(0,d.jsx)("span",{children:"View comparison"})}),(0,d.jsx)("button",{title:"View comparisons",className:"button outline white small",onClick:c.lK,children:(0,d.jsx)("span",{children:"Clear & close"})})]})]})}n(3166);const h=()=>document.getElementById(i.t);function m(){const e=h();if(!e)return;const t=e&&s.createRoot(e);if(!t)return;const n=e.dataset.comparisonPage;n&&t.render((0,d.jsx)(u,{comparisonPageURL:n}))}m(),window.addEventListener(r.XA.SECTION_LOAD,e=>e.target instanceof Element&&e.target?.contains(h())&&m())},1689:function(e,t,n){n.d(t,{A:function(){return d}});var s=n(4225),i=n(255),r=n(9418),a=n(1793),o=n(5458),c=n(5846),l=n(4848);function d({handle:e}){const t="/products/"+e,{data:n,isLoading:d}=(0,s.A)(t+"?section_id=product-json",async t=>{const n=await fetch(t),s=await n.text(),i=JSON.parse((0,o._N)(s).querySelector('script[type="application/json"]')?.textContent?.trim()||"{}");return i.variantId||(0,a.Dk)(e),i}),u=new URL(n?.image||"",window.location.href);return u.search=new URLSearchParams({width:"60",height:"60",crop:"center"}).toString(),(0,l.jsx)("div",{className:"swiper-slide",children:(0,l.jsxs)("div",{className:"compared-products-item",children:[(0,l.jsx)("button",{type:"button",className:"close-btn",onClick:()=>(0,a.Dk)(e),children:(0,l.jsx)(c.US,{})}),(0,l.jsx)("div",{className:"image",children:(0,l.jsx)("a",{href:t,children:d?(0,l.jsx)(i.A,{width:60,height:60}):n?.image?(0,l.jsx)("img",{src:u.toString()}):(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:r.A.sanitize(window.placeholderSVGs.product||"")}})})}),(0,l.jsxs)("div",{className:"details",children:[(0,l.jsx)("h4",{className:"title",children:(0,l.jsx)("a",{href:t,children:d?(0,l.jsx)(i.A,{width:120}):n?.productTitle})}),(0,l.jsxs)("p",{className:"sku",children:["SKU: ",d?(0,l.jsx)(i.A,{width:60}):n?.sku]}),(0,l.jsx)("div",{className:"product-price",children:d?(0,l.jsx)(i.A,{width:60}):(0,o.up)(n?.price||0)})]})]})})}},3166:function(){},4225:function(e,t,n){n.d(t,{A:function(){return i}});var s=n(2177);const i=(0,n(8532).Ht)(s.Ay,e=>(t,n,s)=>(s.revalidateOnFocus=!1,s.revalidateIfStale=!1,s.revalidateOnReconnect=!1,e(t,n,s)))}}]); 2//# sourceMappingURL=bundle.product-comparison-drawer.js.map?v=ca9c466d
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.