"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[70],{169:(e,t,o)=>{var n=o(0),l=o(3);const i={imageContainer:"qpe182wA",image:"WcmUoMRO",textOverlay:"rrh0kNZn",shopButton:"MuH8cxmA",desktop_variant_a:"nIgbz0kD",mobile_variant_a:"pAyq4ol_",mobile_headline_bold:"WbhiSYKG",mobile_image_square:"NzZ4pyXO"},s={wrapper:"m6Eeh9zF",picture:"Gh1tAynN",image:"yxTYcWeM",content:"wYEuByl6",title:"SYFAD4z3",button:"iy4nSATJ",button__transparent:"arI8COfu",button__mobile__label:"bksZtwNH",button__desktop__label:"QjX0TEoL",customers:"IiS7AyYh"};var a=o(5);function r({mobileImage:e,mobile_image_width:t,desktopImage:o,desktop_image_width:l,headline:r,subhead:h,buttonText:u,device:m,ctaLink:_,isHeroLink:p,handle:b,type:g,mobile_cta:x,use_alt_center_alignment:f,desktop_button_color:y,desktop_button_text_color:v,desktop_text_color:j,mobile_button_color:k,mobile_button_text_color:w,mobile_text_color:N,mobile_style:C,desktop_style:$}){const T=p||!u;return"desktop"===m&&(f=!1),"image"===(null==o?void 0:o.type)&&o.url&&"image"===(null==e?void 0:e.type)&&e.url?((C||$)&&(f=!1),(0,n.jsxs)(d,{isEntireHeroLink:T,ctaLink:_,handle:b,type:g,use_alt_center_alignment:f,mobile_style:C,children:[(0,n.jsx)(c,{children:"desktop"===m?(0,n.jsx)(a.a,{src:o.url,initialWidth:800,width:o.width,height:o.height,cssClass:i.image,alt:"Hero",fullSizeWidth:Math.max(2e3,null!=l?l:2600)}):(0,n.jsx)(a.a,{src:e.url,initialWidth:400,width:e.width,height:e.height,cssClass:f?s.image:i.image,alt:"Hero",fullSizeWidth:Math.max(800,null!=t?t:1400)})}),(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:`\n .heroTextColor{\n color: ${j};\n }\n .heroButton, .heroButton:hover{\n color: ${v};\n background-color: ${y}\n }\n @media (max-width: 768px) {\n .heroTextColor{\n color: ${N};\n }\n .heroButton, .heroButton:hover{\n color: ${w};\n background-color: ${k};\n }\n }\n `}}),f?(0,n.jsxs)("div",{className:s.content,children:[(0,n.jsx)("h1",{className:`${s.title} heroTextColor`,children:r}),(0,n.jsx)("a",{href:_,children:(0,n.jsxs)("button",{className:`${s.button} heroButton`,children:[(0,n.jsx)("span",{className:`${s.button__mobile__label} heroButton`,children:x}),(0,n.jsx)("span",{className:`${s.button__desktop__label} heroButton`,children:u})]})})]}):(0,n.jsxs)("div",{className:[i.textOverlay,i[`mobile_${C}`],i[`desktop_${$}`]].join(" "),children:[(0,n.jsx)("h1",{class:"heroTextColor",children:r}),(0,n.jsx)("p",{class:"heroTextColor",children:h}),u&&(0,n.jsx)("a",{href:_,"data-orly-type":g,"data-orly-handle":b,children:(0,n.jsx)("button",{className:`${i.shopButton} heroButton`,children:u})})]})]})):null}function c({children:e,use_alt_center_alignment:t}){return t?(0,n.jsx)("div",{className:s.picture}):(0,n.jsx)(l.Fragment,{children:e})}function d({isEntireHeroLink:e,ctaLink:t,handle:o,type:l,children:a,use_alt_center_alignment:r,mobile_style:c}){if(r)return(0,n.jsx)("section",{className:s.wrapper,children:a});const d=[i.imageContainer,i[`mobile_${c}`]].join(" ");return e?(0,n.jsx)("a",{href:t,"data-orly-type":l,"data-orly-handle":o,className:d,children:a}):(0,n.jsx)("div",{className:d,children:a})}(0,o(1).createEntrypoint)("home_hero",(function(e){return(0,n.jsx)(r,Object.assign({},e))}))},5:(e,t,o)=>{o.d(t,{a:()=>s,b:()=>a});var n=o(0),l=o(6),i=o(2);function s({src:e,initialWidth:t,fullSizeWidth:o,cssClass:l,alt:s="",width:r,height:c,style:d}){var h;const u=(0,i.useRef)(null),[m,_]=(0,i.useState)(!1),p=a(e,t,o,m);return(0,i.useEffect)((()=>{var e;!m&&(null===(e=u.current)||void 0===e?void 0:e.complete)&&_(!0)}),[null===(h=u.current)||void 0===h?void 0:h.complete]),r&&c?(0,n.jsx)("img",{ref:u,loading:"lazy",src:p,onLoadStart:()=>_(!0),onLoad:()=>_(!0),class:l,alt:s,width:r,height:c,style:d}):(0,n.jsx)("img",{src:p,class:l,alt:s,style:d})}function a(e,t,o,n=!0){const s=(0,l.b)(e,t),a=(0,l.b)(e,o),[r,c]=(0,i.useState)({}),d=(0,i.useMemo)((()=>r[a]?a:s),[e,t,o,r]);return(0,i.useEffect)((()=>{if(n&&document&&d!==a){const e=document.createElement("img");e.src=a,e.onload=()=>c(Object.assign(Object.assign({},r),{[a]:!0}))}}),[n,a]),d}},6:(e,t,o)=>{o.d(t,{a:()=>i,b:()=>l});var n=o(11);function l(e,t,o){return(e=(0,n.getFastImage)(e,t,o)).replace("/fl_progressive:steep/","/")}function i(e){var t,o,n;if(e)return"type"in e?"image"===e.type&&e.url?Object.assign(Object.assign({},e),{url:l(e.url),altText:null!==(t=e.altText)&&void 0!==t?t:""}):void 0:"__typename"in e&&"MediaImage"===e.__typename&&(null===(o=e.image)||void 0===o?void 0:o.url)?{url:l(null===(n=e.image)||void 0===n?void 0:n.url),altText:"",height:void 0,width:void 0}:void 0}(0,n.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=169))),e.O()}]);