1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5825],{6216:function(e,t,l){l(7437),l(5545),l(8020),l(2265)},2604:function(e,t,l){function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=parseFloat(+e),s=parseFloat(+t);return isNaN(l)||isNaN(s)||l<=0?0:Math.round((l-s)/l*100)}function a(e,t){let l;function s(){for(var s=arguments.length,a=Array(s),n=0;n<s;n++)a[n]=arguments[n];l&&clearTimeout(l),l=setTimeout(()=>{e(...a)},t)}return s.cancel=function(){l&&clearTimeout(l)},s}function n(e){let t;if(e instanceof Date||!isNaN(Date.parse(e)))t=new Date(e);else{var l;if("string"!=typeof e)return"";let s=e.split(" "),a=null===(l=s[0])||void 0===l?void 0:l.split("/"),n=s[1]||"00:00:00";t=new Date("".concat(a[2],"-").concat(a[1],"-").concat(a[0],"T").concat(n))}let s=t.getDate(),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()],n=t.getFullYear(),r=t.getHours(),i=t.getMinutes();return"".concat(s," ").concat(a," ").concat(n,", ").concat(r%12||12,":").concat(i<10?"0".concat(i):i," ").concat(r>=12?"PM":"AM")}function r(e){return Object.keys(e).every(t=>Array.isArray(e[t])&&e[t].length>0)}function i(e){let t=e.filter(e=>e.totalProducts>0),l=t.length,s;for(;0!==l;)s=Math.floor(Math.random()*l),l--,[t[l],t[s]]=[t[s],t[l]];return t}l.d(t,{Ds:function(){return a},TV:function(){return i},U7:function(){return s},Yn:function(){return r},p6:function(){return n}})},604:function(e,t,l){var s=l(7437),a=l(2265),n=l(7648),r=l(3145),i=l(9089),o=l(2768),d=l(9955),c=l(198);t.Z=e=>{var t,l,u,x,m,p,h,f,g,b,v,y;let{subItem:j,handleAddToCart:w,handleAddToWishlist:N,isInCart:k,isInWishlist:S,slug:C,tag:I,handleQuickOpen:P,isInPreCart:M,viewMode:z="grid"}=e,A=(null==j?void 0:j.averageRating)||0,F=Math.floor(A),R=A%1!=0,E=Math.max(0,5-F-(R?1:0)),D=(0,a.useMemo)(()=>"https://d1k5dvsh23g3c2.cloudfront.net/LOCAL/SubSubCategory/1726835813381-irs-default-img.png",[]),[T,_]=(0,a.useState)(null),Q=(0,a.useRef)(!1),L=(0,d.DC)(I),q="Discontinued"===I,O=(0,a.useMemo)(()=>(null==j?void 0:j.MRP)&&(null==j?void 0:j.SalesPrice)&&j.MRP>j.SalesPrice?Math.round((j.MRP-j.SalesPrice)/j.MRP*100):0,[null==j?void 0:j.MRP,null==j?void 0:j.SalesPrice]),B=async e=>{e&&(e.preventDefault(),e.stopPropagation()),q||await N(j)},Z=async e=>{if(e&&(e.preventDefault(),e.stopPropagation()),q||Q.current)return;let t=k||M;Q.current=!0,t||_((null==j?void 0:j.Quantity)===0?"preOrdering":"adding");try{let e=await w(j);(null==e?void 0:e.action)==="added"&&(null==e?void 0:e.target)==="cart"&&(0,c.w)("track","AddToCart",{content_ids:[j._id||j.productId],content_type:"product",value:j.SalesPrice,currency:"INR",content_name:j.Name})}finally{Q.current=!1,_(null)}},U=null!==T;return"list"===z?(0,s.jsxs)("div",{className:"group w-full bg-white border border-gray-200/90 rounded-2xl hover:border-yellow-400/80 hover:shadow-md transition-all duration-200 p-2.5 sm:p-3 flex flex-row items-stretch sm:items-center gap-3 sm:gap-4 relative overflow-hidden",children:[I&&L&&(0,s.jsx)("div",{className:"absolute top-2 left-2 z-20 scale-75 sm:scale-90 origin-top-left pointer-events-none",children:L}),(0,s.jsx)("div",{className:"w-24 h-24 xs:w-28 xs:h-28 sm:w-28 sm:h-28 shrink-0 aspect-square rounded-xl bg-gray-50/70 border border-gray-100 relative overflow-hidden flex items-center justify-center self-start sm:self-center",children:(0,s.jsxs)(n.default,{href:"/product/".concat(j.Slug),className:"w-full h-full relative block",children:[(0,s.jsx)(r.default,{src:j.ProductMainImage||D,alt:(null==j?void 0:j.Name)||(null==j?void 0:j.Slug)||"Product image",className:"transform transition-all duration-300 ease-in-out group-hover:opacity-0 group-hover:scale-105 h-full w-full object-contain p-2 absolute inset-0",fill:!0,unoptimized:!0}),(0,s.jsx)(r.default,{src:(null==j?void 0:null===(h=j.ProductSideImage)||void 0===h?void 0:h[2])||(null==j?void 0:null===(f=j.ProductSideImage)||void 0===f?void 0:f[1])||(null==j?void 0:null===(g=j.ProductSideImage)||void 0===g?void 0:g[0])||D,alt:(null==j?void 0:j.Name)||(null==j?void 0:j.Slug)||"Product side image",className:"transform transition-all duration-300 ease-in-out opacity-0 group-hover:opacity-100 group-hover:scale-105 h-full w-full object-contain p-2 absolute inset-0",fill:!0,unoptimized:!0})]})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-between sm:flex-row sm:items-center gap-2 sm:gap-4",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col justify-center gap-1 sm:gap-1.5",children:[(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 sm:gap-2 text-[10px] sm:text-[11px] text-gray-500 font-medium leading-none",children:[j.Brand&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-yellow-600 font-bold uppercase tracking-wider",children:j.Brand}),(0,s.jsx)("span",{className:"text-gray-300",children:"â¢"})]}),j.SKU&&(0,s.jsxs)("span",{className:"text-gray-400 font-mono",children:["SKU: ",null===(b=j.SKU)||void 0===b?void 0:b.slice(-8)]})]}),(0,s.jsx)(n.default,{href:"/product/".concat(j.Slug),title:(null==j?void 0:j.Name)||(null==j?void 0:j.AlternativeName),className:"block w-full",children:(0,s.jsx)("h3",{className:"w-full text-xs sm:text-sm font-semibold text-gray-900 hover:text-yellow-600 transition-colors line-clamp-2 overflow-hidden leading-snug break-words",children:(null==j?void 0:j.Name)||(null==j?void 0:j.AlternativeName)})}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 sm:gap-2 pt-0.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-0.5",children:[Array.from({length:F}).map((e,t)=>(0,s.jsx)("span",{className:"text-amber-400",children:(0,s.jsx)(i.QJe,{size:10,
1className:"sm:size-[11px]"})},t)),R&&(0,s.jsx)("span",{className:"text-amber-400",children:(0,s.jsx)(i.TtB,{size:10,className:"sm:size-[11px]"})}),Array.from({length:E}).map((e,t)=>(0,s.jsx)("span",{className:"text-gray-300",children:(0,s.jsx)(i.QJe,{size:10,className:"sm:size-[11px]"})},t)),A>0&&(0,s.jsx)("span",{className:"text-[10px] sm:text-[11px] font-bold text-gray-700 ml-1",children:A.toFixed(1)})]}),(0,s.jsx)("span",{className:"text-gray-300",children:"â¢"}),(0,s.jsxs)("button",{type:"button",className:"text-gray-600 hover:text-yellow-600 text-[10px] sm:text-[11px] font-semibold flex items-center gap-1 cursor-pointer transition-colors",onClick:()=>P(j),children:[(0,s.jsx)(o.gxi,{size:13}),(0,s.jsx)("span",{children:"Quick view"})]})]})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto shrink-0 flex flex-col sm:flex-col sm:items-end justify-between gap-2 sm:gap-2 sm:border-l sm:border-gray-100 sm:pl-4 pt-1.5 sm:pt-0 border-t sm:border-t-0 border-gray-100",children:[(0,s.jsxs)("div",{className:"flex items-baseline sm:items-end justify-between sm:justify-start gap-1.5 sm:gap-0.5",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,s.jsxs)("span",{className:"text-sm sm:text-lg font-extrabold text-gray-900 leading-tight",children:["â¹",null==j?void 0:null===(v=j.SalesPrice)||void 0===v?void 0:v.toFixed(0)]}),O>0&&(0,s.jsxs)("span",{className:"text-[10px] font-bold text-yellow-700 bg-yellow-50 px-1.5 py-0.5 rounded-md border border-yellow-200",children:[O,"% OFF"]})]}),(null==j?void 0:j.MRP)>(null==j?void 0:j.SalesPrice)&&(0,s.jsxs)("span",{className:"text-[10px] sm:text-[11px] text-gray-400 line-through font-medium leading-none",children:["â¹",null==j?void 0:null===(y=j.MRP)||void 0===y?void 0:y.toFixed(0)]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[(0,s.jsx)("button",{type:"button","aria-label":S?"In Wishlist":"Add to wishlist",onClick:B,disabled:q,className:"size-8 sm:size-9 rounded-xl border flex items-center justify-center transition-all shrink-0 cursor-pointer ".concat(S?"border-rose-200 bg-rose-50 text-rose-600 shadow-xs":"border-gray-200 bg-white text-gray-400 hover:text-rose-500 hover:border-gray-300 hover:bg-gray-50"),children:S?(0,s.jsx)(o.Fhy,{size:16}):(0,s.jsx)(o.Zwb,{size:16})}),(0,s.jsx)("button",{className:"flex-1 sm:flex-none min-h-[36px] sm:min-h-[36px] py-1.5 sm:py-2 px-3 sm:px-3.5 flex justify-center items-center gap-1.5 text-xs font-semibold rounded-xl transition-all shadow-xs disabled:bg-gray-100 disabled:text-gray-400 disabled:border disabled:border-gray-200 disabled:cursor-not-allowed whitespace-nowrap cursor-pointer ".concat(k||M?"bg-amber-400 hover:bg-amber-500 text-gray-900 font-bold":"bg-gray-900 hover:bg-yellow-500 hover:text-black text-white"),disabled:q||U,onClick:Z,children:U?(0,s.jsx)("span",{className:"animate-spin h-3.5 w-3.5 border-2 border-current border-t-transparent rounded-full"}):q?"Discontinued":(null==j?void 0:j.Quantity)===0?M?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.cfq,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{children:"In Pre-cart"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.dzk,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{children:"Pre-order"})]}):k?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.cfq,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{children:"In Cart"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Mlw,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{children:"Add to Cart"})]})})]})]})]})]}):(0,s.jsxs)("div",{className:"group relative flex flex-col justify-between w-full h-full bg-white rounded-2xl border border-gray-200/80 hover:border-yellow-400/80 hover:shadow-xl hover:-translate-y-0.5 transition-all duration-300 overflow-hidden",children:[I&&L&&(0,s.jsx)("div",{className:"absolute top-2 left-2 z-20 scale-90 origin-top-left pointer-events-none",children:L}),(0,s.jsx)("button",{type:"button","aria-label":S?"In wishlist":"Add to wishlist",onClick:B,disabled:q,className:"absolute top-2 right-2 z-20 size-8 rounded-full flex items-center justify-center transition-all duration-200 shadow-sm ".concat(S?"bg-rose-50 text-rose-600 border border-rose-200":"bg-white/90 backdrop-blur-xs text-gray-400 hover:text-rose-500 hover:bg-white border border-gray-100 hover:shadow-md hover:scale-105 active:scale-95"," ").concat(q?"opacity-40 cursor-not-allowed":"cursor-pointer"),children:S?(0,s.jsx)(o.Fhy,{size:16}):(0,s.jsx)(o.Zwb,{size:16})}),(0,s.jsxs)("div",{className:"relative w-full aspect-square bg-gradient-to-b from-gray-50/70 to-white overflow-hidden flex items-center justify-center",children:[(0,s.jsxs)(n.default,{href:"/product/".concat(j.Slug),className:"w-full h-full relative block cursor-pointer",children:[(0,s.jsx)(r.default,{src:j.ProductMainImage||D,alt:(null==j?void 0:j.Name)||(null==j?void 0:j.Slug)||"Product image",className:"transform transition-all duration-500 ease-out group-hover:scale-105 group-hover:opacity-0 h-full w-full object-contain p-3.5 absolute inset-0",fill:!0,unoptimized:!0}),(0,s.jsx)(r.default,{src:(null==j?void 0:null===(t=j.ProductSideImage)||void 0===t?void 0:t[2])||(null==j?void 0:null===(l=j.ProductSideImage)||void 0===l?void 0:l[1])||(null==j?void 0:null===(u=j.ProductSideImage)||void 0===u?void 0:u[0])||D,alt:(null==j?void 0:j.Name)||(null==j?void 0:j.Slug)||"Product side image",className:"transform transition-all duration-500 ease-out opacity-0 group-hover:opacity-100 group-hover:scale-105 h-full w-full object-contain p-3.5 absolute inset-0",fill:!0,unoptimized:!0})]}),(0,s.jsx)("div",{className:"absolute bottom-2 inset-x-0 flex justify-center opacity-0 group-hover:opacity-100 transform translate-y-2 group-hover:translate-y-0 transition-all duration-200 pointer-events-none z-10",children:(0,s.jsxs)("button",{type:"button",onClick:()=>P(j),className:"pointer-events-auto bg-white/95 backdrop-blur-xs hover:bg-gray-900 text-gray-800 hover:text-white text-[11px] font-semibold px-3 py-1 rounded-full shadow-md hover:shadow-lg transition-all flex items-center gap-1.5 cursor-pointer border border-gray-200/70 hover:border-gray-900",children:[(0,s.jsx)(o.gxi,{size:13}
1),(0,s.jsx)("span",{children:"Quick view"})]})})]}),(0,s.jsxs)("div",{className:"flex flex-col flex-1 justify-between p-3 px-1 gap-2 border-t border-gray-100/80 bg-white",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-1 text-[10px] text-gray-400 font-medium",children:[(0,s.jsx)("span",{className:"text-yellow-600 font-bold uppercase tracking-wider truncate max-w-[55%]",children:j.Brand||"IRS"}),j.SKU&&(0,s.jsxs)("span",{className:"text-[10px] text-gray-400 font-mono shrink-0",children:["SKU: ",null===(x=j.SKU)||void 0===x?void 0:x.slice(-8)]})]}),(0,s.jsx)(n.default,{href:"/product/".concat(j.Slug),title:(null==j?void 0:j.Name)||(null==j?void 0:j.AlternativeName),className:"group/title block w-full",children:(0,s.jsx)("h3",{className:" w-full text-xs sm:text-[13px] font-semibold text-gray-900 group-hover/title:text-yellow-600 transition-colors line-clamp-2 leading-snug break-words h-8 sm:h-9 ",children:(null==j?void 0:j.Name)||(null==j?void 0:j.AlternativeName)})}),(0,s.jsxs)("div",{className:"flex items-center gap-1 pt-0.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-0.5",children:[Array.from({length:F}).map((e,t)=>(0,s.jsx)("span",{className:"text-amber-400",children:(0,s.jsx)(i.QJe,{size:10})},t)),R&&(0,s.jsx)("span",{className:"text-amber-400",children:(0,s.jsx)(i.TtB,{size:10})}),Array.from({length:E}).map((e,t)=>(0,s.jsx)("span",{className:"text-gray-300",children:(0,s.jsx)(i.QJe,{size:10})},t))]}),A>0&&(0,s.jsx)("span",{className:"text-[10px] font-bold text-gray-600 ml-0.5",children:A.toFixed(1)}),O>0&&(0,s.jsxs)("span",{className:"text-[10px] font-bold text-yellow-700 bg-yellow-50 px-1.5 py-0.5 rounded border border-yellow-200 ml-auto",children:[O,"% OFF"]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2 pt-1 mt-auto",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,s.jsxs)("span",{className:"text-sm sm:text-base font-extrabold text-gray-900 leading-none",children:["â¹",null==j?void 0:null===(m=j.SalesPrice)||void 0===m?void 0:m.toFixed(0)]}),(null==j?void 0:j.MRP)>(null==j?void 0:j.SalesPrice)&&(0,s.jsxs)("span",{className:"text-[11px] text-gray-400 line-through font-medium leading-none",children:["â¹",null==j?void 0:null===(p=j.MRP)||void 0===p?void 0:p.toFixed(0)]})]}),(0,s.jsx)("button",{className:"w-full min-h-[38px] sm:min-h-[36px] py-2 px-3 flex justify-center items-center gap-1.5 text-xs font-semibold rounded-xl transition-all duration-200 shadow-2xs hover:shadow-xs disabled:bg-gray-100 disabled:text-gray-400 disabled:border disabled:border-gray-200 disabled:cursor-not-allowed cursor-pointer ".concat(k||M?"bg-amber-400 hover:bg-amber-500 text-gray-900 font-bold":"bg-gray-900 hover:bg-yellow-500 hover:text-black text-white"),disabled:q||U,onClick:Z,children:U?(0,s.jsx)("span",{className:"animate-spin h-3.5 w-3.5 border-2 border-current border-t-transparent rounded-full"}):q?"Discontinued":(null==j?void 0:j.Quantity)===0?M?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.cfq,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:"In Pre-cart"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.dzk,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:"Pre-order"})]}):k?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.cfq,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:"In Cart"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Mlw,{size:15,className:"shrink-0"}),(0,s.jsx)("span",{className:"truncate",children:"Add to Cart"})]})})]})]})]})}},5644:function(e,t,l){l.d(t,{Rs:function(){return a},ZJ:function(){return r},p9:function(){return n}});var s=l(7437);l(2265);let a=e=>{let{cartItems:t,setPopDownMessage:l}=e;return(0,s.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-black/50 z-[100] backdrop-blur-sm p-4 touch-none",onClick:()=>l(!1),children:(0,s.jsx)("div",{className:"relative w-full max-w-[360px] bg-white rounded-3xl shadow-2xl overflow-hidden animate-fadeInScale border border-white/20",onClick:e=>e.stopPropagation(),children:(null==t?void 0:t.length)>0?(0,s.jsxs)("div",{className:"p-8 text-center flex flex-col items-center",children:[(0,s.jsx)("div",{className:"w-16 h-16 bg-red-50 text-red-500 rounded-full flex items-center justify-center mb-5 shrink-0 shadow-inner",children:(0,s.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,s.jsx)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),(0,s.jsx)("h3",{className:"text-xl font-bold text-gray-900 mb-2",children:"Minimum Order Value"}),(0,s.jsxs)("p",{className:"text-gray-600 leading-relaxed text-[15px]",children:["Your cart total must be greater than ",(0,s.jsx)("span",{className:"font-bold text-red-600",children:"â¹499"})," to proceed with checkout."]}),(0,s.jsx)("button",{onClick:()=>l(!1),className:"mt-8 w-full py-3.5 bg-gray-900 text-white rounded-2xl font-semibold hover:bg-black transition-all active:scale-95 shadow-lg",children:"Continue Shopping"})]}):(0,s.jsxs)("div",{className:"p-8 text-center flex flex-col items-center",children:[(0,s.jsx)("div",{className:"w-16 h-16 bg-blue-50 text-blue-600 rounded-full flex items-center justify-center mb-5 shrink-0 shadow-inner",children:(0,s.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),(0,s.jsx)("polyline",{points:"22 4 12 14.01 9 11.01"})]})}),(0,s.jsx)("h2",{className:"text-2xl font-bold text-gray-900 mb-2",children:"Submitted!"}),(0,s.jsx)("p",{className:"text-gray-600 mb-6 leading-relaxed text-[15px]",children:"Your pre-order items have been sent to our team. They will review the request and provide details soon."}),(0,s.jsxs)("div",{className:"w-full flex flex-col gap-3",children:[(0,s.jsx)("a",{href:"/pre-order-cart",className:"w-full py-3.5 bg-blue-600 text-white rounded-2xl font-semibold hover:bg-blue-700 transition-all text-center shadow-lg active:scale-95",children:"View Pre-Cart"}),(0,s.jsx)("button",{onClick:()=>l(!1),className:"w-full py-3 text-gray-500 font-medium hover:text-gray-900 transition-colors",children:"Dismiss"})]})]})})})},n=(e,t,l)=>l?null:(0,s.jsx)("div",{className:"p-2 rounded-md text-[12px] border-l-4 w-fit ".concat(t>0?"bg-green-50 border-green-400 text-green-800":"bg-red-50 border-red-400 text-red-800"),children:t>0?(0,s.jsxs)("p",{className:"font-medium",children:[(0,s.jsxs)("span",{className:"font-semibold",children:[t," units"]})," in stock and"," ",(0,s.jsxs)("span",{children:[e>t?e-t:0," units"]})," added for pre-cart. To check, click"," ",(0,s.jsx)("a",{href:"/pre-order-cart",className:"text-blue-600 underline font-semibold",children:"here"}),"."]}):(0,s.jsxs)("p",{className:"font-medium ",children:["This product is available for pre-order and has been added to your pre-cart. To view pre-cart items, click"," ",(0,s.jsx)("a",{href:"/pre-order-cart",className:"text-blue-600 underline font-semibold",children:"here"}),"."]})}),r=e=>{let{value:t,mobile:l,checked:s}=e,{Qty:a,itemQty:n}=t;return s?null:a>n?a-n:0}},3086:function(e,t,l){var s=l(7437),a=l(2265),n=l(5986);t.Z=e=>{let{QuickData:t,setIsQuickOpen:l,dialogRef:r}=e;return(0,a.useEffect)(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow=""}),[]),(0,s.jsx)("div",{className:"fixed inset-0 bg-black/70 z-[200] flex justify-center items-center p-3 md:p-6 animate-fade-in",onClick:e=>{e.target===e.currentTarget&&l(!1)},children:(0,s.jsxs)("div",{ref:r,className:"bg-white rounded-2xl shadow-2xl relative w-full max-w-6xl max-h-[90vh] flex flex-col overflow-hidden border border-gray-100",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-6 py-3.5 border-b border-gray-100 shrink-0 bg-gradient-to-r from-gray-50 to-white",children:[(0,s.jsxs)("h2",{className:"text-xs font-bold text-gray-700 tracking-wider up
1percase flex items-center gap-2",children:[(0,s.jsx)("span",{className:"w-2 h-2 rounded-full bg-yellow-500"}),"Quick View"]}),(0,s.jsx)("button",{"aria-label":"Close quick view",onClick:()=>l(!1),className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-200 transition-colors text-gray-500 hover:text-gray-900 text-lg leading-none font-bold",children:"â"})]}),(0,s.jsx)("div",{className:"overflow-y-auto flex-1 min-h-0 p-4 md:p-6 relative",children:t?(0,s.jsx)(n.default,{page:t,isQuickView:!0}):(0,s.jsx)("div",{className:"flex items-center justify-center h-40 text-gray-500 text-sm",children:"Product details unavailable."})})]})})}},5986:function(e,t,l){l.d(t,{default:function(){return D}});var s=l(7437),a=l(2265),n=l(3145),r=l(7776),i=l(4295);let o="sticky-header-spacer";function d(e){let{sectionRef:t}=e;return(0,a.useEffect)(()=>{let e=document.querySelector("header");if(!e||!(null==t?void 0:t.current))return;let l=e.getBoundingClientRect().height,s=()=>{if(!document.documentElement.classList.contains("sticky-header")){if(document.documentElement.classList.add("sticky-header"),!document.getElementById(o)){let t=document.createElement("div");t.id=o,t.style.height="".concat(l,"px"),t.style.flexShrink="0",e.insertAdjacentElement("afterend",t)}requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.documentElement.classList.add("sticky-header-visible")})})}},a=()=>{let t=document.documentElement;t.classList.remove("sticky-header-visible");let l=()=>{var s;t.classList.remove("sticky-header"),null===(s=document.getElementById(o))||void 0===s||s.remove(),e.removeEventListener("transitionend",l)};e.addEventListener("transitionend",l,{once:!0}),setTimeout(()=>{if(!t.classList.contains("sticky-header-visible")){var e;t.classList.remove("sticky-header"),null===(e=document.getElementById(o))||void 0===e||e.remove()}},400)},n=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting?s():a()},{root:null,rootMargin:"-".concat(l,"px 0px 0px 0px"),threshold:0});return n.observe(t.current),()=>{var e;n.disconnect(),document.documentElement.classList.remove("sticky-header","sticky-header-visible"),null===(e=document.getElementById(o))||void 0===e||e.remove()}},[t]),null}var c=e=>{var t,l;let a,{link:n}=e;return n.includes("youtu.be")?a=null===(t=n.split("youtu.be/")[1])||void 0===t?void 0:t.split("?")[0]:n.includes("youtube.com")&&(a=null===(l=n.split("v=")[1])||void 0===l?void 0:l.split("&")[0]),(0,s.jsx)("div",{className:"space-y-6 max-h-[30rem] overflow-y-auto",children:(0,s.jsx)("div",{className:"flex flex-col items-center",children:(0,s.jsx)("div",{className:"w-full sm:w-3/4 md:w-2/3 lg:w-1/2 xl:w-2/5",children:(0,s.jsx)("div",{className:"relative pb-[56.25%] h-0 overflow-hidden rounded-lg shadow-lg border",children:a?(0,s.jsx)("iframe",{className:"absolute top-0 left-0 w-full h-full",src:"https://www.youtube.com/embed/".concat(a),frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):(0,s.jsx)("p",{children:"Invalid YouTube link"})})})})})},u=e=>{let{data:t}=e,l=Array.isArray(t)?'\n <div class="specifications-wrapper">\n <table class="specifications-table">\n <tbody>\n '.concat(t.filter(e=>{var t;let l=e.customFieldName||e.specificationFieldId&&e.specificationFieldId.name,s=null!==(t=e.customValue)&&void 0!==t?t:e.value;return l&&null!=s&&""!==s}).map(e=>{var t,l;let s=e.customFieldName||e.specificationFieldId&&e.specificationFieldId.name||"",a=null!==(l=null!==(t=e.customValue)&&void 0!==t?t:e.value)&&void 0!==l?l:"",n=e.unit&&"object"==typeof e.unit?(e.unit.symbol||e.unit.name||"").trim():e.unit?String(e.unit).trim():"",r=n?n.startsWith("(")&&n.endsWith(")")?" ".concat(n):" (".concat(n,")"):"";return'\n <tr>\n <td class="spec-name">\n '.concat(s).concat(r,'\n </td>\n\n <td class="spec-value">\n ').concat(a,"\n </td>\n </tr>\n ")}).join(""),"\n </tbody>\n </table>\n </div>\n "):'\n <div class="feature-content">\n '.concat(t||"","\n </div>\n ");return(0,s.jsx)("div",{className:"dang",dangerouslySetInnerHTML:{__html:"\n <style>\n\n /* ========================================\n SPECIFICATION TABLE\n ======================================== */\n\n .dang .specifications-wrapper {\n width: 100%;\n margin: 8px 0;\n border-radius: 4px;\n overflow: hidden;\n background: #fff;\n }\n\n .dang .specifications-table {\n width: 100%;\n border-collapse: collapse;\n table-layout: fixed;\n }\n\n .dang .specifications-table td {\n padding: 12px 16px;\n text-align: left;\n font-size: 12px;\n line-height: 1.4;\n vertical-align: top;\n word-break: break-word;\n border: 1px solid #eeeeee;\n }\n\n .dang .specifications-table .spec-name {\n width: 34%;\n color: #4a4a4a;\n font-weight: 700;\n background: #fafafa;\n }\n\n .dang .specifications-table .spec-value {\n width: 66%;\n color: #212121;\n font-weight: 500;\n }\n\n\n /* ========================================\n NORMAL HTML / FEATURES\n ======================================== */\n\n .dang .feature-content table {\n border-collapse: collapse;\n width: 100%;\n overflow-x: auto;\n display: block;\n }\n\n .dang .feature-content td,\n .dang .feature-content th {\n border: 1px solid gray;\n padding: 2px;\n text-align: left;\n font-size: 12px;\n }\n\n .dang .feature-content p {\n width: 100%;\n overflow: hidden;\n white-space: normal;\n word-wrap: break-word;\n word-break: break-word;\n color: #333;\n }\n\n\n /* ========================================\n MOBILE\n ======================================== */\n\n @media (max-width: 412px) {\n\n /* Specification mobile */\n .dang .specifications-table td {\n padding: 10px 12px;\n font-size: 12px;\n }\n\n .dang .specifications-table .spec-name {\n width: 40%;\n }\n\n .dang .specifications-table .spec-value {\n width: 60%;\n }\n\n /* Normal HTML mobile */\n .dang .feature-content td,\n .dang .feature-content th {\n font-size: 8px;\n padding: 2px;\n }\n\n .dang .feature-content p {\n font-size: 12px;\n }\n }\n\n </style>\n\n ".concat(l,"\n ")}})},x=e=>{let{data:t}=e;return(0,s.jsx)("div",{className:"flex justify-center p-4 rounded",children:(0,s.jsx)("div",{className:"pl-0 md:w-2/3 w-full space-y-4 relative",children:null==t?void 0:t.map((e,t)=>(0,s.jsx)(n.default,{src:e,alt:e.alt||"Image ".concat(t+1)||0,className:"w-full h-auto rounded-md object-fill shadow-xl",fill:!0},t))})})},m=l(4739),p=l(2768);let h=e=>
1Number(e).toLocaleString("en-IN",{minimumFractionDigits:2,maximumFractionDigits:2});function f(e){var t;let{isOpen:l,onClose:r,price:i}=e,[o,d]=(0,a.useState)([]),[c,u]=(0,a.useState)(!1),[x,f]=(0,a.useState)(!1),[g,b]=(0,a.useState)(null),[v,y]=(0,a.useState)(null),[j,w]=(0,a.useState)(null),[N,k]=(0,a.useState)(null),S=(0,a.useRef)(null);function C(e,t){let l=new Map;for(let a of e){var s;let e=null===(s=a.cardTypes)||void 0===s?void 0:s.find(e=>e.cardType===t);(null==e?void 0:e.bankDetails)&&e.bankDetails.forEach(e=>{l.has(e.bankCode)||l.set(e.bankCode,e)})}return Array.from(l.values())}(0,a.useEffect)(()=>{if(!l)return;let e=!1;return(async()=>{u(!0),k(null);try{let l=await (0,m.d0)({endpoint:"emi-banks",body:{subventionAmount:String(i),price:String(i)}});if(e)return;if(Array.isArray(l)&&l.length>0)for(let e of(d(l),l)){var t;let l=null===(t=e.cardTypes)||void 0===t?void 0:t.find(e=>{var t;return(null===(t=e.bankDetails)||void 0===t?void 0:t.length)>0});if(l){b(l.cardType);break}}else k("No EMI options available for this product.")}catch(t){e||k("Failed to load EMI options. Please try again.")}finally{e||u(!1)}})(),()=>{e=!0}},[l,i]),(0,a.useEffect)(()=>{if(!g||!o.length||"HOW_IT_WORKS"===g)return;let e=C(o,g);e.length>0&&!v&&I(e[0],g)},[g,o]),(0,a.useEffect)(()=>{l||(y(null),w(null),b(null),d([]),k(null))},[l]);let I=(0,a.useCallback)(async(e,t)=>{y(e),f(!0),k(null);try{let l=await (0,m.d0)({endpoint:"emi-tenures",body:{subventionAmount:String(i),price:String(i),filters:{bankCode:e.bankCode,cardType:t}}});(null==l?void 0:l.planDetails)?w(l):(w(null),k("No EMI plans available for this bank."))}catch(e){k("Failed to load EMI plans. Please try again.")}finally{f(!1)}},[i]),P=e=>{(null==v?void 0:v.bankCode)===e.bankCode?(y(null),w(null)):I(e,g)},M=e=>{if(b(e),y(null),w(null),"HOW_IT_WORKS"===e)return;let t=C(o,e);t.length>0&&I(t[0],e)};if(!l)return null;let z=C(o,g),A=function(e){var t;let l=new Map;for(let s of e)for(let e of s.cardTypes||[])(null===(t=e.bankDetails)||void 0===t?void 0:t.length)>0&&!l.has(e.cardType)&&l.set(e.cardType,e.cardLabel);let s=Array.from(l.entries()).map(e=>{let[t,l]=e;return{cardType:t,cardLabel:l}});return s.push({cardType:"HOW_IT_WORKS",cardLabel:"How it works"}),s}(o),F=null==j?void 0:null===(t=j.planDetails)||void 0===t?void 0:t.reduce((e,t)=>{let l=t.emiType||"STANDARD";return e[l]||(e[l]=[]),e[l].push(t),e},{});return(0,s.jsxs)("div",{className:"fixed inset-0 z-[1000] bg-black/40",onClick:e=>{S.current&&!S.current.contains(e.target)&&r()},children:[(0,s.jsx)("button",{onClick:r,className:"hidden sm:flex fixed top-4 z-[1001] w-9 h-9 rounded-full bg-white/90 backdrop-blur shadow-lg border border-gray-200 items-center justify-center text-gray-600 hover:bg-white hover:text-gray-900 transition active:scale-95 sm:right-[392px] md:right-[432px] lg:right-[452px]",children:(0,s.jsx)(p.bjh,{size:18})}),(0,s.jsxs)("div",{ref:S,className:"absolute top-0 right-0 h-full \n w-full sm:w-[380px] md:w-[420px] lg:w-[440px]\n bg-white/95 backdrop-blur-md\n shadow-[0_10px_40px_rgba(0,0,0,0.12)]\n border border-gray-200\n sm:rounded-l-2xl\n flex flex-col overflow-hidden\n transform transition-transform duration-300 ease-out\n ".concat(l?"translate-x-0":"translate-x-full"),children:[(0,s.jsxs)("div",{className:"px-5 pt-4 pb-3 border-b border-gray-100 sticky top-0 bg-white z-10",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-2",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-[16px] font-semibold text-gray-900",children:"EMI Plans"}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-1.5 mt-1.5 bg-emerald-50 text-emerald-800 text-[11px] font-medium px-2.5 py-1 rounded-full",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 flex-shrink-0"}),"Zero/low cost EMI available on listed cards"]})]}),(0,s.jsx)("button",{onClick:r,className:"sm:hidden w-9 h-9 rounded-full flex items-center justify-center text-gray-500 hover:bg-gray-100 transition active:scale-95 flex-shrink-0",children:(0,s.jsx)(p.bjh,{size:18})})]}),(0,s.jsx)("p",{className:"text-[12px] text-gray-400 leading-relaxed",children:"Select a bank below to view plans. Choose the same option at the payment step while placing your order."})]}),!c&&A.length>0&&(0,s.jsx)("div",{className:"flex gap-1.5 px-5 py-2.5 border-b border-gray-100 scrollbar-none",children:A.map(e=>{let{cardType:t,cardLabel:l}=e;return(0,s.jsx)("button",{onClick:()=>M(t),className:"px-3 py-1.5 rounded-full text-[12px] font-medium whitespace-nowrap border transition-all ".concat(g===t?"bg-blue-50 text-blue-800 border-blue-200":"text-gray-500 border-transparent hover:bg-gray-50"),children:l},t)})}),c?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center flex-1 py-16 ",children:[(0,s.jsx)("div",{className:"w-6 h-6 rounded-full border-2 border-blue-200 border-t-blue-600 animate-spin"}),(0,s.jsx)("p",{className:"text-[13px] text-gray-400 mt-3",children:"Loading EMI optionsâ¦"})]}):N&&!z.length&&"HOW_IT_WORKS"!==g?(0,s.jsx)("div",{className:"flex items-center justify-center flex-1 py-16",children:(0,s.jsx)("p",{className:"text-[13px] text-gray-400",children:N})}):"HOW_IT_WORKS"===g?(0,s.jsx)("div",{className:"flex-1 overflow-y-auto p-5",children:["Choose your preferred bank and EMI plan from the list.","Complete your purchase using the same bank's card at checkout.","Your bank converts the transaction to EMI within 3â7 working days.","For zero cost EMI, the interest amount is given as an upfront discount â you pay no extra."].map((e,t)=>(0,s.jsxs)("div",{className:"flex gap-3 mb-4",children:[(0,s.jsx)("div",{className:"w-6 h-6 rounded-full bg-blue-50 text-blue-800 text-[12px] font-medium flex items-center justify-center flex-shrink-0",children:t+1}),(0,s.jsx)("p",{className:"text-[13px] text-gray-500 leading-relaxed pt-0.5",children:e})]},t))}):(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:z.map(e=>{var t;let l=(null==v?void 0:v.bankCode)===e.bankCode;return(0,s.jsxs)("div",{className:"border-b border-gray-200",children:[(0,s.jsxs)("button",{onClick:()=>P(e),className:"w-full flex items-center justify-between gap-3 px-4 py-3 transition-all ".concat(l?"bg-blue-50 border-l-2 border-l-blue-600":"hover:bg-gray-50"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[e.bankLogoUrl?(0,s.jsx)(n.default,{src:e.bankLogoUrl,alt:e.bankName,width:28,height:28,className:"rounded-md border border-gray-100"}):(0,s.jsx)("div",{className:"w-7 h-7 rounded-md bg-gray-100 flex items-center justify-center text-[10px] font-medium text-gray-500",children:null===(t=e.bankName)||void 0===t?void 0:t.slice(0,2).toUpperCase()}),(0,s.jsx)("span",{className:"text-[13px] font-medium text-gray-800",children:e.bankName})]}),(0,s.jsx)("span",{className:"transition-transform duration-200 ".concat(l?"rotate-180":""),children:(0,s.jsx)(p.CgR,{className:"text-gray-500",size:18})})]}),(0,s.jsx)("div",{className:"grid transition-[grid-template-rows] duration-200 ease-out",style:{gridTemplateRows:l?"1fr":"0fr"}
1,children:(0,s.jsx)("div",{className:"overflow-hidden",children:(0,s.jsx)("div",{className:"px-4 pb-3",children:x?(0,s.jsx)("div",{className:"py-6 text-center",children:(0,s.jsx)("div",{className:"w-5 h-5 border-2 border-blue-300 border-t-blue-600 rounded-full animate-spin mx-auto"})}):l&&j&&F?(0,s.jsx)("div",{className:"space-y-3",children:["SUBVENTION","STANDARD"].map(e=>{let t=F[e];if(!(null==t?void 0:t.length))return null;let l="SUBVENTION"===e;return(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"py-1.5 flex items-center gap-2",children:(0,s.jsx)("span",{className:"text-[10px] font-medium px-2 py-0.5 rounded-full uppercase tracking-wide ".concat(l?"bg-emerald-50 text-emerald-800":"bg-amber-50 text-amber-800"),children:l?"Zero cost EMI":"Standard EMI"})}),(0,s.jsx)("div",{className:"grid grid-cols-3 px-2.5 py-1.5 bg-gray-50 rounded-t-lg border border-gray-100",children:["Monthly EMI","Tenure","Total payable"].map((e,t)=>(0,s.jsx)("span",{className:"text-[10px] font-medium text-gray-400 uppercase tracking-wide ".concat(2===t?"text-right":1===t?"text-center":""),children:e},e))}),t.map((e,t)=>(0,s.jsxs)("div",{className:"grid grid-cols-3 items-center px-2.5 py-2.5 border-b border-x border-gray-100 last:rounded-b-lg hover:bg-gray-50/50 transition-colors",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-[13px] font-semibold text-gray-900",children:["â¹",h(e.emi)]}),(0,s.jsx)("p",{className:"text-[10px] text-gray-400",children:"per month"})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("p",{className:"text-[12px] text-gray-700",children:[e.interval," months"]}),0===e.interest?(0,s.jsx)("p",{className:"text-[10px] text-emerald-600 font-medium",children:"@ 0% p.a."}):(0,s.jsxs)("p",{className:"text-[10px] text-gray-400",children:["@ ",e.rate,"% p.a."]})]}),(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsxs)("p",{className:"text-[12px] font-medium text-gray-800",children:["â¹",h(e.effectivePrice)]}),0===e.interest&&(0,s.jsx)("span",{className:"text-[9px] bg-emerald-100 text-emerald-700 px-1.5 py-0.5 rounded ml-1",children:"Best"})]})]},e.planId||t))]},e)})}):l?(0,s.jsx)("p",{className:"text-[12px] text-gray-400 py-3",children:"No plans available"}):null})})})]},e.bankCode)})})]})]})}var g=e=>{let{data:t}=e,[l,n]=a.useState(!1);a.useEffect(()=>{n(!0)},[]);let r=t?t.replace(/<span class="ql-ui"[^>]*><\/span>/g,"").replace(/<p><br><\/p>/g,"<p></p>").replace(/<p><strong>\s*<\/strong><\/p>/g,"<p></p>").replace(/contenteditable="[^"]*"/g,"").replace(/data-list="bullet"/g,'class="bullet-item"').replace(/class="ql-indent-1"/g,'class="indent-1"').replace(/class="ql-indent-2"/g,'class="indent-2"'):"";return l?(0,s.jsx)("div",{className:"quill-content-display",children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:r}})}):(0,s.jsx)("div",{className:"quill-content-display min-h-[100px]"})},b=l(7093),v=l(9089),y=l(1140),j=l(2604),w=l(1084),N=l(9376);l(1564),l(2601);var k=l(9955),S=l(8575),C=l(1242),I=l(7737),P=l(3082),M=l(8816);l(6216);var z=l(794),A=l(8766);function F(e){let{data:t}=e,[l,n]=(0,a.useState)({d:0,h:0,m:0,s:0}),[r,i]=(0,a.useState)(!1);if((0,a.useEffect)(()=>{let e=new Date(null==t?void 0:t.expiry).getTime(),l=()=>{let t=e-Date.now();if(isNaN(e)||t<=0){n({d:0,h:0,m:0,s:0}),i(!0);return}n({d:Math.floor(t/864e5),h:Math.floor(t/36e5%24),m:Math.floor(t/6e4%60),s:Math.floor(t/1e3%60)})};l();let s=setInterval(l,1e3);return()=>clearInterval(s)},[null==t?void 0:t.expiry]),r)return null;let o=0===l.d&&l.h<6,d=[{label:"Days",value:l.d},{label:"Hrs",value:l.h},{label:"Min",value:l.m},{label:"Sec",value:l.s}];return(0,s.jsxs)("div",{className:"relative w-full overflow-hidden rounded-xl border border-amber-200 bg-gradient-to-r from-amber-50 via-yellow-50 to-orange-50 px-4 py-3",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute inset-0 animate-shimmer",children:(0,s.jsx)("div",{className:"h-full w-1/3 bg-gradient-to-r from-transparent via-white/60 to-transparent"})}),(0,s.jsxs)("div",{className:"relative z-10 flex flex-wrap items-center justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-[#ffb400] shadow-md shadow-amber-300/40 ".concat(o?"animate-pulse-glow":""),children:(0,s.jsx)("svg",{className:"h-4 w-4 text-white",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,s.jsx)("path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"})})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-[13px] font-bold text-amber-900 uppercase tracking-wide leading-tight",children:(null==t?void 0:t.name)||"Flash Deal"}),o?(0,s.jsx)("span",{className:"text-[11px] font-semibold text-red-500 animate-pulse",children:"Hurry! Ending soon"}):(0,s.jsx)("span",{className:"text-[11px] font-medium text-amber-700/70",children:"Offer ends in"})]})]}),(0,s.jsx)("div",{className:"flex items-center gap-1",children:d.map((e,t)=>(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[(0,s.jsxs)("div",{className:"flex flex-col items-center",children:[(0,s.jsx)("div",{className:"min-w-[36px] rounded-lg border px-1.5 py-1.5 text-center tabular-nums shadow-sm ".concat(o?"border-red-200 bg-red-50":"border-amber-200/80 bg-white"),children:(0,s.jsx)("span",{className:"text-[15px] font-bold leading-none ".concat(o?"text-red-600":"text-amber-900"),children:String(e.value).padStart(2,"0")})}),(0,s.jsx)("span",{className:"mt-0.5 text-[9px] font-semibold uppercase tracking-wider text-amber-600/60",children:e.label})]}),t<d.length-1&&(0,s.jsx)("span",{className:"mb-3 text-sm font-bold ".concat(o?"text-red-300":"text-amber-300"),children:":"})]},e.label))})]})]})}var R=l(198),E=l(5644);function D(e){var t,l,o,p,h,D,T,_,Q,L,q,O,B,Z,U;let W,V,H,K,Y,J,G;let{page:X,isQuickView:$=!1}=e,ee=(0,a.useRef)(null),[et,el]=(0,a.useState)(null==X?void 0:X.ProductMainImage),[es,ea]=(0,a.useState)(1),[en,er]=(0,a.useState)((W=null==X?void 0:X.ProductDescription)&&"undefined"!==W?"product-details":"features"),[ei,eo]=(0,a.useState)(!1),[ed,ec]=(0,a.useState)({x:0,y:0}),[eu,ex]=(0,a.useState)(null==X?void 0:X.averageRating),[em,ep]=(0,a.useState)(!1),[eh,ef]=(0,a.useState)(!1),[eg,eb]=(0,a.useState)(!1),[ev,ey]=(0,a.useState)(null),[ej,ew]=(0,a.useState)(0),[eN,ek]=(0,a.useState)(!1),[eS,eC]=(0,a.useState)(!1),[eI,eP]=(0,a.useState)(null),[eM,ez]=(0,a.useState)(null),[eA,eF]=(0,a.useState)([]),[eR,eE]=(0,a.useState)(!1),[eD,eT]=(0,a.useState)(!1),[e_,eQ]=(0,a.useState)(!1),[eL,eq]=(0,a.useState)(1),[eO,eB]=(0,a.useState)(!1),[eZ]=(0,a.useState)("DD/MM/YYYY"),eU=(0,a.useRef)(!1),eW=(0,S.I0)(),eV=(0,N.useRouter)(),eH=(0,S.v9)(e=>e.cart.items),eK=(0,S.v9)(e=>e.preOrder.requests),eY=(0,S.v9)(e=>e.wishlist.items),eJ=(0,S.v9)(e=>e.auth.userInfo),eG=null==X?void 0:X.averageRating,eX=Math.floor(eG),e$=eG%1!=0,e0=(0,a.useRef)(null),e1=(0,a.useRef)(null),e2=(e,t)=>{el(e),ew(t)};console.log(X);let[e5,e3]=(0,a.useState)("");(0,a.useEffect)(()=>()=>{eW((0,A.c5)(""))},[]);let e4=async e=>{let t;if(w.Z.emit("Login"),!await (0,z.j)())return;let l=null==eY?void 0:eY.some(t=>(t._id||t.productId)===(e._id||e.productId));t=l?eY.filter(t=>(t._id||t.productId)!==(e._id||e.productId)):[...eY,e],eb(!l),eW((0,C.Mp)(t))},e6=(0,N.usePathname)(),e8=e=>{let t=es+1;String(t).length<=3&&ea(t)},e7=()=>{es>1&&ea(es-1)},e9=e=>{var t;return null!==(t=e._id)&&void 0!==t?t:e.productId},te=async e=>{if(!(Object.keys(eJ||{}).length>
10)){w.Z.emit("Login",{skipAuthCheck:!0});return}if((+e.SalesPrice||0)*eL<=499){eB(!0);return}let t={productId:e9(e),quantity:eL,SalesPrice:e.SalesPrice,MRP:e.MRP,Name:e.AlternativeName||e.Name,image:e.ProductMainImage,SKU:e.SKU,category:e.SubSubCategoryName||e.SubCategoryName||e.CategoryName||e.Category||"",Category:e.Category||e.CategoryName||"",SubCategory:e.SubCategory||e.SubCategoryName||"",SubSubCategory:e.SubSubCategory||e.SubSubCategoryName||"",Slug:e.Slug||""};sessionStorage.setItem("buyNowItem",JSON.stringify(t)),sessionStorage.setItem("buyNowOrder","true"),eW((0,M.lk)(t)),eV.push("/cart/checkout")},tt=async e=>{if(!eU.current){eU.current=!0,eQ(!0);try{var t;if(!(Object.keys(eJ||{}).length>0)){w.Z.emit("Login",{skipAuthCheck:!0});return}let l=Array.isArray(eH)?eH:[],s=Array.isArray(eK)?eK:[],a=e9(e),n=l.some(e=>e9(e)===a),r=s.some(e=>e9(e)===a),i=(null!==(t=e.Quantity)&&void 0!==t?t:0)>0,o=e=>e.map(e=>e9(e)===a?{...e,ReqQuantity:e.ReqQuantity+es}:e),d=l,c=s;switch(!0){case n&&!r:d=o(l),ek(!0);break;case r&&!n:c=o(s),eC(!0),eE(!0);break;case n&&r:c=o(s),ek(!0),eE(!0);break;case i:d=[...l,{...e,ReqQuantity:es}],ek(!0);break;default:c=[...s,{...e,ReqQuantity:es}],eC(!0),eE(!0)}let u=d.find(e=>e9(e)===a),x=c.find(e=>e9(e)===a);u&&eP(Math.min(u.ReqQuantity,u.Quantity)),x&&ez(x.ReqQuantity),eW((0,I.Xq)(d)),eW((0,P.Jj)(c)),(0,R.w)("track","AddToCart",{content_ids:[a],content_type:"product",value:e.SalesPrice,currency:"INR",content_name:e.Name}),(0,m.DH)(a).catch(e=>console.error("DeleteCart background call failed:",e))}finally{eU.current=!1,eQ(!1)}}};(0,a.useEffect)(()=>{let e=Array.isArray(eY)?eY:[];eb(null==e?void 0:e.some(e=>(e._id||e.productId)===(X._id||X.productId)))},[X._id,X.productId,eY]),(0,a.useEffect)(()=>{let e=Array.isArray(eH)?eH:[],t=Array.isArray(eK)?eK:[],l=null==e?void 0:e.some(e=>((null==e?void 0:e._id)||(null==e?void 0:e.productId))===((null==X?void 0:X._id)||(null==X?void 0:X.productId))),s=null==t?void 0:t.some(e=>((null==e?void 0:e._id)||(null==e?void 0:e.productId))===((null==X?void 0:X._id)||(null==X?void 0:X.productId))),a=e.find(e=>(e._id||e.productId)===(X._id||X.productId)),n=t.find(e=>(e._id||e.productId)===(X._id||X.productId));ek(l),eC(s),eP((null==a?void 0:a.ReqQuantity)>(null==a?void 0:a.Quantity)?null==a?void 0:a.Quantity:null==a?void 0:a.ReqQuantity),ez(null==n?void 0:n.ReqQuantity),eq(es>(null==X?void 0:X.Quantity)?null==X?void 0:X.Quantity:es),(es>(null==X?void 0:X.Quantity)||Number((null==a?void 0:a.ReqQuantity)||0)+Number((null==n?void 0:n.ReqQuantity)||0)>(null==X?void 0:X.Quantity))&&eE(!0)},[es,X,eH,eK]);let tl="".concat("https://indianrobostore.com").concat(e6),ts=(0,a.useCallback)(()=>{ep(e=>!e)},[]);(0,a.useEffect)(()=>{function e(e){e0.current&&!e0.current.contains(e.target)&&e1.current&&!e1.current.contains(e.target)&&ep(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,a.useEffect)(()=>{let e=null==X?void 0:X.path;return w.Z.emit("ProductPath",e),()=>w.Z.emit("ProductPath",null)},[null==X?void 0:X.path]);let ta=(0,a.useCallback)(()=>{navigator.clipboard.writeText(tl).then(()=>{ef(!0),setTimeout(()=>{ef(!1),ts()},1e3)}).catch(e=>{console.error("Failed to copy: ",e)})},[tl,ts]),tn=(0,a.useCallback)(()=>{ts()},[ts]),tr=async e=>{to||await e4(e)},ti=(0,k.DC)(null==X?void 0:null===(t=X.Tags)||void 0===t?void 0:t[0]),to=(null==X?void 0:null===(l=X.Tags)||void 0===l?void 0:l[0])==="Discontinued",td=X&&X.SalesPrice?Math.ceil(+X.SalesPrice/100):0,tc=(null==X?void 0:X.SalesPrice)&&Number(X.SalesPrice)>1e3;return(0,s.jsxs)("div",{className:"w-full mx-auto ".concat($?"p-0":"w-full xl:container lg:container 2xl:px-[4.2rem] xl:px-[3.8rem] lg:px-[3.5rem] px-3 mt-3 sm:mt-4 md:mt-5"),children:[(0,s.jsx)("div",{children:!$&&(0,s.jsx)(d,{sectionRef:ee})}),(0,s.jsxs)("div",{ref:ee,className:"flex flex-col gap-2 lg:flex-row lg:items-start",children:[(0,s.jsx)("div",{className:"w-full ".concat($?"lg:w-[48%] xl:w-[45%]":"lg:w-[40%] xl:w-[35%] lg:sticky lg:top-[7.5rem] lg:self-start"),children:(0,s.jsxs)("div",{className:"flex flex-col ".concat($?"gap-3":"gap-3 sm:gap-4"," h-full"),children:[(0,s.jsxs)("div",{className:"relative border border-gray-200 rounded-2xl flex justify-center items-center overflow-hidden w-full aspect-square max-w-[480px] max-h-[480px] lg:max-h-[calc(100vh-14.5rem)] lg:max-w-[calc(100vh-14.5rem)] mx-auto bg-white ".concat(ei?"cursor-magnify":""),onMouseEnter:()=>{eo(!0)},onMouseLeave:()=>{eo(!1)},onMouseMove:e=>{let{offsetX:t,offsetY:l,target:s}=e.nativeEvent,{offsetWidth:a,offsetHeight:n}=s;ec({x:t/a*100,y:l/n*100})},children:[(0,s.jsx)(n.default,{className:"w-full h-full object-contain object-center",src:et||"https://d1k5dvsh23g3c2.cloudfront.net/LOCAL/SubSubCategory/1726835813381-irs-default-img.png",width:500,height:500,alt:"Main Product",sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 50vw",quality:85,priority:!0,style:{aspectRatio:"1/1",transformOrigin:"".concat(ed.x,"% ").concat(ed.y,"%"),transform:ei?"scale(2)":"scale(1)",transition:"transform 0.2s ease"}}),(null==X?void 0:null===(o=X.Tags)||void 0===o?void 0:o[0])&&(0,s.jsx)("div",{className:"absolute top-2 left-2 text-[11px] font-medium px-1 py-0.5 rounded-full z-20",children:ti}),(0,s.jsx)("div",{children:(0,s.jsx)(n.default,{src:"/irs.svg",alt:"indian robo store logo",width:65,height:65,className:"absolute bottom-10 right-10 opacity-55 px-1 py-0.5 z-[1]"})}),(0,s.jsx)("button",{type:"button","aria-label":"Add to wishlist",onClick:()=>tr(X),disabled:to,className:(0,z.Z)("absolute top-2 right-5 rounded-full p-0.5 transition-colors duration-150",eg?"bg-yellow-500 text-black":"bg-stone-300 text-white",to?"opacity-50 cursor-not-allowed":"cursor-pointer active:bg-yellow-600 active:text-black"),children:(0,s.jsx)(r.y_g,{size:28})}),(0,s.jsx)("button",{ref:e1,className:(0,z.Z)("absolute top-16 right-5 rounded-full p-1 transition-colors duration-150 text-black bg-gray-300 hover:bg-yellow-500"),onClick:ts,disabled:to,children:(0,s.jsx)(n.default,{src:"https://images.indianrobostore.com/Prod/utility/sh
1are.gif",alt:"Share",className:"aspect-square ",width:25,height:25,sizes:"30px",quality:75,priority:!0})}),(0,s.jsx)("div",{className:"absolute top-24 right-[200px] bg-white",children:em&&(0,s.jsx)("div",{className:"absolute top-full mt-2 left-0 w-[180px] bg-white shadow-lg rounded-lg border p-2 z-50",ref:e0,children:(0,s.jsxs)("ul",{className:"space-y-2",children:[(0,s.jsxs)("li",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-2 rounded-md",children:[(0,s.jsx)(v.xpo,{className:"text-green-500 text-lg"}),(0,s.jsx)("a",{href:"https://wa.me/?text=".concat(encodeURIComponent(tl)),target:"_blank",rel:"noopener noreferrer",className:"text-gray-700 font-medium",onClick:tn,children:"WhatsApp"})]}),(0,s.jsxs)("li",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-2 rounded-md",children:[(0,s.jsx)(v.Am9,{className:"text-blue-600 text-lg"}),(0,s.jsx)("a",{href:"https://www.facebook.com/sharer/sharer.php?u=".concat(encodeURIComponent(tl)),target:"_blank",rel:"noopener noreferrer",className:"text-gray-700 font-medium",onClick:tn,children:"Facebook"})]}),(0,s.jsx)("li",{className:"flex items-center space-x-2 cursor-pointer hover:bg-gray-100 p-2 rounded-md",onClick:ta,children:eh?(0,s.jsx)("span",{className:"text-green-500 font-medium",children:"Copied successfully"}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.gjK,{className:"text-gray-700 text-lg"}),(0,s.jsx)("span",{className:"text-gray-700 font-medium",children:"Copy Link"})]})})]})})})]}),(0,s.jsx)("div",{className:"w-full flex flex-row items-center gap-2 overflow-x-auto hide-scrollbar ".concat($?"shrink-0 pt-1":"xl:mt-0 lg:mt-0 mt-3"),children:null==X?void 0:null===(p=X.ProductSideImage)||void 0===p?void 0:p.slice(0,5).map((e,t)=>(0,s.jsx)("div",{className:"shrink-0 rounded-xl overflow-hidden transition-all ".concat(ej==t?"border-2 border-yellow-500 shadow-xs":"border border-gray-200 hover:border-gray-300"),children:(0,s.jsx)(n.default,{className:"cursor-pointer object-contain object-center aspect-square w-14 h-14 sm:w-16 sm:h-16 lg:w-14 lg:h-14 xl:w-16 xl:h-16",src:e,alt:"Thumbnail ".concat(t+1)||0,onClick:()=>e2(e,t),width:80,height:80,sizes:"(max-width: 768px) 64px, 80px",quality:75,loading:"lazy"})},t))})]})}),(0,s.jsxs)("div",{className:"w-full ".concat($?"lg:w-[52%] xl:w-[55%]":"lg:w-[40%] xl:w-[45%]"),children:[(0,s.jsxs)("div",{className:"w-full flex flex-col px-2 pt-0 pb-2 justify-between gap-3",children:[(0,s.jsx)("h1",{className:"text-2xl font-semibold",children:(null==X?void 0:X.AlternativeName)||(null==X?void 0:X.Name)}),(0,s.jsxs)("p",{className:"text-sm text-gray-500 font-semibold",children:["SKU ",null==X?void 0:null===(h=X.SKU)||void 0===h?void 0:h.slice(-10)]}),(0,s.jsxs)("div",{className:"flex items-center",children:[Array.from({length:eX}).map((e,t)=>(0,s.jsx)("span",{className:"text-yellow-400",children:(0,s.jsx)(v.QJe,{})},t)),e$&&(0,s.jsx)("span",{className:"text-yellow-400",children:(0,s.jsx)(v.TtB,{})}),Array.from({length:5-eX-(e$?1:0)}).map((e,t)=>(0,s.jsx)("span",{className:"text-gray-300",children:(0,s.jsx)(v.QJe,{})},t))]}),(null==X?void 0:null===(D=X.eventDetails)||void 0===D?void 0:D.price)?(0,s.jsxs)("p",{className:"text-2xl font-semibold",children:[(0,s.jsxs)("p",{className:"text-[1rem] text-red-500 font-semibold",children:[null==X?void 0:null===(T=X.eventDetails)||void 0===T?void 0:T.name," Price"]}),(0,s.jsxs)("div",{className:"flex gap-2 items-end",children:[(0,s.jsxs)("p",{children:["â¹",(+(null==X?void 0:X.SalesPrice)).toFixed(0)]}),(0,s.jsxs)("p",{className:"text-lg text-red-500 line-through",children:["â¹",(+(null==X?void 0:null===(_=X.eventDetails)||void 0===_?void 0:_.price)).toFixed(0)]}),(0,s.jsx)("p",{className:"text-[10px] text-gray-500 ",children:"(Inc GST)"})]})]}):(0,s.jsxs)("p",{className:"text-2xl font-semibold",children:["â¹",(+(null==X?void 0:X.SalesPrice)).toFixed(0),(0,s.jsx)("span",{className:"text-[10px] text-gray-500",children:"(Inc GST)"})]}),(0,s.jsxs)("p",{className:"text-md text-gray-500 flex gap-1 items-center",children:[(0,s.jsx)("span",{children:" MRP: "}),(0,s.jsxs)("span",{className:"line-through",children:["â¹",(+(null==X?void 0:X.MRP)).toFixed(0)," "]})]}),(0,s.jsxs)("p",{className:"text-green-500 text-sm",children:["SAVE ",(0,j.U7)(null==X?void 0:X.MRP,null==X?void 0:X.SalesPrice),"%"]}),(0,s.jsxs)("div",{className:"flex max-md:flex-col justify-between w-full gap-2",children:[(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-full h-fit roun
1ded-xl border px-2 p-1",children:[(0,s.jsx)("p",{className:"text-[14px] text-gray-800 font-semibold",children:"Pay with "}),(0,s.jsx)("img",{src:"/pOptions.png",alt:"emi",className:"pb-2 max-md:h-[50px] "})]}),(0,s.jsx)("div",{className:"flex flex-row items-center gap-1 w-full justify-start",children:(0,s.jsx)("p",{className:"text-[0.9rem] text-start",children:td>0&&(0,s.jsx)("div",{className:" transition-shadow ",children:(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-wrap",children:[(0,s.jsxs)("svg",{className:"w-4 h-4 text-yellow-500 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:[(0,s.jsx)("path",{d:"M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z"}),(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a1 1 0 10-2 0v.092a4.535 4.535 0 00-1.676.662C6.602 6.234 6 7.009 6 8c0 .99.602 1.765 1.324 2.246.48.32 1.054.545 1.676.662v1.941c-.391-.127-.68-.317-.843-.504a1 1 0 10-1.51 1.31c.562.649 1.413 1.076 2.353 1.253V15a1 1 0 102 0v-.092a4.535 4.535 0 001.676-.662C13.398 13.766 14 12.991 14 12c0-.99-.602-1.765-1.324-2.246A4.535 4.535 0 0011 9.092V7.151c.391.127.68.317.843.504a1 1 0 101.511-1.31c-.563-.649-1.413-1.076-2.354-1.253V5z",clipRule:"evenodd"})]}),(0,s.jsxs)("p",{className:"text-[0.7rem] font-medium pt-0.5",children:[(0,s.jsx)("span",{className:"text-gray-700",children:"Earn"})," ",(0,s.jsxs)("span",{className:"text-yellow-600",children:[td," IRS Coins "," "]}),(0,s.jsx)("span",{className:"text-gray-700",children:"on this purchase."})]})]})})})})]}),(0,s.jsx)("div",{className:"w-full ",children:tc&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 w-full",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start w-full justify-between gap-3 rounded-xl border border-gray-200 py-1 px-2",children:[(0,s.jsxs)("div",{className:"flex gap-1",children:[(0,s.jsx)("div",{className:"size-7 rounded-md flex items-center justify-center flex-shrink-0",children:(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"#2873ffff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2",ry:"2"}),(0,s.jsx)("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]})}),(0,s.jsxs)("p",{className:"text-[16px] text-gray-800 font-semibold",children:[(0,s.jsx)("span",{className:"text-start",children:"EMI"})," From"," ",(0,s.jsxs)("span",{className:"text-[15px] font-bold ",children:["â¹",Math.ceil(Number(X.SalesPrice)/24),(0,s.jsx)("span",{className:"text-gray-600 font-medium",children:"/month"})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-row justify-between w-full",children:[(0,s.jsxs)("div",{className:"flex flex-row items-center gap-1 pb-1",children:[(0,s.jsx)("img",{src:"/icici.png",alt:"emi",width:36,height:36}),(0,s.jsx)("p",{className:"text-[12px] text-blue-700 flex gap-1 items-center",children:(0,s.jsx)("span",{children:" & More"})})]}),(0,s.jsx)("button",{onClick:()=>eT(!0),type:"button",className:"flex items-center gap-1 text-[12px] font-medium text-blue-700 whitespace-nowrap underline",children:"View plans"})]})]}),(0,s.jsxs)("div",{className:"flex flex-row items-center gap-1 w-full justify-end font-medium",children:[(0,s.jsx)("p",{className:"text-[11px]",children:"Secured by "}),(0,s.jsx)("img",{src:"/paytm.png",alt:"emi",width:30,height:30})]})]})})]}),(null==X?void 0:null===(Q=X.eventDetails)||void 0===Q?void 0:Q.price)&&(0,s.jsx)("div",{className:"my-3 w-full",children:(0,s.jsx)(F,{data:null==X?void 0:X.eventDetails})}),(0,s.jsxs)("div",{className:"flex items-center ".concat($?"flex":"lg:hidden"," gap-5 my-2 ").concat(to?"opacity-25":""," "),children:[(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("h3",{className:"font-semibold",children:"Quantity:"}),to?"":(null==X?void 0:X.Quantity)?(0,s.jsx)("span",{className:"text-sm text-green-600 font-semibold",children:"In Stock"}):(0,s.jsx)("span",{className:"text-sm text-red-500 font-semibold",children:"Pre-Order"})]}),(0,s.jsxs)("div",{className:"relative flex items-center justify-center w-[80px] xl:w-[90px] lg:w-[90px] b rounded p-1 border shadow-lg md:p-2 ",children:[(0,s.jsx)("input",{type:"number","aria-label":"Enter quantity",className:"text-center w-full xl:w-full lg:w-full outline-none pr-3 appearance-none ",value:es,onChange:e=>{let t=e.target.value;t.length<=3&&t<=X.Quantity&&ea(parseInt(t)||1)},min:"1",max:"999",disabled:to}),(0,s.jsxs)("div",{className:"absolute right-0 flex flex-col ml-1 p-1 xl:mr-1 lg:mr-1",children:[(0,s.jsx)("button",{"aria-label":"Increase quantity",onClick:()=>
1{X.Quantity,e8()},disabled:to,className:"text-xs md:text-sm hover:text-stone-600 hover:shadow-lg",children:(0,s.jsx)(i.Vmf,{})}),(0,s.jsx)("button",{"aria-label":"Decrease quantity",onClick:()=>{e7();let e=es-1;X.Quantity,e<=X.Quantity&&eE(!1)},disabled:to,className:"text-xs md:text-sm hover:text-stone-600 hover:shadow-lg",children:(0,s.jsx)(i.OId,{})})]})]})]}),!$&&(0,s.jsx)(b.Z,{page:X,quantity:es,className:"block lg:hidden my-2"}),$&&(0,s.jsx)("div",{className:"hidden flex-col gap-2 my-2.5 w-full sm:flex md:hidden lg:flex",children:(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{className:"".concat(eS||eN?"bg-yellow-600 font-semibold text-black hover:text-white":"bg-black text-white font-semibold"," flex items-center relative justify-center disabled:bg-gray-400 disabled:cursor-not-allowed py-2.5 px-4 flex-1 rounded-lg hover:bg-gray-800 transition-colors duration-300 font-bold text-xs min-h-[42px]"),onClick:()=>tt(X),disabled:(null===(L=X.Tags)||void 0===L?void 0:L[0])==="Discontinued"||e_,children:e_?(0,s.jsx)("span",{className:"text-xs font-medium",children:"Adding..."}):(0,s.jsx)("span",{className:"text-xs font-semibold",children:0===Number(null==X?void 0:X.Quantity)?eS?"In Pre-cart":"Pre-order":eN&&eS?"In Cart":eS?"In Pre-cart":eN?"In Cart":"Add to Cart"})}),Number(null==X?void 0:X.Quantity)>0&&(0,s.jsxs)("button",{disabled:to,onClick:()=>te(X),className:"flex-1 bg-yellow-500 text-black font-bold py-2.5 px-4 rounded-lg text-xs hover:bg-yellow-600 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors min-h-[42px]",children:["Buy Now At â¹",(+(null==X?void 0:X.SalesPrice)*es).toFixed(0)]})]})}),(0,s.jsxs)("div",{className:"flex justify-start flex-col items-start gap-2",children:[(null==X?void 0:X.isFreeShipping)&&(0,s.jsx)("div",{className:"bg-green-100 border-l-4 border-green-400 text-green-800 p-2 rounded-md text-[0.75rem]",children:(0,s.jsx)("p",{className:"font-medium",children:"This product is eligible for free shipping."})}),(eR||eS)&&((e,t,l,a,n,r)=>{let i=l?r:e>t?e-t:e,o="font-medium p-2 rounded-md border-l-4";return t&&!(l&&a)?(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsxs)("p",{className:"".concat(o," bg-yellow-100 border-yellow-500 text-yellow-900"),children:["There are ",t," items in stock. An additional ",i," items are ready to be added to the Pre-Cart."]})}):l&&a?(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsxs)("p",{className:"".concat(o," bg-purple-100 border-purple-500 text-purple-900"),children:["There are ",t," items in your cart. An additional ",i," items have been added to your Pre-Cart."]})}):l&&r>0?(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsxs)("p",{className:"".concat(o," bg-blue-100 border-blue-500 text-blue-900"),children:[r," items have been added to your Pre-Cart. Click"," ",(0,s.jsx)("a",{href:"/pre-order-cart",className:"text-green-600 underline",children:"here"})," ","to view."]})}):(0,s.jsx)("div",{className:"text-xs",children:(0,s.jsx)("p",{className:"".concat(o," bg-rose-50 border-rose-400 text-rose-800"),children:"Click to secure this item in your Pre-Cart today!"})})})(es,X.Quantity,eS,eN,0,eM)]})]}),!$&&(0,s.jsxs)("div",{className:"mt-2 w-full p-2",children:[(0,s.jsxs)("div",{className:"mb-2",children:[(0,s.jsx)("p",{className:"text-base font-bold text-gray-800 mb-2",children:"All Details"}),(0,s.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(V=null==X?void 0:X.ProductDescription)&&"undefined"!==V&&(0,s.jsx)("button",{className:"px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors duration-200 ".concat("product-details"===en?"bg-yellow-500 text-black":"bg-white text-gray-700 border border-gray-300 hover:border-yellow-400"),onClick:()=>er("product-details"),children:"Product Detail"}),(H=(null==X?void 0:null===(q=X.specifications)||void 0===q?void 0:q.length)>0||(null==X?void 0:X.Featured))&&"undefined"!==H&&(0,s.jsx)("button",{className:"px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors duration-200 ".concat("features"===en?"bg-yellow-500 text-black":"bg-white text-gray-700 border border-gray-300 hover:border-yellow-400"),onClick:()=>er("features"),children:"Specification"}),(K=null==X?void 0:X.VideoUrl)&&"undefined"!==K&&(0,s.jsx)("button",{className:"px-3 py-1.5 rounded-lg text-sm font-semibold transition-colors duration-200 ".concat("video"===en?"bg-yellow-500 text-black":"bg-white text-gray-700 border border-gray-300 hover:border-yellow-400"),onClick:()=>er("video"),children:"Video"})]})]}),(0,s.jsxs)("div",{children:["product-details"===en&&(Y=null==X?void 0:X.ProductDescription)&&"undefined"!==Y&&(0,s.jsx)(g,{data:null==X?void 0:X.ProductDescription}),"features"===en&&(J=(null==X?void 0:null===(O=X.specifications)||void 0===O?void 0:O.length)>0||(null==X?void 0:X.Featured))&&"undefined"!==J&&(0,s.jsx)(u,{data:(null==X?void 0:null===(B=X.specifications)||void 0===B?void 0:B.length)>0?null==X?void 0:X.specifications:null==X?void 0:X.Featured}),"video"===en&&(G=null==X?void 0:X.VideoUrl)&&"undefined"!==G&&(0,s.jsx)(c,{link:null==X?void 0:X.VideoUrl})]}),(null==X?void 0:X.ProductInterfaceImages)&&(null==X?void 0:X.ProductInterfaceImages.length)>0&&(null==X?void 0:X.ProductInterfaceImages)!=="undefined"&&(0,s.jsxs)("div",{className:" mt-8",children:[(0,s.jsx)("span",{className:"ml-2 pb-2 text-sm font-semibold border-b-2 border-orange-500",children:"Product Includes"}),(0,s.jsx)("div",{className:" border rounded-md p-2 mt-2 border-stone-300 bg-gray-100",children:(0,s.jsx)(x,{data:null==X?void 0:X.ProductInterfaceImages})})]})]})]}
1),!$&&(0,s.jsx)("div",{className:"hidden lg:block lg:w-[20%] xl:w-[20%] lg:sticky lg:top-[8rem] lg:self-start lg:max-h-[calc(100vh-6.2rem)] lg:overflow-y-auto",children:(0,s.jsxs)("div",{className:"bg-white rounded-xl space-y-2",children:[(0,s.jsxs)("div",{className:"border p-2.5 rounded-xl space-y-2",children:[(0,s.jsxs)("div",{className:"bg-gradient-to-br from-amber-50/80 via-white to-yellow-50/50 rounded-2xl p-3.5 border border-amber-200/60 space-y-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("h3",{className:"text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Price Details"}),+(null==X?void 0:X.MRP)>+(null==X?void 0:X.SalesPrice)&&(0,s.jsxs)("span",{className:"text-[10px] font-semibold text-black bg-gradient-to-r from-yellow-400 to-amber-500 px-2 py-0.5 rounded-full shadow-sm",children:[(0,j.U7)(null==X?void 0:X.MRP,null==X?void 0:X.SalesPrice),"% OFF"]})]}),(0,s.jsxs)("div",{className:"flex items-end gap-2",children:[(0,s.jsxs)("span",{className:"text-2xl font-semibold text-gray-900 tracking-tight leading-none",children:["â¹",((+(null==X?void 0:X.SalesPrice)||0)*es).toFixed(0)]}),(0,s.jsxs)("span",{className:"text-xs text-gray-400 line-through font-medium pb-0.5",children:["â¹",(+(null==X?void 0:X.MRP)).toFixed(0)]}),(0,s.jsx)("span",{className:"text-[10px] text-gray-400 pb-0.5",children:"(Inc GST)"})]}),+(null==X?void 0:X.MRP)>+(null==X?void 0:X.SalesPrice)&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 bg-green-50 border border-green-200/60 rounded-lg px-2.5 py-1.5",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5 text-green-500 flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),(0,s.jsxs)("span",{className:"text-[11px] font-medium text-green-700",children:["You save â¹",((+(null==X?void 0:X.MRP)-+(null==X?void 0:X.SalesPrice))*es).toFixed(0)," on this order"]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 py-1",children:[(0,s.jsx)("span",{className:"text-gray-700 font-semibold text-xs whitespace-nowrap",children:"Quantity:"}),(0,s.jsxs)("div",{className:"flex items-center rounded-md overflow-hidden",children:[(0,s.jsx)("button",{onClick:()=>{e7();let e=es-1;X.Quantity,e<=X.Quantity&&eE(!1)},disabled:to,className:"bg-yellow-500 text-black px-2.5 py-1 hover:bg-yellow-600 disabled:bg-gray-300 disabled:cursor-not-allowed transition-colors rounded font-semibold text-base leading-none","aria-label":"Decrease quantity",children:"-"}),(0,s.jsx)("input",{type:"number",value:es,onChange:e=>{let t=e.target.value;t.length<=3&&t<=X.Quantity&&ea(parseInt(t)||1)},className:"py-0.5 mx-1 w-10 border border-gray-200 text-center bg-white outline-none font-medium text-sm appearance-none",min:"1",max:"999",disabled:to,"aria-label":"Enter quantity"}),(0,s.jsx)("button",{onClick:()=>{X.Quantity,e8()},disabled:to,className:"bg-yellow-500 text-black px-2.5 py-1 hover:bg-yellow-600 disabled:bg-gray-300 disabled:cursor-not-allowed transition-colors rounded font-semibold text-base leading-none","aria-label":"Increase quantity",children:"+"})]})]}),(0,s.jsxs)("div",{className:"space-y-2 pt-1",children:[(0,s.jsxs)("button",{className:"".concat(eS||eN?"bg-yellow-600 font-semibold text-black hover:text-white":"bg-black text-white font-semibold"," flex items-center relative justify-center disabled:bg-gray-400 disabled:cursor-not-allowed py-2.5 px-4 w-full rounded-lg hover:bg-gray-800 transition-colors duration-300 overflow-visible min-h-[42px]"),onClick:()=>tt(X),disabled:(null==X?void 0:null===(Z=X.Tags)||void 0===Z?void 0:Z[0])==="Discontinued"||e_,children:[eI&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-green-600 text-white w-5 h-5 flex justify-center items-center rounded-full text-[10px] font-semibold",children:eI}),!eI&&eM&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-green-600 text-white w-5 h-5 flex justify-center items-center rounded-full text-[10px] font-semibold",children:eM}),e_?(0,s.jsxs)("svg",{className:"animate-spin mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]}):to?"":eN?(0,s.jsx)(y._tY,{size:20,className:"mr-1"}):(null==X?void 0:X.Quantity)?(0,s.jsx)(n.default,{src:"https://images.indianrobostore.com/products/cart.png",alt:"Cart",className:"mr-1 aspect-square",width:25,height:25,sizes:20,quality:75,priority:!0}):"",to?(0,s.jsx)("span",{className:"text-xs font-medium",children:"Discontinued"}):e_?(0,s.jsx)("span",{className:"text-xs font-medium",children:"Adding..."}):(0,s.jsx)("span",{className:"text-xs font-semibold",children:0===Number(null==X?void 0:X.Quantity)?eS?"In Pre-cart":"Pre-order":eN&&eS?"In Cart":eS?"In Pre-cart":eN?"In Cart":"Add to Cart"})]}),Number(null==X?void 0:X.Quantity)>0&&(0,s.jsxs)("button",{disabled:to,onClick:()=>te(X),className:"w-full bg-yellow-500 text-black font-semibold py-2.5 rounded-lg text-xs hover:bg-yellow-600 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors min-h-[42px]",children:["Buy Now At â¹",(+(null==X?void 0:X.SalesPrice)*es).toFixed(0)]})]})]}),!$&&(0,s.jsx)(b.Z,{page:X,quantity:es})]})})]}),(0,s.jsx)(f,{isOpen:eD,onClose:()=>eT(!1),price:null==X?void 0:X.SalesPrice}),eO&&(0,s.jsx)(E.Rs,{cartItems:[{}
1],setPopDownMessage:eB}),(0,s.jsx)("div",{className:"lg:hidden bg-white border-t border-gray-200 shadow-[0_-4px_16px_rgba(0,0,0,0.12)] z-50 ".concat($?"sticky -bottom-4 -mx-4 -mb-4 px-2 py-2 mt-4":"fixed bottom-0 left-0 right-0 w-full px-3 py-2.5"),children:(0,s.jsxs)("div",{className:"flex gap-3 max-w-md mx-auto",children:[(0,s.jsxs)("button",{className:"".concat(eS||eN?"bg-yellow-500 text-black font-semibold":"bg-black text-white font-semibold"," flex items-center relative justify-center disabled:bg-gray-400 disabled:cursor-not-allowed py-2.5 px-4 w-full rounded-lg hover:bg-gray-800 transition-colors duration-300 overflow-visible min-h-[42px]"),onClick:()=>tt(X),disabled:(null==X?void 0:null===(U=X.Tags)||void 0===U?void 0:U[0])==="Discontinued"||e_,children:[eI&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-green-600 text-white w-5 h-5 flex justify-center items-center rounded-full text-[10px] font-semibold",children:eI}),!eI&&eM&&(0,s.jsx)("span",{className:"absolute -top-1 -right-1 bg-green-600 text-white w-5 h-5 flex justify-center items-center rounded-full text-[10px] font-semibold",children:eM}),e_?(0,s.jsxs)("svg",{className:"animate-spin mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]}):to?"":eN?(0,s.jsx)(y._tY,{size:20,className:"mr-1"}):(null==X?void 0:X.Quantity)?(0,s.jsx)(n.default,{src:"https://images.indianrobostore.com/products/cart.png",alt:"Cart",className:"mr-1 aspect-square",width:25,height:25,sizes:20,quality:75,priority:!0}):"",to?(0,s.jsx)("span",{className:"text-xs font-medium",children:"Discontinued"}):e_?(0,s.jsx)("span",{className:"text-xs font-medium",children:"Adding..."}):(0,s.jsx)("span",{className:"text-xs font-semibold",children:0===Number(null==X?void 0:X.Quantity)?eS?"In Pre-cart":"Pre-order":eN&&eS?"In Cart":eS?"In Pre-cart":eN?"In Cart":"Add to Cart"})]}),Number(null==X?void 0:X.Quantity)>0&&(0,s.jsxs)("button",{disabled:to,onClick:()=>te(X),className:"w-full bg-yellow-500 text-black py-2.5 px-4 rounded-lg font-semibold text-xs hover:bg-yellow-600 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors min-h-[42px]",children:["Buy Now â¹",((+(null==X?void 0:X.SalesPrice)||0)*es).toFixed(0)]})]})})]})}},198:function(e,t,l){l.d(t,{Z:function(){return r},w:function(){return n}});var s=l(2265),a=l(9376);let n=function(){for(var e=arguments.length,t=Array(e),l=0;l<e;l++)t[l]=arguments[l];window.fbq&&window.fbq(...t)};function r(){let e=(0,a.usePathname)(),t=(0,a.useSearchParams)();return(0,s.useEffect)(()=>{n("track","PageView")},[e,t]),null}},2601:function(e,t,l){l.d(t,{J:function(){return s}});let s={name:"Indian Robo Store",title:"India's Trusted Store for Drone Parts, FPV Kits & DIY Robotics",description:"Explore India's Best store for Drone Parts, FPV Kits, motors, ESCs, flight controllers & batteries. Shop quality products with fast delivery and expert support.",keywords:["indian robo store","india robo store","h16 drone","skydroid t10","skydroid h12","mk15","skydroid","skydroid t12","flight controller apm 2.8","robo india","siyi a8 mini","agriculture sprayer nozzle","surveyor lite","buy drones in india","naza dji","skyrc","drone motherboard with remote","ublox","flysky i6","here 3 gps","dji naza m lite"],url:"https://indianrobostore.com",ogImage:"",links:{twitter:"https://x.com/indianrobostore",facebook:"https://www.facebook.com/indianrobostore/",linkedin:"https://in.linkedin.com/company/indianrobostore",instagram:"https://www.instagram.com/indianrobostore/",whatsapp:"https://api.whatsapp.com/send/?phone=%2B917065660777&text&type=phone_number&app_absent=0"}}},9955:function(e,t,l){l.d(t,{DC:function(){return j}});var s=l(7437),a=l(794),n=l(9089),r=l(7780),i=l(3400),o=l(1140),d=l(3145);function c(e){let{text:t="Pre-Order",className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-2 py-1 rounded-full bg-red-500 text-white text-xs font-bold uppercase shadow-lg border-2 border-red-300",l),children:[(0,s.jsx)(n.qyc,{className:"h-3 w-3"}),(0,s.jsx)("span",{children:t})]})}function u(e){let{text:t="Discontinued",className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-2 py-1 rounded bg-gray-600 text-white text-xs font-bold uppercase shadow-lg",l),children:[(0,s.jsx)(i.sQg,{className:"h-3 w-3"}),(0,s.jsx)("span",{children:t})]})}function x(e){let{text:t="SPECIAL OFFER",variant:l="flash",className:i}=e,o={default:{bg:"bg-gradient-to-r from-red-500 via-red-600 to-red-700",animation:"animate-bounce",icon:n.LkT},flash:{bg:"bg-gradient-to-r from-yellow-400 via-orange-500 to-red-500",animation:"animate-bounce",icon:n.NcA},mega:{bg:"bg-gradient-to-r from-purple-600 via-pink-600 to-red-600",animation:"animate-bounce",icon:n.CvY},hot:{bg:"bg-gradient-to-r from-orange-500 via-red-500 to-pink-500",animation:"animate-bounce",icon:n.NcA},super:{bg:"bg-gradient-to-r from-green-500 via-blue-500 to-purple-600",animation:"animate-bounce",icon:n.RPl},exclusive:{bg:"bg-gradient-to-r from-indigo-600 via-purple-600 to-pink-600",animation:"animate-bounce",icon:n.CvY}},d=o[l]||o.default;return d.icon,(0,s.jsxs)("div",{className:"relative mt-2",children:[(0,s.jsx)("div",{className:(0,a.Z)("absolute inset-0 rounded-xl blur-sm op
1acity-75",d.bg,d.animation)}),(0,s.jsxs)("div",{className:(0,a.Z)("relative inline-flex items-center gap-2 px-2 py-1 rounded-xl text-white shadow-2xl border-2 border-white/30",d.bg,d.animation,i),children:[(0,s.jsx)("span",{className:"text-xs font-black uppercase tracking-wider",children:t}),(0,s.jsx)(r.Moc,{className:"absolute -top-1 -right-1 h-4 w-4 text-yellow-300 animate-spin"}),(0,s.jsx)(r.Moc,{className:"absolute -bottom-1 -left-1 h-3 w-3 text-yellow-300 animate-ping"})]})]})}function m(e){let{text:t="SALE"}=e;return(0,s.jsxs)("div",{className:"relative inline-block",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-red-600 rounded-full blur-sm opacity-75 animate-pulse"}),(0,s.jsxs)("div",{className:(0,a.Z)("relative inline-flex items-center gap-2 px-2 py-1 rounded-full bg-gradient-to-r from-red-500 to-red-600 text-white font-black uppercase border-2 border-red-300 transform hover:scale-105 transition-all duration-300"),children:[(0,s.jsx)(n.fxx,{className:"h-3 w-3"}),(0,s.jsx)("span",{className:"tracking-wider",children:t})]})]})}function p(e){let{text:t="NEW",className:l}=e;return(0,s.jsx)("div",{className:(0,a.Z)("absolute top-[-8px] left-[-8px] z-10 w-[50px]"),children:(0,s.jsx)(d.default,{src:"https://images.indianrobostore.com/Prod/utility/new1.png",alt:"new icon",className:"object-contain",width:50,height:50})})}function h(e){let{text:t="BESTSELLER",className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-2 py-1 rounded-full bg-gradient-to-r from-yellow-400 to-orange-500 text-white text-xs font-bold uppercase shadow-lg",l),children:[(0,s.jsx)(n.QJe,{className:"h-3 w-3 fill-current"}),(0,s.jsx)("span",{children:t})]})}function f(e){let{text:t="DIWALI OFFER",className:l}=e;return(0,s.jsx)("div",{className:(0,a.Z)("relative inline-block",l),children:(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-r from-amber-300 via-yellow-400 to-amber-300 blur-md opacity-75 rounded-full"}),(0,s.jsxs)("div",{className:"relative inline-flex items-center gap-0.5 px-2 py-0.5 rounded-full bg-gradient-to-r from-amber-400 via-yellow-500 to-amber-500 text-white text-[12px] font-bold uppercase shadow-md",children:[(0,s.jsx)(r.Moc,{className:"h-3 w-3 text-amber-100 animate-pulse"}),(0,s.jsx)("span",{children:t}),(0,s.jsx)(r.Moc,{className:"h-3 w-3 text-amber-100 animate-pulse"})]})]})})}function g(e){let{discount:t="25%",text:l="OFF",className:n}=e;return(0,s.jsx)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-3 py-1.5 rounded bg-orange-500 text-white text-xs font-bold uppercase shadow-lg",n),children:(0,s.jsxs)("span",{children:[t," ",l]})})}function b(e){let{text:t="LIMITED",className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-2 py-1 rounded bg-gradient-to-r from-purple-500 to-pink-600 text-white text-xs font-bold uppercase shadow-lg border border-white/30",l),children:[(0,s.jsx)(n.CvY,{className:"h-3 w-3"}),(0,s.jsx)("span",{children:t})]})}function v(e){let{text:t="TRENDING",className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("inline-flex items-center gap-1 px-2 py-1 rounded-full bg-gradient-to-r from-pink-500 to-purple-600 text-white text-xs font-bold uppercase shadow-lg ",l),children:[(0,s.jsx)(o.hrr,{className:"h-3 w-3"}),(0,s.jsx)("span",{children:t})]})}function y(e){let{text:t,className:l}=e;return(0,s.jsxs)("div",{className:(0,a.Z)("relative flex items-center h-[25px] rounded-full overflow-hidden shadow-lg",l),children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-orange-600 via-white to-green-600"}),(0,s.jsx)("div",{className:"absolute inset-0 bg-white/30"}),(0,s.jsx)("div",{className:"relative z-10 h-full rounded-full bg-white flex items-center justify-center w-fit",children:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"w-full h-[27px] text-blue-800 [animation:spin_6s_linear_infinite,chakra-float_2.5s_ease-in-out_infinite]",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}
1),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"}),[...Array(24)].map((e,t)=>{let l=360*t/24*Math.PI/180;return(0,s.jsx)("line",{x1:12+10*Math.cos(l),y1:12+10*Math.sin(l),x2:12+3*Math.cos(l),y2:12+3*Math.sin(l),stroke:"currentColor",strokeWidth:"1"},t)})]})}),(0,s.jsx)("span",{className:"relative z-10 pl-1 pr-3 text-[12px] font-extrabold tracking-wide text-blue-800",children:"OFFER"})]})}function j(e){if(!e||"string"!=typeof e)return null;let t=e.toLowerCase();return t.includes("diwali offer")?(0,s.jsx)(f,{text:"Diwali Offer"}):t.includes("pre-order")?(0,s.jsx)(c,{}):t.includes("discontinued")?(0,s.jsx)(u,{}):t.includes("new arrival")?(0,s.jsx)(p,{}):t.includes("best seller")?(0,s.jsx)(h,{}):t.includes("limited edition")?(0,s.jsx)(b,{}):t.includes("discounted")?(0,s.jsx)(g,{discount:"10%"}):t.includes("trending")?(0,s.jsx)(v,{}):t.includes("sales")?(0,s.jsx)(m,{}):t.includes("christmas offer")?(0,s.jsx)(x,{text:"Christmas Offer"}):t.includes("independence day offer")||t.includes("republic day offer")?(0,s.jsx)(y,{text:"OFFER"}):t.includes("offer")?(0,s.jsx)(x,{text:"Offer"}):void 0}},8766:function(e,t,l){l.d(t,{Ev:function(){return i},F0:function(){return r},c5:function(){return n}});let{createSlice:s}=l(727),a=s({name:"navSearch",initialState:{searchQuery:"",searchHistory:[]},reducers:{addSearchData:(e,t)=>{e.searchQuery=t.payload},addSearchHistory:(e,t)=>{var l;let s=(null!==(l=t.payload)&&void 0!==l?l:"").trim();if(!s)return;let a=e.searchHistory.filter(e=>e.toLowerCase()!==s.toLowerCase());e.searchHistory=[s,...a].slice(0,5)},clearSearchHistory:e=>{e.searchHistory=[]}}}),{addSearchData:n,addSearchHistory:r,clearSearchHistory:i}=a.actions;t.ZP=a.reducer}}]);
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.