1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3683],{1567:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/popular",function(){return s(7634)}])},7690:function(e,l,s){"use strict";s.d(l,{Z:function(){return i}});var t=s(5893),a=s(1664),n=s.n(a);function i(e){let{href:l,id:s,label:a,onClick:i,style:r,type:c,name:o,className:m,target:d,disabled:x,ariaLabel:p,ariaHidden:u}=e;return l?(0,t.jsx)(n(),{id:s,href:l,className:"btn btn-".concat(c||"link"," ").concat(m||""),style:r,target:d,children:a}):(0,t.jsx)("button",{id:s,className:"text-xs btn btn-".concat(c||"plain"," ").concat(m||""),style:r,onClick:i,disabled:x,name:o,"aria-label":null!=p?p:void 0,"aria-hidden":null!=u&&u,children:a})}},7634:function(e,l,s){"use strict";s.r(l);var t=s(5893),a=s(7294),n=s(5675),i=s.n(n),r=s(1664),c=s.n(r),o=s(4278),m=s(4388),d=s(3098),x=s(279),p=s(7451),u=s(9864),h=s(4049);l.default=e=>{let{productList:l}=e,s=(0,u.TL)(),n=a.useRef((0,p.Z)({delay:3e3,stopOnInteraction:!1,stopOnMouseEnter:!0}));return(0,t.jsx)("section",{className:"bg-bgsecondary flex justify-center items-center",children:(0,t.jsx)("div",{className:"w-content large:px-0 medium:px-[2.5rem] px-[1rem] flex py-4 flex-col gap-4 max-large:w-full",children:(0,t.jsxs)(x.lr,{opts:{align:"start",loop:!0},plugins:[n.current],className:"w-full flex flex-col gap-4",children:[(0,t.jsx)(o.Z,{title:"Popular Products",viewAllHref:"/popular-products",showControls:!0,extra:(0,t.jsxs)("span",{className:"hidden small:inline-flex items-center gap-1 text-[11px] font-semibold uppercase tracking-wider text-yellow bg-yellow/15 px-2 py-0.5 rounded",children:[(0,t.jsx)("i",{className:"fa-solid fa-fire text-[10px]","aria-hidden":!0}),"Best sellers"]})}),(0,t.jsx)(x.KI,{className:"-ml-3 medium:-ml-4",children:l.map((e,l)=>{let a=l+1;return(0,t.jsx)(x.d$,{className:"pl-3 medium:pl-4 basis-[48%] min-[420px]:basis-1/2 medium:basis-1/3 large:basis-1/4",children:(0,t.jsxs)("div",{className:"group relative flex flex-col bg-white rounded-xl overflow-hidden border border-webblack/10 shadow-sm hover:shadow-md hover:border-yellow/40 transition-all",children:[(0,t.jsxs)("div",{className:"absolute top-2 left-2 small:top-3 small:left-3 z-10 h-7 min-w-7 small:h-8 small:min-w-8 px-1 rounded-full flex items-center justify-center font-bold text-xs small:text-sm shadow-sm ".concat(a<=3?"bg-yellow text-white":"bg-webblack text-white"),children:["#",a]}),(0,t.jsx)("div",{className:"absolute top-2 right-2 small:top-3 small:right-3 z-20",children:(0,t.jsx)(m.y,{data:e,className:"!h-7 !w-7 small:!h-[30px] small:!w-[30px]"})}),(0,t.jsx)(c(),{href:"/products/".concat(e.slug),onClick:()=>s((0,h.vh)()),className:"bg-white flex items-center justify-center p-3 small:p-4 h-[120px] small:h-[180px] medium:h-[200px]",children:(0,t.jsx)(i(),{loading:"lazy",quality:100,unoptimized:!0,src:e.image_link?e.image_link:"/images/noimg.png",width:500,height:500,alt:e.alt_text||e.name,className:"h-full w-full object-contain transition-transform duration-300 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"p-2.5 small:p-4 flex flex-col gap-1.5 small:gap-2 border-t border-webblack/8",children:[(0,t.jsx)(c(),{href:"/products/".concat(e.slug),onClick:()=>s((0,h.vh)()),className:"hover:text-primary transition-colors",children:(0,t.jsx)("h3",{className:"text-webblack text-xs small:text-base font-medium line-clamp-2 leading-snug m-0 min-h-[2.4em]",children:e.name})}),(0,t.jsx)(d.Z,{rating:e.rating}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 flex-wrap",children:[(0,t.jsxs)("span",{className:"text-primary font-semibold text-xs small:text-sm",children:["रà¥. ",e.discounted_amount]}),e.sold>0&&(0,t.jsxs)("span",{className:"text-[10px] small:text-[11px] text-webblack/60 flex items-center gap-1",children:[(0,t.jsx)("i",{className:"fa-solid fa-circle-check text-green-600 text-[10px]","aria-hidden":!0}),e.sold," sold"]})]}),(0,t.jsx)(m.D,{data:e,shortLabel:!0,className:"!h-8 small:!h-9 !text-[11px] small:!text-xs"})]})]})},e.id)})})]})})})}}},function(e){e.O(0,[1664,5675,8482,7485,5121,2888,9774,179],function(){return e(e.s=1567)}),_N_E=e.O()}]);
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.