"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[54],{219:(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"}},221:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});const s={container:"WwUCe6JM",topBarHidden:"v6HDm6b4",ticker:"Ebwx40lv",marquee:"na2WJrZi",itemCollection:"O_C1dJCd",swap:"GN0FhkS3",item:"clAwOfa5"}},217:(e,t,n)=>{const s=n(218);(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:l,height:i,style:c}){const d=a(e,t,n);return l&&i?(0,s.jsx)("img",{src:d,class:o,alt:r,width:l,height:i,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),[l,i]=(0,r.useState)({});(0,r.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=a,e.onload=()=>i(Object.assign(Object.assign({},l),{[a]:!0}))}}),[a]);const c=(0,r.useMemo)((()=>l[a]?a:s),[e,t,n,l]);return(0,r.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=a,e.onload=()=>i(Object.assign(Object.assign({},l),{[a]:!0}))}}),[a]),c}},91: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:i,top_bar:d,showTopBar:h,content:m,showAccountIcon:j,showSearchIcon:x}){var b,_,I,C,y,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==m?void 0:m.logo_file)||void 0===b?void 0:b.type)?null==m?void 0:m.logo_file:void 0;return(0,o.jsxs)("header",{class:`${l.default.header} ${e?"":l.default.headerHidden}`,style:h?"padding-top: var(--size-8);":"",children:[h&&(0,o.jsx)(c.TopBarComponent,{top_bar:d,headerIsVisible:e}),(0,o.jsx)(w,{closed:!0,alwaysShow:null!==(_=null==m?void 0:m.show_hamburger_menu_on_desktop)&&void 0!==_&&_}),(0,o.jsx)("a",{href:"/",children:(0,o.jsx)(u.LazyImage,{src:null!==(I=null==O?void 0:O.url)&&void 0!==I?I:"",initialWidth:2*(null!==(C=null==m?void 0:m.width)&&void 0!==C?C:100),fullSizeWidth:2*(null!==(y=null==m?void 0:m.width)&&void 0!==y?y:100),style:{width:`${null!==(M=null==m?void 0:m.width)&&void 0!==M?M:100}px`,padding:s?"0 0 0 20px;":"0"}})}),s&&(0,o.jsx)(p,{mainMenuDesktop:r,showFocusDot:i}),s&&(0,o.jsx)("div",{style:"flex: 2;"}),(0,o.jsxs)("div",{class:l.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),l=s(n(219)),i=n(220),c=n(92),d=n(127),u=n(4),h=n(51);function p({mainMenuDesktop:e,showFocusDot:t}){return(0,o.jsx)("div",{class:l.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:[l.default.desktopMenuItem,s?l.default.desktopMenuItemDot:""].join(" "),children:e.title})}))})}function f({itemCount:e}){return(0,o.jsx)(r.Fragment,{children:(0,o.jsx)(i.DrawerRightTriggerWrapperClosed,{classes:l.default.cartIcon,children:(0,o.jsx)(m,{itemCount:e})})})}function m({itemCount:e}){return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.ShoppingBagSVG,{}),void 0!==e&&e>0?(0,o.jsx)("div",{class:l.default.cartBubble,children:(0,o.jsx)("span",{"aria-hidden":"true",children:e})}):null]})}function w({closed:e,alwaysShow:t}){const n=[l.default.menuIcon,t?l.default.alwaysShow:""].join(" ");return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(i.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)(i.DrawerLeftTriggerWrapperOpen,{children:(0,o.jsx)(h.CloseIcon,{iconClass:n})})]})}function g(){return(0,o.jsx)("a",{href:"/search",class:l.default.cartIcon,style:"padding-bottom: 12px;",children:(0,o.jsx)(d.SearchSVG,{})})}function v(){return(0,o.jsx)("a",{href:"/account",class:l.default.cartIcon,children:(0,o.jsx)(d.AccountSVG,{})})}},218:(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}))),l=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:l,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(91),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"},92: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,a,l,i;const c=[...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!==(a=null===(s=null==e?void 0:e.top_bar)||void 0===s?void 0:s.top_bar_message)&&void 0!==a?a:[],...null!==(i=null===(l=null==e?void 0:e.top_bar)||void 0===l?void 0:l.top_bar_message)&&void 0!==i?i:[]];return(0,o.jsx)("div",{class:[r.default.container,e.headerIsVisible?"":r.default.topBarHidden].join(" "),children:(0,o.jsxs)("div",{class:r.default.ticker,children:[(0,o.jsx)("span",{class:r.default.itemCollection,children:c.map((e=>(0,o.jsx)("span",{class:r.default.item,dangerouslySetInnerHTML:{__html:e}},e)))}),(0,o.jsx)("span",{children:c.map((e=>(0,o.jsx)("span",{class:r.default.item,dangerouslySetInnerHTML:{__html:e}},e)))})]})})};const o=n(0),r=(n(1),s(n(221)))},220:(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(57)},57:(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=217))),e.O()}]);