"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[20],{35:function(e,t,s){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HomeFeaturedSection=function({featured_items_list:e}){return(0,l.jsx)("section",{className:n.default.wrapper,children:e.map(((e,t)=>"image"===e.image.type&&e.image.url?e.button_cta?(0,l.jsxs)("div",{className:n.default.collection,children:[(0,l.jsx)("div",{className:n.default.collectionImageWrapper,children:(0,l.jsx)(c.LazyImage,{src:e.image.url,initialWidth:400,cssClass:n.default.collectionImage,alt:e.title,fullSizeWidth:1e3,width:e.image.width,height:e.image.height})}),(0,l.jsxs)("div",{className:n.default.collectionContent,children:[(0,l.jsx)("p",{className:n.default.collectionSubtitle,children:e.subtitle}),(0,l.jsx)("p",{className:n.default.collectionTitle,children:e.title}),(0,l.jsxs)("a",{href:e.link_destination,className:`${n.default.collectionButton} `,children:[e.button_cta,(0,l.jsx)(d,{})]})]})]}):(0,l.jsx)("div",{className:a.default.featuredItem,children:(0,l.jsxs)("a",{href:e.link_destination,class:a.default.link,"data-orly-type":e.type,"data-orly-parent-handle":e.parentHandle,"data-orly-handle":e.handle,children:[(0,l.jsx)("div",{className:a.default.imageContainer,children:(0,l.jsx)(c.LazyImage,{src:e.image.url,initialWidth:400,cssClass:a.default.image,alt:e.title,fullSizeWidth:1e3,width:1600,height:2400})}),(0,l.jsxs)("div",{className:a.default.textOverlay,children:[(0,l.jsx)("p",{className:a.default.subtitle,children:e.subtitle}),(0,l.jsx)("p",{className:a.default.title,children:e.title})]})]})},t):null))})},t.ArrowSVG=d,t.ArrowLeftSVG=function(){return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,l.jsx)("path",{d:"M15.8972 8.91895L1.73852 8.91895",stroke:"white","stroke-width":"1.19286","stroke-linecap":"round"}),(0,l.jsx)("path",{d:"M6.40608 4.23306L2.02313 8.49098C1.78205 8.72522 1.78205 9.11234 2.02313 9.34657L6.40608 13.6045",stroke:"white","stroke-width":"1.19286","stroke-linecap":"round"})]})};const l=s(0),a=(s(1),i(s(52))),n=i(s(53)),c=s(4);function d(){return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:[(0,l.jsx)("path",{d:"M2.10278 8.91895L16.2615 8.91895",stroke:"white","stroke-width":"1.19286","stroke-linecap":"round"}),(0,l.jsx)("path",{d:"M11.5939 13.6045L15.9769 9.34657C16.218 9.11234 16.218 8.72522 15.9769 8.49098L11.5939 4.23306",stroke:"white","stroke-width":"1.19286","stroke-linecap":"round"})]})}},4:(e,t,s)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LazyImage=function({src:e,initialWidth:t,fullSizeWidth:s,cssClass:l,alt:a="",width:c,height:d,style:r}){const o=n(e,t,s);return c&&d?(0,i.jsx)("img",{src:o,class:l,alt:a,width:c,height:d,style:r}):(0,i.jsx)("img",{src:o,class:l,alt:a,style:r})},t.useBestImage=n;const i=s(0),l=(s(1),s(7)),a=s(3);function n(e,t,s){const i=(0,l.getFastImage)(e,t),n=(0,l.getFastImage)(e,s),[c,d]=(0,a.useState)({});(0,a.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>d(Object.assign(Object.assign({},c),{[n]:!0}))}}),[n]);const r=(0,a.useMemo)((()=>c[n]?n:i),[e,t,s,c]);return(0,a.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=n,e.onload=()=>d(Object.assign(Object.assign({},c),{[n]:!0}))}}),[n]),r}}}]);