"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[60],{240:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});const s={categories:"cFrrLCJZ",categoriesTitle:"y22mKLY4",categoriesWrapper:"kbpwRIBt",category:"FFVHU_BL",categoryImage:"r69qaE76",categoryContent:"a9grpD_z",categoryContentTitle:"FSj2hYFs"}},239:(e,t,a)=>{a.r(t),a.d(t,{default:()=>s});const s={container:"OhiQ0ybu",category:"wnXUouZa",image:"vLmmaHPb",link:"aJV308Po",title:"dTS03RO8"}},238:(e,t,a)=>{const s=a(111);(0,a(2).createEntrypoint)("home_categories_section",s.HomeCategories)},111:function(e,t,a){var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HomeCategories=function({categories_list:e,device:t,title:a,alt_design:s}){return s?(0,i.jsxs)("section",{className:c.default.categories,children:[(0,i.jsx)("h2",{className:c.default.categoriesTitle,children:a}),(0,i.jsx)("div",{className:c.default.categoriesWrapper,children:null==e?void 0:e.map((e=>{const a="image"===e.image.type?e.image:void 0;return a&&a.url?(0,i.jsxs)("a",{href:e.link_destination,className:c.default.category,"data-orly-type":e.type,"data-orly-handle":e.handle,children:[(0,i.jsx)(n.LazyImage,{src:a.url,initialWidth:"desktop"===t?600:300,cssClass:c.default.categoryImage,alt:e.title,fullSizeWidth:"desktop"===t?600:400,width:1600,height:2400}),(0,i.jsx)("div",{className:c.default.categoryContent,children:(0,i.jsx)("p",{className:c.default.categoryContentTitle,children:e.title})})]}):null}))})]}):(0,i.jsx)("div",{className:l.default.container,children:null==e?void 0:e.map(((e,a)=>{const s="image"===e.image.type?e.image:void 0;return s&&s.url?(0,i.jsx)("div",{className:l.default.category,children:(0,i.jsxs)("a",{href:e.link_destination,class:l.default.link,"data-orly-type":e.type,"data-orly-handle":e.handle,children:[(0,i.jsx)(n.LazyImage,{src:s.url,initialWidth:"desktop"===t?600:300,cssClass:l.default.image,alt:e.title,fullSizeWidth:"desktop"===t?600:400,width:1600,height:2400}),(0,i.jsx)("p",{className:l.default.title,children:e.title})]})},a):null}))})};const i=a(0),l=(a(1),s(a(239))),c=s(a(240)),n=a(4)},4:(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LazyImage=function({src:e,initialWidth:t,fullSizeWidth:a,cssClass:i,alt:l="",width:n,height:r,style:o}){const d=c(e,t,a);return n&&r?(0,s.jsx)("img",{src:d,class:i,alt:l,width:n,height:r,style:o}):(0,s.jsx)("img",{src:d,class:i,alt:l,style:o})},t.useBestImage=c;const s=a(0),i=(a(1),a(7)),l=a(3);function c(e,t,a){const s=(0,i.getFastImage)(e,t),c=(0,i.getFastImage)(e,a),[n,r]=(0,l.useState)({});(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=c,e.onload=()=>r(Object.assign(Object.assign({},n),{[c]:!0}))}}),[c]);const o=(0,l.useMemo)((()=>n[c]?c:s),[e,t,a,n]);return(0,l.useEffect)((()=>{if(document){const e=document.createElement("img");e.src=c,e.onload=()=>r(Object.assign(Object.assign({},n),{[c]:!0}))}}),[c]),o}}},e=>{e.O(0,[1,2,3],(()=>e(e.s=238))),e.O()}]);