"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[65],{35:(e,t,i)=>{i.d(t,{a:()=>s});const s={container:"zZYXATlU",arrowLeft:"T3zumHX1",arrowRight:"mCzHjUji",collectionTitle:"BtjVOEsI",bestSeller:"kwgJR5Zg __bite_extend __bite_theme_bestSeller",textWrapper:"vhyT1_Ow",colorSwatchContainer:"VtFAkf4R",link:"RZRR9V1h",box:"tSvIqLRS",heroImageContainer:"tK5FSRVg",heroImage:"vvSCjQFx",title:"b1hb0tgk __bite_extend __bite_plpTitle",subtitle:"h5UYv_8A __bite_extend __bite_plpSubtitle",cardTags:"d_gLwJcI __bite_extend __bite_plpCardTags",cardTag:"huSs142o __bite_extend __bite_plpCardTag",price:"d9xb3vfY __bite_extend __bite_plpPrice",originalPrice:"PtH37qZj",plpPromoText:"cGil5j0b __bite_extend __bite_plpPromoText",collectionItems:"NYNuDbQO",sliderDots:"VM0oZ3MO",desktopItemsSlider:"RIlpuMoZ",mobileItemsSlider:"fN3ZpeWM",dot:"xbTpGfqs",dotActive:"cqyxTRes",vendor:"oPFTGBbi __bite_extend __bite_plpVendor",selectedOptions:"_Vfepnri",empty:"e4Rdzvrr",quickshopIconButton:"nQMawdb3 __bite_extend __bite_theme_quickshopIconButton",quickshopIcon:"ZZqp37FZ",quickshopOverlay:"SF7MZ_jU __bite_extend __bite_theme_quickshopOverlay"}},286:(e,t,i)=>{var s=i(0);const n="Uorle_fJ",l="b7JkiRgq",o="gdtYiSaT",a="fVdHuhTW",r="YBTbEAYe",d="tQ8tJwVA",c="JAyRcVoq",p="bZ3FIWFX",u="gO7P4lpr",m="sTYo0SaM",h="fuV6SNin",g="whOxoGbK",_="PYRKeflj",b="MfDJ97Gj",f="gnL90hsx",v="UQI0TgzM",x="g0pd9RBM",I="xiNWuFhy",j="y1_CNyIs";var y=i(35),k=i(7);function S(...e){return e.filter(Boolean).join(" ")}function T({description:e}){return e?(0,s.jsx)("div",{class:v,dangerouslySetInnerHTML:{__html:e}}):null}function W({image:e,initialWidth:t,fullSizeWidth:i,cssClass:n}){return(0,s.jsx)(k.a,{src:e.url,alt:e.altText||"",width:e.width,height:e.height,initialWidth:t,fullSizeWidth:i,cssClass:n})}(0,i(2).createEntrypoint)("collection_header",(function({collection:e,device:t}){var i,v;const k="mobile"==t,C=null===(i=e.transformedMetafields)||void 0===i?void 0:i.banner;if(!C)return e.title?(0,s.jsx)("h1",{class:y.a.collectionTitle,children:e.title}):null;if(C.description&&C.secondaryDescription)return(0,s.jsxs)("div",{class:n,children:[(0,s.jsx)("h1",{class:l,children:e.title}),(0,s.jsx)("div",{class:o,dangerouslySetInnerHTML:{__html:C.description}}),(0,s.jsx)("div",{class:a,dangerouslySetInnerHTML:{__html:C.secondaryDescription}})]});const R=function(e){return function(e){return Boolean(e.desktopImageLeft&&e.desktopImage&&e.desktopImageRight)}(e)?{mode:"grid",banner:e}:function(e){return Boolean(!e.desktopImageLeft&&!e.desktopImageRight&&e.desktopImage&&e.mobileImage&&!e.eyebrowCopy)}(e)?{mode:"fullWidth",banner:e}:{mode:"default",banner:e}}(C);if("grid"===R.mode){const e=null!==(v=R.banner.mobileImage)&&void 0!==v?v:R.banner.desktopImage;return(0,s.jsxs)("div",{class:h,children:[k?(0,s.jsx)("div",{class:g,children:(0,s.jsx)(W,{image:e,initialWidth:1e3,fullSizeWidth:1e3,cssClass:_})}):[R.banner.desktopImageLeft,R.banner.desktopImage,R.banner.desktopImageRight].map(((e,t)=>(0,s.jsx)("div",{class:g,children:(0,s.jsx)(W,{image:e,initialWidth:1e3,cssClass:_})},`${e.url}_${t}`))),(0,s.jsx)(T,{description:R.banner.description})]})}if("fullWidth"===R.mode){const e=k?R.banner.mobileImage:R.banner.desktopImage;return(0,s.jsxs)("div",{class:b,children:[(0,s.jsx)(W,{image:e,initialWidth:k?1e3:2e3,fullSizeWidth:k?1e3:void 0,cssClass:f}),(0,s.jsx)(T,{description:R.banner.description})]})}const w=R.banner,{image:M,position:L}=function({banner:e,isMobile:t}){return t&&e.mobileImage?{image:e.mobileImage,position:"center"}:e.desktopImageLeft?{image:e.desktopImageLeft,position:"left"}:e.desktopImageRight?{image:e.desktopImageRight,position:"right"}:e.desktopImage?{image:e.desktopImage,position:"left"}:{image:e.mobileImage,position:"center"}}({banner:w,isMobile:k}),O=Boolean(M&&("left"===L||k)),z=Boolean(M&&"right"===L&&!k);return(0,s.jsxs)("div",{class:S(r,!M&&d),children:[M&&O&&(0,s.jsx)("div",{class:u,children:(0,s.jsx)(W,{image:M,initialWidth:1e3,fullSizeWidth:k?1e3:void 0,cssClass:m})}),(0,s.jsxs)("div",{class:S(c,!M&&p),children:[w.eyebrowCopy&&(0,s.jsx)("div",{class:x,children:w.eyebrowCopy}),(0,s.jsx)("h2",{class:I,children:e.title}),w.description&&(0,s.jsx)("div",{class:j,dangerouslySetInnerHTML:{__html:w.description}})]}),M&&z&&(0,s.jsx)("div",{class:u,children:(0,s.jsx)(W,{image:M,initialWidth:1e3,fullSizeWidth:k?1e3:void 0,cssClass:m})})]})}))},7:(e,t,i)=>{i.d(t,{a:()=>o,b:()=>a});var s=i(0),n=i(6),l=i(1);function o({src:e,initialWidth:t,fullSizeWidth:i,cssClass:n,alt:o,width:r,height:d,style:c}){var p;const u=(0,l.useRef)(null),[m,h]=(0,l.useState)(!1),g=a(e,t,i,m);return(0,l.useEffect)((()=>{var e;!m&&(null===(e=u.current)||void 0===e?void 0:e.complete)&&h(!0)}),[null===(p=u.current)||void 0===p?void 0:p.complete]),r&&d?(0,s.jsx)("img",{ref:u,loading:"lazy",src:g,onLoadStart:()=>h(!0),onLoad:()=>h(!0),class:n,alt:null!=o?o:"",width:r,height:d,style:c}):(0,s.jsx)("img",{src:g,class:n,alt:null!=o?o:"",style:c})}function a(e,t,i,s=!0){const o=(0,n.b)(e,t),a=(0,n.b)(e,i),[r,d]=(0,l.useState)({}),c=(0,l.useMemo)((()=>r[a]?a:o),[e,t,i,r]);return(0,l.useEffect)((()=>{if(s&&document&&c!==a){const e=document.createElement("img");e.src=a,e.onload=()=>d(Object.assign(Object.assign({},r),{[a]:!0}))}}),[s,a]),c}},6:(e,t,i)=>{i.d(t,{a:()=>l,b:()=>n});var s=i(36);function n(e,t,i){return(e=(0,s.getFastImage)(e,t,i)).replace("/fl_progressive:steep/","/")}function l(e){var t,i,s;if(e)return"type"in e?"image"===e.type&&e.url?Object.assign(Object.assign({},e),{url:n(e.url),altText:null!==(t=e.altText)&&void 0!==t?t:""}):void 0:"__typename"in e&&"MediaImage"===e.__typename&&(null===(i=e.image)||void 0===i?void 0:i.url)?{url:n(null===(s=e.image)||void 0===s?void 0:s.url),altText:"",height:void 0,width:void 0}:void 0}(0,s.setConfig)([{folder:"bare",template:"https://cdn.shopify.com/s/files/1/0576/5120/0113/"},{folder:"stamped",template:"https://cdn.stamped.io/uploads/photos/"},{folder:"comfrt",template:"https://cdn.shopify.com/s/files/1/0569/4029/8284/"},{folder:"3bn",template:"https://cdn.shopify.com/s/files/1/0179/2309/"}])}},e=>{e.O(0,[1,2],(()=>e(e.s=286))),e.O()}]);