(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{7131:function(a,e,t){Promise.resolve().then(t.bind(t,3265))},3265:function(a,e,t){"use strict";t.d(e,{default:function(){return N}});var s=t(7437),l=t(2265),n=t(3754),i=t(9109),o=t(1198),r=t(5462),d=t(7052),c=t(2124);let u=a=>{let{pageContent:e,data:t}=a;return(0,s.jsx)("section",{className:"section-hot-trends white-1",children:(0,s.jsx)("div",{className:"container-fluid",children:(0,s.jsxs)("div",{className:"row pt-lg-160 pb-lg-135 pt-tablet-65 pt-phone-190 pb-tablet-60 pb-phone-145",children:[(0,s.jsxs)("div",{className:"col-lg-5 offset-lg-1 col-tablet-6 pos-relative z-2 column-text",children:[(0,s.jsx)("span",{className:"d-block fs--40 fs--mobile-25 fw-600","data-aos":"fadeIn .6s ease-in-out 0s, d:loop",children:t&&t.name}),(0,s.jsx)("h2",{className:"fs--90 fs-tablet-40 fs-phone-60 lh-100 fw-600 pt-lg-35 pt-tablet-10 pt-phone-20 section-title split-words","data-aos":"d:loop",children:e&&e.rentalsHotTrendsTagline})]}),(0,s.jsx)("div",{className:"col-12",children:(0,s.jsx)("div",{className:"container-img bg-img",children:(0,s.jsx)(c.f,{defaultDimensions:{width:1374,height:547},url:t.mainMedia,q:"100",attributes:{"data-parallax":"","data-translate-x-from":"10vw","data-translate-x-to":"0"}})})}),(0,s.jsx)("div",{className:"col-lg-5 offset-lg-1 pos-relative z-2 column-btn","data-aos":"fadeIn .6s ease-in-out 0s, d:loop",children:(0,s.jsx)(d.default,{to:"/category/".concat(t.slug),className:"btn-blue mt-lg-50 mt-mobile-20",attributes:{"data-cursor-style":"off"},children:(0,s.jsx)("span",{children:e&&e.rentalsHotTrendsButtonLabel})})})]})})})};var h=t(4584),p=t(6814),m=a=>{let{content:e}=a;return(0,s.jsx)("section",{className:"section-banner-our-team banner-home",children:(0,s.jsx)("div",{className:"container-fluid",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"col-12",children:(0,s.jsxs)("div",{className:"container-banner",children:[(0,s.jsx)("div",{className:"container-text white-1",children:(0,s.jsx)("h3",{className:"fs-lg-90 fs-mobile-60 lh-100 fw-600 split-words","data-aos":"d:loop",children:e&&e.mainTitle})}),(0,s.jsx)("div",{className:"container-img bg-img bg-black-1","data-parallax-top":!0,"data-parallax-no-mobile":!0,"data-translate-y":"70vh",children:(0,s.jsx)(c.f,{defaultDimensions:{width:1920,height:581},url:e.backgroundImage,debug:!0,attributes:{"data-aos":"fadeIn 1.2s ease-out-cubic 0s, d:loop"}},e.backgroundImage)})]})})})})})},b=t(4190),x=t(3922),f=a=>{let{products:e,content:t,savedProductsData:l,setSavedProductsData:n,getSelectedProductSnapShots:i}=a;return(0,s.jsx)("section",{className:"home-best-sellers white-1","data-aos":"d:loop",children:(0,s.jsx)("div",{className:"container-fluid",children:(0,s.jsxs)("div",{className:"row pb-lg-40 pb-tablet-100 pb-phone-190",children:[(0,s.jsx)("div",{className:"col-lg-4 offset-lg-1",children:(0,s.jsxs)("div",{className:"container-text pt-lg-65 pt-tablet-25 pt-phone-40",children:[(0,s.jsx)("h2",{className:"fs--60 fw-600 split-chars","data-aos":"d:loop",children:t&&t.subTitle}),(0,s.jsxs)("p",{className:"d-block fs--40 fs-mobile-18 fw-600 lh-140 pt-10 pt-phone-10","data-aos":"fadeIn .8s ease-in-out .4s, d:loop",children:[t&&t.firstDescription,(0,s.jsx)("br",{}),t&&t.secondDescription]}),(0,s.jsx)(b.o,{customClasses:"btn-blue mt-20 no-mobile",data:{label:t.buttonLabel,action:t.buttonAction},attributes:{"data-aos":"d:fadeIn .6s ease-in-out .6s, m:fadeIn .6s ease-in-out 0s, d:loop","data-cursor-style":"off"},children:t&&t.buttonLabel})]})}),(0,s.jsx)("div",{className:"col-lg-7 mt-phone-5",children:(0,s.jsxs)("div",{className:"best-sellers-slider","data-aos":!0,children:[(0,s.jsx)("div",{className:"swiper-container",children:(0,s.jsx)("div",{className:"swiper-wrapper",children:e.map((a,e)=>(0,s.jsx)("div",{className:"swiper-slide",children:(0,s.jsx)(x.Z,{productData:a,getSelectedProductSnapShots:i,savedProductsData:l,setSavedProductsData:n},e)},e))})}),(0,s.jsx)("div",{className:"swiper-button-prev swiper-button-01 no-mobile","data-aos":"fadeIn .8s ease-in-out .4s, d:loop",children:(0,s.jsx)("span",{children:(0,s.jsx)("i",{className:"icon-arrow-left-3"})})}),(0,s.jsx)("div",{className:"swiper-button-next swiper-button-01 no-mobile","data-aos":"fadeIn .8s ease-in-out .4s, d:loop",children:(0,s.jsx)("span",{children:(0,s.jsx)("i",{className:"icon-arrow-right-3"})})})]})}),(0,s.jsx)("div",{className:"col-12 no-desktop column-btn",children:(0,s.jsx)(b.o,{customClasses:"btn-blue mt-lg-20 mt-mobile-40",data:{label:t.buttonLabel,action:t.buttonAction},children:t&&t.buttonLabel})})]})})})},v=t(4209),j=t(1764),g=t(7112),N=a=>{let{heroSectionContent:e,newArrivalSectionContent:t,hotTrendsSectionContent:d,bestSellerProducts:c,highlightsSectionData:b,homeSectionDetails:x,dreamBigSectionContent:N,studiosData:w,marketsData:S,bestSellers:D}=a,[I,P]=(0,l.useState)([]),[k,C]=(0,l.useState)(null),[_,Z]=(0,l.useState)(),[y,L]=(0,l.useState)(null),[V,E]=(0,l.useState)(0),[T,U]=(0,l.useState)(),z=async(a,e)=>{C(a);try{let t;let{productSnapshotData:s,productVariantsData:l}=a,n=new Map(l.map(a=>[a.sku.toLowerCase(),a]));l&&a&&(t=a.variantData.filter(a=>{let e=a.sku.toLowerCase();if(n.has(e)){let t=n.get(e);return a.variant.variantId=t._id,!0}return!1})),Z(s),U(t);let i=a.variantData.findIndex(a=>a.variant._id?a.variant._id===e.variant._id:!!a.variant.variantId&&a.variant.variantId===e.variant.variantId),o=a.variantData[i];t&&o&&t.length>0&&F({index:i,selectedVariantData:o.variant,productSnapshots:s,modalUrl:o.zipUrl})}catch(a){(0,g.Z)("Error:",a)}},F=a=>{let{index:e,selectedVariantData:t,productSnapshots:s,modalUrl:l}=a;if(s){let a=s.find(a=>a.colorVariation===t.variantId);if(a&&(null==a?void 0:a.images)){let s={...t,...a,modalUrl:l};E(e),L(s)}else{let s={...t,...a,modalUrl:l,images:[{src:t.imageSrc}]};E(e),L(s)}}},A=async()=>{try{let a=await (0,v.iL)();P(a)}catch(a){(0,g.Z)("Error while fetching Saved Product",a)}};return(0,l.useEffect)(()=>{setTimeout(p.x0,500),A()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{content:e}),(0,s.jsx)(f,{products:c,content:e,savedProductsData:I,setSavedProductsData:P,getSelectedProductSnapShots:z}),(0,s.jsx)(h.Z,{content:t}),(0,s.jsx)(o.Z,{pageContent:x,data:b,savedProductsData:I,setSavedProductsData:P,getSelectedProductSnapShots:z}),(0,s.jsx)(u,{pageContent:x,data:d}),(0,s.jsx)(i.Z,{pageContent:x,marketsData:S}),(0,s.jsx)(n.Z,{content:x,studiosData:w}),(0,s.jsx)(r.Z,{content:N}),(0,s.jsx)(j.Z,{productData:k,setProductData:C,productSnapshots:_,productFilteredVariantData:T,selectedVariantData:y,setSelectedVariantData:L,handleImageChange:F,selectedVariantIndex:V,setProductSnapshots:Z,setProductFilteredVariantData:U,bestSeller:D,savedProductsData:I,setSavedProductsData:P})]})}}},function(a){a.O(0,[218,457,637,987,807,902,971,23,744],function(){return a(a.s=7131)}),_N_E=a.O()}]);