"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[36],{169:(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"}},171:(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"}},167:(e,t,n)=>{const s=n(168);(0,n(2).createEntrypoint)("default_header",s.HeaderContainer)},47:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;const s=n(0);n(1),t.CloseIcon=function({size:e,iconClass:t}){return(0,s.jsx)("svg",Object.assign({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"})}))}},4:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useBestImage=t.LazyImage=void 0;const s=n(0),o=(n(1),n(6)),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}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},75: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=void 0;const o=n(0),r=n(1),a=n(3),i=s(n(169)),l=n(170),c=n(76),d=n(103),u=n(4),h=n(47);function p({mainMenuDesktop:e,showFocusDot:t}){return(0,o.jsx)("div",Object.assign({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",Object.assign({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 g({itemCount:e}){return(0,o.jsx)(r.Fragment,{children:(0,o.jsx)(l.DrawerRightTriggerWrapperClosed,Object.assign({classes:i.default.cartIcon},{children:(0,o.jsx)(f,{itemCount:e})}))})}function f({itemCount:e}){return(0,o.jsxs)(r.Fragment,{children:[(0,o.jsx)(d.ShoppingBagSVG,{}),void 0!==e&&e>0?(0,o.jsx)("div",Object.assign({class:i.default.cartBubble},{children:(0,o.jsx)("span",Object.assign({"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",Object.assign({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 w(){return(0,o.jsx)("a",Object.assign({href:"/account",class:i.default.cartIcon},{children:(0,o.jsx)(d.AccountSVG,{})}))}t.HeaderComponent=function({headerIsVisible:e,setHeaderIsVisible:t,itemCount:n,isDesktop:s,mainMenuDesktop:r,showFocusDot:l,top_bar:d,showTopBar:h,content:f,showAccountIcon:j}){var v,b,x,_,C,O;const[I,y]=(0,a.useState)(0),M=()=>{window.scrollY>I&&window.scrollY>64?t(!1):(window.scrollY{const e=(e=>{let t;return function(...n){clearTimeout(t),t=setTimeout((()=>{clearTimeout(t),e(...n)}),10)}})(M);return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}}),[I]);const D="image"===(null===(v=null==f?void 0:f.logo_file)||void 0===v?void 0:v.type)?null==f?void 0:f.logo_file:void 0;return(0,o.jsxs)("header",Object.assign({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!==(b=null==f?void 0:f.show_hamburger_menu_on_desktop)&&void 0!==b&&b}),(0,o.jsx)("a",Object.assign({href:"/"},{children:(0,o.jsx)(u.LazyImage,{src:null!==(x=null==D?void 0:D.url)&&void 0!==x?x:"",initialWidth:2*(null!==(_=null==f?void 0:f.width)&&void 0!==_?_:100),fullSizeWidth:2*(null!==(C=null==f?void 0:f.width)&&void 0!==C?C:100),style:{width:`${null!==(O=null==f?void 0:f.width)&&void 0!==O?O:100}px`,padding:s?"0 0 0 20px;":"0"}})})),s&&(0,o.jsx)(p,{mainMenuDesktop:r,showFocusDot:l}),s&&(0,o.jsx)("div",{style:"flex: 2;"}),(0,o.jsxs)("div",Object.assign({class:i.default.headerIcons},{children:[j&&(0,o.jsx)(w,{}),(0,o.jsx)(g,{itemCount:n})]}))]}))}},168:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HeaderContainer=void 0;const s=n(0),o=n(1),r=n(75);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}))),a=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:"\n:root{\n --extra-top-bar-padding: var(--size-8);\n}\nbody {\n padding-top: calc(var(--size-11) + var(--size-8));\n}\n"}}),(0,s.jsx)(r.HeaderComponent,Object.assign({},n,{itemCount:a,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}))]})}},76: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=void 0;const o=n(0),r=(n(1),s(n(171)));t.TopBarComponent=function(e){var t,n,s,a,i,l;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!==(l=null===(i=null==e?void 0:e.top_bar)||void 0===i?void 0:i.top_bar_message)&&void 0!==l?l:[]];return(0,o.jsx)("div",Object.assign({class:[r.default.container,e.headerIsVisible?"":r.default.topBarHidden].join(" ")},{children:(0,o.jsxs)("div",Object.assign({class:r.default.ticker},{children:[(0,o.jsx)("span",Object.assign({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)))})]}))}))}},170:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DrawerRightTriggerWrapperOpen=t.DrawerRightTriggerWrapperClosed=t.DrawerLeftTriggerWrapperOpen=t.DrawerLeftTriggerWrapperClosed=void 0;const s=n(0),o=n(50);t.DrawerLeftTriggerWrapperClosed=function({children:e}){return(0,s.jsx)("label",Object.assign({for:"menu-toggle",class:"hamburger"},{children:e}))},t.DrawerLeftTriggerWrapperOpen=function({children:e}){return(0,s.jsx)("label",Object.assign({for:"close-drawer",class:"close",onClick:o.resetNestedMenus},{children:e}))},t.DrawerRightTriggerWrapperClosed=function({children:e,classes:t}){return(0,s.jsx)("label",Object.assign({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",Object.assign({for:"close-drawer",class:`cart-icon ${t} close-drawer`,id:"cart-icon-bubble"},{children:e}))}},50:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.shopifyCartReturnTo=t.resetNestedMenus=void 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,22],(()=>e(e.s=167))),e.O()}]);