PageSourceSearch

https://www.simplinamdharis.com/_next/static/chunks/7953-6b26fbda49e0a864.js

js simplinamdharis.com collected 2026-10-08 06:25:29 UTC 140,434 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7953],{99780:function(e,l,s){s.d(l,{Z:function(){return ez}});var t=s(85893),i=s(93967),a=s.n(i),n=s(66018),r=s(11163),o=s(86517),d=s(67294),c=s(30719),x=s(65463),p=s(70245),u=s(84026),m=s(14192),v=function(e){var l,s;let{data:i}=e,n=(0,u.t)(),r=(e,l)=>"apparel1"===n?l:e,o={1720:{slidesPerView:r(3.25,2.25),spaceBetween:46},1440:{slidesPerView:r(3.25,2.25),spaceBetween:46},1366:{slidesPerView:r(3.25,2.25),spaceBetween:20},1025:{slidesPerView:r(3,2),spaceBetween:20},768:{slidesPerView:r(2,2),spaceBetween:20},0:{slidesPerView:r(2,2),spaceBetween:20}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)("div",{className:a()("grid lg:grid-cols-12 xs:px-[16px] min-h-[440px] xs:min-h-full sm:grid-cols-12 xs:grid-cols-1 grid-cols-1 items-center lg:gap-[30px] gap-5 xs:gap-0  px-[80px] xs:mb-0",{"":"total-sports"===n,"col-span-4 xs:col-span-6":"grocery"===n||"grocery1"===n||"pharma"===n||"grocery2"===n,"mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"sports"===n||"electronics"===n||"electronics1"===n||"grocery1"===n||"pharma"===n||"apparel"===n||"apparel2"===n||"apparelluxu"===n||"perfumes"===n||"grocery2"===n,"mx-auto !bg-[#F1F4F9] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px] !px-[50px] !pt-[60px] pb-[40px] xs:mt-[30px] xs:mb-[10px] xs:!p-[15px]":"apparel1"===n}),children:[(0,t.jsx)("div",{className:a()("gap-[30px] col-span-3",{"!col-span-5":"apparel1"===n||"perfumes"===n,"":"grocery"===n}),children:(0,t.jsx)("div",{className:" shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",children:(0,t.jsxs)("div",{className:"course-thumb  rounded-t-[8px]  relative",children:[(0,t.jsx)("p",{className:a()("text-[#3D3D3D] xs:text-[#222] text-[34px] xs:text-[14px] xs:mt-[15px] font-bold  leading-normal pb-[30px] xs:pb-2",{"xs:text-center xs:text-[20px] xs:font-normal !font-normal !font-cinzel":"apparel1"===n,"":"grocery"===n}),children:null==i?void 0:i.title}),(0,t.jsx)("p",{className:"text-[#8A8A8A] xs:text-[#8A8A8A] text-[16px] font-normal xs:text-[14px] w-[80%] leading-normal pb-[15px] xs:hidden",children:null==i?void 0:i.description}),(null==i?void 0:i.subtitle)&&(0,t.jsx)("p",{className:"text-[#3D3D3D] xs:text-[#222] text-[20px] font-normal xs:text-[14px] font-nunito-sans leading-normal pb-[15px] xs:hidden",children:null==i?void 0:i.subtitle})]})})}),(0,t.jsx)("div",{className:a()("gap-[30px] col-span-9",{"!col-span-7":"apparel1"===n,"":"grocery"===n}),children:(0,t.jsx)(p.Z,{autoplay:!0,className:a()("mt-0 pb-10 pt-0 xs:py-0",{"":"sports"===n,apparel1:"apparel1"===n}),spaceBetween:10,navigation:{prevEl:".pdt_slider_prev",nextEl:".pdt_slider_next"},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:o,loop:(null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.length)>2,centeredSlides:!1,children:(0,t.jsx)("div",{className:"gap-[30px] pt-10",children:null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(null==e?void 0:e.product_slug)&&(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid"},"product--key".concat(null==e?void 0:e.id))},"team--key-".concat(l)))})})})]})]})},h=s(56951),g=s(25675),f=s.n(g),w=s(30648),b=s(6639),j=s(41664),y=s.n(j),_=function(e){var l,s;let{data:i}=e,{locale:n}=(0,r.useRouter)();(0,b.M)(n);let o=(0,u.t)(),d=(e,l,s,t,i,a,n,r,d)=>{switch(o){case"sports":return l;case"grocery":return s;case"apparel":return t;case"electronic":return i;case"apparel1":return a;case"grocery1":case"pharma":return n;case"electronics":return d;default:return e}},x={1720:{slidesPerView:d(5.5,7,5.5,5.5,5.5,5,8,8,5.5),spaceBetween:30},1440:{slidesPerView:d(5.5,7,5.5,5.5,5.5,5,8,8,5.5),spaceBetween:30},1366:{slidesPerView:d(5.5,6,5.5,5.5,5.5,7,7,8,5.5),spaceBetween:30},1025:{slidesPerView:d(4.75,6,4.75,4.75,4.75,7,7,8,5),spaceBetween:28}
1,768:{slidesPerView:d(3.75,4,3.75,3.75,3.75,4,4,8,4),spaceBetween:20},0:{slidesPerView:d(3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5,3.5),spaceBetween:0}},v=(null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.slice(0,15))||[],h=v.length>1,g=v.length>5,f=(null==(s=null==i?void 0:i.title)?void 0:s.replace(/\s+/g,"").replace(/[^a-zA-Z0-9-_]/g,""))||"defaultBrandTitle-".concat(Date.now());return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==i?void 0:i.title,subTitle:null==i?void 0:i.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:a()("w-full swipe-padd relative ".concat(v.length>=8?"xs:mb-0":"xs:mb-[20px]"),{electronics:"electronics"===o,"bg-[#fff] shad2 min-h-[200px] sm:min-h-[115px] xs:min-h-[90px] py-[70px] sm:py-[40px] px-[50px] sm:px-[40px] xs:py-[40px] xs:px-[0px]":"apparel1"===o}),children:["sports"===o&&(0,t.jsx)(w.K8P,{}),h?(0,t.jsx)(p.Z,{autoplay:{delay:4e3},spaceBetween:10,navigation:g?{prevEl:".brands_prev".concat(f),nextEl:".brands_next".concat(f)}:void 0,pagination:{clickable:!0},slidesPerView:8,buttonPosition:"outside",breakpoints:x,loop:g,centeredSlides:!1,className:a()("",{"my-3":"sports"===o}),children:v.map((e,l)=>(0,t.jsx)(c.o5,{className:"flex items-center xs:justify-evenly",children:(0,t.jsx)(N,{v:e,template:o})},"team--key-".concat(l)))}):(0,t.jsx)("div",{className:"flex justify-start gap-5 flex-wrap",children:v.map((e,l)=>(0,t.jsx)(N,{v:e,template:o},"brand-static-".concat(l)))}),g&&"sports"!==o&&"apparel1"!==o&&"electronics"!==o&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"shadow-chevrons brands_prev".concat(f," select-none cursor-pointer absolute -top-[66px] right-[60px] z-10 xs:hidden"),children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("div",{className:"shadow-chevrons brands_next".concat(f," select-none cursor-pointer absolute -top-[66px] -right-[0px] z-10 xs:hidden"),children:(0,t.jsx)(w.ADv,{})})]}),"electronics"===o&&g&&(0,t.jsxs)("div",{className:"flex items-center justify-end mt-5 absolute -right-[35px] -bottom-[35px]",children:[(0,t.jsx)("div",{className:"shadow-chevrons brands_prev".concat(f," select-none cursor-pointer relative z-10 top-0 !right-0 flex items-center justify-end xs:hidden"),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("div",{className:"shadow-chevrons brands_next".concat(f," select-none cursor-pointer relative z-10 top-0 !right-0 flex items-center justify-end xs:hidden"),children:(0,t.jsx)(w.ZOn,{})})]})]})]})};let N=e=>{let{v:l,template:s}=e;return(0,t.jsx)("div",{className:"group wow fadeInUp","data-wow-delay":"0.4s",children:(0,t.jsx)(y(),{href:(null==l?void 0:l.href)||"#",className:"filter",children:(0,t.jsx)("div",{className:a()("relative z-1 mb-3.6 rounded-full xs:rounded-[7px] flex items-center justify-center",{"w-[120px] h-[120px] xs:h-[93px] xs:w-[93px] overflow-hidden":"grocery1"===s}),style:("grocery1"===s||"grocery2"===s||"apparel1"===s)&&(null==l?void 0:l.background_color)?{backgroundColor:l.background_color}:{},children:(0,t.jsx)(f(),{src:"".concat(null==l?void 0:l.image),height:40,width:240,alt:"brand",className:a()("w-[120px] xs:w-[93px] z-10",{"w-auto min-w-[187px] xs:min-w-fit xs:h-auto":"apparel1"===s,"xs:max-w-[93px] w-auto max-w-[120px]":"grocery1"===s,"w-auto 2xl:max-w-[200px] sm:max-w-[130px] md:max-w-[130px] max-w-[160px] lg:w-[200px] shadow-md rounded-full":"electronics"===s||"electronics1"===s})})})})})};var k=e=>{var l,s,i,n;let{data:o}=e,{query:x,asPath:v}=(0,r.useRouter)();null==v||null===(l=v.split("/"))||void 0===l||l[1];let{locale:h}=(0,r.useRouter)();(0,b.M)(h);let[g,j]=(0,d.useState)(0),_=(0,u.t)();return(0,d.useEffect)(()=>{var e,l;let s=async e=>{let l=await fetch("/api/subcategories?parent_id=".concat(e));await l.json()};(null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.length)>0&&s(null===(l=o.data[g])||void 0===l?void 0:l.slug)},[g,o]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"rounded-[6px] hidden xs:block",children:[(0,t.jsx)(m.Z,{title:null==o?void 0:o.title,subTitle:null==o?void 0:o.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"w-full swipe-padd relative ".concat((null==o?void 0:null===(s=o.data)||void 0===s?void 0:s.length)>=6?"mb-10 xs:mb-0":"mb-10 mb-0"),children:[(0,t.jsx)(p.Z,{autoplay:{delay:7e3},spaceBetween:10,navigation:{prevEl:".category_block_prev",nextEl:".category_block_next"},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:{1720:{slidesPerView:5,spaceBetween:74},1366:{slidesPerView:5,spaceBetween:36},1025:{slidesPerView:4,spaceBetween:20},768:{slidesPerView:4.45,spaceBetween:10},0:{slidesPerView:2,spaceBetween:10}},loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:a()("grid 2xl:gr
1id-cols-5 lg:grid-cols-4 xs sm:grid-cols-3 grid-cols-1 lg:mx-[35px]",{"grid 2xl:grid-cols-10 lg:grid-cols-10 sm:grid-cols-10 grid-cols-10":"grocery"===_||"grocery1"===_||"grocery2"===_||"pharma"===_}),children:null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.map((e,l)=>{var s,i;return(0,t.jsx)(c.o5,{className:"xs:mb-3",children:(0,t.jsx)("div",{className:"item w-full h-full flex flex-col justify-center sm:single-category-one lg:single-category-one items-center aos-init aos-animate relative",children:(0,t.jsxs)("div",{className:"text-center xs:pb-0 relative z-10 group mx-auto",children:[(0,t.jsx)("div",{className:"flex 2xl:w-[80px] lg:w-[80px] 2xl:h-[80px] lg:h-[80px] sm:w-[800px] sm:h-[80px] xs:w-auto xs:h-24 overflow-hidden m-auto",children:(0,t.jsx)("div",{className:"flex flex-shrink-0 transition-all duration-700 w-full h-full transform scale-100",children:(null==e?void 0:e.image)&&(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:200,height:200,quality:100,className:"object-cover rounded-full xs:rounded-none xs:h-full xs:w-auto sm:w-[150px] sm:h-[150px]"})})})}),(0,t.jsx)(y(),{href:null!==(i=null==e?void 0:e.href)&&void 0!==i?i:"#",children:(0,t.jsx)("h4",{className:"2xl:text-[18px] lg:text-[16px] xs:text-[14px] font-semibold font-nunito-sans text-center text-[#2D3954] pt-[15px] xs:pt-2 xs:w-[98%]",children:null==e?void 0:e.category_name})})]})})},"team--key-".concat(l))})})}),(0,t.jsx)("div",{className:"shadow-chevrons brands_prev select-none cursor-pointer absolute -top-[78px] right-[60px] z-10 xs:hidden",children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("div",{className:"shadow-chevrons brands_next select-none cursor-pointer absolute -top-[78px]  -right-[0px] z-10 xs:hidden",children:(0,t.jsx)(w.ADv,{})})]})]}),(0,t.jsx)("div",{className:"xs:!hidden",children:(0,t.jsx)(m.Z,{title:null==o?void 0:o.title,subTitle:null==o?void 0:o.sub_title,className:"!mb-10 xs:!mb-[15px]"})}),(0,t.jsx)("div",{className:"flex mb-10 xs:hidden",children:null==o?void 0:null===(n=o.data)||void 0===n?void 0:n.map((e,l)=>{var s;return(0,t.jsx)("div",{className:"bg-cover bg-center h-96 ".concat(l===g?"active":""," ").concat("grocery"===_?"panel":""," ").concat("total-sports"===_?"panel":""),style:{backgroundImage:"url(".concat(null==e?void 0:e.image,")")},onClick:()=>j(l),children:(0,t.jsx)("h3",{className:"text-white text-2xl font-bold",children:(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:null==e?void 0:e.category_name})})},l)})})]})},Z=s(91301),P=s(19223),E=s(27728),V=function(e){var l,s,i,n,o,d,c,x,p,v,h,g,w,b,j,_,N,k,Z,V,B,L,F,C,z;let{data:D}=e,S=(0,r.useRouter)(),I=(0,u.t)(),M=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),S.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:"","&"))}},R=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==D?void 0:D.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)("div",{className:a()("row-span-2 xs:mt-0 grid h-3/3 grid-cols-3 xs:mb-0 md:!grid-cols-3 xs:grid-cols-1 2xl:gap-[30px] lg:gap-[22px] sm:gap-[18px] xs:gap-2 xs:pb-0",{"2xl:gap-[10px] lg:gap-[10px] sm:gap-[10px]":"perfumes"===I}),children:[(0,t.jsx)("div",{className:"row-span-2 xs:row-span-1  ",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[0]),target:(null==D?void 0:null===(i=D.data)||void 0===i?void 0:null===(s=i[0])||void 0===s?void 0:s.is_products)?"_self":"_blank",onClick:e=>{var l;return M(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[0])},children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==D?void 0:null===(o=D.data)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.image,height:1308,width:1156,alt:"banner"})})}),(0,t.jsxs)("div",{className:a()("row-span-2 grid gap-5 xs:gap-2",{"2xl:!gap-[10px] lg:!gap-[10px] sm:!gap-[10px]":"perfumes"===I}),children:[(0,t.jsx)("div",{className:"col-span-12 xs:col-span-12",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(d=D.data)||void 0===d?void 0:d[1]),target:(null==D?void 0:null===(x=D.data)||void 0===x?void 0:null===(c=x[1])||void 0===c?void 0:c.is_products)?"_self":"_blank",onClick:e=>{var l;return M(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[1])},children:(0,t.jsx)(f(),{className:"h-auto",src:null==D?void 0:null===(v=D.data)||void 0===v?void 0:null===(p=v[1])||void 0===p?void 0:p.image,height:556,width:1156,alt:"banner"})})}),(0,t.jsx)("div",{className:"col-span-6 xs:col-span-6",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(h=D.data)||void 0===h?void 0:h[2]),target:(null==D?void 0:null===(w=D.data)||void 0===w?void 0:null===(g=w[2])||void 0===g?void 0:g.is_products)?"_self":"_blank",onClick:e=>{var l;return M(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[2])},children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==D?void 0:null===(j=D.data)||void 0===j?void 0:null===(b=j[2])||void 0===b?void 0:b.image,height:278,width:578,alt:"banner"})})}),(0,t.jsx)("div",{className:"col-span-6 xs:col-span-6",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(_=D.data)||void 0===_?void 0:_[3]),target:(null==D?void 0:null===(k=D.data)||void 0===k?void 0:null===(N=k[3])||void 0===N?void 0:N.is_products)?"_self":"_blank",onClick:e=>{var l;return M(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[3])},children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==D?void 0:null===(V=D.data)||void 0===V?void 0:null===(Z=V[3])||void 0===Z?void 0:Z.image,height:278,width:578,alt:"banner"})})})]}),(0,t.jsx)("div",{className:"row-span-2 ",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(B=D.data)||void 0===B?void 0:B[4]),target:(null==D?void 0:null===(F=D.data)||void 0===F?void 0:null===(L=F[4])||void 0===L?void 0:L.is_products)?"_self":"_blank",onClick:e=>{var l;return M(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[4])},children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==D?void 0:null===(z=D.data)||void 0===z?void 0:null===(C=z[4])||void 0===C?void 0:C.image,height:1308,width:1156,alt:"banner"})})})]})]})},B=e=>{let{data:l,className:s=""}=e,i=(0,r.useRouter)(),n=(0,u.t)(),o=(0,d.useRef)(null),x=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),i.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},v=e=>{var s;return(null==e?void 0:e.is_products)?(0,P.LY)(null==l?void 0:l.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==e?void 0:e.landing_page_id)&&void 0!==s?s:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"},h=(null==l?void 0:l.data)||[];
1if(h.length<4)return null;let g=h.slice(0,2),b=h.slice(2,4),j=h.slice(4,h.length);return(0,t.jsxs)("div",{className:s,children:[(0,t.jsx)(m.Z,{title:null==l?void 0:l.title,subTitle:null==l?void 0:l.sub_title}),(0,t.jsxs)("div",{className:a()("grid grid-cols-5 gap-4 xs:grid-cols-1",s),children:[(0,t.jsx)("div",{className:"flex flex-col gap-4 col-span-1 xs:hidden",children:g.map((e,l)=>(0,t.jsx)(y(),{href:v(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>x(l,e),className:"relative w-full h-1/2 overflow-hidden rounded-md group",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,alt:"Banner Left ".concat(l),width:600,height:600,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"})},"left-".concat(l)))}),(0,t.jsx)("div",{className:"col-span-3 relative flex flex-col rounded-md overflow-hidden xs:col-span-1 group/slider [&_.swiper-pagination]:!bottom-6 [&_.swiper-pagination]:!z-20 [&_.swiper-pagination-bullet]:!bg-white [&_.swiper-pagination-bullet]:!w-3 [&_.swiper-pagination-bullet]:!h-3 [&_.swiper-pagination-bullet]:!opacity-50 [&_.swiper-pagination-bullet-active]:!w-8 [&_.swiper-pagination-bullet-active]:!rounded-full [&_.swiper-pagination-bullet-active]:!opacity-100 [&_.swiper-pagination-bullet]:transition-all",children:j.length>0?(0,t.jsxs)("div",{className:"w-full h-full relative",children:[(0,t.jsx)(p.Z,{pagination:{clickable:!0},navigation:!1,autoplay:{delay:5e3,disableOnInteraction:!1},onSwiper:e=>{o.current=e},className:"w-full h-full rounded-md",buttonClassName:"hidden",children:j.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)(y(),{href:v(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>x(l,e),className:"block w-full h-full relative",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,alt:"Slider Image ".concat(l),width:1e3,height:800,className:"w-full h-full object-cover rounded-md"})})},"slider-".concat(l)))}),(0,t.jsx)("div",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons top_picks_prev_banner select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-10 xs:hidden",{hidden:"apparelluxu"===n||"perfumes"===n}),children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("div",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slideNext()},className:a()("shadow-chevrons top_picks_next_banner select-none cursor-pointer absolute xl:-top-[63px] -top-[63px]  -right-[0px] z-10 xs:hidden",{hidden:"apparelluxu"===n||"perfumes"===n}),children:(0,t.jsx)(w.ADv,{})}),("apparelluxu"===n||"perfumes"===n)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slidePrev()},className:"shadow-chevrons top_picks_prev_banner hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[70px] z-10 xs:hidden !flex absolute !top-[50%] !-translate-y-1/2 !left-[10px] !right-[inherit]",children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("div",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slideNext()},className:"shadow-chevrons top_picks_next_banner hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden !flex ml-2 absolute !top-[50%] !-translate-y-1/2 !right-[10px]",children:(0,t.jsx)(w.ZOn,{})})]})]}):(0,t.jsx)("div",{className:"w-full h-full bg-gray-100 rounded-md"})}),(0,t.jsx)("div",{className:"flex flex-col gap-4 col-span-1 xs:hidden",children:b.map((e,l)=>(0,t.jsx)(y(),{href:v(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>x(l,e),className:"relative w-full h-1/2 overflow-hidden rounded-md group",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,alt:"Banner Right ".concat(l),width:600,height:600,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"})},"right-".concat(l)))})]})]})};let L={1720:{slidesPerView:4,spaceBetween:36},1366:{slidesPerView:4,spaceBetween:25},1024:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20},0:{slidesPerView:2,spaceBetween:10}};var F=function(e){var l,s;let{data:i}=e,a=(0,r.useRouter)(),n=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),a.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},o=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==i?void 0:i.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==i?void 0:i.title,subTitle:null==i?void 0:i.sub_title,className:"!mb-10 xs:!mb-[15px]"}
1)," ",(0,t.jsx)("div",{className:"w-full swipe-padd relative ".concat((null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.length)>=5?"mb-10 xs:mb-0":"mb-0"),children:(0,t.jsx)(p.Z,{autoplay:!1,className:"mt-[0px] xs:mt-0",spaceBetween:10,navigation:{prevEl:".four_column_prev",nextEl:".four_column_next"},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:L,loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:"grid lg:grid-cols-4 grid-cols-1 gap-[30px] pt-10",children:null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:" shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm xs:mb-3",children:(0,t.jsx)("div",{className:"course-thumb rounded-t-[8px] relative",children:(0,t.jsx)(y(),{href:o(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>n(l,e),children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),height:654,width:578,alt:"banner",className:" w-full h-full object-cover rounded-t-[0px]"})})})})},"team--key-".concat(l)))})})})]})};let C={1720:{slidesPerView:1},1366:{slidesPerView:1},1025:{slidesPerView:1},768:{slidesPerView:1},0:{slidesPerView:1}};var z=e=>{var l;let{data:s,className:i="mb-12 lg:mb-14 lg:mb-[100px]",paginationPosition:n="center",buttonClassName:o="hidden",buttonPosition:x="outside"}=e,m=(0,u.t)(),v=(0,r.useRouter)(),h=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),v.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},g=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==s?void 0:s.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"},w=d.useRef(null),b=e=>{let l=e.activeIndex,s=e.slides[l].querySelector("video");s?(e.autoplay.stop(),s.currentTime=0,s.play(),s.onended=()=>{e.slideNext(),e.autoplay.start()}):e.autoplay.start()};return(0,d.useEffect)(()=>{if(w.current){let e=w.current;e.on("slideChange",()=>b(e)),b(e)}},[]),(0,t.jsx)("div",{className:a()(" mb-[5px] xs:mb-0 xs:bg-[#FFF] xs:px-[0px] xs:pt-0",{"":"sports"===m||"total-sports"===m,"gap-4 xs:gap-2 mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"grocery"===m||"pharma"===m||"electronics"===m||"electronics1"===m,"gap-4 xs:gap-2 mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] max-w-[1920px] xxl:max-w-[1920px] 2xl:max-w-[1920px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"apparel2"===m||"apparelluxu"===m||"perfumes"===m,"!mb-0 apparel xs:!px-0 xs:!pt-0":"apparel"===m,"!mb-0 apparel xs:!px-0 xs:!pt-0 p":"apparel1"===m||"apparel2"===m||"apparelluxu"===m||"perfumes"===m,"mt-[25px]":"pharma"===m,"!max-w-full":"apparelluxu"===m||"perfumes"===m||"apparel2"===m}),children:(0,t.jsx)("div",{className:a()("bg-home-slider block relative",{"":"total-sports"===m,"mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"sports"===m||"grocery1"===m}),children:(0,t.jsx)(p.Z,{effect:"apparelluxu"===m||"perfumes"===m?"slide":"fade",onSwiper:e=>{w.current=e},autoplay:{delay:5e3,disableOnInteraction:!1},navigation:{prevEl:".swiper_prev",nextEl:".swiper_next"},className:a()("mx-0 fullWidth pagination-center sports",{"total-sports":"total-sports"===m}),buttonClassName:a()(o),pagination:{clickable:!0},scrollbar:{draggable:!1,hide:!1},centeredSlides:!0,breakpoints:C,children:null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.map((e,l)=>(0,t.jsx)(c.o5,{className:"carouselItem",children:(0,t.jsx)("div",{className:a()("",{"":"sports"===m||"total-sports"===m}),children:(null==e?void 0:e.is_video)?(0,t.jsx)(y(),{href:g(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>h(l,e),className:"block w-full h-full",children:(0,t.jsxs)("video",{height:700,width:1521,autoPlay:!0,muted:!0,playsInl
1ine:!0,className:" w-full h-full object-cover rounded-t-[0px] xs:rounded-[10px] max-h-[700px]",children:["  ",(0,t.jsx)("source",{src:null==e?void 0:e.video})]})}):(0,t.jsx)(y(),{href:g(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>h(l,e),children:(0,t.jsx)(f(),{className:a()("w-full xs:h-auto lg:object-cover",{"":"sports"===m||"total-sports"===m,"lg:object-fill max-h-[700px]":"grocery"===m||"grocery1"===m||"grocery2"===m||"pharma"===m,"":"apparelluxu"===m||"perfumes"===m,"lg:h-[86vh] object-cover":"apparel2"===m}),src:null==e?void 0:e.image,width:1920,height:700,priority:!0,alt:"bannerImage"})})})},"HOME-SLIDER"+l))})})})},D=function(e){let l,{end_date:s}=e,i=new Date(s),a=i.getTimezoneOffset();i.setMinutes(i.getMinutes()+a);let[n,r]=(0,d.useState)({days:0,hours:0,minutes:0,seconds:0});(0,d.useEffect)(()=>(l=setInterval(()=>o(),1e3),()=>clearInterval(l)),[]);let o=()=>{if(i){let e=i-new Date;if(e<0)clearInterval(l),r({days:0,hours:0,minutes:0,seconds:0});else{let l=Math.floor(e/864e5),s=Math.floor(e%864e5/36e5),t=Math.floor(e%36e5/6e4),i=Math.floor(e%6e4/1e3);l="".concat(l).padStart(2,"0"),r({days:l,hours:s="".concat(s).padStart(2,"0"),minutes:t="".concat(t).padStart(2,"0"),seconds:i="".concat(i).padStart(2,"0")})}}};return(0,t.jsx)("div",{children:0===n.days&&0===n.hours&&0===n.minutes&&0===n.seconds?(0,t.jsx)("div",{className:"counter-timer bg-white py-2 rounded-2xl text-black",children:"Sale Closed !!"}):(0,t.jsxs)("div",{className:"flex items-center justify-center gap-1 count-down-main",children:[n.days>0&&(0,t.jsxs)("div",{className:"timer w-8",children:[(0,t.jsx)("div",{className:"bg-white py-1 px-2 rounded-lg overflow-hidden",children:(0,t.jsx)("h3",{className:"countdown-element days font-Cormorant font-semibold text-sm text-black text-center",children:n.days})}),(0,t.jsx)("p",{className:"text-xs font-Cormorant font-medium text-gray-900 mt-0.5 text-center",children:"Days"})]}),n.hours>0&&(0,t.jsxs)("div",{className:"timer w-8",children:[(0,t.jsx)("div",{className:"bg-white py-1 px-2 rounded-lg overflow-hidden",children:(0,t.jsx)("h3",{className:"countdown-element hours font-Cormorant font-semibold text-sm text-black text-center",children:n.hours})}),(0,t.jsx)("p",{className:"text-xs font-Cormorant font-medium text-gray-900 mt-0.5 text-center",children:"Hours"})]}),n.minutes>0&&(0,t.jsxs)("div",{className:"timer w-8",children:[(0,t.jsx)("div",{className:"bg-white py-1 px-2 rounded-lg overflow-hidden",children:(0,t.jsx)("h3",{className:"countdown-element minutes font-Cormorant font-semibold text-sm text-black text-center",children:n.minutes})}),(0,t.jsx)("p",{className:"text-xs font-Cormorant font-medium text-gray-900 mt-0.5 text-center",children:"Min"})]}),n.seconds>=0&&(0,t.jsxs)("div",{className:"timer w-8",children:[(0,t.jsx)("div",{className:"bg-white py-1 px-2 rounded-lg overflow-hidden",children:(0,t.jsx)("h3",{className:"countdown-element seconds font-Cormorant font-semibold text-sm text-black text-center animate-countinsecond",children:n.seconds})}),(0,t.jsx)("p",{className:"text-xs font-Cormorant font-medium text-gray-900 mt-0.5 text-center",children:"Sec"})]})]})})};let S={1720:{slidesPerView:4,spaceBetween:20},1366:{slidesPerView:3,spaceBetween:20},1025:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:2,spaceBetween:15},0:{slidesPerView:1.5,spaceBetween:10}};var I=function(e){var l,s,i,a;let n=(0,r.useRouter)(),o=(0,u.t)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==e?void 0:e.title,subTitle:null==e?void 0:e.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"offer grid lg:grid-cols-12 xs:grid-cols-12 sm:grid-cols-12 grid-cols-1 items-center lg:gap-[30px] xs:gap-0 gap-5 bg-".concat(o,"-footer bg-cover bg-center xs:bg-none bg-no-repeat px-14 xs:px-0 gm"),children:[(0,t.jsx)("div",{className:"gap-[30px] col-span-2 xs:col-span-12 py-4 xs:bg-${template}-themecolorsecondary flex items-center justify-center h-full",children:(0,t.jsx)("div",{className:"shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm relative",children:(0,t.jsxs)("div",{className:"course-thumb rounded-t-[8px] relative",children:[(0,t.jsxs)("div",{className:"relative w-full h-[200px]",children:[(0,t.jsx)(f(),{src:"/l
1imited-offer-img.svg",fill:!0,alt:"offer",className:"object-contain !relative"}),(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.title)&&(0,t.jsx)("div",{className:"absolute inset-0 flex items-end bottom-[38px] sm:bottom-[48px] xs:bottom-[28px] justify-center",children:(0,t.jsx)("p",{className:"text-white font-bold text-center rounded-lg",children:e.data.title})})]}),(0,t.jsxs)("div",{className:"text-center gap-0 w-3/4 m-auto py-4",children:[(0,t.jsx)("p",{className:"uppercase text-xs font-bold",children:"Limited time only"}),(0,t.jsx)("div",{className:"pt-2.5",children:(0,t.jsx)(D,{end_date:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.end_date})})]})]})})}),(0,t.jsx)("div",{className:"gap-[30px] col-span-10 xs:col-span-12",children:(0,t.jsx)(p.Z,{autoplay:!1,className:"mt-0 py-10 xs:py-3 img-bg",spaceBetween:20,navigation:{prevEl:".limited_offer_prev",nextEl:".limited_offer_next"},pagination:{clickable:!0},slidesPerView:2,buttonPosition:"outside",breakpoints:S,loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:"gap-[30px] pt-10",children:null==e?void 0:null===(a=e.data)||void 0===a?void 0:null===(i=a.data)||void 0===i?void 0:i.map((e,l)=>(0,t.jsx)(c.o5,{className:"flex w-full",children:(0,t.jsx)("div",{className:"shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm xs:mb-0 cursor-pointer p-4 w-full offer1",onClick:()=>n.push("/product/".concat(null==e?void 0:e.product_slug)),children:(0,t.jsx)("div",{className:"overlay h-full w-full flex justify-center course-thumb rounded-t-[8px] relative p-2 mb-2 xs:mb-0 offer2",children:(0,t.jsx)(x.Z,{product:e,imgWidth:450,imgHeight:550,variant:"grid",className:"w-full"},"product--key".concat(null==e?void 0:e.id))})})},"team--key-".concat(l)))})})})]})]})},M=s(88702),R=function(e){var l;let{data:s,singleColumnFull:i}=e,n=(0,u.t)(),o=(0,r.useRouter)(),d=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),o.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},c=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==s?void 0:s.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"};return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:a()("",{"":"sports"===n,"":"grocery"===n,"":"apparel1"===n}),children:[(0,t.jsx)("div",{className:"".concat(!0===i?"px-4":""),children:(0,t.jsx)(m.Z,{title:null==s?void 0:s.title,subTitle:null==s?void 0:s.sub_title})}),(0,t.jsx)("div",{className:"relative px-0 pt-0",children:null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.map((e,l)=>(null==e?void 0:e.is_video)?(0,t.jsx)(y(),{href:c(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>d(l,e),className:"block w-full h-full",children:(0,t.jsxs)("video",{height:1e3,width:700,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:" w-full h-full object-cover rounded-t-[0px] xs:rounded-[10px] max-h-[700px]",children:[" ",(0,t.jsx)("source",{src:null==e?void 0:e.video})]})}):"apparelluxu"===n||"perfumes"===n?(0,t.jsx)(y(),{href:c(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>d(l,e),className:"block w-full",children:(0,t.jsx)("div",{className:"w-full h-[700px] sm:h-[500px] xs:h-[400px] bg-fixed bg-[center_50px] bg-no-repeat bg-cover xs:bg-scroll xs:bg-[center_top]",style:{backgroundImage:"url('".concat(null==e?void 0:e.image,"')")}})}):(0,t.jsx)(y(),{href:c(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>d(l,e),children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),className:"max-h-full max-w-full xs:min-h-[145px]",alt:"app",height:700,width:2e3})}))})]})})},O=function(e){var l,s,i;let{data:n}=e,o=(0,u.t)(),d=(0,r.useRouter)(),x=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),d.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},v=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==n?void 0:n.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:"#"};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==n?void 0:n.title,subTitle:null==n?void 0:n.sub_title,className:"!mb-10 xs:!mb-[15px]"}
1),(0,t.jsx)("div",{className:a()("w-full swipe-padd relative",{"mb-10 xs:mb-0":(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.length)>=4,"mb-0":(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.length)<4,"":"sports"===o,"":"total-sports"===o,"":"grocery"===o}),children:(0,t.jsx)(p.Z,{autoplay:!1,className:"xs:mt-0 img-bg",spaceBetween:10,navigation:{prevEl:".three_column_prev",nextEl:".three_column_next"},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:{1720:{slidesPerView:3,spaceBetween:"perfumes"===o||"apparel2"===o?5:30},1366:{slidesPerView:3,spaceBetween:"perfumes"===o||"apparel2"===o?5:30},1025:{slidesPerView:3,spaceBetween:12},768:{slidesPerView:2,spaceBetween:12},0:{slidesPerView:1.1}},loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:"grid lg:grid-cols-3 grid-cols-1 gap-[12px] pt-10",children:null==n?void 0:null===(i=n.data)||void 0===i?void 0:i.map(e=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:" shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",children:(0,t.jsx)("div",{className:"course-thumb rounded-t-[8px]  relative shadow-category-block",children:(0,t.jsx)(y(),{href:v(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>x(l,e),children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,height:960,width:1734,alt:"banner",className:" w-full h-full object-cover rounded-t-[0px] max-h-[700px]"})})})})},"team--key-".concat(e)))})})})]})},A=s(81862),H=function(e){var l,s,i;let{data:n}=e,o=(0,u.t)(),{locale:d}=(0,r.useRouter)();(0,b.M)(d);let x=(null==(i=null==n?void 0:n.title)?void 0:i.replace(/[^a-zA-Z0-9_]/g,""))||"defaultTitle-".concat(Date.now());return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==n?void 0:n.title,subTitle:null==n?void 0:n.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"w-full swipe-padd relative ".concat((null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.length)>=6?"mb-10 xs:mb-0":"mb-0"),children:[(0,t.jsx)(p.Z,{autoplay:{delay:7e3},className:"",spaceBetween:10,navigation:{prevEl:".top_picks_prev_".concat(x),nextEl:".top_picks_next_".concat(x)},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:"apparelluxu"===o||"perfumes"===o?{1720:{slidesPerView:4.5,spaceBetween:12},1440:{slidesPerView:4.5,spaceBetween:12},1366:{slidesPerView:4.5,spaceBetween:12},1025:{slidesPerView:3.5,spaceBetween:12},768:{slidesPerView:3,spaceBetween:12},0:{slidesPerView:2.15,spaceBetween:10}}:{1720:{slidesPerView:5.5,spaceBetween:40},1440:{slidesPerView:4.5,spaceBetween:40},1366:{slidesPerView:4,spaceBetween:40},1025:{slidesPerView:4,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20},0:{slidesPerView:3.15,spaceBetween:10}},loop:"apparelluxu"===o||"perfumes"===o,centeredSlides:!1,children:(0,t.jsx)("div",{className:"grid 2xl:grid-cols-5 lg:grid-cols-4 sm:grid-cols-3 grid-cols-1 lg:mx-[35px]",children:null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsxs)("div",{className:a()("group relative m-0 flex sm:mx-auto xs:mb-1",{appo:"apparelluxu"===o||"perfumes"===o}),children:[(0,t.jsx)(A.E.div,{initial:"apparelluxu"===o||"perfumes"===o?{scale:.95,opacity:0}:{},whileInView:"apparelluxu"===o||"perfumes"===o?{scale:1,opacity:1}:{},transition:{duration:.8,ease:"easeOut"},viewport:{once:!0},className:a()("z-10 h-full w-full",{"overflow-hidden":"apparelluxu"===o||"perfumes"===o}),children:(0,t.jsx)(y(),{href:(0,P.LY)(null==n?void 0:n.id,e),target:e.is_products?"_self":"_blank",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),height:639,width:600,className:a()("block h-full 2xl:max-h-[400px] lg:max-h-[370px] sm:max-h-[370px] xs:max-h-[240px] w-full object-cover object-center opacity-100 transition",{"2xl:max-h-[180px] lg:max-h-[180px] sm:max-h-[180px] xs:max-h-[180px] rounded-[10px]":"pharma"===o,"2xl:max-h-[639px]  lg:max-h-[639px] sm:max-h-[639px] xs:max-h-[639px] transition-transform duration-[3500ms] ease-in-out group-hover:scale-[1.3] w-full":"apparelluxu"===o||"perfumes"===o}),alt:"top -pick"})})}),(0,t.jsx)("div",{className:"content-banner xs:hidden",children:(0,t.jsxs)("a",{href:"/collections/all",className:"title-banner-banner_NCewcE",children:[" ",null==e?void 0:e.title]})}),("apparelluxu"===o||"perfumes"===o)&&(0,t.jsx)(A.E.div,{initial:{y:30,opacity:0}
1,whileInView:{y:0,opacity:1},transition:{delay:.4,duration:.6,ease:"easeOut"},viewport:{once:!0},className:"flex z-[1111] items-center justify-center text-[#fff] xs:flex xs:justify-center p-3 absolute bottom-0 z-20 m-0 pb-4 ps-4 w-full text-center",children:(0,t.jsx)("p",{className:"text-[20px] xs:text-xs font-semibold xs:font-semibold  text-[#fff] xs:text-[#fff]",children:null==e?void 0:e.title})})]})},"team--key-".concat(l)))})}),(0,t.jsx)("div",{className:a()("shadow-chevrons top_picks_prev_".concat(x," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-10 xs:hidden"),{hidden:"apparelluxu"===o||"perfumes"===o}),children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("div",{className:a()("shadow-chevrons top_picks_next_".concat(x," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px]  -right-[0px] z-10 xs:hidden"),{hidden:"apparelluxu"===o||"perfumes"===o}),children:(0,t.jsx)(w.ADv,{})}),("apparelluxu"===o||"perfumes"===o)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"shadow-chevrons top_picks_prev_".concat(x," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[70px] z-10 xs:hidden !flex absolute !top-[50%] !-translate-y-1/2 !left-[10px] !right-[inherit]"),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("div",{className:"shadow-chevrons top_picks_next_".concat(x," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden !flex ml-2 absolute !top-[50%] !-translate-y-1/2 !right-[10px]"),children:(0,t.jsx)(w.ZOn,{})})]})]})]})},T=function(e){var l,s,i,n,o,d,c,x,p,v,h,g,w,b,j,_,N,k,Z,V,B,L,F,C,z;let{data:D}=e,S=(0,r.useRouter)(),I=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),S.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},M=(0,u.t)(),R=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==D?void 0:D.id,e):(null==e?void 0:e.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?null==e?void 0:e.url:void 0},O="apparelluxu"===M||"perfumes"===M?{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.8,ease:"easeOut"}}:{};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==D?void 0:D.title,subTitle:null==D?void 0:D.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:a()("grid grid-cols-2 gap-8 xs:gap-2 xs:mb-3 mb-[47px]",{"!gap-[10px]":"apparelluxu"===M||"perfumes"===M}),children:[(0,t.jsx)(A.E.div,{className:"row-span-1 xs:col-span-5",...O,children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[0]),target:(null==D?void 0:null===(i=D.data)||void 0===i?void 0:null===(s=i[0])||void 0===s?void 0:s.is_products)?"_self":"_blank",onClick:e=>{var l;return I(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[0])},children:(0,t.jsx)("div",{className:a()("overflow-hidden w-full h-full block",{group:"apparelluxu"===M||"perfumes"===M}),children:(0,t.jsx)(f(),{className:a()("w-full transition-transform duration-700 ease-in-out",{"group-hover:scale-110":"apparelluxu"===M||"perfumes"===M}),src:null==D?void 0:null===(o=D.data)||void 0===o?void 0:null===(n=o[0])||void 0===n?void 0:n.image,height:654,width:1e3,alt:"banner"})})})}),(0,t.jsx)(A.E.div,{className:"row-span-1 xs:col-span-5",...O,children:(0,t.jsxs)("div",{className:a()("grid grid-cols-2 col-span-2 gap-8 xs:gap-2",{"!gap-[10px]":"apparelluxu"===M||"perfumes"===M}),children:[(0,t.jsx)("div",{className:"",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(d=D.data)||void 0===d?void 0:d[1]),target:(null==D?void 0:null===(x=D.data)||void 0===x?void 0:null===(c=x[1])||void 0===c?void 0:c.is_products)?"_self":"_blank",onClick:e=>{var l;return I(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[1])},children:(0,t.jsx)("div",{className:a()("overflow-hidden w-full h-full block",{group:"apparelluxu"===M||"perfumes"===M}),children:(0,t.jsx)(f(),{className:a()("w-full transition-transform duration-700 ease-in-out",{"group-hover:scale-110":"apparelluxu"===M||"perfumes"===M}),src:null==D?void 0:null===(v=D.data)||void 0===v?void 0:null===(p=v[1])||void 0===p?void 0:p.image,height:313,width:313,alt:"banner"})})})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(h=D.data)||void 0===h?void 0:h[2]),target:(null==D?void 0:null===(w=D.data)||void 0===w?void 0:null===(g=w[2])||void 0===g?void 0:g.is_products)?"_self":"_blank",onClick:e=>{var l;return I(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[2])},children:(0,t.jsx)("div",{className:a()("overflow-hidden w-full h-full block",{group:"apparelluxu"===M||"perfumes"===M}),children:(0,t.jsx)(f(),{className:a()("w-full transition-transform duration-700 ease-in-out",{"group-hover:scale-110":"apparelluxu"===M||"perfumes"===M}),src:null==D?void 0:null===(j=D.data)||void 0===j?void 0:null===(b=j[2])||void 0===b?void 0:b.image,height:313,width:313,alt:"banner"})})})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(_=D.data)||void 0===_?void 0:_[3]),target:(null==D?void 0:null===(k=D.data)||void 0===k?void 0:null===(N=k[3])||void 0===N?void 0:N.is_products)?"_self":"_blank",onClick:e=>{var l;return I(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[3])},children:(0,t.jsx)("div",{className:a()("overflow-hidden w-full h-full block",{group:"apparelluxu"===M||"perfumes"===M}),children:(0,t.jsx)(f(),{className:a()("w-full transition-transform duration-700 ease-in-out",{"group-hover:scale-110":"apparelluxu"===M||"perfumes"===M}),src:null==D?void 0:null===(V=D.data)||void 0===V?void 0:null===(Z=V[3])||void 0===Z?void 0:Z.image,height:313,width:313,alt:"banner"})})})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)(y(),{href:R(null==D?void 0:null===(B=D.data)||void 0===B?void 0:B[4]),target:(null==D?void 0:null===(F=D.data)||void 0===F?void 0:null===(L=F[4])||void 0===L?void 0:L.is_products)?"_self":"_blank",onClick:e=>{var l;return I(e,null==D?void 0:null===(l=D.data)||void 0===l?void 0:l[4])},children:(0,t.jsx)("div",{className:a()("overflow-hidden w-full h-full block",{group:"apparelluxu"===M||"perfumes"===M}),children:(0,t.jsx)(f(),{className:a()("w-full transition-transform duration-700 ease-in-out",{"group-hover:scale-110":"apparelluxu"===M||"perfumes"===M}),src:null==D?void 0:null===(z=D.data)||void 0===z?void 0:null===(C=z[4])||void 0===C?void 0:C.image,height:313,width:313,alt:"banner"})})})})]})})]})]})},Y=s(71508),W=s(2065),q=e=>{var l,s,i;let{className:a="mt-[0px] xs:mb-[10px]",data:n,loading:o,error:d,uniqueKey:x,gridCount:u=5}=e,{query:v,asPath:g}=(0,r.useRouter)();return(0,t.jsxs)(h.Z,{className:"xs:!px-0",children:[(0,t.jsx)("div",{className:"flex lg:gap-10 gap-4 xs:mb-0 xs:pt-0",children:(0,t.jsx)(m.Z,{title:"Recipes"})}
1),(0,t.jsxs)("div",{className:"w-full swipe-padd relative ".concat((null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.length)>=3?"mb-10 xs:mb-0":"mb-0"),children:[!o||(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.length)?(0,t.jsx)(p.Z,{autoplay:{delay:7e3},pagination:{clickable:!0},className:"",spaceBetween:10,navigation:{prevEl:".recipe_prev",nextEl:".recipe_next"},slidesPerView:5,buttonPosition:"outside",breakpoints:{1720:{slidesPerView:5,spaceBetween:28},1366:{slidesPerView:5,spaceBetween:28},1025:{slidesPerView:3.25,spaceBetween:28},768:{slidesPerView:3},"500 ":{slidesPerView:2,spaceBetween:20},0:{slidesPerView:2,spaceBetween:12}},loop:!1,centeredSlides:!1,children:null==n?void 0:null===(i=n.data)||void 0===i?void 0:i.map((e,l)=>(0,t.jsx)(c.o5,{className:"!pb-3",children:(0,t.jsx)(W.Z,{data:e},"product--key".concat(null==e?void 0:e.id))},"team--key-".concat(l/2)))}):(0,t.jsx)(Y.Z,{limit:10,uniqueKey:x}),(0,t.jsx)("div",{className:"shadow-chevrons recipe_prev select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-10 xs:hidden",children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("div",{className:"shadow-chevrons recipe_next select-none cursor-pointer absolute xl:-top-[63px] -top-[63px]  -right-[0px] z-10 xs:hidden",children:(0,t.jsx)(w.ADv,{})})]})]})},G=s(381),U=e=>{var l;let{data:s}=e,i=(0,r.useRouter)(),{query:n,asPath:o}=(0,r.useRouter)(),d=null==o?void 0:null===(l=o.split("/"))||void 0===l?void 0:l[1];return(0,t.jsx)(t.Fragment,{children:s&&s.map(e=>{var l,s;return(null==e?void 0:e.asset_type)=="top-visits"&&(0,t.jsxs)("div",{className:a()("w-full flex flex-col items-center mb-[0px] xs:px-3 bg-[#FFEBEB]",{"bg-[#EAEAEA]":"food"===d}),children:[(0,t.jsx)("div",{className:"discount-banner w-full min-h-[235px] xs:min-h-min xs:my-5 bg-cover flex justify-center items-center",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{"data-aos":"fade-up",className:"aos-init aos-animate ",children:(0,t.jsx)("p",{className:"text-[38px] xs:text-sm font-bold text-[#212121] mb-6 text-center",children:"Looking for something else?"})}),(0,t.jsx)("div",{className:"",children:(0,t.jsx)("div",{className:"filter-items",children:(0,t.jsx)("div",{className:"flex gap-[10px] flex-wrap xs:justify-center justify-center",children:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.length)>0&&(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>null==i?void 0:i.push(null==e?void 0:e.href),className:"inline-flex justify-around items-center rounded-[24px] px-4 py-2 text-[12px] xs:text-[10px] font-nunito-sans text-[#212121] border border-[#D5D5D5] xs:border-0 focus:outline-none focus:ring-2 xs:focus:ring-0 focus:ring-offset-2 focus:ring-transparent lg:min-w-[100px] bg-white",children:null==e?void 0:e.name})))})})})]})}),(0,t.jsx)("div",{className:"w-full h-[1px] bg-[#E9E9E9]"})]})})})},K=function(e){var l,s;let{data:i,isFrom:o,hide:c}=e,{query:x,asPath:p}=(0,r.useRouter)(),u=null==p?void 0:null===(l=p.split("/"))||void 0===l?void 0:l[1],{locale:m}=(0,r.useRouter)();(0,b.M)(m);let{width:v}=(0,n.Z)(),[h,g]=(0,d.useState)(!1),[w,j]=(0,d.useState)(6);(0,d.useEffect)(()=>{let e=()=>{window.innerWidth>=1700?j(7):window.innerWidth>=1e3?j(6):window.innerWidth>=768?j(4):window.innerWidth>=320&&j(3)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let _=c?null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.slice(0,2*w):null==i?void 0:i.data;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"bg-white py-7 xs:py-2 rounded-[6px] featured-section",children:(0,t.jsx)("div",{className:"w-full swipe-padd relative xs:mt-3 inner-container",children:(0,t.jsxs)("div",{className:"featured-list",children:[null==_?void 0:_.map((e,l)=>{var s,i;return(0,t.jsx)("div",{className:"item w-full h-full flex  relative single-featured",children:(0,t.jsxs)("div",{className:"text-center xs:pb-0 relative z-10 group flex xs:block",children:[(0,t.jsx)("div",{className:"flex xs:mx-auto xs:mb-2  xs:items-center xs:justify-center xs:w-[70px] xs:h-[70px] 2xl:w-[70px] lg:w-[70px] 2xl:h-[70px] lg:h-[70px] min-w-[70px] sm:w-[70px] sm:h-[70px] overflow-hidden m-auto",children:(0,t.jsx)("div",{className:"flex xs:mx-auto items-center justify-center  xs:block lg:flex-shrink-0 sm:flex-shrink-0 transition-all duration-700 w-full bg-[#E2EFEA] items-center rounded-full h-full ",children:(null==e?void 0:e.image)&&(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:60,height:60,quality:100,className:"p-1 rounded-full xs:h-auto xs:w-[70px]"})})})}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(y(),{href:null!==(i=null==e?void 0:e.href)&&void 0!==i?i:"#",className:"pl-3 ",children:(0,t.jsx)("h4",{className:a()("2xl:text-[16
1px] lg:text-[16px] leading-[27px] xs:text-xs xs:text-center text-left text-[#162016]",{"font-bold 2xl:text-[18px] lg:text-[16px]":"food"===u}),children:null==e?void 0:e.category_name})})})]})},l)}),null==_?void 0:_.map((e,l)=>{var s,i;return(0,t.jsx)("div",{className:"item w-full h-full flex relative single-featured",children:(0,t.jsxs)("div",{className:"text-center xs:pb-0 relative z-10 group flex xs:block",children:[(0,t.jsx)("div",{className:"flex xs:mx-auto xs:mb-2 xs:items-center xs:justify-center items-center justify-center 2xl:w-[70px] lg:w-[70px] 2xl:h-[70px] lg:h-[70px] sm:w-[70px] sm:h-[70px] xs:w-[70px] xs:h-[70px] overflow-hidden m-auto",children:(0,t.jsx)("div",{className:"flex xs:mx-auto xs:mb-2 flex-shrink-0  items-center justify-center transition-all bg-[#E2EFEA] rounded-full duration-700 w-full h-full ",children:(null==e?void 0:e.image)&&(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:60,height:60,quality:100,className:"p-1 rounded-full  items-center justify-center xs:h-auto xs:w-[70px]"})})})}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(y(),{href:null!==(i=null==e?void 0:e.href)&&void 0!==i?i:"#",className:"pl-3 ",children:(0,t.jsx)("h4",{className:a()("2xl:text-[16px] lg:text-[16px] leading-[27px] xs:text-xs xs:text-center text-left text-[#162016]",{"font-bold 2xl:text-[18px] lg:text-[16px]":"food"===u}),children:null==e?void 0:e.category_name})})})]})},"duplicate-".concat(l))})]})})})})},X=s(69554),$=s.n(X);let Q={1720:{slidesPerView:1.25,spaceBetween:0},1366:{slidesPerView:1.15,spaceBetween:0},1025:{slidesPerView:1.15,spaceBetween:0},768:{slidesPerView:1.6,spaceBetween:0},0:{slidesPerView:1.25,spaceBetween:0}};var J=e=>{var l;let{data:s,className:i="mb-12 lg:mb-14 lg:mb-[100px]",paginationPosition:n="center",buttonClassName:r="hidden",buttonPosition:o="outside"}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{}),(0,t.jsxs)("div",{className:"jsx-816e827fac4d5648 "+(a()(" mb-[5px] xs:mb-0 xs:bg-[#FFF] xs:mb-0",{"":!1,"grid grid-cols-6 gap-4":!1})||""),children:[(0,t.jsx)($(),{id:"816e827fac4d5648",children:".home-single-slider-carousel .swiper-slide{opacity:.75;-webkit-transition:all.5s ease;-moz-transition:all.5s ease;-o-transition:all.5s ease;transition:all.5s ease}.home-single-slider-carousel .swiper-slide img{-webkit-transform:scale(.85);-moz-transform:scale(.85);-ms-transform:scale(.85);-o-transform:scale(.85);transform:scale(.85);-webkit-transition:-webkit-transform.5s ease;-moz-transition:-moz-transform.5s ease;-o-transition:-o-transform.5s ease;transition:-webkit-transform.5s ease;transition:-moz-transform.5s ease;transition:-o-transform.5s ease;transition:transform.5s ease}.home-single-slider-carousel .swiper-slide-active img{-webkit-transform:scale(1)!important;-moz-transform:scale(1)!important;-ms-transform:scale(1)!important;-o-transform:scale(1)!important;transform:scale(1)!important}.home-single-slider-carousel .swiper-slide-active{opacity:1!important;z-index:10}"}),(0,t.jsx)("div",{className:"jsx-816e827fac4d5648 "+(a()("bg-home-slider block relative mb-[0px] xs:mb-0",{"":!1,"col-span-4":!1})||""),children:(0,t.jsx)(p.Z,{autoplay:{delay:4e3},navigation:{prevEl:".swiper_prev",nextEl:".swiper_next"},className:"mx-0 fullWidth pagination-center home-single-slider-carousel",buttonClassName:a()(r),pagination:{clickable:!0},scrollbar:{draggable:!1,hide:!1},effect:"coverflow",speed:1e3,coverflowEffect:{rotate:30,stretch:1e3,depth:0,modifier:1,slideShadows:!1},centeredSlides:!0,breakpoints:Q,children:null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.map((e,l)=>(0,t.jsx)(c.o5,{className:"carouselItem",children:(0,t.jsx)("div",{className:"jsx-816e827fac4d5648",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==s?void 0:s.id,e),target:(null==e?void 0:e.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:a()("w-full xs:h-auto lg:object-cover",{"":!1,"lg:object-fill max-h-[700px] ":!1}),src:null==e?void 0:e.image,width:1521,height:700,priority:!0,alt:"bannerImage"})})})},"HOME-SLIDER"+l))})}),""]})]})},ee=function(e){var l,s;let{data:i}=e,n=(0,u.t)(),r=(e,l,s,t,i,a)=>{switch(n){case"sports":return l;case"grocery1":return s;case"apparel":return t;case"electronic":return i;case"apparel2":return a;default:return e}},o={1720:{slidesPerView:r(2,2,2,2,2,2),spaceBetween:"apparelluxu"===n||"perfumes"===n?0:40},1440:{slidesPerView:r(2,2,2,2,2,2),spaceBetween:"apparel2"===n||"apparelluxu"===n||"perfumes"===n?0:40},1366:{slidesPerView:r(2,2,2,2,2,2),spaceBetween:"apparel2"===n||"apparelluxu"===n||"perfumes"===n?0:12},1025:{slidesPerView:r(2,2,2,2,2,2),spaceBetween:"apparel2"===n||"apparelluxu"===n||"perfumes"===n?0:12},768:{slidesPerView:r(2,2,2,2,2,2),spaceBetween:"apparel2"===n||"apparelluxu"===n||"perfumes"===n?0:12},0:{slidesPerView:r(1.05,1.05,2,1.05,1.05,1.05),spaceBetween:"apparel2"===n||"apparelluxu"===n||"perfumes"===n?0:10}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:a()("",{"":"total-sports"===n,"xs:hidden":"grocery"===n||"pharma"===n}),children:(0,t.jsx)(m.Z,{})}
1),(0,t.jsx)("div",{className:a()("w-full swipe-padd relative ".concat((null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.length)>=4?"mb-10 xs:mb-0":"mb-0 xs:mt-[30px]"),{"xs:!-mt-[10px]":"apparel1"===n,"xs:!mt-[10px]":"grocery"===n||"grocery1"===n||"pharma"===n}),children:(0,t.jsx)(p.Z,{autoplay:!1,className:a()("xs:mt-0 img-bg",{"":"sports"===n,"":"apparel1"===n}),spaceBetween:10,navigation:{prevEl:".three_column_prev",nextEl:".three_column_next"},pagination:{clickable:!0},slidesPerView:5,buttonPosition:"outside",breakpoints:o,loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:"grid lg:grid-cols-2 grid-cols-1 gap-[12px] pt-10",children:null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.map(e=>(0,t.jsx)(c.o5,{className:"flex items-center justify-center bg-slate-100 rounded-[20px]",children:(0,t.jsx)("div",{className:"shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",children:(0,t.jsx)("div",{className:"course-thumb rounded-t-[8px] relative shadow-category-block",children:(null==e?void 0:e.is_video)?(0,t.jsx)(y(),{href:(0,P.LY)(null==i?void 0:i.id,e),target:e.is_products?"_self":"_blank",className:"block w-full h-full",children:(0,t.jsx)("video",{height:2e3,width:1400,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:a()("h-full object-cover rounded-t-[0px] xs:rounded-[10px]",{"max-h-[700px]":"apparel2"!==n,"max-h-full":"apparel2"===n||"apparelluxu"===n||"perfumes"===n}),children:(0,t.jsx)("source",{src:null==e?void 0:e.video})})}):(0,t.jsx)(y(),{href:(0,P.LY)(null==i?void 0:i.id,e),target:e.is_products?"_self":"_blank",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,height:2e3,width:1400,alt:"banner",className:a()("h-full object-cover rounded-t-[0px] xs:rounded-[10px]",{"max-h-[700px]":"apparel2"!==n,"max-h-full":"apparel2"===n||"apparelluxu"===n||"perfumes"===n})})})})})},"team--key-".concat(e)))})})})]})};s(64274),s(34341);let el=A.E.div;var es=function(e){var l;let{data:s}=e,i=(0,u.t)(),n=function(e,l){let s=[];for(let t=0;t<e.length;t+=l)s.push(e.slice(t,t+l));return s}(null==s?void 0:s.data,6),r=d.useRef(null);return d.useEffect(()=>{let e=()=>{var e,l,s,t;document.hidden?null===(l=r.current)||void 0===l||null===(e=l.autoplay)||void 0===e||e.stop():null===(t=r.current)||void 0===t||null===(s=t.autoplay)||void 0===s||s.start()};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:a()("rounded-[15px] xs:p-2 p-10 !pt-0 sm:p-[1rem] product-left-image",{[" !text-".concat(i,"-secondary hover:!bg-").concat(i,"-hover !border-").concat(i,"-border hover:!border-").concat(i,"-hover !bg-opacity-10 border-[3px] rounded-[15px] xs:p-2 lg:mt-[40px] sm:mt-[30px] p-10 sm:p-[1rem]")]:"apparel"===i||"apparel2"===i,"!bg-transparent lg:mt-[0px] sm:mt-[30px] !pt-0 !px-0":"apparelluxu"===i||"perfumes"===i}),children:[(0,t.jsx)("div",{className:a()("cat-h a1",{" !hidden ":"apparelluxu"===i||"perfumes"===i}),children:(0,t.jsx)(m.Z,{title:null==s?void 0:s.title,className:a()("!mb-10 !mt-0 xs:!mb-[23px]",{"!font-inria italic !text-[44px] !font-normal !mb-[30px] !hidden":"apparelluxu"===i||"perfumes"===i||"apparel2"===i,"!font-cinzel":"perfumes"===i})})}),(0,t.jsxs)("div",{className:a()("grid lg:grid-cols-12 mt-0 min-h-[340px] xs:min-h-full sm:grid-cols-12 xs:grid-cols-1 grid-cols-1 items-center lg:gap-[30px] gap-5 xs:gap-0 bg-white xs:px-0 mb-10 xs:mb-1",{"":"sports"===i||"total-sports"===i,["!bg-".concat(i,"-primary !bg-opacity-40 rounded-[15px] p-3 !mb-0")]:"apparel"===i||"apparel2"===i,"!bg-transparent !mb-0":"apparelluxu"===i||"perfumes"===i,"!bg-transparent !bg-opacity-40 rounded-[15px] p-0 !mb-0":"electronics"===i||"electronics1"===i}),children:[(0,t.jsx)("div",{className:a()("gap-[30px] col-span-4 xs:hidden ",{"col-span-6":"apparelluxu"===i||"perfumes"===i}),children:"apparelluxu"===i||"perfumes"===i?(0,t.jsx)(el,{initial:{x:-100,opacity:0},whileInView:{x:0,opacity:1},viewport:{once:!0,amount:.2},transition:{duration:.8,ease:"easeOut"},className:"h-full w-full",children:(0,t.jsx)(f(),{className:a()("h-[333px] max-h-[333px] min-h-[450px] xs:mb-3 object-cover xs:max-h-fit xs:h-auto",{"":"sports"===i,"w-auto h-auto max-h-fit":"apparel"===i||"apparel2"===i||"electronics"===i||"electronics1"===i||"grocery1"===i||"pharma"===i||"grocery2"===i,"!h-full !min-h-[500px] w-[100%] object-cover !max-h-[100%]":"apparelluxu"===i||"perfumes"===i}),src:null==s?void 0:s.image,height:654,width:578,alt:"banner"})}):(0,t.jsx)(f(),{className:a()("h-[333px] max-h-[333px] min-h-[450px] xs:mb-3 object-cover xs:max-h-fit xs:h-auto",{"":"sports"===i,"w-full h-auto max-h-fit":"apparel"===i||"apparel2"===i||"electronics"===i||"electronics1"===i||"grocery1"===i||"pharma"===i||"grocery2"===i,"!h-full !min-h-[500px] w-[100%] object-cover !max-h-[100%]":"apparelluxu"===i||"perfumes"===i}),src:null==s?void 0:s.image,height:654,width:578,alt:"banner"})}),("grocery"===i||"grocery1"===i||"pharma"===i||"grocery2"===i)&&(0,t.jsx)("div",{className:a()("gap-[30px] col-span-8",{"!col-span-6":"apparelluxu"===i||"perfumes"===i}),children:(0,t.jsx)(c.tq,{autoplay:{delay:13e3},className:"mt-0 pb-10 pt-0 xs:py-2",spaceBetween:10,navigation:{prevEl:".pdt_slider_prev",nextEl:".pdt_slider_next"},pagination:{clickable:!0},slidesPerView:1,loop:!0,centeredSlides:!1,children:n.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:"grid grid-cols-3 xs:grid-cols-2 gap-5 xs:gap-3",children:e.map((e,l)=>(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid"},"product--key".concat(null==e?void 0:e.id)))})},"chunk--key-".concat(l)))})}),!("grocery"===i||"grocery1"===i||"pharma"===i||"grocery2"===i)&&(0,t.jsxs)("div",{className:a()("gap-[30px] col-span-8 ",{appa:"apparel"===i||"apparel2"===i||"apparelluxu"===i||"perfumes"===i,"!col-span-6":"apparelluxu"===i||"perfumes"===i}),children:[("apparelluxu"===i||"perfumes"===i)&&(0,t.jsx)("div",{className:"apparelluxu",children:(0,t.jsx)(el,{initial:{y:-30,opacity:0}
1,whileInView:{y:0,opacity:1},viewport:{once:!0,amount:.5},transition:{duration:.8,delay:.2,ease:"easeOut"},children:(0,t.jsx)(m.Z,{title:null==s?void 0:s.title,className:a()(" italic !text-[44px] !font-normal !mb-[30px] !mt-0 xs:!mb-[23px] text-left ",{"!font-inria":"apparelluxu"===i||"apparel2"===i,"!font-cinzel":"perfumes"===i})})})}),"apparelluxu"===i||"perfumes"===i?(0,t.jsx)(c.tq,{onSwiper:e=>r.current=e,autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},speed:1e3,observer:!0,observeParents:!0,className:"mt-0 pb-10 pt-0 xs:py-2",spaceBetween:30,navigation:{prevEl:".pdt_slider_prev",nextEl:".pdt_slider_next"},pagination:{clickable:!0},slidesPerView:2.15,loop:!0,centeredSlides:!1,children:null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"luxu-brilliance"},"product--key".concat(null==e?void 0:e.id))},"product--key-".concat(null==e?void 0:e.id)))}):(0,t.jsx)(c.tq,{autoplay:{delay:3e3},className:"mt-0 pb-10 pt-0 xs:py-2",spaceBetween:10,navigation:{prevEl:".pdt_slider_prev",nextEl:".pdt_slider_next"},pagination:{clickable:!0},slidesPerView:1,loop:!0,centeredSlides:!1,children:n.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:a()("grid grid-cols-3 xs:grid-cols-2 gap-5 xs:gap-3 xs:mx-2 tr1",{"gap-8":"apparelluxu"===i||"perfumes"===i}),children:e.slice(0,3).map((e,l)=>(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"apparelluxu"===i||"perfumes"===i?"luxu-brilliance":"grid"},"product--key".concat(null==e?void 0:e.id)))})},"chunk--key-".concat(l)))})]})]})]})})},et=s(43999);let ei={1720:{slidesPerView:6.5,spaceBetween:20},1366:{slidesPerView:5,spaceBetween:36},1025:{slidesPerView:5,spaceBetween:20},768:{slidesPerView:4.45,spaceBetween:10},0:{slidesPerView:3.25,spaceBetween:10}};var ea=function(e){var l,s,i,o,x;let{data:m,isFrom:v,hide:h}=e,{query:g,asPath:w}=(0,r.useRouter)(),j=null==w?void 0:null===(l=w.split("/"))||void 0===l?void 0:l[1],{locale:_}=(0,r.useRouter)();(0,b.M)(_);let{width:N}=(0,n.Z)(),[k,Z]=(0,d.useState)(!1),[P,E]=(0,d.useState)(6);(0,d.useEffect)(()=>{let e=()=>{window.innerWidth>=1700?E(7):window.innerWidth>=1e3?E(6):window.innerWidth>=768?E(4):window.innerWidth>=320&&E(3)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let V=h?null==m?void 0:null===(s=m.data)||void 0===s?void 0:s.slice(0,2*P):null==m?void 0:m.data,{isLoading:B,hasNextPage:L,isFetchingNextPage:F,fetchNextPage:C}=(0,et.PP)({source:null==w?void 0:null===(i=w.split("/"))||void 0===i?void 0:i[1],level:1}),z=(0,u.t)();return null==m||null===(o=m.data)||void 0===o||o.slice(8),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"container-fluid !p-0 mb-10 xs:mb-1 -mt-[3px]",children:(0,t.jsxs)("div",{className:"row flex flex-wrap",children:[(0,t.jsx)("div",{className:"lg:w-1/3 sm:w-1/3 xs:hidden w-full pt-20 pb-12 max-xl:p-10 max-xl:[align-items:unset] !bg-black relative overflow-hidden z-1 flex flex-col justify-center items-center",children:(0,t.jsx)("div",{className:" shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",children:(0,t.jsxs)("div",{className:"course-thumb  rounded-t-[8px]  relative",children:[(0,t.jsx)("p",{className:"text-white 2xl:text-4xl lg:text-2xl lg:w-full font-medium 2xl:w-4/5 mb-2 !leading-[45px] wow fadeInUp",children:null==m?void 0:m.title}),(0,t.jsx)("p",{className:"text-white xs:text-[#222] text-[16px] font-normal xs:text-[14px] font-nunito-sans leading-normal pb-[15px]",children:null==m?void 0:m.description}),(null==m?void 0:m.subtitle)&&(0,t.jsx)("p",{className:"text-white xs:text-[#222] text-[16px] font-normal xs:text-[14px] font-nunito-sans leading-normal pb-[15px]",children:null==m?void 0:m.subtitle})]})})}),(0,t.jsxs)("div",{className:"!bg-".concat(z,"-primary !bg-opacity-60 xs:!bg-opacity-20 lg:w-2/3 sm:w-2/3 w-full 2xl:!px-5 lg:!px-7.5 py-20 sm:py-[2rem] relative overflow-hidden z-1 left-box xs:py-2"),children:[(0,t.jsx)("p",{className:"text-[#212121] xs:block xs:px-[15px] hidden 2xl:text-4xl lg:text-2xl lg:w-full font-medium 2xl:w-4/5 mb-2 !leading-[45px] wow fadeInUp",children:null==m?void 0:m.title}),(0,t.jsx)(p.Z,{autoplay:{delay:7e3},className:"",spaceBetween:10,navigation:{prevEl:".category_block_prev",nextEl:".category_block_next"},pagination:{clickable:!0}
1,slidesPerView:5,buttonPosition:"outside",breakpoints:ei,loop:!0,centeredSlides:!1,children:(0,t.jsx)("div",{className:"w-full swipe-padd relative xs:mt-10 ".concat((null==m?void 0:null===(x=m.data)||void 0===x?void 0:x.length)>=6?"mb-[21px] xs:mb-0":"mb-0"," xs:mt-2"),children:(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(P,", 1fr)")},className:"grid 2xl:grid-cols-7 xl:!grid-cols-7 lg:!grid-cols-6 sm:grid-cols-3 xs:grid-cols-3 md:!grid-cols-4 grid-cols-1 gap-x-[46px] xs:gap-x-[30px] gap-y-[32px] sm:gap-x-[32px] xs:gap-5",children:null==V?void 0:V.map((e,l)=>{var s,i;return(0,t.jsx)(c.o5,{className:"xs:mb-3",children:(0,t.jsx)("div",{className:"item w-full h-full flex flex-col justify-center relative",children:(0,t.jsxs)("div",{className:"text-center px-[20px] pb-[10px] xs:pb-0 relative z-10 group mx-auto xs:px-0",children:[(0,t.jsx)("div",{className:"flex  overflow-hidden m-auto",children:(0,t.jsx)("div",{className:"flex flex-shrink-0 transition-all duration-700 w-full h-full",children:(null==e?void 0:e.image)&&(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:1200,height:120,quality:100,className:"w-full rounded-3xl xs:rounded-[10px] duration-500 group-hover:-translate-y-5 xs:h-auto xs:w-[100px]"})})})}),(0,t.jsx)(y(),{href:null!==(i=null==e?void 0:e.href)&&void 0!==i?i:"#",children:(0,t.jsx)("h4",{className:a()("2xl:text-[18px] xs:text-[14px] lg:text-[16px] xs:text-xs font-semibold font-nunito-sans text-center text-[#292930] pt-[15px]",{"font-bold 2xl:text-[18px] lg:text-[16px]":"food"===j}),children:null==e?void 0:e.category_name})})]})},l)},"team--key-".concat(l))})})})})]})]})})})};let en=[{id:"1",title:"Aldo P.",content:"No matter where you go, Its is the coolest, most happening thing around! Not able to tell you how happy I am with it. Were loving it. This is simply unbelievable! I like it more and more each day because it makes my life a lot easier."},{id:"2",title:"Aldo P.",content:"No matter where you go, Its is the coolest, most happening thing around! Not able to tell you how happy I am with it. Were loving it. This is simply unbelievable! I like it more and more each day because it makes my life a lot easier."},{id:"3",title:"Aldo P.",content:"No matter where you go, Its is the coolest, most happening thing around! Not able to tell you how happy I am with it. Were loving it. This is simply unbelievable! I like it more and more each day because it makes my life a lot easier."}],er={1720:{slidesPerView:3,spaceBetween:30},1366:{slidesPerView:3,spaceBetween:30},1024:{slidesPerView:2,spaceBetween:30},768:{slidesPerView:1,spaceBetween:30},0:{slidesPerView:1,spaceBetween:30}};var eo=e=>{let{sectionHeading:l,className:s="lg:pb-1 xl:pb-0 -mx-4 sm:mx-0 mt-[60px] xs:!mt-[20px]"}=e,i=(0,u.t)();return(0,t.jsxs)("div",{className:s,children:[(0,t.jsx)("h2",{className:a()("lg:text-[#212121] text-center text-[#212121] xl:text-[28px] text-[24px] lg:text-[24px] sm:text-[20px] xs:text-base 2xl:text-[30px] font-bold xl:h-[37px] xs:h-auto leading-[25px]",{"2xl:!text-[25px] lg:!text-[25px] mb-[15px] xs:mb-[10px] xs:py-[10px] uppercase":"sports"===i,"":"total-sports"===i}),children:l}),(0,t.jsxs)("div",{className:"bg-[#DBDBDB] 2xl:p-[50px] lg:p-[40px] sm:p-[20px]",children:[(0,t.jsx)("h2",{className:a()("lg:text-[#212121] uppercase text-[#212121] xl:text-[28px] text-[24px] lg:text-[24px] sm:text-[20px] xs:text-base 2xl:text-[30px] font-bold xl:h-[37px] xs:h-auto leading-[25px]",{"2xl:!text-[25px] lg:!text-[25px] border-b-4 xs:flex xs:items-center xs:mx-auto xs:text-[18px] xs:pt-[20px] xs:justify-center xs:!text-center border-[#3872FA] w-fit":"sports"===i,"":"total-sports"===i}),children:"Our Customer Feedback"}),(0,t.jsx)("p",{className:"lg:text-[#212121] my-3 text-[#212121] xs:text-center xl:text-[18px] text-[16px] lg:text-[16px] sm:text-[14px] xs:text-base 2xl:text-[18px] font-normal xl:h-[37px] xs:h-auto leading-[25px]",children:"Don’t take our word for it. Trust our customers"}),(0,t.jsx)(p.Z,{autoplay:{delay:7e3},breakpoints:er,centeredSlides:!0,className:"testimonial-carousel testimonial xs:px-[30px] xs:pb-[30px]",buttonClassName:"hidden",navigation:!1,loop:!0,children:en.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsxs)("div",{className:a()("rounded-lg bg-[#fff] p-6 shadow-sm sm:p-8",{"active-card":1===l}),children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)("img",{alt:"",src:"https://images.unsplash.com/photo-1595152772835-219674b2a8a6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1180&q=80",className:"size-14 rounded-full object-cover"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"mt-0.5 text-lg font-medium text-gray-900",children:e.title}),(0,t.jsxs)("div",{className:"flex justify-center gap-0.5 text-green-500",children:[(0,t.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.5 12.8589L13.7
153 16L12.359 10.08L17 6.09684L10.8885 5.57474L8.5 0L6.1115 5.57474L0 6.09684L4.6325 10.08L3.247 16L8.5 12.8589Z",fill:"#FCD34D"})}),(0,t.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.5 12.8589L13.753 16L12.359 10.08L17 6.09684L10.8885 5.57474L8.5 0L6.1115 5.57474L0 6.09684L4.6325 10.08L3.247 16L8.5 12.8589Z",fill:"#FCD34D"})}),(0,t.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.5 12.8589L13.753 16L12.359 10.08L17 6.09684L10.8885 5.57474L8.5 0L6.1115 5.57474L0 6.09684L4.6325 10.08L3.247 16L8.5 12.8589Z",fill:"#FCD34D"})}),(0,t.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.5 12.8589L13.753 16L12.359 10.08L17 6.09684L10.8885 5.57474L8.5 0L6.1115 5.57474L0 6.09684L4.6325 10.08L3.247 16L8.5 12.8589Z",fill:"#FCD34D"})}),(0,t.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M8.5 12.8589L13.753 16L12.359 10.08L17 6.09684L10.8885 5.57474L8.5 0L6.1115 5.57474L0 6.09684L4.6325 10.08L3.247 16L8.5 12.8589Z",fill:"#FCD34D"})})]})]})]}),(0,t.jsx)("p",{className:"mt-4 text-[#191D23] text-[14px]",children:e.content})]})},"testimonial--key-".concat(e.id)))})]})]})},ed=function(e){var l,s,i,a,n,r,o,d,c,x,p,u,v,h,g,w,b,j,_,N,k,Z,E,V,B,L,F,C,z,D;let{data:S}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==S?void 0:S.title,subTitle:null==S?void 0:S.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"grid grid-cols-4 gap-[30px] mt-0 pt-[0px] mb-[46px] pb-[10px] xs:grid-cols-1 xs:gap-2 xs:mb-0 xs:pb-0",children:[(0,t.jsxs)("div",{className:"col-span-3 grid grid-cols-2 gap-[30px] xs:grid-cols-1 xs:gap-2",children:[(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(l=S.data)||void 0===l?void 0:l[1]),target:(null==S?void 0:null===(i=S.data)||void 0===i?void 0:null===(s=i[1])||void 0===s?void 0:s.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%] max-h-[315px]",src:null==S?void 0:null===(n=S.data)||void 0===n?void 0:null===(a=n[1])||void 0===a?void 0:a.image,height:278,width:578,alt:"banner"})}),(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(r=S.data)||void 0===r?void 0:r[2]),target:(null==S?void 0:null===(d=S.data)||void 0===d?void 0:null===(o=d[2])||void 0===o?void 0:o.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==S?void 0:null===(x=S.data)||void 0===x?void 0:null===(c=x[2])||void 0===c?void 0:c.image,height:278,width:578,alt:"banner"})})]}),(0,t.jsx)("div",{className:"row-span-2 xs:row-span-1",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(p=S.data)||void 0===p?void 0:p[0]),target:(null==S?void 0:null===(v=S.data)||void 0===v?void 0:null===(u=v[0])||void 0===u?void 0:u.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==S?void 0:null===(g=S.data)||void 0===g?void 0:null===(h=g[0])||void 0===h?void 0:h.image,height:630,width:578,alt:"banner"})})}),(0,t.jsxs)("div",{className:"col-span-3 grid grid-cols-3 gap-[30px] xs:grid-cols-1 xs:gap-2",children:[(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(w=S.data)||void 0===w?void 0:w[3]),target:(null==S?void 0:null===(j=S.data)||void 0===j?void 0:null===(b=j[3])||void 0===b?void 0:b.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==S?void 0:null===(N=S.data)||void 0===N?void 0:null===(_=N[3])||void 0===_?void 0:_.image,height:278,width:578,alt:"banner"})}),(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(k=S.data)||void 0===k?void 0:k[4]),target:(null==S?void 0:null===(E=S.data)||void 0===E?void 0:null===(Z=E[4])||void 0===Z?void 0:Z.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==S?void 0:null===(B=S.data)||void 0===B?void 0:null===(V=B[4])||void 0===V?void 0:V.image,height:278,width:578,alt:"banner"})}),(0,t.jsx)(y(),{href:(0,P.LY)(null==S?void 0:S.id,null==S?void 0:null===(L=S.data)||void 0===L?void 0:L[5]),target:(null==S?void 0:null===(C=S.data)||void 0===C?void 0:null===(F=C[5])||void 0===F?void 0:F.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"h-[100%]",src:null==S?void 0:null===(D=S.data)||void 0===D?void 0:null===(z=D[5])||void 0===z?void 0:z.image,height:278,width:578,alt:"banner"})})]})]})]})},ec=function(e){var l,s,i;let{data:n}=e,o=(0,u.t)(),{locale:d}=(0,r.useRouter)();(0,b.M)(d);let x=(null==(i=null==n?void 0:n.title)?void 0:i.replace(/\s+/g,""))||"defaultTitle-".concat(Date.now());return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"w-full swipe-pad
1d relative ".concat((null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.length)>=6?"mb-8 xs:mb-0  xs:mt-4 msm:lg:px-[70px] lg:mt-[30px] sm:mt-[20px] lg:px-[40px]":"mb-0"),children:(0,t.jsx)(p.Z,{autoplay:{delay:7e3},className:"",spaceBetween:10,navigation:{prevEl:".top_picks_prev_".concat(x),nextEl:".top_picks_next_".concat(x)},pagination:{clickable:!0},slidesPerView:7,buttonPosition:"outside",breakpoints:{1720:{slidesPerView:7,spaceBetween:30},1440:{slidesPerView:7,spaceBetween:30},1366:{slidesPerView:6,spaceBetween:30},1025:{slidesPerView:6,spaceBetween:30},768:{slidesPerView:5,spaceBetween:20},0:{slidesPerView:3.5,spaceBetween:0}},loop:!1,centeredSlides:!1,children:(0,t.jsx)("div",{className:"grid 2xl:grid-cols-7 lg:grid-cols-7 sm:grid-cols-3 grid-cols-1 lg:mx-[35px]",children:null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsxs)("div",{className:"group relative m-0 sm:mx-auto xs:mb-1 banner",children:[(0,t.jsx)("div",{className:a()("z-10 h-full w-full overflow-hidden flex items-center justify-center opacity-100 ",{"":"apparel1"===o||"grocery1"===o||"grocery2"===o,"banner card":"sports"===o||"total-sports"===o||"grocery"===o||"apparel"===o||"apparel2"===o||"apparelluxu"===o||"perfumes"===o}),children:(0,t.jsx)(y(),{href:(0,P.LY)(null==n?void 0:n.id,e),target:(e.is_products,"_self"),children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),height:100,width:100,className:"animate-fade-in block h-full w-[100px] 2xl:max-h-[100px] lg:max-h-[100px] sm:max-h-[100px] xs:w-[48px] xs:h-[48px] xs:max-h-[48px] scale-100 transform object-cover object-center opacity-100 transition duration-300 group-hover:scale-110",alt:"top-pick"})})}),(0,t.jsx)("div",{className:"flex justify-center p-3 z-20 m-0 pb-0 ps-4 w-full text-center",children:(0,t.jsx)("p",{className:"text-[16px] xs:text-[15px] xs:font-normal text-[#212121] xs:text-[#212121]",children:null==e?void 0:e.title})})]})},"team--key-".concat(l)))})})})})},ex=function(e){let{data:l}=e,s=function(e,l){let s=[];for(let t=0;t<e.length;t+=l)s.push(e.slice(t,t+l));return s}(null==l?void 0:l.data,6),i=(0,u.t)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:a()("!bg-[#F9DDFF] rounded-[15px] xs:p-2 p-10 sm:p-[1rem] !p-0 !bg-transparent !rounded-0 sm:p-[0rem] !block ima",{}),children:[(0,t.jsx)("div",{className:"cat-h a1",children:(0,t.jsx)(m.Z,{title:null==l?void 0:l.title,className:"!mb-10 !mt-0 xs:!mb-[23px]"})}),(0,t.jsxs)("div",{className:a()("grid lg:grid-cols-12 mt-0 min-h-[340px] xs:min-h-full sm:grid-cols-12 xs:grid-cols-1 grid-cols-1 items-center lg:gap-[30px] gap-5 xs:gap-0 xs:px-0 mb-10 xs:mb-1",{"":"sports"===i||"total-sports"===i}),children:[(0,t.jsx)("div",{className:a()("gap-[30px] col-span-5  xs:!block xs:col-span-1",{}),children:(0,t.jsx)(f(),{className:a()("h-[333px] max-h-[333px] xs:mb-3 object-cover xs:max-h-fit xs:h-auto",{"":"sports"===i,"w-[100%] h-auto max-h-fit xs:w-full":"apparel"===i||"electronics"===i||"electronics1"===i||"grocery1"===i||"pharma"===i||"grocery2"===i||"apparel1"===i}),src:null==l?void 0:l.image,height:700,width:1e3,alt:"banner"})}),(0,t.jsx)("div",{className:a()("gap-[30px] col-span-7 ",{"":"grocery"===i||"grocery1"===i||"pharma"===i||"grocery2"===i}),children:(0,t.jsx)("div",{className:"overflow-hidden pb-10",children:(0,t.jsx)(c.tq,{autoplay:{delay:5e3,disableOnInteraction:!1},className:"mt-0 pt-0 xs:py-2",spaceBetween:10,navigation:{prevEl:".pdt_slider_prev",nextEl:".pdt_slider_next"},pagination:{clickable:!0},slidesPerView:1,loop:!1,centeredSlides:!1,children:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:"grid grid-cols-3 xs:grid-cols-2 gap-5 xs:gap-3",style:{gridTemplateRows:"repeat(2, auto)",overflow:"hidden"},children:e.slice(0,6).map((e,l)=>(0,t.jsx)(x.Z,{isFresh:!0,product:e,imgWidth:340,imgHeight:410,variant:"grid"},"product--key".concat(null==e?void 0:e.id)))})},"chunk--key-".concat(l)))})})})]})]})})},ep=e=>{var l,s,i,n,r,o,d,x,p,m;let{data:v,className:h="mb-12 lg:mb-14 lg:mb-[100px]"}=e,g=(0,u.t)();return(0,t.jsxs)("div",{className:a()(" mb-[5px] xs:mb-0 xs:bg-[#FFF] xs:px-[0px] xs:pt-0 grid grid-cols-6 xs:grid-cols-1 gap-4 xs:gap-2 mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[9
160px] sm:max-w-[1150px] xs:max-w-[540px]",{"":"sports"===g||"total-sports"===g,"grid grid-cols-6 xs:grid-cols-1 gap-4 xs:gap-2 mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] xxl:max-w-[1440px] 2xl:max-w-[1440px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"grocery"===g||"pharma"===g,"grid grid-cols-6 xs:grid-cols-1 gap-4 xs:gap-2 mx-auto 2xl:!px-[0px] xs:!pt-0 sm:!px-[00px] lg:!px-[0px] xl:!px-[0px] max-w-[1920px] xxl:max-w-[1920px] 2xl:max-w-[1920px] xl:max-w-[1320px] lg:max-w-[1200px] md:!max-w-[960px] sm:max-w-[1150px] xs:max-w-[540px]":"apparel2"===g||"apparelluxu"===g||"perfumes"===g,"!mb-0 apparel xs:!px-0 xs:!pt-0":"apparel"===g,"!mb-0 apparel xs:!px-0 xs:!pt-0 p":"apparel1"===g,"mt-[25px] xs:mt-[0px] xs:px-[15px]":"pharma"===g}),children:[(0,t.jsx)("div",{className:"xs:block hidden w-full ",children:(0,t.jsx)(c.tq,{spaceBetween:10,slidesPerView:1,pagination:{clickable:!0},children:null==v?void 0:null===(l=v.data)||void 0===l?void 0:l.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)(y(),{href:(0,P.LY)(null==v?void 0:v.id,e),target:(null==e?void 0:e.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"w-full xs:h-auto object-cover",src:null==e?void 0:e.image,width:1521,height:700,priority:!0,alt:"bannerImage"})})},l))})}),(null==v?void 0:null===(s=v.data)||void 0===s?void 0:s[0])&&(0,t.jsx)("div",{className:"col-span-4 xs:col-span-6 xs:hidden",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==v?void 0:v.id,null==v?void 0:v.data[0]),target:(null==v?void 0:null===(i=v.data[0])||void 0===i?void 0:i.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"w-full xs:h-auto lg:object-cover rounded-[35px] xs:rounded-[15px]",src:null==v?void 0:null===(n=v.data[0])||void 0===n?void 0:n.image,width:1521,height:700,priority:!0,alt:"bannerImage"})})}),(0,t.jsxs)("div",{className:"col-span-2 xs:col-span-6 flex flex-col gap-4 xs:hidden",children:[(null==v?void 0:null===(r=v.data)||void 0===r?void 0:r[1])&&(0,t.jsx)(y(),{href:(0,P.LY)(null==v?void 0:v.id,null==v?void 0:v.data[1]),target:(null==v?void 0:null===(o=v.data[1])||void 0===o?void 0:o.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"w-full xs:h-auto lg:object-cover max-h-[350px] rounded-[15px] xs:rounded-[10px]",src:null==v?void 0:null===(d=v.data[1])||void 0===d?void 0:d.image,width:1521,height:350,priority:!0,alt:"bannerImage"})}),(null==v?void 0:null===(x=v.data)||void 0===x?void 0:x[2])&&(0,t.jsx)(y(),{href:(0,P.LY)(null==v?void 0:v.id,null==v?void 0:v.data[2]),target:(null==v?void 0:null===(p=v.data[2])||void 0===p?void 0:p.is_products)?"_self":"_blank",children:(0,t.jsx)(f(),{className:"w-full xs:h-auto lg:object-cover max-h-[350px] rounded-[15px] xs:rounded-[10px]",src:null==v?void 0:null===(m=v.data[2])||void 0===m?void 0:m.image,width:1521,height:350,priority:!0,alt:"bannerImage"})})]})]})},eu=e=>{var l,s,i,a;let{className:n="mt-[0px] xs:mb-[10px] pt-0 xs:pt-0 xs:px-[0px]",data:o,loading:d,error:c,uniqueKey:p,nav:v=!0}=e,h=(0,u.t)(),{asPath:g}=(0,r.useRouter)(),w=null==g?void 0:null===(l=g.split("/"))||void 0===l?void 0:l[1];return(null==(a=null==o?void 0:o.title)?void 0:a.replace(/[^a-zA-Z0-9-_]/g,""))||Date.now(),(0,t.jsxs)("div",{className:"grocery2 relative",children:[(0,t.jsx)(m.Z,{title:null==o?void 0:o.title,href:v?"/feeds/"+(null==o?void 0:o.id)+"?from="+("/"==g?"home":""):null,className:"!mb-10 xs:!mb-[15px] text-[25px]"}),(0,t.jsx)(f(),{src:"/text-bg.png",alt:"Logo",height:108,width:385,className:"absolute top-[60px] left-0 right-0 mx-auto xs:top-[30px] xs:w-[250px]"}),(0,t.jsx)(f(),{src:"/special1.png",alt:"Logo",height:190,width:199,className:"absolute top-[20px] left-0 w-[190px] h-[199px] xs:w-[69px] xs:h-[89px]"}),(0,t.jsx)(f(),{src:"/special2.png",alt:"Logo",height:190,width:199,className:"absolute top-[20px] right-0 w-[190p
1x] h-[199px]  xs:w-[69px] xs:h-[89px]"}),(0,t.jsx)("div",{className:"\n          w-full swipe-padd bg-white px-[50px] py-[30px] xs:px-4 xs:py-4 xs:mt-[12px]\n          2xl:px-[80px] 2xl:py-[60px] relative\n          ".concat((null==o?void 0:null===(s=o.data)||void 0===s?void 0:s.length)>=3?"2xl:mb-[0px] mb-[0px]":"mb-0","\n          ").concat("electronics"===h?"electronics":"","\n        "),children:d?(0,t.jsx)(Y.Z,{limit:10,uniqueKey:p}):(0,t.jsx)("div",{className:" grid  2xl:grid-cols-4 xl:grid-cols-4  lg:grid-cols-4 md:grid-cols-3  sm:grid-cols-4 xs:grid-cols-2  gap-6 ",children:null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.map((e,l)=>(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid",source:w},"product-".concat(l)))})})]})},em=e=>{var l,s;let{className:i,data:a,loading:n,error:o,nav:d=!0}=e;(0,u.t)();let{asPath:c}=(0,r.useRouter)(),p=null==c?void 0:null===(l=c.split("/"))||void 0===l?void 0:l[1];return(0,t.jsxs)("div",{className:"relative offer excl",children:[(0,t.jsx)(m.Z,{title:null==a?void 0:a.title,href:d?"/feeds/"+(null==a?void 0:a.id)+"?from="+("/"==c?"home":""):null,className:"!mb-6 xs:!mb-4"}),(0,t.jsx)("div",{className:"grid grid-cols-4 xl:grid-cols-4 lg:grid-cols-4 md:grid-cols-3 sm:grid-cols-3 xs:grid-cols-2 gap-5 px-[50px] 2xl:px-[80px]",children:n?(0,t.jsx)("div",{className:"col-span-full text-center py-10 text-gray-500",children:"Loading products..."}):null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid",source:p},"product-".concat(l)))})]})};let ev={1024:{slidesPerView:3,spaceBetween:12},768:{slidesPerView:2,spaceBetween:12},0:{slidesPerView:1.1}};var eh=function(e){var l,s;let{data:i}=e,a=(0,u.t)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==i?void 0:i.title,subTitle:null==i?void 0:i.sub_title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsx)("div",{className:"hidden lg:grid grid-cols-3 gap-4 xs:pt-10",children:null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.slice(0,6).map((e,l)=>(0,t.jsx)(A.E.div,{className:"shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",initial:"apparelluxu"===a||"perfumes"===a?{opacity:0,scale:.9}:{},whileInView:"apparelluxu"===a||"perfumes"===a?{opacity:1,scale:1}:{},viewport:{once:!0,margin:"-50px"},transition:{duration:.8},children:(0,t.jsx)("div",{className:"course-thumb rounded-t-[8px] relative shadow-category-block ",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==i?void 0:i.id,e),target:e.is_products?"_self":"_blank",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,height:330,width:578,alt:"banner",className:"w-full h-full object-cover rounded-t-[0px] max-h-[700px] "})})})},"grid-key-".concat(l)))}),(0,t.jsx)("div",{className:"lg:hidden",children:(0,t.jsx)(p.Z,{autoplay:!1,className:"xs:mt-0 img-bg",spaceBetween:10,navigation:{prevEl:".three_column_prev",nextEl:".three_column_next"},pagination:{clickable:!0},slidesPerView:1,buttonPosition:"outside",breakpoints:ev,loop:!1,centeredSlides:!1,children:null==i?void 0:null===(s=i.data)||void 0===s?void 0:s.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)(A.E.div,{className:"shadow-box2 rounded-[8px] transition duration-100 hover:shadow-sm",transition:{duration:.8},children:(0,t.jsx)("div",{className:"course-thumb rounded-t-[8px] relative shadow-category-block",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==i?void 0:i.id,e),target:e.is_products?"_self":"_blank",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,height:330,width:578,alt:"banner",className:"w-full h-full object-cover rounded-t-[0px] max-h-[700px]"})})})})},"slide-key-".concat(l)))})})]})},eg=function(e){var l,s,i,o,x;let{data:v,isFrom:h,hide:g}=e,{query:w,asPath:j}=(0,r.useRouter)();null==j||null===(l=j.split("/"))||void 0===l||l[1];let{locale:_}=(0,r.useRouter)();(0,b.M)(_);let N=(0,u.t)(),{width:k}=(0,n.Z)(),[Z,P]=(0,d.useState)(!1),[V,B]=(0,d.useState)(6);(0,d.useEffect)(()=>{let e=()=>{window.innerWidth>=1700?B(7):window.innerWidth>=1e3?B(6):window.innerWidth>=768?B(4):window.innerWidth>=320&&B(3)};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)},[]);let L=g?null==v?void 0:null===(s=v.data)||void 0===s?void 0:s.slice(0,2*V):null==v?void 0:v.data,{isLoading:F,hasNextPage:C,isFetchingNextPage:z,fetchNextPage:D}=(0,et.PP)({source:null==j?void 0:null===(i=j.split("/"))||void 0===i?void 0:i[1],level:1});return null==v||null===(o=v.data)||void 0===o||o.slice(8),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:a()("xs:py-2 rounded-[6px]",{"pt-0":"apparel1"===N||"electronics"===N||"electronics1"===N,"":"grocery"===N}),children:[(0,t.jsx)("div",{className:"cat-h",children:(0,t.jsx)(m.Z,{title:null==v?void 0:v.title,className:"!mb-10 xs:!mb-[14px]",href:"category"==h?null:E.Z.CATEGORY})}),(0,t.jsx)("div",{className:"hidden xs:block",children:(0,t.jsxs)("div",{className:"flex gap-3 overflow-x-auto pb-2 scrollbar-hide",children:[null==L?void 0:L.map((e,l)=>{var s;return(0,t.jsxs)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",className:"flex-shrink-0 flex items-center gap-3 rounded-[8px] px-3 py-3 min-w-[155px] max-w-[180px]",style:{backgroundColor:(null==e?void 0:e.color_code)?null==e?void 0:e.color_code:"#f5f5f5"},children:[(null==e?void 0:e.image)&&(0,t.jsx)("div",{className:"flex-shrink-0 w-[52px] h-[52px] overflow-hidden",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:52,height:52,quality:100,className:"object-contain w-full h-full"})}),(0,t.jsx)("span",{className:"text-[13px] font-semibold text-[#162016] leading-[1.3] line-clamp-2",children:null==e?void 0:e.category_name})]},"pwa-cat-".concat(l))}),"category"!==h&&(0,t.jsxs)(y(),{href:E.Z.CATEGORY,className:"flex-shrink-0 flex flex-col items-center justify-center gap-1 rounded-[8px] px-4 py-3 min-w-[90px]",style:{backgroundColor:"#f0f0f0"},children:[(0,t.jsx)("span",{className:"text-[22px] leading-none text-gray-500",children:"→"}),(0,t.jsx)("span",{className:"text-[12px] font-semibold text-gray-600 whitespace-nowrap",children:"View all"})]})]})}),(0,t.jsx)("div",{className:"xs:hidden",children:(0,t.jsx)(p.Z,{autoplay:{delay:5e3},className:"",spaceBetween:8,navigation:{prevEl:".category_block_prev",nextEl:".category_block_next"},pagination:{clickable:!0},slidesPerView:6,buttonPosition:"outside",breakpoints:{1720:{slidesPerView:4.95,spaceBetween:28},1366:{slidesPerView:4.95,spaceBetween:28},1024:{slidesPerView:3,spaceBetween:20},768:{slidesPerView:3,spaceBetween:20},0:{slidesPerView:2,spaceBetween:10}},loop:!0,centeredSlides:!1,children:(0,t.jsx)("div",{className:"w-full swipe-pad
1d relative xs:mt-10 ".concat((null==v?void 0:null===(x=v.data)||void 0===x?void 0:x.length)>=6?"mb-[21px] xs:mb-0":"mb-0"," xs:mt-2"),children:(0,t.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(".concat(V,", 1fr)")},className:"grid 2xl:grid-cols-7 xl:!grid-cols-7 lg:!grid-cols-6 sm:grid-cols-3 xs:grid-cols-3 md:!grid-cols-4 grid-cols-1 gap-x-[46px] xs:gap-x-[30px] gap-y-[32px] sm:gap-x-[32px] xs:gap-5",children:null==L?void 0:L.map((e,l)=>{var s,i;return(0,t.jsx)(c.o5,{className:"xs:mb-3",children:(0,t.jsxs)("div",{className:"text-center xs:pb-0 relative z-10 group flex xs:block rounded-[6px] pr-5",style:{backgroundColor:(null==e?void 0:e.color_code)?null==e?void 0:e.color_code:"white"},children:[(0,t.jsx)("div",{className:"flex xs:mx-auto xs:mb-2 p-2 items-center justify-center 2xl:w-[65px] lg:w-[65px] 2xl:h-[65px] lg:h-[65px] sm:w-[65px] sm:h-[65px] xs:w-[65px] xs:h-[65px] overflow-hidden",children:(0,t.jsx)("div",{className:"flex items-center justify-center xs:mx-auto xs:mb-2 flex-shrink-0 transition-all rounded-full duration-700 w-full h-full ",children:(null==e?void 0:e.image)&&(0,t.jsx)(y(),{href:null!==(s=null==e?void 0:e.href)&&void 0!==s?s:"#",children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),alt:null==e?void 0:e.category_name,width:70,height:70,quality:100,className:"object-cover rounded-full xs:h-auto xs:w-[70px]"})})})}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(y(),{href:null!==(i=null==e?void 0:e.href)&&void 0!==i?i:"#",className:"pl-3 ",children:(0,t.jsx)("h4",{className:a()("2xl:text-[16px] lg:text-[16px] leading-[27px] xs:text-xs xs:text-center text-left text-[#162016]"),children:null==e?void 0:e.category_name})})})]})},"team--key-".concat(l))})})})})})]})})},ef=s(26631),ew=function(e){var l,s,i;let{data:a}=e,n=(0,u.t)(),[o,c]=(0,d.useState)(null),[p,v]=(0,d.useState)([]),{asPath:h}=(0,r.useRouter)(),g=null==h?void 0:null===(l=h.split("/"))||void 0===l?void 0:l[1],f=null!==(i=null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.map(e=>e.id))&&void 0!==i?i:[],{data:w,isLoading:b,error:j}=(0,et.Im)({}),_=w?w.filter(e=>f.includes(e.id)):[],{data:N,fetchNextPage:k,isFetchingNextPage:Z,isLoading:P,error:V}=(0,ef.S_)({limit:8,category:o});(0,d.useEffect)(()=>{_.length>0&&!o&&c(_[0].slug)},[_,o]),(0,d.useEffect)(()=>{(null==N?void 0:N.pages)?v(N.pages.flatMap(e=>e.products)):v([])},[N]);let B=[..._].sort((e,l)=>e.slug===o?-1:l.slug===o?1:0);return(0,t.jsxs)("div",{className:"center",children:[(0,t.jsx)(m.Z,{title:null==a?void 0:a.title,className:"!mb-10 !mt-0 xs:!mb-[23px]"}),(0,t.jsx)("div",{className:"flex justify-center mb-8",children:(0,t.jsxs)("div",{className:"flex space-x-5 overflow-x-auto",children:[B.map(e=>(0,t.jsx)("button",{onClick:()=>c(e.slug),className:"px-4 py-2 rounded-[5px] xs:text-[13px] xs:px-2 font-[600] transition ".concat(o===e.slug?"!bg-".concat(n,"-primary !text-").concat(n,"-secondary"):"bg-[#FAFAFA] text-[#8A8A8A] hover:bg-gray-100 min-w-[120px]"),children:e.category_name},e.id)),!b&&0===B.length&&(0,t.jsx)("span",{className:"text-gray-500 text-sm",children:"No categories configured for this section."})]})}),(0,t.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-4 lg:grid-cols-4 gap-[33px]",children:p.length>0?p.map(e=>(0,t.jsx)(x.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid",source:g,className:"xs:w-auto"},"product--key".concat(null==e?void 0:e.id))):(0,t.jsx)("p",{className:"text-center text-gray-500 col-span-full",children:"No products found for this category."})}),(0,t.jsx)("div",{className:"flex justify-center mt-8 mb-12",children:o&&(0,t.jsx)(y(),{href:"".concat(E.Z.CATEGORY,"/").concat(o),children:(0,t.jsx)("button",{className:"px-6 py-3 !bg-".concat(n,"-primary !text-").concat(n,"-secondary rounded-[5px] font-medium transition-colors"),children:"View More"})})})]})},eb=function(e){var l,s,i,n;let{data:o}=e,d=(0,u.t)(),{locale:c}=(0,r.useRouter)();return(0,b.M)(c),(null==(n=null==o?void 0:o.title)?void 0:n.replace(/\s+/g,""))||Date.now(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==o?void 0:o.title,subTitle:null==o?void 0:o.sub_title}
1),(0,t.jsx)("div",{className:a()("w-full swipe-padd relative",{"mb-8 xs:mb-0 xs:mt-4":(null==o?void 0:null===(l=o.data)||void 0===l?void 0:l.length)>=6,"mb-0":(null==o?void 0:null===(s=o.data)||void 0===s?void 0:s.length)<6,"border border-[#DEDEDE] border-r-0 border-l-0 py-5":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d}),children:(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:a()("grid 2xl:grid-cols-5 lg:grid-cols-5 gap-7 xs:gap-[17px] sm:grid-cols-3 xs:grid-cols-3 ",{"2xl:grid-cols-7 lg:grid-cols-7 gap-[50px] sm:grid-cols-7 xs:grid-cols-3":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"overflow-auto xs:flex":"electronics"===d}),children:null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.map((e,l)=>(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:a()(" !bg-".concat(d,"-light min-h-[76px] xs:min-h-[100px] group cursor-pointer relative m-0 sm:mx-auto xs:mb-1 banner rounded-[15px] p-2 pl-4 xs:pl-2 flex items-center justify-center xs:block xs:mx-auto"),{"!bg-[#EDEDED]  !px-0 !min-h-[130px]":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"xs:!min-h-[90px] xs:!min-w-[120px]":"electronics"===d||"grocery1"===d||"apparel1"===d}),children:(0,t.jsxs)("div",{className:a()("flex",{"xs:block !block items-center justify-center":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:[(0,t.jsx)("div",{className:a()("z-10 h-full xs:w-full xs:items-center xs:justify-center overflow-hidden flex opacity-100",{"flex items-center justify-center":"electronics"===d||"electronics1"===d||"pharma"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:(0,t.jsx)(y(),{href:(0,P.LY)(null==o?void 0:o.id,e),target:(e.is_products,"_self"),className:a()("",{"flex items-center justify-center":"pharma"===d,"":"grocery1"===d}),children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),height:60,width:60,className:a()("block h-full w-[60px] 2xl:max-h-[60px] lg:max-h-[60px] sm:max-h-[60px] xs:w-[48px] xs:h-[48px] xs:max-h-[48px]",{"!w-[40px] 2xl:!max-h-[40px] lg:!max-h-[40px] sm:!max-h-[40px] xs:!w-[30px] xs:!h-[30px] xs:!max-h-[30px]":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),alt:"top-pick"})})}),(0,t.jsx)("div",{className:a()("flex z-10 m-0 pb-0 ps-4 xs:ps-0 w-full xs:text-center xs:items-center xs:justify-center",{"!text-center items-center justify-center mt-2 !px-0":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:(0,t.jsx)("p",{className:a()("text-[20px] xs:text-[15px] font-[500] xs:font-normal text-[#454545] xs:text-[#454545]",{"!text-[16px] !font-[700]":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:null==e?void 0:e.title})})]})})},"team--key-".concat(l)))})})})]})},ej=function(e){var l,s,i,n,r,o,d;let{data:c}=e,x=(0,u.t)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:a()("",{"":"total-sports"===x,"xs:hidden":"grocery"===x||"pharma"===x}),children:(0,t.jsx)(m.Z,{})}),(0,t.jsx)("div",{className:a()("w-full swipe-padd relative ".concat((null==c?void 0:null===(l=c.data)||void 0===l?void 0:l.length)>=4?"mb-10 xs:mb-0":"mb-0 xs:mt-[30px]"),{"":"total-sports"===x,"xs:!mt-[10px]":"grocery"===x||"grocery1"===x||"pharma"===x}),children:(0,t.jsx)("div",{className:"xs:mt-0 img-bg",children:(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(null==c?void 0:null===(s=c.data)||void 0===s?void 0:s[0])&&(0,t.jsx)("div",{className:"col-span-9 rounded-0 overflow-hidden shadow-box2",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==c?void 0:c.id,c.data[0]),target:(null===(i=c.data[0])||void 0===i?void 0:i.is_products)?"_self":"_blank",className:"block w-full h-full",children:(null===(n=c.data[0])||void 0===n?void 0:n.is_video)?(0,t.jsx)("video",{src:c.data[0].video,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:"w-full h-full object-cover max-h-[700px] rounded-0"}):(0,t.jsx)(f(),{src:c.data[0].image,width:1200,height:800,alt:"First Banner",className:"w-full h-full object-cover max-h-[700px] rounded-0"})})}),(null==c?void 0:null===(r=c.data)||void 0===r?void 0:r[1])&&(0,t.jsx)("div",{className:"col-span-3 rounded-lg overflow-hidden shadow-box2",children:(0,t.jsx)(y(),{href:(0,P.LY)(null==c?void 0:c.id,c.data[1]),target:(null===(o=c.data[1])||void 0===o?void 0:o.is_products)?"_self":"_blank",className:"block w-full h-full",children:(null===(d=c.data[1])||void 0===d?void 0:d.is_video)?(0,t.jsx)("video",{src:c.data[1].video,autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,className:"w-full h-full object-cover max-h-[700px] rounded-lg"}):(0,t.jsx)(f(),{src:c.data[1].image,width:600,height:800,alt:"Second Banner",className:"w-full h-full object-cover max-h-[700px] rounded-lg"})})})]})})})})]})},ey=function(e){var l,s,i,n;let{data:o}=e,d=(0,u.t)(),{locale:c}=(0,r.useRouter)();return(0,b.M)(c),(null==(n=null==o?void 0:o.title)?void 0:n.replace(/\s+/g,""))||Date.now(),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==o?void 0:o.title,subTitle:null==o?void 0:o.sub_title}),(0,t.jsx)("div",{className:a()("w-full swipe-padd relative",{"mb-8 xs:mb-0 xs:mt-4":(null==o?void 0:null===(l=o.data)||void 0===l?void 0:l.length)>=6,"mb-0":(null==o?void 0:null===(s=o.data)||void 0===s?void 0:s.length)<6,"border border-[#DEDEDE] border-r-0 border-l-0 py-5":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d}),children:(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:a()("grid 2xl:grid-cols-5 lg:grid-cols-5 gap-5 xs:gap-[17px] sm:grid-cols-3 xs:grid-cols-3 ",{"2xl:grid-cols-5 lg:grid-cols-5 gap-[25px] sm:grid-cols-5 xs:grid-cols-3":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"overflow-auto xs:flex":"electronics"===d}),children:null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.map((e,l)=>(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:a()(" !bg-".concat(d,"-light min-h-[70px] xs:min-h-[100px] group cursor-pointer relative m-0 sm:mx-auto xs:mb-1 banner rounded-[15px] p-2 pl-4 xs:pl-2 flex items-center justify-start xs:block xs:mx-auto"),{"!bg-[#EDEDED] ":"apparel1"===d}),children:(0,t.jsxs)("div",{className:a()("flex xs:block items-center justify-start gap-3",{"":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:[(0,t.jsx)("div",{className:a()("z-10 h-full xs:w-full xs:items-center xs:justify-center overflow-hidden flex opacity-100",{"flex items-center justify-start":"electronics"===d||"electronics1"===d||"pharma"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:(0,t.jsx)(y(),{href:(0,P.LY)(null==o?void 0:o.id,e),target:(e.is_products,"_self"),className:a()("",{"flex items-center justify-center":"pharma"===d,"":"grocery1"===d}),children:(0,t.jsx)(f(),{src:"".concat(null==e?void 0:e.image),height:60,width:60,className:a()("block h-full w-[60px] 2xl:max-h-[60px] lg:max-h-[60px] sm:max-h-[60px] xs:w-[48px] xs:h-[48px] xs:max-h-[48px]",{"2xl:!max-h-[40px] lg:!max-h-[40px] sm:!max-h-[40px] xs:!w-[30px] xs:!h-[30px] xs:!max-h-[30px]":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),alt:"top-pick"})})}),(0,t.jsx)("div",{className:a()("flex z-10 m-0 pb-0 ps-4 xs:ps-0 w-full xs:text-center xs:items-center xs:justify-center",{"!text-center items-center justify-center mt-2 !px-0":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:(0,t.jsx)("p",{className:a()("text-[20px] xs:text-[15px] font-[500] xs:font-normal text-[#454545] xs:text-[#454545]",{"!text-[16px] !font-[700]":"electronics"===d||"electronics1"===d||"grocery1"===d||"apparel1"===d,"":"grocery1"===d}),children:null==e?void 0:e.title})})]})})},"team--key-".concat(l)))})})})]})},e_=e=>{let{children:l,className:s=""}=e;return"apparelluxu"!==(0,u.t)()?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)(A.E.div,{initial:{opacity:0,y:100},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-50px",amount:.2},transition:{duration:.8,ease:"easeOut"},className:s,children:l})},eN=s(88116),ek=e=>{var l,s,i;let{data:n,className:r=""}=e,o=(0,d.useRef)(null),p=(0,u.t)(),v=(null==(i=null==n?void 0:n.title)?void 0:i.replace(/\s+/g,"").replace(/[^a-zA-Z0-9-_]/g,""))||"defaultTitle-".concat(Date.now()),h=(null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.length)===1;return(null==n?void 0:null===(s=n.data)||void 0===s?void 0:s.length)?(0,t.jsxs)(A.E.section,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},viewport:{once:!0},className:"luxury-slider-wrapper ".concat(r),children:[(0,t.jsx)(m.Z,{title:n.title,className:"!mb-12 xs:!mb-6 text-center"}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(c.tq,{onSwiper:e=>o.current=e,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},modules:[eN.pt],centeredSlides:!0,watchSlidesProgress:!0,speed:800,spaceBetween:60,slidesPerView:3,initialSlide:1,className:"luxury-editorial-slider",breakpoints:{0:{slidesPerView:1.2,spaceBetween:20},768:{slidesPerView:2.2,spaceBetween:40},1024:{slidesPerView:3.75,spaceBetween:60}},children:n.data.map((e,l)=>(0,t.jsx)(c.o5,{className:"luxury-slide",children:(0,t.jsx)(x.Z,{product:e,imgWidth:520,imgHeight:720,variant:"grid",className:"luxury-card"})},l))}),!h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:a()("",{"flex justify-end gap-5":"sports"===p||"grocery1"===p,hidden:"electronics"===p||"pharma"===p}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons pdt_slider_prev".concat(v," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-10 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===p,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===p||"grocery1"===p||"apparelluxu"===p||"perfumes"===p||"apparel2"===p}),children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slideNext()},className:a()("shadow-chevrons pdt_slider_next".concat(v," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===p,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===p||"grocery1"===p||"apparelluxu"===p||"perfumes"===p||"apparel2"===p}),children:(0,t.jsx)(w.ADv,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons pdt_slider_prev".concat(v," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[70px] z-10 xs:hidden"),{"absolute !top-[37%] -left-[25px] sm:-left-[15px] z-10 xs:hidden !flex !right-[inherit]":"apparel1"===p||"grocery1"===p||"apparel2"===p,"absolute !top-[50%] !-translate-y-1/2 !left-[10px] z-10 xs:hidden !flex !right-[inherit]":"apparelluxu"===p||"perfumes"===p}),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slideNext()},className:a()("shadow-chevrons pdt_slider_next".concat(v," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden"),{"absolute !top-[37%] -right-[25px] sm:-right-[13px] z-10 xs:hidden !flex ml-2":"apparel1"===p||"grocery1"===p||"apparel2"===p,"absolute !top-[50%] !-translate-y-1/2 !right-[10px] z-10 xs:hidden !flex ml-2":"apparelluxu"===p||"perfumes"===p}),children:(0,t.jsx)(w.ZOn,{})})]}),"electronics"===p&&(0,t.jsxs)("div",{className:a()("pdt_slider_prev".concat(v),{"flex items-center justify-end mt-5 absolute -right-[35px] -bottom-[35px]":"electronics"===p}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons brands_prev select-none cursor-pointer absolute -top-[66px] right-[60px] z-10 xs:hidden",{"relative top-0 !right-0 flex items-center justify-end":"electronics"===p}),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.slideNext()},className:a()("pdt_slider_next".concat(v," shadow-chevrons brands_next select-none cursor-pointer absolute -top-[66px] -right-[0px] z-10 xs:hidden"),{"relative top-0 !right-0 flex items-center justify-end":"electronics"===p}),children:(0,t.jsx)(w.ZOn,{})})]})]})]})]}):null}
1,eZ=s(51526),eP=e=>{var l,s;let{data:i}=e,n=(0,r.useRouter)(),[o,x]=(0,d.useState)(0),v=(0,d.useRef)(null),h=(0,u.t)(),g=(null==(s=null==i?void 0:i.title)?void 0:s.replace(/\s+/g,"").replace(/[^a-zA-Z0-9-_]/g,""))||"defaultTitle-".concat(Date.now()),b=(null==i?void 0:null===(l=i.data)||void 0===l?void 0:l.length)<=2,j=(e,l)=>{if(!(null==l?void 0:l.is_products)&&(null==l?void 0:l.is_landing_page)){var s;e.preventDefault(),n.push("".concat(E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==l?void 0:l.landing_page_id)&&void 0!==s?s:""))}},_=e=>{var l;return(null==e?void 0:e.is_products)?(0,P.LY)(null==i?void 0:i.id,e):(null==e?void 0:e.is_landing_page)?"".concat(E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==e?void 0:e.landing_page_id)&&void 0!==l?l:""):(null==e?void 0:e.url)?e.url:"#"},N=((e,l)=>{let s=[];if(!e)return[];for(let t=0;t<e.length;t+=l)s.push(e.slice(t,t+l));return s})(null==i?void 0:i.data,2),k={initial:{rotateX:90,opacity:0,scale:.8},animate:{rotateX:0,opacity:1,scale:1},exit:{rotateX:-90,opacity:0,scale:.8}},Z=e=>e?(0,t.jsx)("div",{className:"shadow-box2 rounded-[0px] transition hover:shadow-sm w-full h-auto",children:(0,t.jsx)(y(),{href:_(e),target:(null==e?void 0:e.is_products)?"_self":"_blank",onClick:l=>j(l,e),className:"block w-full h-auto relative",children:(0,t.jsx)(f(),{src:null==e?void 0:e.image,alt:"banner",width:1600,height:1200,className:"w-full h-auto object-cover rounded-[0px]"})})}):(0,t.jsx)("div",{className:"w-full h-auto bg-gray-100"}),V=N[o]||[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Z,{title:null==i?void 0:i.title,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"relative w-full swipe-padd",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 opacity-0 pointer-events-none h-0 overflow-hidden",children:(0,t.jsx)(p.Z,{autoplay:!0,loop:!0,slidesPerView:1,slidesPerGroup:1,speed:100,onSwiper:e=>v.current=e,onSlideChange:e=>x(e.realIndex),pagination:{clickable:!0},buttonPosition:"outside",children:N.map((e,l)=>(0,t.jsx)(c.o5,{children:(0,t.jsx)("div",{className:"h-10 w-10 bg-red-500"})},"helper-".concat(l)))})}),(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-[0px] w-full relative z-10",children:[(0,t.jsx)("div",{className:"relative overflow-hidden rounded-[0px] grid grid-cols-1 w-full perspective-[1000px]",children:(0,t.jsx)(eZ.M,{mode:"popLayout",initial:!1,children:(0,t.jsx)(A.E.div,{variants:k,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.8,ease:"easeInOut"},className:"col-start-1 row-start-1 w-full",style:{transformStyle:"preserve-3d",transformOrigin:"bottom"},children:Z(V[0])},"slot1-".concat(o))})}),(0,t.jsx)("div",{className:"relative overflow-hidden rounded-[0px] grid grid-cols-1 w-full perspective-[1000px]",children:(0,t.jsx)(eZ.M,{mode:"popLayout",initial:!1,children:(0,t.jsx)(A.E.div,{variants:k,initial:"initial",animate:"animate",exit:"exit",transition:{duration:.8,ease:"easeInOut"},className:"col-start-1 row-start-1 w-full",style:{transformStyle:"preserve-3d",transformOrigin:"bottom"},children:Z(V[1])},"slot2-".concat(o))})})]}),!b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:a()("",{"flex justify-end gap-5":"sports"===h||"grocery1"===h,hidden:"electronics"===h||"pharma"===h}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons pdt_slider_prev".concat(g," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-30 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===h,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===h||"grocery1"===h||"apparelluxu"===h||"perfumes"===h||"apparel2"===h}),children:(0,t.jsx)(w.qg,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slideNext()},className:a()("shadow-chevrons pdt_slider_next".concat(g," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-30 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===h,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===h||"grocery1"===h||"apparelluxu"===h||"perfumes"===h||"apparel2"===h}),children:(0,t.jsx)(w.ADv,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons pdt_slider_prev".concat(g," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[70px] z-30 xs:hidden"),{"absolute !top-[37%] -left-[25px] sm:-left-[15px] z-30 !flex !right-[inherit]":"apparel1"===h||"grocery1"===h,"absolute !top-[50%] !-translate-y-1/2 !left-[10px] z-30 !flex !right-[inherit]":"apparelluxu"===h||"perfumes"===h}),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slideNext()},className:a()("shadow-chevrons pdt_slider_next".concat(g," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-30 xs:hidden"),{"absolute !top-[37%] -right-[25px] sm:-right-[13px] z-30 !flex ml-2":"apparel1"===h||"grocery1"===h,"absolute !top-[50%] !-translate-y-1/2 !right-[10px] z-30 !flex ml-2":"apparelluxu"===h||"perfumes"===h}),children:(0,t.jsx)(w.ZOn,{})})]}
1),"electronics"===h&&(0,t.jsxs)("div",{className:a()("pdt_slider_prev".concat(g),{"flex items-center justify-end mt-5 absolute -right-[35px] -bottom-[35px]":"electronics"===h}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slidePrev()},className:a()("shadow-chevrons brands_prev select-none cursor-pointer absolute -top-[66px] right-[60px] z-30 xs:hidden",{"relative top-0 !right-0 flex items-center justify-end":"electronics"===h}),children:(0,t.jsx)(w.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=v.current)||void 0===e?void 0:e.slideNext()},className:a()("pdt_slider_next".concat(g," shadow-chevrons brands_next select-none cursor-pointer absolute -top-[66px] -right-[0px] z-30 xs:hidden"),{"relative top-0 !right-0 flex items-center justify-end":"electronics"===h}),children:(0,t.jsx)(w.ZOn,{})})]})]})]})]})},eE=s(86501),eV=function(e){var l,s;let{data:i}=e,n=(0,r.useRouter)(),o=(0,u.t)(),d=null==i?void 0:null===(l=i.data)||void 0===l?void 0:l[0],c="apparelluxu"===o||"perfumes"===o,x="perfumes"===o?"font-cinzel":"font-inria";if(!d&&!i)return null;let p=(null==d?void 0:d.title)||(null==i?void 0:i.title)||"",m=(null==d?void 0:d.sub_title)||(null==i?void 0:i.sub_title)||"",v=(null==d?void 0:d.description)||(null==i?void 0:i.description)||"",g=(null==d?void 0:d.cta_text)||(null==i?void 0:i.cta_text)||"",w=g||(null==d?void 0:d.url)||(null==d?void 0:d.is_products)||(null==d?void 0:d.is_landing_page);return(0,t.jsx)("div",{className:"pt-10 sm:pt-14 md:pt-16",children:(0,t.jsx)(h.Z,{className:"xs:!px-0",children:(0,t.jsxs)("div",{className:a()("grid grid-cols-1 items-center gap-6 sm:gap-8 lg:grid-cols-2 lg:gap-12 xl:gap-16",c&&"mx-auto w-full max-w-[1920px] px-[15px] sm:px-[20px] md:px-[26px] xl:px-[50px] 2xl:px-[80px]"),children:[(0,t.jsxs)("div",{className:"order-2 flex flex-col gap-5 lg:order-1",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[m&&(0,t.jsx)("p",{className:a()("font-bold uppercase",c?a()(x,"text-xl tracking-[0.15em] sm:text-2xl lg:text-[28px]"):"text-sm tracking-[0.2em]",{["text-".concat(o,"-primary")]:o,"text-[#FF7A7A]":!o}),children:m}),p&&(0,t.jsx)("h2",{className:a()("text-[28px] font-extrabold leading-[1.15] text-[#1a1a1a] text-balance sm:text-[32px] md:text-4xl lg:text-[42px]",c&&x),children:p})]}),v&&(0,t.jsx)("div",{className:a()("text-[15px] leading-relaxed text-[#555555] xs:text-base","[&_p]:mb-3 [&_p:last-child]:mb-0","[&_p:has(>br:only-child)]:hidden","[&_h3]:mt-5 [&_h3]:text-[19px] [&_h3]:font-bold [&_h3]:leading-snug [&_h3]:text-[#1a1a1a] [&_h3+h3]:mt-1","[&_h3~p]:mb-1.5 [&_h3~p]:text-[#333]","[&_h3+p]:mt-3","[&_p>strong:only-child]:text-[17px] [&_p>strong:only-child]:text-[#1a1a1a]","[&_ul]:mt-6 [&_ul]:grid [&_ul]:list-none [&_ul]:grid-cols-1 [&_ul]:gap-x-8 [&_ul]:gap-y-3 [&_ul]:pl-0 md:[&_ul]:grid-cols-2","[&_li]:flex [&_li]:items-start [&_li]:gap-2.5 [&_li]:font-medium [&_li]:text-[#333]","[&_li]:before:mt-[-2px] [&_li]:before:text-lg [&_li]:before:font-bold [&_li]:before:content-['✓']",o?"[&_li]:before:text-".concat(o,"-primary"):"[&_li]:before:text-[#FF7A7A]","[&_strong]:font-bold [&_em]:italic [&_a]:underline [&_a]:underline-offset-2"),dangerouslySetInnerHTML:{__html:v}}),w&&(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsxs)(y(),{href:(null==d?void 0:d.is_products)?(0,P.LY)(null==i?void 0:i.id,d):(null==d?void 0:d.is_landing_page)?"".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(s=null==d?void 0:d.landing_page_id)&&void 0!==s?s:""):(null==d?void 0:d.url)?null==d?void 0:d.url:"#",target:(null==d?void 0:d.is_products)?"_self":"_blank",rel:(null==d?void 0:d.is_products)?void 0:"noopener noreferrer",onClick:e=>{if(!(null==d?void 0:d.is_products)&&(null==d?void 0:d.is_landing_page)){var l;e.preventDefault(),n.push("".concat(null===E.Z||void 0===E.Z?void 0:E.Z.HOME,"?landing_page_id=").concat(null!==(l=null==d?void 0:d.landing_page_id)&&void 0!==l?l:""))}},className:a()("inline-flex items-center gap-3 rounded-[5px] px-8 py-3 text-base font-bold shadow-md transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",{["bg-".concat(o,"-primary text-white")]:o,"bg-[#FF7A7A] text-white":!o}),children:[g||"Shop Now",(0,t.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"})})]})})]}),((null==d?void 0:d.image)||(null==d?void 0:d.video))&&(0,t.jsx)("div",{className:"group relative order-1 aspect-[4/3] w-full overflow-hidden rounded-2xl shadow-xl ring-1 ring-black/5 sm:aspect-[16/11] lg:order-2 lg:aspect-square",children:(null==d?void 0:d.is_video)&&(null==d?void 0:d.video)?(0,t.jsx)("video",{autoPlay:!0,loop:!0,muted:!0,playsInl
1ine:!0,onError:()=>eE.ZP.error("Failed to load video content"),className:"absolute inset-0 h-full w-full transition-transform duration-700 group-hover:scale-[1.03]",children:(0,t.jsx)("source",{src:d.video})}):(null==d?void 0:d.image)?(0,t.jsx)(f(),{src:d.image,alt:p||"Content banner",fill:!0,className:"object-cover transition-transform duration-700 group-hover:scale-[1.03]",sizes:"(max-width: 1024px) 100vw, 50vw"}):null})]})})})},eB=function(e){let{data:l,meta:s}=e,{setModalView:i,closeModal:n,openModal:c,setModalData:x}=(0,o.l8)(),p=(0,r.useRouter)(),m=(0,u.t)(),g=()=>(x(null),i("EXCITING_VIEW"),c());(0,d.useEffect)(()=>{"/food"==p.pathname&&g()},[p.pathname]);let w=e=>{let l=new Date(e),s=l.getTimezoneOffset();return l.setMinutes(l.getMinutes()+s),l};return(0,t.jsxs)(t.Fragment,{children:[s&&(0,t.jsx)(G.Z,{metaTags:s}),(0,t.jsxs)("div",{className:a()("lg:bg-[#fff] bg-transparent mx-auto",{"":"sports"===m,"lg:!bg-[#FBFBFB]":"grocery1"===m||"grocery2"===m,"lg:!bg-[#FFFFF9] sm:!bg-[#FFFFF9]":"apparel1"===m,"lg:!bg-[#FFF] sm:!bg-[#fff]":"apparel2"===m,"lg:!bg-[#faf8f0] sm:!bg-[#faf8f0] !bg-[#faf8f0]":"apparelluxu"===m||"perfumes"===m}),children:[null==l?void 0:l.map((e,l)=>(0,t.jsx)("div",{className:a()("lg:mb-[1px]",{"":"sports"===m,"":"grocery"===m}),children:(0,t.jsxs)(e_,{children:[(null==e?void 0:e.asset_type)==="slider"&&(null==e?void 0:e.layout)=="hero"&&(0,t.jsx)(z,{data:e,loading:void 0,error:void 0}),(null==e?void 0:e.asset_type)==="slider-single"&&(null==e?void 0:e.layout)=="hero"&&(0,t.jsx)(J,{data:e,loading:void 0,error:void 0}),(null==e?void 0:e.asset_type)==="two-column-of-three"&&(null==e?void 0:e.layout)=="hero"&&(0,t.jsx)(ep,{data:e,loading:void 0,error:void 0}),("sports"===m||"total-sports"===m||"total-sports"===m)&&(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="category"?(0,t.jsx)(h.Z,{children:(0,t.jsx)(k,{data:e})}):null,("sports"===m||"total-sports"===m)&&(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="category"?(0,t.jsx)(h.Z,{children:(0,t.jsx)(k,{data:e})}):null,(null==e?void 0:e.asset_type)==="new-category-slider"&&(null==e?void 0:e.layout)=="slider"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(eg,{data:e})}),("grocery"===m||"grocery1"===m||"grocery2"===m||"pharma"===m)&&(null==e?void 0:e.layout)==="slider"&&(null==e?void 0:e.asset_type)==="category"?(0,t.jsx)(h.Z,{children:(0,t.jsx)(Z.Z,{data:e})}):null,("apparel1"===m||"electronics"===m||"electronics1"===m)&&(null==e?void 0:e.layout)==="slider"&&(null==e?void 0:e.asset_type)==="category"?(0,t.jsx)(h.Z,{children:(0,t.jsx)(Z.Z,{data:e})}):null,("apparel"===m||"apparel2"===m||"apparelluxu"===m||"perfumes"===m)&&(null==e?void 0:e.layout)==="slider"&&(null==e?void 0:e.asset_type)==="category"?(0,t.jsx)(ea,{data:e}):null,(null==e?void 0:e.asset_type)==="slider-single"&&(null==e?void 0:e.layout)=="hero"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(J,{data:e,loading:void 0,error:void 0})}),(null==e?void 0:e.layout)=="rail"&&(null==e?void 0:e.asset_type)=="category"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(K,{data:e,hide:!0})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="five-column"&&(0,t.jsx)(h.Z,{className:"xs:!pt-[15px]",children:(0,t.jsx)(V,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="six-column"&&(0,t.jsx)(h.Z,{className:"xs:!pt-[15px]",children:(0,t.jsx)(ed,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="banner-slider-banner"&&(0,t.jsx)(h.Z,{className:"xs:!pt-[15px]",children:(0,t.jsx)(B,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="three-column"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(O,{data:e})}),(null==e?void 0:e.layout)=="rail"&&(null==e?void 0:e.asset_type)=="two-column"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ee,{data:e})}),(null==e?void 0:e.layout)=="rail"&&(null==e?void 0:e.asset_type)=="two-column1"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ej,{data:e})}),(null==e?void 0:e.asset_type)==="banner"?(0,t.jsx)(t.Fragment,{children:(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(H,{data:e})})}):(0,t.jsx)(t.Fragment,{}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="banner"&&(null==e?void 0:e.width)=="half"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ec,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="banner-column-two-row"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(eb,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="more-exclusive"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ey,{data:e})}),e&&"slider"===e.layout&&"exclusive-products"===e.asset_type&&"full"===e.width&&(0,t.jsx)("div",{className:a()("xs:pb-[20px] sm:pt-[30px] prod-bg pb-[40px]",{" !px-[40px]":"apparelluxu"===m||"perfumes"===m}),style:{backgroundColor:(null==e?void 0:e.background_color_code)?e.background_color_code:"white"},children:(0,t.jsx)(h.Z,{children:(0,t.jsx)(eu,{data:e})})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="special-products"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsxs)("div",{className:" border border-[#000000] relative rounded-[12px] mt-[60px] xs:pb-[20px] sm:pt-[30px] prod-bg pb-[40px]",style:{backgroundColor:(null==e?void 0:e.background_color_code)?e.background_color_code:"white"},children:[(0,t.jsx)(f(),{src:"/bg-min.png",alt:"Logo",height:1e3,width:2e3,loading:"eager",priority:!1,className:a()("absolute top-[0px] w-[100%] h-full bg-repeat-x ",{"":"sports"===m})}),(0,t.jsx)(em,{data:e})]})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="three-column-of-six"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(eh,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="brand"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(_,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(M.Z,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product-center"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ek,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="new-arrival-categories"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ew,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product-with-section-background"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)("div",{className:"xs:pb-[20px] sm:pt-[30px] prod-bg pb-[40px]",style:{backgroundColor:(null==e?void 0:e.background_color_code)?e.background_color_code:"white"},children:(0,t.jsx)(h.Z,{children:(0,t.jsx)(M.Z,{data:e})})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product"&&(null==e?void 0:e.width)=="half"&&(0,t.jsx)(v,{data:e}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product-with-left-image"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)("div",{className:a()("relative rounded-[10px] mt-[60px] xs:mt-[30px] prod-bg",{"":"sports"===m,"!bg-transparent":"apparelluxu"===m||"perfumes"===m}),style:{backgroundColor:(null==e?void 0:e.background_color_code)?e.background_color_code:"white"},children:(0,t.jsx)(es,{data:e})})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="product-with-left-image1"&&(null==e?void 0:e.width)=="full"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(ex,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="four-column"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(F,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="four-column2"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(eP,{data:e})}),(null==e?void 0:e.layout)=="hero"&&(null==e?void 0:e.asset_type)=="two-column-of-five"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(T,{data:e})}),(null==e?void 0:e.layout)==="hero"&&(null==e?void 0:e.asset_type)==="single-column"&&(0,t.jsx)(h.Z,{singleColumnFull:!0,children:(0,t.jsx)(R,{singleColumnFull:!0,data:e})}),(null==e?void 0:e.asset_type)==="flash-sale-products"&&(0,t.jsx)(h.Z,{children:w(null==e?void 0:e.end_date)>new Date&&(0,t.jsx)(I,{data:e})}),(null==e?void 0:e.layout)=="slider"&&(null==e?void 0:e.asset_type)=="recipe"&&(0,t.jsx)(h.Z,{singleColumnFull:!0,children:(0,t.jsx)(q,{data:e})}),(null==e?void 0:e.asset_type)==="content-with-image"&&(0,t.jsx)(h.Z,{children:(0,t.jsx)(eV,{data:e})})]})},l+"HME")),(0,t.jsx)(U,{data:l}),"sports"===m?(0,t.jsx)(h.Z,{children:(0,t.jsx)(eo,{sectionHeading:"What Our Customers Say"})}):""]})]})},eL=s(87249),eF=s(45089),eC=s(58533),ez=e=>{var l,s,i,o;let{gridCount:d=4,className:c="",loading:x,data:p,hasNextPage:m,loadingMore:v,fetchNextPage:h,component:g,PlPgae
1:f,pageType:w,meta_info:b}=e,{width:j}=(0,n.Z)(),y=(0,u.t)();return null===(l=(0,r.useRouter)().asPath.split("/"))||void 0===l||l[1],(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eC.Z,{className:"!overflow-hidden pb-[25px]",dataLength:(null==p?void 0:null===(s=p.pages)||void 0===s?void 0:s.length)||0,next:h,hasMore:!!m,loader:(0,t.jsx)(eF.Z,{}),children:(0,t.jsx)(t.Fragment,{children:null==p?void 0:null===(i=p.pages)||void 0===i?void 0:i.map(e=>(0,t.jsx)(eB,{data:null==e?void 0:e.data}))})}),(0,t.jsxs)("div",{className:"w-full flex justify-center sm:py-4 lg:py-4 pl-5 xs:pl-0 xs:justify-center  ",children:[m&&(0,t.jsx)(eL.Z,{variant:"custom",disabled:v,onClick:()=>h(),className:a()("!bg-".concat(y,"-primary !text-").concat(y,"-secondary relative w-[126px] xs:!px-3 xs:!py-3 xs:whitespace-nowrap xs:my-4 h-[42px] xs:mt-2 xs:h-auto bg-[#000] xs:bg-transparent rounded-[5px] shadow xs:shadow-none border xs:border-0 border-[#E8E8E8] justify-center items-center gap-[12.83px] inline-flex text-center text-white xs:text-[#21212
11] text-lg xs:text-xs xs:font-semibold font-normal font-nunito-sans capitalize leading-tight")),children:"Load More"}),"home"==w&&(0,t.jsx)("h1",{className:"hidden",children:null!==(o=null==b?void 0:b.meta_title)&&void 0!==o?o:null==b?void 0:b.meta_description})]})]})}},88702:function(e,l,s){var t=s(85893),i=s(67294),a=s(30719),n=s(71508),r=s(65463),o=s(14192),d=s(30648),c=s(11163),x=s(93967),p=s.n(x),u=s(84026);let m=e=>{let{children:l,...s}=e;return(0,t.jsx)(a.tq,{...s,children:l})};l.Z=e=>{var l,s,x,v,h,g,f;let{className:w="mt-[0px] xs:mb-[10px] pt-0 xs:pt-0 xs:px-[0px]",data:b,loading:j,error:y,uniqueKey:_,gridCount:N=5,nav:k=!0}=e,Z=(0,u.t)(),P=(0,i.useRef)(),E=(e,l,s,t,i,a,n,r)=>{switch(Z){case"sports":return l;case"grocery":return s;case"apparel":return t;case"electronic":return i;case"apparel1":return a;case"grocery1":return n;case"apparelluxu":return r;default:return e}},V={1720:{slidesPerView:E(4.75,4,4.75,4.75,4.75,4,4.75,4.15),spaceBetween:20},1440:{slidesPerView:E(4.5,4,4.5,4.5,4.75,4,5,4.15),spaceBetween:20},1366:{slidesPerView:E(4.25,4,4.25,4.25,4.75,4,5,4.15),spaceBetween:20},1025:{slidesPerView:E(4,4,4,5,4.75,4,4,4.15),spaceBetween:28},768:{slidesPerView:E(2,3,2,2,2,3,2,3),spaceBetween:20},0:{slidesPerView:E(2.1,2.1,2.1,2.1,2.1,2.1,2.1,2.1),spaceBetween:12}},{asPath:B}=(0,c.useRouter)(),L=null==B?void 0:null===(l=B.split("/"))||void 0===l?void 0:l[1],F=(null==(f=null==b?void 0:b.title)?void 0:f.replace(/\s+/g,"").replace(/[^a-zA-Z0-9-_]/g,""))||"defaultTitle-".concat(Date.now()),C=(null==b?void 0:null===(s=b.data)||void 0===s?void 0:s.length)===1;return(0,t.jsxs)("div",{className:w,children:[(0,t.jsx)(o.Z,{title:null==b?void 0:b.title,subTitle:null==b?void 0:b.sub_title,href:k?"/feeds/"+(null==b?void 0:b.id)+"?from=".concat({"/":"home","/offers":"offers"}[B]||""):null,className:"!mb-10 xs:!mb-[15px]"}),(0,t.jsxs)("div",{className:"w-full swipe-padd relative\n          ".concat((null==b?void 0:null===(x=b.data)||void 0===x?void 0:x.length)>=3?"2xl:mb-[0px] mb-[0px] xs:mb-0":"mb-0","\n          ").concat("electronics"===Z?"electronics":"","\n          ").concat(C?"single-product":"","\n        "),children:[!j||(null==b?void 0:null===(v=b.data)||void 0===v?void 0:v.length)?(0,t.jsx)(m,{initialSlide:0,loop:("apparelluxu"===Z||"perfumes"===Z)&&(null==b?void 0:null===(h=b.data)||void 0===h?void 0:h.length)>5,onSwiper:e=>{P.current=e},autoplay:{delay:4e3,disableOnInteraction:!0},pagination:{clickable:!0},className:C?"single-product-carousel":"",spaceBetween:10,navigation:!C&&{prevEl:".pdt_slider_prev".concat(F),nextEl:".pdt_slider_next".concat(F)},slidesPerView:5,buttonPosition:"outside",breakpoints:V,centeredSlides:!1,children:null==b?void 0:null===(g=b.data)||void 0===g?void 0:g.map((e,l)=>(0,t.jsx)(a.o5,{className:"!pb-0 xs:!pb-0 ".concat(C?"!flex !justify-start":""),children:(0,t.jsx)(r.Z,{product:e,imgWidth:340,imgHeight:410,variant:"grid",source:L,className:"xs:w-auto ".concat(C?"mr-auto":"")},"product--key".concat(null==e?void 0:e.id))},"team--key-".concat(l)))}):(0,t.jsx)(n.Z,{limit:10,uniqueKey:_}),!C&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:p()("",{"flex justify-end gap-5":"sports"===Z||"grocery1"===Z,hidden:"electronics"===Z||"pharma"===Z}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slidePrev()},className:p()("shadow-chevrons pdt_slider_prev".concat(F," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[60px] z-10 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===Z,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===Z||"grocery1"===Z||"apparelluxu"===Z||"perfumes"===Z||"apparel2"===Z}),children:(0,t.jsx)(d.qg,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slideNext()},className:p()("shadow-chevrons pdt_slider_next".concat(F," select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden"),{"relative !right-0 !left-0 !top-0 !bottom-0 mb-[0px] mt-[18px]":"sports"===Z,"xl:-top-[60px] -top-[60px] hidden":"apparel1"===Z||"grocery1"===Z||"apparelluxu"===Z||"perfumes"===Z||"apparel2"===Z}),children:(0,t.jsx)(d.ADv,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slidePrev()},className:p()("shadow-chevrons pdt_slider_prev".concat(F," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] right-[70px] z-10 xs:hidden"),{"absolute !top-[37%] -left-[25px] sm:-left-[15px] z-10 xs:hidden !flex !right-[inherit]":"apparel1"===Z||"grocery1"===Z||"apparel2"===Z,"absolute !top-[50%] !-translate-y-1/2 !left-[10px] z-10 xs:hidden !flex !right-[inherit]":"apparelluxu"===Z||"perfumes"===Z}),children:(0,t.jsx)(d.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slideNext()},className:p()("shadow-chevrons pdt_slider_next".concat(F," hidden select-none cursor-pointer absolute xl:-top-[63px] -top-[63px] -right-[0px] z-10 xs:hidden"),{"absolute !top-[37%] -right-[25px] xs:-right-[10px] sm:-right-[13px] z-10 xs:hidden !flex ml-2":"apparel1"===Z||"grocery1"===Z||"apparel2"===Z,"absolute !top-[50%] !-translate-y-1/2 !right-[10px] z-10 xs:hidden !flex ml-2":"apparelluxu"===Z||"perfumes"===Z}),children:(0,t.jsx)(d.ZOn,{})})]}
1),"electronics"===Z&&(0,t.jsxs)("div",{className:p()("pdt_slider_prev".concat(F),{"flex items-center justify-end mt-5 absolute -right-[35px] -bottom-[35px]":"electronics"===Z}),children:[(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slidePrev()},className:p()("shadow-chevrons brands_prev select-none cursor-pointer absolute -top-[66px] right-[60px] z-10 xs:hidden",{"relative top-0 !right-0 flex items-center justify-end":"electronics"===Z}),children:(0,t.jsx)(d.t7R,{})}),(0,t.jsx)("button",{onClick:()=>{var e;return null===(e=P.current)||void 0===e?void 0:e.slideNext()},className:p()("pdt_slider_next".concat(F," shadow-chevrons brands_next select-none cursor-pointer absolute -top-[66px] -right-[0px] z-10 xs:hidden"),{"relative top-0 !right-0 flex items-center justify-end":"electronics"===Z}),children:(0,t.jsx)(d.ZOn,{})})]})]})]})]})}},2065:function(e,l,s){var t=s(85893),i=s(93967),a=s.n(i),n=s(25675),r=s.n(n),o=s(27728),d=s(11163),c=s(30648),x=s(84026);l.Z=e=>{var l,s;let{data:i,className:n="",contactClassName:p="",imageContentClassName:u="",variant:m="grid",imgWidth:v
1=340,imgHeight:h=410,imgLoading:g,isWishlist:f}=e,w=(0,d.useRouter)(),{title:b,source:j,slug:y,thumbnail:_,product_type:N,recipe_type:k}=null!=i?i:{},Z=()=>{w.push("".concat(o.Z.RECIPES,"/").concat(y))},P=(0,x.t)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:a()("group relative box-border overflow-hidden flex cursor-pointer items-start border border-[#E5E8E9] bg-white xs:shadow-none xs:pb-0 xs:rounded-none",{"flex-col items-start bg-white transition duration-200 ease-in-out transform":"grid"===m,"pr-0 lg:pb-1 flex-col items-start bg-white":"gridSlim"===m,"items-center bg-transparent border border-gray-100 transition duration-200 ease-in-out transform hover:-translate-y-1 hover:shadow-listProduct":"listSmall"===m,"flex-col items-center transition-transform ease-linear bg-white pr-2 lg:pr-3 2xl:pr-4 xs:pr-0":"list"===m},n),role:"button",children:[(0,t.jsx)("div",{className:a()("flex m-auto mb-2 xs:h-auto xs:max-h-[147px] xs:items-center xs:bg-[#f5f7fb] xs:p-0  w-full xs:mb-0 border-b xs:overflow-hidden border-[#E5E8E9]",{"mt-0 xs:mt-0 mb-3 xs:mb-0":"grid"===m},u),title:b,children:(0,t.jsxs)("div",{className:a()("min-h-[200px] max-h-[200px] xs:max-h-[135px] xs:min-h-[135px] w-full overflow-hidden flex items-center justify-center transition duration-200 ease-in-out transform group-hover:scale-105 lg:min-h-[164px] lg:max-h-[164px]",{"min-h-[410px] max-h-[410px] p-[10px]":"electronic"===j,"min-h-[250px] max-h-[250px] p-[50px]":"grocery"===j,"min-h-[410px] max-h-[410px] h-revert !p-0":"apparel"===j,"min-h-[230px] max-h-[230px] !p-0":"food"===j}),children:[(0,t.jsx)(r(),{src:_,width:v,height:h,loading:g,quality:100,alt:"Product Image",priority:!1,onClick:Z,className:"object-cover bg-fill-thumbnail w-auto xs:w-full transition duration-200 ease-in group-hover:rounded-b-none min-h-[200px] max-h-[200px]"}),(0,t.jsx)("div",{className:"absolute bottom-[11px] xs:bottom-[7px] left-[15px] xs:left-[10px] bg-white food-svg-detail",children:(0,t.jsx)(c.FtF,{className:"xs:!w-[14px] xs:!h-[14px]",fill:"veg"===k?"#008300":"#BE360D"})})]})}),(0,t.jsxs)("div",{className:a()("w-full px-[15px] xs:px-0 relative xs:border xs:border-[#fbdfe3]",{"px-[15px]":"grid"===m,"pl-0":"gridSlim"===m,"px-4 xs:px-2 lg:px-5 2xl:px-4":"listSmall"===m},p),children:[(0,t.jsxs)("div",{className:"",children:[(0,t.jsx)("h2",{className:a()("text-heading  font-nunito-sans mb-1 text-[#222] text-[16px] text-left xs:text-left xs:text-[12px] xs:font-semibold xs:mb-0 xs:px-[10px] xs:pt-[3px] flex justify-between items-start",{"":"grid"===m,"lg:mb-1.5 text-sm sm:text-base lg:text-sm  lg:text-lg":"gridSlim"===m,"text-sm lg:text-base lg:mb-1.5 pb-0":"listSmall"===m,"text-sm lg:text-base lg:text-sm lg:text-lg lg:mb-1.5":"list"===m}),children:(0,t.jsx)("span",{onClick:Z,className:"pr-2 max-w-[98%] truncate flex-1 xs:pb-2",children:b})}),(0,t.jsxs)("p",{className:"flex items-center xs:items-start gap-3 xs:gap-1 xs:justify-items-center xs:px-[10px] mb-[7px] min-h-[21px]",children:[(0,t.jsx)("span",{className:"flex gap-[3px]",children:[1,2,3,4,5].map((e,l)=>{var s;return(0,t.jsx)(t.Fragment,{children:(null==i?void 0:null===(s=i.ratings)||void 0===s?void 0:s.average)>=e?(0,t.jsx)("span",{className:"text-[#ffac33]",children:(0,t.jsx)(c.SWV,{fill:"currentColor"})}):(0,t.jsx)(c.SWV,{fill:"#d3d3d3"})})})}),(null==i?void 0:null===(l=i.ratings)||void 0===l?void 0:l.total_count)?(0,t.jsxs)("span",{className:"underline text-[#222222] text-[14px] sm:text-[13px] xs:text-[10px] font-nunito-sans",children:[null==i?void 0:null===(s=i.ratings)||void 0===s?void 0:s.total_count," reviews"]}):(0,t.jsx)(t.Fragment,{})]})]}),(0,t.jsx)("div",{className:"xs:hidden border-b border-[#E5E8E9] pb-2 mb-2 h-2"}),(0,t.jsx)("button",{className:"!bg-".concat(P,"-primary mx-0 border px-4  xs:!border mb-2 xs:!border-primary text-white xs:border-solid  xs:text-[white] xs:h-[34px] xs:rounded-[0px] xs:font-[500] xs:mx-2\n            ").concat("list"===m?"xs:w-[fill-available] rounded-[0px] bg-transparent flex items-center justify-center gap-3 h-10 lg:h-10 text-sm 2xl:text-base text-primary font-bold font-gilroy border lg:bg-transparent hover:bg-primary hover:text-white xs:px-3 !border-primary xs:border-[1px]":"w-[fill-available]"," rounded-[0px] bg-transparent flex items-center justify-center gap-3 h-10 lgh-10 text-sm 2xl:text-base text-primary font-normal font-gilroy border  lg:bg-transparent hover:bg-primary hover:text-white xs:px-3  xs:!border !border-primary"),onClick:Z,children:(0,t.jsx)("span",{className:"whitespace-nowrap ",children:"View Recipe"})})]})]})})}},45089:function(e,l,s){var t=s(85893),i=s(83758);l.Z=function(){return(0,t.jsxs)("div",{className:"flex items-center justify-center pt-10 text-lg font-semibold gap-2 ",children:[(0,t.jsx)(i.c,{className:"animate-spin ml-3 h-5 w-5 text-primary"}
1),"Loading"]})}},31154:function(e,l,s){s.d(l,{b:function(){return d}});var t=s(88767),i=s(74974),a=s(25559),n=s(76704);let r=new a.z(i.P.PIMS.HOME),o=async e=>{let{queryKey:l,pageParam:s}=e,{source:t,device_type:a,token:o,location:d,vendorId:c,vendor_slug:x,category:p,landing_page_id:u,currency_code:m,host:v}=l[1],h=(0,n.oT)();x=x||(0,n.LL)(),p=p||(0,n.n3)(),m=m||(0,n.E8)();let g="?vendor_id=".concat(h,"&limit=10&page=").concat(null!=s?s:1);t&&(g+="&source="+t),u&&(g+="&landing_page_id="+(null!=u?u:"")),a&&(g+="&device_type="+a);let{data:f}=await r.findAllGet(i.P.PIMS.HOME+g,{token:o,location:d||(0,n.k$)(),vendorId:c,vendor_slug:x,category:p,currency_code:m,host:v}),{feeds:w,...b}=null==f?void 0:f.data,j=Number(b.totalPages)-1>=Number(b.currentPage);return{data:w,paginatorInfo:{...b,hasMorePages:j,perPage:10,nextPageUrl:!!j&&(s?s+1:2)}}},d=(e,l)=>(0,t.useInfiniteQuery)([i.P.PIMS.HOME,e],o,{...l,getNextPageParam:e=>{let{paginatorInfo:l}=e;return l.nextPageUrl}})},57360:function(e,l,s){async function t(e){let{locales:l}=e;return{paths:[],fallback:"blocking"}}s.d(l,{r:function(){return t}}),s(31154),s(76489),s(6974),s(76704),s(19223)},19223:function(e,l,s){s.d(l,{LY:function(){return i},te:function(){return n}});var t=s(11163);let i=(e,l)=>{var s;let{query:i,asPath:a}=(0,t.useRouter)(),n="&from="+(a&&null!==(s=({"/":"home","/offers":"offers"})[a])&&void 0!==s?s:""),r=(null==l?void 0:l.is_products)?"/feeds/"+e+"?feed_position="+(null==l?void 0:l.position)+n:null==l?void 0:l.url;return null!=r?r:"#"},a=["index","offers","cart"],n=e=>{var l;let s=e||(null===(l=(0,t.useRouter)())||void 0===l?void 0:l.asPath);if(!s)return"";let i=s.split(/[?#]/)[0];return(null==a?void 0:a.find(e=>null==i?void 0:i.includes(e)))||""}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.