"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[45],{222:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const s={header:"IXjqotrK",headerHidden:"lmVO7ihk",headerIcons:"JYanzZLM",cartIcon:"Snt0W7Sm",cartIconClose:"OnVSxwAB",cartBubble:"eAZIp8me",menuIcon:"uQuvDfx9",alwaysShow:"hy3Aex0s",desktopMainMenu:"vBg37Hhp",desktopMenuItem:"wcwT0AwV",desktopMenuItemDot:"d2FL0eQe",accountIcon:"En0asOcc"}},224:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const s={container:"WwUCe6JM",accessibility:"Bop5uKTw",topBarHidden:"v6HDm6b4",ticker:"Ebwx40lv",marquee:"na2WJrZi",itemCollection:"O_C1dJCd",swap:"GN0FhkS3",item:"clAwOfa5"}},220:(e,t,n)=>{const s=n(221);(0,n(2).createEntrypoint)("default_header",s.HeaderContainer)},51:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=function({size:e,iconClass:t}){return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"presentation",class:t,style:e?`width:${e};height:${e}`:"",fill:"none",viewBox:"0 0 18 17",children:(0,s.jsx)("path",{d:"M.865 15.978a.5.5 0 00.707.707l7.433-7.431 7.579 7.282a.501.501 0 00.846-.37.5.5 0 00-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 10-.707-.708L8.991 7.853 1.413.573a.5.5 0 10-.693.72l7.563 7.268-7.418 7.417z",fill:"currentColor"})})};const s=n(0);n(1)},4:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LazyImage=function({src:e,initialWidth:t,fullSizeWidth:n,cssClass:o,alt:r="",width:i,height:l,style:c}){const d=a(e,t,n);return i&&l?(0,s.jsx)("img",{src:d,class:o,alt:r,width:i,height:l,style:c}):(0,s.jsx)("img",{src:d,class:o,alt:r,style:c})},t.useBestImage=a;const s=n(0),o=(n(1),n(7)),r=n(3);function a(e,t,n){const s=(0,o.getFastImage)(e,t),a=(0,o.getFastImage)(e,n),[i,l]=(0,r.useState)({});(0,r.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=a,e.onload=()=>l(Object.assign(Object.assign({},i),{[a]:!0}))}}),[a]);const c=(0,r.useMemo)((()=>i[a]?a:s),[e,t,n,i]);return(0,r.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=a,e.onload=()=>l(Object.assign(Object.assign({},i),{[a]:!0}))}}),[a]),c}},105:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderComponent=function({headerIsVisible:e,setHeaderIsVisible:t,itemCount:n,isDesktop:s,mainMenuDesktop:r,showFocusDot:l,top_bar:d,showTopBar:h,content:w,showAccountIcon:j,showSearchIcon:x}){var b,_,y,I,C,M;const[k,S]=(0,a.useState)(0),D=()=>{window.scrollY>k&&window.scrollY>64?t(!1):(window.scrollY{const e=(e=>{let t;return function(...n){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...n)}),10)}})(D);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[k]);const O="image"===(null===(b=null==w?void 0:w.logo_file)||void 0===b?void 0:b.type)?null==w?void 0:w.logo_file:void 0;return(0,o.jsxs)("header",{class:`${i.default.header} ${e?"":i.default.headerHidden}`,style:h?"padding-top: var(--size-8);":"",children:[h&&(0,o.jsx)(c.TopBarComponent,{top_bar:d,headerIsVisible:e}),(0,o.jsx)(m,{closed:!0,alwaysShow:null!==(_=null==w?void 0:w.show_hamburger_menu_on_desktop)&&void 0!==_&&_}),(0,o.jsx)("a",{href:"/",children:(0,o.jsx)(u.LazyImage,{src:null!==(y=null==O?void 0:O.url)&&void 0!==y?y:"",initialWidth:2*(null!==(I=null==w?void 0:w.width)&&void 0!==I?I:100),fullSizeWidth:2*(null!==(C=null==w?void 0:w.width)&&void 0!==C?C:100),style:{width:`${null!==(M=null==w?void 0:w.width)&&void 0!==M?M:100}px`,padding:s?"0 0 0 20px;":"0"}})}),s&&(0,o.jsx)(p,{mainMenuDesktop:r,showFocusDot:l}),(0,o.jsxs)("div",{class:i.default.headerIcons,children:[x&&(0,o.jsx)(g,{}),j&&(0,o.jsx)(v,{}),(0,o.jsx)(f,{itemCount:n})]})]})};const o=n(0),r=n(1),a=n(3),i=s(n(222)),l=n(223),c=n(106),d=n(137),u=n(4),h=n(51);function p({mainMenuDesktop:e,showFocusDot:t}){return(0,o.jsx)("div",{class:i.default.desktopMainMenu,children:null==e?void 0:e.menu_items.map(((e,n)=>{const s=1===n&&t;return(0,o.jsx)("a",{href:e.link,"data-orly-type":e.type,"data-orly-handle":e.handle,class:[i.default.desktopMenuItem,s?i.default.desktopMenuItemDot:""].join(" "),children:e.title})}))})}function f({itemCount:e}){return(0,o.jsx)(r.Fragment,{children:(0,o.jsx)(l.DrawerRightTriggerWrapperClosed,{classes:i.default.cartIcon,children:(0,o.jsx)(w,{itemCount:e})})})}function w({itemCount:e}){return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.ShoppingBagSVG,{}),void 0!==e&&e>0?(0,o.jsx)("div",{class:i.default.cartBubble,children:(0,o.jsx)("span",{"aria-hidden":"true",children:e})}):null]})}function m({closed:e,alwaysShow:t}){const n=[i.default.menuIcon,t?i.default.alwaysShow:""].join(" ");return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(l.DrawerLeftTriggerWrapperClosed,{children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",role:"presentation",class:n,fill:"none",viewBox:"0 0 18 16",children:(0,o.jsx)("path",{d:"M1 .5a.5.5 0 100 1h15.71a.5.5 0 000-1H1zM.5 8a.5.5 0 01.5-.5h15.71a.5.5 0 010 1H1A.5.5 0 01.5 8zm0 7a.5.5 0 01.5-.5h15.71a.5.5 0 010 1H1a.5.5 0 01-.5-.5z",fill:"currentColor"})})}),(0,o.jsx)(l.DrawerLeftTriggerWrapperOpen,{children:(0,o.jsx)(h.CloseIcon,{iconClass:n})})]})}function g(){return(0,o.jsx)("a",{href:"/search",class:i.default.cartIcon,style:"padding-bottom: 12px;",children:(0,o.jsx)(d.SearchSVG,{})})}function v(){return(0,o.jsx)("a",{href:"/account",class:i.default.cartIcon,children:(0,o.jsx)(d.AccountSVG,{})})}},221:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderContainer=function(e){var t;const n=e.useSharedState()((e=>({headerIsVisible:e.headerIsVisible,setHeaderIsVisible:e.setHeaderIsVisible,itemCount:e.itemCount,cart:e.cart,config:e.config}))),i=e.showRouteInCart?null===(t=n.cart)||void 0===t?void 0:t.item_count:n.itemCount;return(0,s.jsxs)(o.Fragment,{children:[e.showTopBar&&(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:a}}),(0,s.jsx)(r.HeaderComponent,Object.assign({},n,{itemCount:i,isDesktop:"desktop"===e.device,mainMenuDesktop:e.mainMenuDesktop,showFocusDot:e.showFocusDot,top_bar:e.top_bar,showTopBar:e.showTopBar,content:e.content,showAccountIcon:n.config.show_account_icon,showSearchIcon:e.showSearchIcon}))]})};const s=n(0),o=n(1),r=n(105),a="\n:root{\n --extra-top-bar-padding: var(--size-8);\n}\nbody {\n padding-top: calc(var(--size-11) + var(--size-8));\n}\n"},106:function(e,t,n){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TopBarComponent=function(e){var t,n,s,i,l,c;const d=[...null!==(n=null===(t=null==e?void 0:e.top_bar)||void 0===t?void 0:t.top_bar_message)&&void 0!==n?n:[],...null!==(i=null===(s=null==e?void 0:e.top_bar)||void 0===s?void 0:s.top_bar_message)&&void 0!==i?i:[],...null!==(c=null===(l=null==e?void 0:e.top_bar)||void 0===l?void 0:l.top_bar_message)&&void 0!==c?c:[]];return(0,o.jsxs)("div",{class:[r.default.container,e.headerIsVisible?"":r.default.topBarHidden].join(" "),children:[(0,o.jsx)(a,{script:"https://cdn.userway.org/widget.js?account=roOpfwP7UG&platfAppInstalledSiteId=3550841&shop=comfrtclothing.myshopify.com"}),(0,o.jsxs)("div",{class:r.default.ticker,children:[(0,o.jsx)("span",{class:r.default.itemCollection,children:d.map((e=>(0,o.jsx)("span",{class:r.default.item,dangerouslySetInnerHTML:{__html:e}},e)))}),(0,o.jsx)("span",{children:d.map((e=>(0,o.jsx)("span",{class:r.default.item,dangerouslySetInnerHTML:{__html:e}},e)))})]})]})},t.UserWay=a;const o=n(0),r=(n(1),s(n(224)));function a(e){return(0,o.jsx)("button",{class:r.default.accessibility,onClick:function(){if(!(null===window||void 0===window?void 0:window.userway_loaded)){window.userway_loaded=!0;const t=document.createElement("script");t.setAttribute("src",e.script),t.setAttribute("data-trigger","accessibilityWidget"),(document.body||document.head).appendChild(t),document.addEventListener("userway:init_completed",(function(e){e.detail.userWayInstance.widgetOpen()}))}},children:(0,o.jsxs)("svg",{width:"18",id:"accessibilityWidget",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 63 63",children:[(0,o.jsx)("circle",{cx:"31.49",cy:"16.08",r:"5.5",transform:"translate(-2.14 26.98) rotate(-45)",class:"a"}),(0,o.jsx)("path",{d:"M47.62,22.28a88.73,88.73,0,0,1-32.25,0,1.63,1.63,0,0,0-1.92,1.32,1.64,1.64,0,0,0,1.32,1.92,92,92,0,0,0,10.92,1.34,2.62,2.62,0,0,1,2.42,2.93l-.32,2.75a54.14,54.14,0,0,1-3,12.67l-2,5.35a1.65,1.65,0,0,0,3.09,1.16v0l.49-1c1.6-3.41,3.09-6.9,4.45-10.43a.74.74,0,0,1,1.38,0c1.36,3.53,2.85,7,4.45,10.44l.51,1.09h0a1.64,1.64,0,0,0,1.48,1,1.6,1.6,0,0,0,.57-.11,1.64,1.64,0,0,0,1-2.12l-2-5.35a54.67,54.67,0,0,1-3-12.67l-.31-2.77a2.61,2.61,0,0,1,2.42-2.91,92.51,92.51,0,0,0,10.83-1.32,1.73,1.73,0,0,0,1.44-1.67A1.65,1.65,0,0,0,47.62,22.28Z",class:"a"}),(0,o.jsx)("path",{d:"M31.5,0A31.5,31.5,0,1,0,63,31.5,31.53,31.53,0,0,0,31.5,0Zm0,60A28.5,28.5,0,1,1,60,31.5,28.54,28.54,0,0,1,31.5,60Z",class:"b"})]})})}},223:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerLeftTriggerWrapperClosed=function({children:e}){return(0,s.jsx)("label",{for:"menu-toggle",class:"hamburger",children:e})},t.DrawerLeftTriggerWrapperOpen=function({children:e}){return(0,s.jsx)("label",{for:"close-drawer",class:"close",onClick:o.resetNestedMenus,children:e})},t.DrawerRightTriggerWrapperClosed=function({children:e,classes:t}){return(0,s.jsx)("label",{for:"cart-toggle",class:`cart-icon ${t} open-cart`,id:"cart-icon-bubble",onClick:o.resetNestedMenus,children:e})},t.DrawerRightTriggerWrapperOpen=function({children:e,classes:t}){return(0,s.jsx)("label",{for:"close-drawer",class:`cart-icon ${t} close-drawer`,id:"cart-icon-bubble",children:e})};const s=n(0),o=n(54)},54:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.resetNestedMenus=function(){document.querySelectorAll(".toggleCheckbox").forEach((e=>{e.checked=!1}))},t.shopifyCartReturnTo=function(e,t,n){const s=new URL(`https://${n}`);return s.pathname=e,s.searchParams.set("viewcart","true"),t&&s.searchParams.set("variant",t),`return_to=${encodeURIComponent(s.pathname+s.search)}`}}},e=>{e.O(0,[1,2,3,26],(()=>e(e.s=220))),e.O()}]);