"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[54],{28:(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",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"}},190:(e,t,i)=>{var s=i(0);const n="YBTbEAYe",l="tQ8tJwVA",o="JAyRcVoq",a="bZ3FIWFX",r="gO7P4lpr",d="sTYo0SaM",c="fuV6SNin",p="whOxoGbK",m="PYRKeflj",u="MfDJ97Gj",h="gnL90hsx",g="UQI0TgzM",b="g0pd9RBM",f="xiNWuFhy",_="y1_CNyIs";var v=i(28),x=i(5);function I(...e){return e.filter(Boolean).join(" ")}function j({description:e}){return e?(0,s.jsx)("div",{class:g,dangerouslySetInnerHTML:{__html:e}}):null}function k({image:e,initialWidth:t,fullSizeWidth:i,cssClass:n}){return(0,s.jsx)(x.a,{src:e.url,alt:e.altText||"",width:e.width,height:e.height,initialWidth:t,fullSizeWidth:i,cssClass:n})}(0,i(1).createEntrypoint)("collection_header",(function({collection:e,device:t}){var i,g;const x="mobile"==t,y=null===(i=e.transformedMetafields)||void 0===i?void 0:i.banner;if(!y)return e.title?(0,s.jsx)("h1",{class:v.a.collectionTitle,children:e.title}):null;const S=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}}(y);if("grid"===S.mode){const e=null!==(g=S.banner.mobileImage)&&void 0!==g?g:S.banner.desktopImage;return(0,s.jsxs)("div",{class:c,children:[x?(0,s.jsx)("div",{class:p,children:(0,s.jsx)(k,{image:e,initialWidth:1e3,fullSizeWidth:1e3,cssClass:m})}):[S.banner.desktopImageLeft,S.banner.desktopImage,S.banner.desktopImageRight].map(((e,t)=>(0,s.jsx)("div",{class:p,children:(0,s.jsx)(k,{image:e,initialWidth:1e3,cssClass:m})},`${e.url}_${t}`))),(0,s.jsx)(j,{description:S.banner.description})]})}if("fullWidth"===S.mode){const e=x?S.banner.mobileImage:S.banner.desktopImage;return(0,s.jsxs)("div",{class:u,children:[(0,s.jsx)(k,{image:e,initialWidth:x?1e3:2e3,fullSizeWidth:x?1e3:void 0,cssClass:h}),(0,s.jsx)(j,{description:S.banner.description})]})}const W=S.banner,{image:R,position:T}=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:x}),C=Boolean(R&&("left"===T||x)),w=Boolean(R&&"right"===T&&!x);return(0,s.jsxs)("div",{class:I(n,!R&&l),children:[R&&C&&(0,s.jsx)("div",{class:r,children:(0,s.jsx)(k,{image:R,initialWidth:1e3,fullSizeWidth:x?1e3:void 0,cssClass:d})}),(0,s.jsxs)("div",{class:I(o,!R&&a),children:[W.eyebrowCopy&&(0,s.jsx)("div",{class:b,children:W.eyebrowCopy}),(0,s.jsx)("h2",{class:f,children:e.title}),W.description&&(0,s.jsx)("div",{class:_,dangerouslySetInnerHTML:{__html:W.description}})]}),R&&w&&(0,s.jsx)("div",{class:r,children:(0,s.jsx)(k,{image:R,initialWidth:1e3,fullSizeWidth:x?1e3:void 0,cssClass:d})})]})}))},5:(e,t,i)=>{i.d(t,{a:()=>o,b:()=>a});var s=i(0),n=i(6),l=i(2);function o({src:e,initialWidth:t,fullSizeWidth:i,cssClass:n,alt:o,width:r,height:d,style:c}){var p;const m=(0,l.useRef)(null),[u,h]=(0,l.useState)(!1),g=a(e,t,i,u);return(0,l.useEffect)((()=>{var e;!u&&(null===(e=m.current)||void 0===e?void 0:e.complete)&&h(!0)}),[null===(p=m.current)||void 0===p?void 0:p.complete]),r&&d?(0,s.jsx)("img",{ref:m,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(17);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=190))),e.O()}]);