PageSourceSearch

https://www.dhanalakshmijewellery.in/_next/static/chunks/pages/Cart-ecc640e9b54877f5.js

js dhanalakshmijewellery.in collected 2026-10-02 01:56:19 UTC 48,170 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[301],{16042:function(e,t,s){"use strict";var a,r,i=s(67294);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)({}).hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e}).apply(null,arguments)}t.Z=function(e){return i.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),a||(a=i.createElement("path",{stroke:"#9A4DFF",strokeLinecap:"round",strokeWidth:1.5,d:"M16.137 4.728c-1.546-1.545-2.318-2.318-3.321-2.605-1.003-.288-2.068-.042-4.197.45l-1.228.283c-1.792.413-2.688.62-3.302 1.233S3.27 5.6 2.856 7.391l-.284 1.228c-.491 2.13-.737 3.194-.45 4.197.288 1.003 1.061 1.775 2.606 3.32l1.83 1.83C9.248 20.657 10.592 22 12.262 22c1.671 0 3.015-1.344 5.704-4.033 2.69-2.69 4.034-4.034 4.034-5.705 0-1.342-.868-2.474-2.604-4.262"})),r||(r=i.createElement("path",{stroke:"#9A4DFF",strokeLinecap:"round",strokeWidth:1.5,d:"M8.61 10.879a2 2 0 1 0-2-2M11.543 18.5l1-1m5.98-5.98L15 15.043"})))}},13581:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Cart",function(){return s(66505)}])},66049:function(e,t,s){"use strict";var a=s(85893),r=s(67294),i=s(41664),n=s.n(i),o=s(60017);let l=e=>{let{href:t,children:s,...i}=e,{currentCurrency:l}=(0,r.useContext)(o.CurrencyContext);t||(t="#");let c=t;if("object"==typeof t&&null!==t&&t.query)c={...t,query:{...t.query}};else if("string"==typeof t){let d=new URL(t,window.location.href);c=d.toString()}return(0,a.jsx)(n(),{href:c,...i,children:s})};t.Z=l},73658:function(e,t,s){"use strict";var a=s(85893),r=s(67294),i=s(733),n=s.n(i),o=s(37351),l=s(25675),c=s.n(l);let d=()=>{let e=(0,r.useContext)(o.ThemeContext),[t,s]=(0,r.useState)("");return((0,r.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&s(e.splashLogo)},[e]),t)?(0,a.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,a.jsx)(c(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,a.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,a.jsx)(n(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=d},88776:function(e,t,s){"use strict";var a=s(85893);s(67294);var r=s(50657),i=s(33090),n=s(6514),o=s(93946),l=s(50594);let c=e=>{let{open:t,handleClose:s,title:c,content:d,actions:m,fullWidth:p=!0,maxWidth:u="sm"}=e;return(0,a.jsxs)(r.Z,{open:t,maxWidth:u,fullWidth:p,onClose:(e,t)=>{"backdropClick"!==t&&s()},children:[(0,a.jsx)(i.Z,{children:(0,a.jsxs)("div",{className:"flex justify-between gap-2",children:[(0,a.jsxs)("b",{className:"text-primary",children:["                ",c]}),(0,a.jsx)(o.Z,{onClick:s,color:"error","aria-label":"Close",size:"small",children:(0,a.jsx)(l.Z,{})})]})}),(0,a.jsx)(n.Z,{children:(0,a.jsx)("div",{children:d})})]})};t.Z=c},95884:function(e,t,s){"use strict";s.d(t,{k:function(){return r}});var a=s(67294);function r(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[t,s]=(0,a.useState)(e),r=(0,a.useCallback)(()=>{s(!0)},[]),i=(0,a.useCallback)(()=>{s(!1)},[]),n=(0,a.useCallback)(()=>{s(e=>!e)},[]),o=(0,a.useMemo)(()=>({value:t,onTrue:r,onFalse:i,onToggle:n,setValue:s}),[t,r,i,n,s]);return o}},4422:function(e,t,s){"use strict";var a=s(67294),r=s(82940),i=s(87066),n=s(37351);let o=()=>{let e="#";for(let t=0;t<6;t++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},l=()=>{let e=new Date,t="".concat(e.getFullYear()).concat((e.getMonth()+1).toString().padStart(2,"0")).concat(e.getDate().toString().padStart(2,"0")).concat(e.getHours().toString().padStart(2,"0")).concat(e.getMinutes().toString().padStart(2,"0")).concat(e.getSeconds().toString().padStart(2,"0"));return t+o()},c=e=>{let t=(0,r.b)(),s=(0,a.useContext)(n.ThemeContext),o=async()=>{if(1===s.siteStatus){let a={};try{let r=await i.Z.get("https://api.ipify.org?format=json"),n=await i.Z.get("https://ipapi.co/".concat(r.data.ip,"/json/"));a=n.data}catch(d){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let o=await i.Z.get("https://ipwhois.app/json/");a=o.data}catch(c){console.warn("Failed to fetch IP details from fallback service. Proceeding without IP data.")}}let m={ipDetails:JSON.stringify(a),reference:window.location.hostname,track:"track",page:window.location.href,method:"open",page_type:e,UID:"",scode:l()};try{await t.post("user/tracking",m)}catch(p){console.error("Error sending tracking data:",p)}}else console.error("Tracking not enabled due to site status.")};return o};t.Z=c},90614:function(e,t,s){"use strict";s.r(t),s.d(t,{Error404Order:function(){return o},NoDataFound:function(){return d},PageNotFound:function(){return l},ProductNotFound:function(){return c}});var a=s(85893),r=s(67294),i=s(85574);let n=()=>{let{errorImages:e,errorLoading:t}=(0,r.useContext)(i.UserContext),s=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-
1h-screen",children:(0,a.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("img",{src:s,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},o=()=>{let{errorImages:e,errorLoading:t}=(0,r.useContext)(i.UserContext),s=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("img",{src:s,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},l=()=>{let{errorImages:e,errorLoading:t}=(0,r.useContext)(i.UserContext),s=(null==e?void 0:e.pageNotFound)||"https://img.freepik.com/free-vector/page-found-concept-illustration_114360-1869.jpg?size=338&ext=jpg&ga=GA1.1.1413502914.1720051200&semt=sph";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("img",{src:s,alt:"Page Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},c=()=>{let{errorImages:e,errorLoading:t}=(0,r.useContext)(i.UserContext),s=(null==e?void 0:e.productNotFound)||"/images/404/404-error.jpg";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,a.jsx)("div",{className:"flex items-center p-2 justify-center min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("img",{src:s,alt:"Product Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},d=()=>{let{errorImages:e,errorLoading:t}=(0,r.useContext)(i.UserContext),s=(null==e?void 0:e.noDataFound)||"https://img.freepik.com/free-vector/flat-design-no-data-illustration_23-2150527142.jpg?size=626&ext=jpg&ga=GA1.1.946237680.1700816731&semt=ais";return t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,a.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,a.jsx)("img",{src:s,alt:"No Data Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})};t.default=n},66505:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSP:function(){return A}});var a=s(85893),r=s(67294),i=s(25675),n=s.n(i),o=s(66049),l=s(11163),c=s(60017),d=s(35271),m=s(85574),p=s(37351),u=s(14762),x=s(88776),h=s(95884),g=s(68015),j=s(82940),b=s(8193),v=s(89583),y=s(43495),f=s(43812),N=s(73658),_=s(52903),S=s(90614),w=s(4422),I=s(55566),C=s(55678),k=s(16042);let T=()=>{var e,t;let s=(0,j.b)(),{cart:i,TaxAmount:T,TotalAmount:A,TarangDiscountData:E,Totaldiscount:F,setLoading:L,setTotalDiscount:M,setPrevilegeCardData:D,previlageCardData:P,promoMessageData:R,promoStatusData:O,TotalQuantity:Z,fetchCart:H,removeFromCart:W,cartTotal:G,TotalPrice:B,loading:X,errorstate:J,previlegeCardStatus:z,specialPriceDiscount:Y}
1=(0,r.useContext)(d.CartContext),{formatCurrency:V,currentCurrency:U}=(0,r.useContext)(c.CurrencyContext),K=(0,r.useContext)(p.ThemeContext),{userDetails:q,userId:Q,shouldShowOnSite:$,websiteStatus:ee}=(0,r.useContext)(m.UserContext),et=(null==q?void 0:q.user_type)||0,es=1==sessionStorage.getItem("promoStatusCheck");sessionStorage.getItem("promocode");let{jboId:ea}=(0,g.useJobId)();(0,l.useRouter)();let er=(0,w.Z)("Cart Page"),[ei,en]=(0,r.useState)(0),[eo,el]=(0,r.useState)(sessionStorage.getItem("promocode")||""),[ec,ed]=(0,r.useState)(0),[em,ep]=(0,r.useState)(!1),[eu,ex]=(0,r.useState)({}),[eh,eg]=(0,r.useState)(null),[ej,eb]=(0,r.useState)(!1),ev=(0,h.k)(),[ey,ef]=(0,r.useState)({title:"",html:""}),eN=async()=>{try{let e=await s.post("product/promocodeList",{});(null==e?void 0:e.data)&&eg(e.data)}catch(t){}};(0,r.useEffect)(()=>{1===K.siteStatus&&(H(),er(),eN())},[]),(0,r.useEffect)(()=>{let e=0;for(let t of i)e+=t.actual_price;en(e)},[i]);let e_=e=>{W(e)},eS=e=>{el(e.target.value)},ew=async(e,t)=>{e.preventDefault();let a=t||eo,r=sessionStorage.getItem("prev_status_check");if(1==r){ex({type:"info",title:"Remove Privilege Card",subText:"Please remove the Privilege Card before applying a Promo Code.",onConfirm:eC,onClose:eC,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),ep(!0);return}M(null);try{let n=i.map(e=>e.product_id);await s.post("promocode/JpencilPromocodeVerify",{privilege_card_status:2,promo_code:a,product_id:n,user_id:Q,currency:U}).then(e=>{1==e.data.status&&sessionStorage.setItem("status",2),0==e.data.status&&C.Am.error(e.data.msg),sessionStorage.setItem("promoStatusCheck",e.data.status),sessionStorage.setItem("promocode",a),sessionStorage.setItem("promo_message",e.data.msg),H(),ed(e.data.total_price),sessionStorage.setItem("promo_final_price",e.data.total_price)}).catch(e=>{})}catch(o){M(null)}},eI=async()=>{let e=sessionStorage.getItem("promoStatusCheck");if(1==e){ex({type:"info",title:"Remove Promo Code",subText:"Please remove the Promo Code before applying a Privilege Card.",onConfirm:eC,onClose:eC,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),ep(!0);return}M(null);try{let t=i.map(e=>e.product_id),a={privilege_card_status:1,promo_code:sessionStorage.getItem("previlageCardvalue"),product_id:t,user_id:Q,currency:U};await s.post("promocode/JpencilPromocodeVerify",a).then(e=>{1==e.data.status?(sessionStorage.setItem("status",1),D(1)):(D(2),sessionStorage.setItem("prev_status_check",e.data.status),sessionStorage.setItem("prev_promo_message",e.data.msg)),sessionStorage.setItem("prev_status_check",e.data.status),sessionStorage.setItem("prev_promo_message",e.data.msg),H(),ed(e.data.total_price),sessionStorage.setItem("prev_final_price",e.data.total_price)}).catch(e=>{})}catch(r){M(null)}},eC=()=>{ep(!1)},ek=e=>{e.preventDefault(),ex({type:"info",title:"Preview Mode",subText:'Actions like "Remove Cart" are disabled during preview.',onConfirm:eC,onClose:eC,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),ep(!0)},eT=e=>{e.preventDefault(),ex({type:"info",title:"Preview Mode",subText:"Actions like Promo code Apply are disabled during preview.",onConfirm:eC,onClose:eC,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),ep(!0)},eA=e=>{ef({title:e.name,html:e.terms_and_condition||"<p>No terms and conditions available.</p>"}),ev.onTrue()},eE=e=>{e.preventDefault(),ex({type:"info",title:"Preview Image",subText:"Product details are disabled in this preview. However, you can view product details on the product listing page.",onConfirm:eC,onClose:eC,showConfirmButton:!1,showCancelButton:!1,autoClose:3}),ep(!0)};if(X&&1===K.siteStatus)return(0,a.jsx)(N.Z,{});let eF=0===K.siteStatus?_.O7:i;if(eF.reduce((e,t)=>e+(t.json&&t.json.weight?t.json.weight:0),0),J)return(0,a.jsx)(S.default,{});if(0===eF.length)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"xl:container mx-auto px-4 py-1 font-body flex justify-center",children:(0,a.jsx)(n(),{src:"https://img.freepik.com/premium-vector/shopping-cart-with-cross-mark-wireless-paymant-icon-shopping-bag-failure-paymant-sign-online-shopping-vector_662353-912.jpg",alt:"Empty Cart",className:"object-contain",width:626,height:417})}),(0,a.jsx)("div",{className:"text-center mt-4",children:(0,a.jsx)("p",{className:"text-lg text-gray-600",children:"Your cart is currently empty."})})]});let eL={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.6,ease:"easeInOut"}}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"xl:container px-4 py-4 flex justify-between",children:(0,a.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,a.jsx)(o.Z,{href:"/",className:"text-primary text-base",children:(0,a.jsx)("i",{className:"fas fa-home"})}),(0,a.jsxs)("div",{className:"flex gap-3 items-center mt-1",children:[(0,a.jsx)("span",{className:"text-sm text-gray-500",children:(0,a.jsx)("i",{className:"fas fa-chevron-right "})}),(0,a.jsx)("p",{className:"text-gray-500 font-medium uppercase",children:"Shopping Cart"})]})]})}),(0,a.jsx)("div",{className:"sm:hidden",children:(0,a.jsxs)("div",{className:"block xl:container lg:grid grid-cols-12 gap-6 items-start pb-16 pt-4",children:[(0,a.jsxs)("div",{className:"xl:col-span-9 lg:col-span-8 ",children:[(0,a.jsxs)("div",{className:"bg-gray-200 py-2 pl-12 pr-20 xl
1:pr-28 mb-4 hidden md:flex",children:[(0,a.jsx)("p",{className:"text-gray-600 text-center",children:"Product "}),(0,a.jsx)("p",{className:"text-gray-600 text-center ml-auto mr-16 xl:mr-24",children:"Quantity "})]}),(0,a.jsx)("div",{className:"space-y-4",children:eF.map(e=>{var t;return(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 p-4 shadow-sm",children:[(0,a.jsx)("div",{className:"w-1/3 flex-shrink-0",children:(0,a.jsx)(o.Z,{href:"".concat(e.url),onClick:0===K.siteStatus?eE:void 0,children:(0,a.jsx)(n(),{onLoad:e=>e.target.classList.remove("shimmer"),src:(0,f.setImageSrc)(e.json.Images,e.json["Product Name"],"s400"),alt:e.json["Product Name"],width:300,height:300,className:"w-full shimmer rounded-lg transition duration-500 transform group-hover:scale-110 cursor-pointer"})})}),(0,a.jsxs)("div",{className:"w-2/3",children:[(0,a.jsx)("h2",{className:"text-gray-800 mb-1 sm:text-sm md:text-md lg:text-lg xl:text-xl font-medium uppercase",children:e.json["Product Name"]}),(0,a.jsxs)("div",{className:"pt-1",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&0!=e.discount&&(0,a.jsx)(y.E.p,{variants:eL,className:"text-sm strike-red text-gray-500",children:V(e.selling_price)}),$&&(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-4 items-start sm:items-center text-lg mb-2",children:(0,a.jsx)("h3",{className:"font-bold text-md xl:text-xl text-gray-700 mb-2 ",children:1==e.special_price_status&&(1==et||0==et)?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(y.E.p,{variants:eL,children:[(0,a.jsxs)("span",{className:"text-green-700 text-md md:text-xl ",children:[V(e.special_amount)," "]}),(0,a.jsxs)("span",{className:"ml-2 strike-red text-red-500 text-sm md:text-lg",children:[V(e.actual_price)," "]})]})}):(0,a.jsx)(y.E.p,{variants:eL,className:"text-lg font-semibold text-primary",children:V(e.actual_price)})})})]}),(0,a.jsxs)("div",{className:"flex",children:[361==ea&&e.u_saved?(0,a.jsx)(y.E.p,{variants:eL,className:"text-md text-primary",children:(0,a.jsxs)("span",{className:"font-bold",children:["You Saved: ",V(e.u_saved)]})}):(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&0!=e.discount?(0,a.jsx)(y.E.p,{variants:eL,className:"text-md text-primary",children:(0,a.jsxs)("span",{className:"font-bold",children:["You Saved: ",V(e.discount)]})}):null,(null==e?void 0:null===(t=e.product_id1)||void 0===t?void 0:t.toString().startsWith("m"))&&(0,a.jsx)(I.default,{product:e,uiMode:"1",isCart:!0}),(0,a.jsx)("div",{className:"h-8 w-10 flex gap-4 items-center justify-center text-xs md:text-base rounded-md",children:(0,a.jsx)("div",{className:"text-gray-600 flex items-center justify-center hover:text-primary cursor-pointer",onClick:t=>0!==K.siteStatus?e_(e):ek(t),children:(0,a.jsx)("i",{className:"fas fa-trash"})})})]})]})]})]},e.product_id)})})]}),(0,a.jsxs)("div",{className:"xl:col-span-3 sticky top-[100px] lg:col-span-4 lg:border lg:border-gray-200 px-4 py-4 rounded mt-6 lg:mt-0",children:[(0,a.jsx)("h3",{className:"text-gray-800 text-lg mb-4 font-medium uppercase",children:"Order Summary"}),$&&(361==ea?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"space-y-1 text-gray-600 pb-3 border-b border-gray-200",children:[(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Total Amount"}),(0,a.jsx)("p",{children:0==K.siteStatus?V(385246):F?V(parseFloat(B)+parseFloat(E)):Y&&Y>0?V(parseFloat(B)+parseFloat(Y)):V(parseFloat(B))})]}),1!=sessionStorage.getItem("promoStatusCheck")&&1!=sessionStorage.getItem("prev_status_check")&&1===K.siteStatus&&Y&&Y>0?(0,a.jsxs)("div",{className:"flex justify-between font-medium my-2 bg-yellow-100 text-yellow-800 p-2 rounded-md border border-yellow-400",children:[(0,a.jsx)("p",{className:"font-bold",children:"Special Discount"}),(0,a.jsx)("p",{className:"font-bold",children:V(Y)})]}):null,(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Discount"}),0==K.siteStatus?V(0):V(E)]})]}),(0,a.jsxs)("div",{className:"flex justify-between my-3 text-gray-800 font-semibold uppercase",children:[(0,a.jsx)("h3",{children:"Grand Total"}),0===K.siteStatus?(0,a.jsx)("span",{children:V(401996)}):(0,a.jsx)("span",{children:V(B)})]})]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"space-y-1 text-gray-600 pb-3 border-b border-gray-200",children:[0!=T?(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Total Amount (Before Tax)"}),(0,a.jsx)("p",{children:0==K.siteStatus?V(385246):V(parseFloat(A))})]}):null,(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Discount"}),(0,a.jsx)("p",{children:V(F)})]}),0!=T?(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Tax"}),(0,a.jsx)("p",{children:0===K.siteStatus?V(16750):V(T)})]}):null]}),(0,a.jsxs)("div",{className:"flex justify-between my-3 text-gray-800 font-semibold uppercase",children:[(0,a.jsx)("h3",{children:"Grand Total"}),0===K.siteStatus?(0,a.jsx)("span",{children:V(401996)}):(0,a.jsx)("span",{children:V(B)})]})]})),$&&1==z&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("h3",{className:"text-sm font-medium mb-2",children:"Privilege Card"}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{type:"text",className:"pl-4 w-full border border-r-0 border-primary py-2 px-3 rounded-l-md focus:ring-primary focus:border-primary text-sm",placeholder:"Privilege Card",value:sessionStorage.getItem("previlageCardvalue")||"",readOnly:!0}),sessionStorage.getItem("previlageCardvalue")&&"1"==sessionStorage.getItem("prev_status_check")?(0,a.jsx)("button",{type:"submit",className:"bg-primary border border-primary text-white px-5 font-medium rounded-r-md transition text-sm w-full block text-center",onClick:()=>{sessionStorage.removeItem("prev_status_check"),sessionStorage.removeItem("prev_promo_message"),sessionStorage.removeItem("prev_final_price"),window.location.reload()},children:"Remove"}):(0,a.jsx)("button",{type:"submit",className:"bg-primary border border-primary text-white px-5 font-medium rounded-r-md transition text-sm w-full block text-center",onClick:eI,children:"Apply"})]})]}),$&&1==z&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)("p",{className:"text-sm",children:"* Apply your privilege card by clicking Apply and claim your privilege offer!"})}),$&&null!==sessionStorage.getItem("prev_status_check")&&void 0!==sessionStorage.getItem("prev_status_check")&&(0==sessionStorage.getItem("prev_status_check")?(0,a.jsxs)("div",{className:"text-white px-4 py-2 border-0 rounded relative mb-4 mt-4 bg-red-400",children:[(0,a.jsx)("span",{className:"text-xl inline-block mr-5 align-middle",children:(0,a.jsx)("i",{className:"fas fa-exclamation-circle"})}),(0,a.jsxs)("span",{className:"inline-block align-middle mr-8",children:[sessionStorage.getItem("prev_promo_message")," (",sessionStorage.getItem("previlageCardvalue"),")"]})]}):1==sessionStorage.getItem("prev_status_check")?(0,a.jsxs)("div",{className:"text-white px-4 py-2 border-0 rounded relative mb-4 mt-4 bg-green-400",children:[(0,a.jsx)("span",{className:"text-xl inline-block mr-5 align-middle",children:(0,a.jsx)("i",{className:"fas fa-check-circle"})}),(0,a.jsxs)("span",{className:"inline-block align-middle mr-8",children:[sessionStorage.getItem("prev_promo_message")," (",sessionStorage.getItem("previlageCardvalue"),")"]})]}):null),(0,a.jsx)("div",{className:"bg-white border border-gray-200 rounded-2xl p-5",children:1==sessionStorage.getItem("promoStatusCheck")?(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-2xl font-semibold text-gray-800 mb
1-5",children:"Coupons"}),(0,a.jsxs)("div",{className:"border border-gray-200 rounded-2xl p-5",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.Z,{className:"w-5 h-5 text-[#8255F4]"}),(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-800",children:"1 Coupon Applied"})]})}),(0,a.jsx)("button",{onClick:()=>{sessionStorage.removeItem("promocode"),sessionStorage.removeItem("promo_final_price"),sessionStorage.removeItem("discount"),sessionStorage.removeItem("promoStatusCheck"),sessionStorage.removeItem("promo_message"),window.location.reload()},className:"px-8 py-3 border border-red-300 text-red-400 rounded-lg font-medium hover:bg-red-50 transition",children:"Remove"})]}),(0,a.jsxs)("p",{className:"mt-2 text-green-600 font-semibold text-sm",children:[sessionStorage.getItem("promo_message"),(0,a.jsx)("span",{className:"text-purple-600",children:sessionStorage.getItem("promocode")&&" - ( ".concat(sessionStorage.getItem("promocode")," )")})]})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between",onClick:()=>eb(e=>!e),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.Z,{className:"w-5 h-5 text-[#8255F4]"}),(0,a.jsx)("h3",{className:"font-semibold text-gray-800",children:"Apply Offer"})]}),(0,a.jsx)("div",{className:"w-6 h-6 flex items-center justify-center shrink-0",children:(0,a.jsx)(n(),{src:"/icons/Arrow-Right.svg",alt:"arrow",width:18,height:18,className:"transition-transform duration-200 ".concat(ej?"rotate-90":"")})})]}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2 mb-4",children:"Choose one offer to unlock your best savings."}),ej&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{type:"text",placeholder:"Enter Coupon Code",value:eo,onChange:eS,className:"flex-1 border border-r-0 border-[#8255F4] rounded-l-lg px-3 py-2 text-sm focus:outline-none"}),(0,a.jsx)("button",{className:"px-4 py-2 bg-[#8255F4] text-white text-sm font-semibold rounded-r-lg ".concat(eo?"":"opacity-50 cursor-not-allowed"),disabled:!eo,onClick:e=>0!==K.siteStatus?ew(e):eT(e),children:"Apply"})]}),$&&3!==ee&&0==sessionStorage.getItem("promoStatusCheck")&&(0,a.jsx)("div",{className:"mt-4 p-3 rounded-lg bg-red-50 border border-red-200",children:(0,a.jsx)("p",{className:"text-red-600 text-sm",children:sessionStorage.getItem("promo_message")})}),(0,a.jsxs)("div",{className:"mt-5 border-t pt-4",children:[(0,a.jsx)("h4",{className:"font-semibold text-sm text-gray-800 mb-3",children:"How It Works"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm text-gray-500 list-disc pl-5",children:[(0,a.jsx)("li",{children:"Enter or paste your coupon code."}),(0,a.jsx)("li",{children:"Click Apply to see your discount."}),(0,a.jsx)("li",{children:"Only one coupon can be applied at a time."})]})]}),(null==eh?void 0:eh.status)===1&&(null==eh?void 0:null===(e=eh.promocodes)||void 0===e?void 0:e.length)>0&&(0,a.jsxs)("div",{className:"mt-6 border-t pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)(k.Z,{className:"w-4 h-4 text-[#8255F4]"}),(0,a.jsxs)("h4",{className:"font-semibold text-gray-800",children:["Available Offers (",eh.promocodes.length,")"]})]}),(0,a.jsx)("div",{className:"max-h-[450px] overflow-y-auto pr-1",children:eh.promocodes.map(e=>(0,a.jsxs)("div",{className:"border border-gray-200 rounded-xl p-4 mb-3 flex items-center justify-between hover:border-[#9333ea] transition",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("h5",{className:"font-semibold text-gray-800",children:e.name}),e.terms_and_condition&&(0,a.jsx)("button",{type:"button",className:"text-gray-400 hover:text-[#8255F4] transition shrink-0",onClick:t=>{t.stopPropagation(),eA(e)},children:(0,a.jsx)(b.ocf,{className:"w-4 h-4"})})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:e.description||"Apply this coupon to get your discount"})]}),(0,a.jsx)("button",{type:"button",className:"text-[#9333ea] font-semibold hover:text-[#7e22ce]",onClick:t=>{el(e.name),ew(t,e.name)},children:"Apply"})]},e.promo_id))})]})]})," "]})}),(0,a.jsx)(o.Z,{href:"checkout/Checkout",className:"bg-primary border border-primary text-white px-4 py-3 font-medium rounded-md uppercase hover:bg-transparent hover:text-primary transition text-sm w-full block text-center",children:"Process to checkout"})]})]})}),(0,a.jsx)("div",{className:"hidden sm:block",children:(0,a.jsxs)("div",{className:"block xl:container px-4 lg:grid grid-cols-12 gap-6 items-start pb-16 pt-4",children:[(0,a.jsxs)("div",{className:"xl:col-span-8 lg:col-span-8 bg-white p-6 rounded-md border border-gray-200",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-6 border-b pb-3",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("div",{className:"mr-3 text-xl text-primary",children:(0,a.jsx)(v.FeP,{})}),(0,a.jsx)("h1",{className:"text-xl font-semibold",children:"Shopping Cart"})]})}),(0,a.jsx)(y.E.div,{className:"space-y-6",variants:{hidden:{opacity:0}
1,visible:{opacity:1,transition:{when:"beforeChildren",staggerChildren:.1}}},initial:"hidden",animate:"visible",children:eF.map((e,t)=>{var s;return(0,a.jsxs)("div",{className:"flex items-center justify-between border-b pb-4",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(o.Z,{href:"".concat(e.url),onClick:0===K.siteStatus?eE:void 0,children:(0,a.jsx)(y.E.img,{src:(0,f.setImageSrc)(e.json.Images,e.json["Product Name"],"s400"),alt:e.json["Product Name"],className:"cursor-pointer w-36 h-36 object-cover rounded-md mr-4",variants:eL})}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)(y.E.p,{className:"text-lg text-primary font-semibold",variants:eL,children:e.json["Product Name"]}),(0,a.jsxs)("div",{className:"flex items-baseline gap-2",children:[(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&0!=e.discount&&(0,a.jsx)(y.E.p,{variants:eL,className:"text-sm strike-red text-gray-500",children:V(e.selling_price)}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-2 sm:gap-4 items-start sm:items-center text-lg mb-2",children:$&&(0,a.jsx)("h3",{className:"font-bold text-md xl:text-xl text-gray-700 mb-2",children:1==e.special_price_status&&(1==et||0==et)?(0,a.jsxs)(y.E.p,{variants:eL,children:[(0,a.jsx)("span",{className:"text-green-700 text-md md:text-xl",children:V(e.special_amount)}),(0,a.jsx)("span",{className:"ml-2 strike-red text-red-500 text-sm md:text-lg",children:V(e.actual_price)})]}):(0,a.jsx)(y.E.p,{variants:eL,className:"text-lg font-semibold text-primary",children:V(e.actual_price)})})})]}),$&&(361===ea&&e.u_saved?(0,a.jsx)(y.E.p,{variants:eL,className:"text-md text-primary",children:(0,a.jsxs)("span",{className:"font-bold",children:["You Saved: ",V(e.u_saved)]})}):("1"===sessionStorage.getItem("promoStatusCheck")||"1"===sessionStorage.getItem("prev_status_check"))&&0!==e.discount?(0,a.jsx)(y.E.p,{variants:eL,className:"text-md text-primary",children:(0,a.jsxs)("span",{className:"font-bold",children:["You Saved: ",V(e.discount)]})}):null),(null==e?void 0:null===(s=e.product_id1)||void 0===s?void 0:s.toString().startsWith("m"))&&(0,a.jsx)(I.default,{product:e,uiMode:"1",isCart:!0})]})]}),(0,a.jsx)("div",{className:"flex justify-end items-end mt-8",children:(0,a.jsxs)(y.E.button,{className:"bg-transparent hover:bg-red-500 text-red-500 hover:text-white font-semibold py-2 px-4 border border-red-600 hover:border-transparent rounded flex items-center justify-center gap-2",onClick:t=>0!==K.siteStatus?e_(e):ek(t),variants:eL,children:["Remove",(0,a.jsx)("i",{className:"fas fa-trash"})]})})]},e.product_id)})})]}),(0,a.jsxs)("div",{className:"xl:col-span-4 lg:col-span-4 sticky top-[100px] border border-gray-200 px-4 py-4 rounded mt-6 lg:mt-0",children:[(0,a.jsx)("h3",{className:"text-gray-800 text-lg mb-4 font-medium uppercase",children:"Order Summary"}),$&&(361==ea?(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"space-y-1 text-gray-600 pb-3 border-b border-gray-200",children:[(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Total Amount"}),(0,a.jsx)("p",{children:0==K.siteStatus?V(385246):F?V(parseFloat(B)+parseFloat(E)):Y&&Y>0?V(parseFloat(B)+parseFloat(Y)):V(parseFloat(B))})]}),1!=sessionStorage.getItem("promoStatusCheck")&&1!=sessionStorage.getItem("prev_status_check")&&1===K.siteStatus&&Y&&Y>0?(0,a.jsxs)("div",{className:"flex justify-between font-medium my-2 bg-yellow-100 text-yellow-800 p-2 rounded-md border border-yellow-400",children:[(0,a.jsx)("p",{className:"font-bold",children:"Special Discount"}),(0,a.jsx)("p",{className:"font-bold",children:V(Y)})]}):null,(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Discount"}),0==K.siteStatus?V(0):V(E)]})]}),(0,a.jsxs)("div",{className:"flex justify-between my-3 text-gray-800 font-semibold uppercase",children:[(0,a.jsx)("h3",{children:"Grand Total"}),0===K.siteStatus?(0,a.jsx)("span",{children:V(401996)}):(0,a.jsx)("span",{children:V(B)})]})]}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"space-y-1 text-gray-600 pb-3 border-b border-gray-200",children:[0!=T?(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Total Amount (Before Tax)"}),(0,a.jsx)("p",{children:0==K.siteStatus?V(385246):V(parseFloat(A))})]}):null,(1==sessionStorage.getItem("promoStatusCheck")||1==sessionStorage.getItem("prev_status_check"))&&1===K.siteStatus&&(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Discount"}),(0,a.jsx)("p",{children:V(F)})]}),0!=T?(0,a.jsxs)("div",{className:"flex justify-between font-medium",children:[(0,a.jsx)("p",{children:"Tax"}),(0,a.jsx)("p",{children:0===K.siteStatus?V(16750):V(T)})]}):null]}),(0,a.jsxs)("div",{className:"flex justify-between my-3 text-gray-800 font-semibold uppercase",children:[(0,a.jsx)("h3",{children:"Grand Total"}),0===K.siteStatus?(0,a.jsx)("span",{children:V(401996)}):(0,a.jsx)("span",{children:V(B)})]})]})),$&&1==z&&(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsx)("h2",{className:"text-primary font-medium mb-2 text-center",children:"Privilege Card"}),(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{type:"text",className:"pl-4 w-full border border-r-0 border-primary py-2 px-3 rounded-l-md focus:ring-primary focus:border-primary text-sm",placeholder:"Privilege Card",value:sessionStorage.getItem("previlageCardvalue")||"",readOnly:!0}),sessionStorage.getItem("previlageCardvalue")&&"1"==sessionStorage.getItem("prev_status_check")?(0,a.jsx)("button",{type:"submit",className:"bg-primary border border-primary text-white px-5 font-medium rounded-r-md transition text-sm w-full block text-center",onClick:()=>{sessionStorage.removeItem("prev_status_check"),sessionStorage.removeItem("prev_promo_message"),sessionStorage.removeItem("prev_final_price"),window.location.reload()},children:"Remove"}):(0,a.jsx)("button",{type:"submit",className:"bg-primary border border-primary text-white px-5 font-medium rounded-r-md transition text-sm w-full block text-center",onClick:eI,children:"Apply"})]})]}),$&&1==z&&(0,a.jsx)("div",{className:"mb-4",children:(0,a.jsx)("p",{className:"text-sm",children:"* Apply your privilege card by clicking Apply and claim your privilege offer!"})}),$&&null!==sessionStorage.getItem("prev_status_check")&&void 0!==sessionStorage.getItem("prev_status_check")&&(0==sessionStorage.getItem("prev_status_check")?(0,a.jsxs)("div",{className:"text-white px-4 py-2 border-0 rounded relative mb-4 mt-4 bg-red-400",children:[(0,a.jsx)("span",{className:"text-xl inline-block mr-5 align-middle",children:(0,a.jsx)("i",{className:"fas fa-exclamation-circle"})}),(0,a.jsxs)("span",{className:"inline-block align-middle mr-8",children:[sessionStorage.getItem("prev_promo_message")," (",sessionStorage.getItem("previlageCardvalue"),")"]})]}):1==sessionStorage.getItem("prev_status_check")?(0,a.jsxs)("div",{className:"text-white px-4 py-2 border-0 rounded relative mb-4 mt-4 bg-green-400",children:[(0,a.jsx)("span",{className:"text-xl inline-block mr-5 align-middle",children:(0,a.jsx)("i",{className:"fas fa-check-circle"})}),(0,a.jsxs)("span",{className:"inline-block align-middle mr-8",children:[sessionStorage.getItem("prev_promo_message")," (",sessionStorage.getItem("previlageCardvalue"),")"]})]}):null),(0,a.jsx)("div",{className:"mb-3",children:es?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-800 mb
1-4",children:"Coupons"}),(0,a.jsxs)("div",{className:"border border-gray-200 rounded-2xl p-4",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.Z,{className:"w-5 h-5 text-[#9333ea]"}),(0,a.jsx)("h4",{className:"text-lg font-semibold text-gray-800",children:"1 Coupon Applied"})]})}),(0,a.jsx)("button",{onClick:()=>{sessionStorage.removeItem("promocode"),sessionStorage.removeItem("promo_final_price"),sessionStorage.removeItem("discount"),sessionStorage.removeItem("promoStatusCheck"),sessionStorage.removeItem("promo_message"),window.location.reload()},className:"px-6 py-2 border border-red-300 text-red-400 rounded-lg hover:bg-red-50 transition",children:"Remove"})]}),(0,a.jsxs)("p",{className:"mt-2 text-green-600 font-semibold text-sm",children:[sessionStorage.getItem("promo_message"),(0,a.jsx)("span",{className:"text-purple-600",children:sessionStorage.getItem("promocode")&&" - ( ".concat(sessionStorage.getItem("promocode")," )")})]})]})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"border border-gray-200 rounded-2xl p-5",children:[(0,a.jsxs)("button",{type:"button",className:"w-full flex items-center justify-between",onClick:()=>eb(e=>!e),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(k.Z,{className:"w-5 h-5 text-[#9333ea]"}),(0,a.jsx)("h3",{className:"font-semibold text-gray-800",children:"Apply Offer"})]}),(0,a.jsx)("div",{className:"w-6 h-6 flex items-center justify-center shrink-0",children:(0,a.jsx)(n(),{src:"/icons/Arrow-Right.svg",alt:"arrow",width:25,height:24,className:"transition-transform duration-200 ".concat(ej?"rotate-90":"")})})]}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-2 mb-1",children:"Choose one offer to unlock your best savings."}),ej&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{type:"text",placeholder:"Enter Coupon Code",value:eo,onChange:eS,className:"flex-1 border border-r-0 border-purple-500 rounded-l-lg px-3 py-2 text-sm focus:outline-none"}),(0,a.jsx)("button",{className:"px-4 py-2 bg-purple-600 text-white text-sm font-semibold rounded-r-lg ".concat(eo?"":"opacity-50 cursor-not-allowed"),disabled:!eo,onClick:e=>0!==K.siteStatus?ew(e):eT(e),children:"Apply"})]}),$&&3!==ee&&0==sessionStorage.getItem("promoStatusCheck")&&(0,a.jsx)("div",{className:"mt-4 rounded-xl border border-red-200 bg-red-50 p-3",children:(0,a.jsx)("p",{className:"text-sm text-red-600",children:sessionStorage.getItem("promo_message")})}),(0,a.jsxs)("div",{className:"mt-5 border-t pt-4",children:[(0,a.jsx)("h4",{className:"font-semibold text-sm text-gray-800 mb-3",children:"How It Works"}),(0,a.jsxs)("ul",{className:"space-y-2 text-sm text-gray-500 list-disc pl-5",children:[(0,a.jsx)("li",{children:"Enter or paste your coupon code."}),(0,a.jsx)("li",{children:"Click Apply to see your discount."}),(0,a.jsx)("li",{children:"Only one coupon can be applied at a time."})]})]}),(null==eh?void 0:eh.status)===1&&(null==eh?void 0:null===(t=eh.promocodes)||void 0===t?void 0:t.length)>0&&(0,a.jsxs)("div",{className:"mt-5 border-t pt-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)(k.Z,{className:"w-4 h-4 text-[#9333ea]"}),(0,a.jsxs)("h4",{className:"font-semibold text-gray-800",children:["Available Offers (",eh.promocodes.length,")"]})]}),(0,a.jsx)("div",{className:"max-h-[400px] overflow-y-auto space-y-3",children:eh.promocodes.map(e=>(0,a.jsxs)("div",{className:"border border-gray-200 rounded-xl p-4 flex items-center justify-between hover:border-purple-500 transition",children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)("h5",{className:"font-semibold text-gray-800",children:e.name}),e.terms_and_condition&&(0,a.jsx)("button",{type:"button",className:"text-gray-400 hover:text-purple-600 transition shrink-0",onClick:t=>{t.stopPropagation(),eA(e)},children:(0,a.jsx)(b.ocf,{className:"w-4 h-4"})})]}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-1",children:e.description||"Apply this coupon to get your discount"})]}),(0,a.jsx)("button",{type:"button",className:"text-purple-600 font-semibold",onClick:t=>ew(t,e.name),children:"Apply"})]},e.promo_id))})]})]})," "]})})}),(0,a.jsx)(o.Z,{href:0===K.siteStatus?"/checkout/Checkout?pid="+K.token:"/checkout/Checkout",children:(0,a.jsx)("span",{className:"bg-primary border border-primary text-white px-4 py-3 font-medium rounded-md uppercase hover:bg-transparent hover:text-primary transition text-sm w-full block text-center",children:"Proceed to checkout"})})]})]})}),(0,a.jsx)(u.Z,{isOpen:em,type:eu.type,title:eu.title,subText:eu.subText,onConfirm:eu.onConfirm,onClose:eu.onClose,showConfirmButton:eu.showConfirmButton,showCancelButton:eu.showCancelButton,autoClose:eu.autoClose}),(0,a.jsx)(x.Z,{open:ev.value,handleClose:ev.onFalse,title:"Terms and Conditions - ".concat(ey.title),maxWidth:"lg",content:(0,a.jsx)("div",{className:"prose prose-sm max-w-none text-gray-600",dangerouslySetInnerHTML:{__html:ey.html}}
1)})]})};var A=!0;t.default=T},52903:function(e){"use strict";e.exports=JSON.parse('{"O7":[{"product_id":"c31p47857","menu_id":31,"actual_price":198473,"selling_price":192692,"url":"/22-KT-GOLD-RATNAMALA-(-HARAM-)/c31p47857/buy","web_userId":6113,"pure_rate":6500,"json":{"product_id":47857,"weight":26.63,"price":198473,"Tax":5780.76,"Tag Label":"JP00047857","instock_despatch_days":1,"makeorder_despatch_days":15,"Availability":0,"Product Name":"22 KT GOLD RATNAMALA ( HARAM )","Images":"aHR0cHM6Ly9tZWRpYS5kYXJqZXdlbGxlcnkuaW4vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE3MDg2NjQzODQyNDkuanBn","Subitem Name":"Subitem Name","Tag Date":"01-03-2024","Category name":"GOLD ORNAMENT GST","url":"/gold-jewellery/womens/haram"},"frame":[],"jbo_own_products_id":47857,"purchase_price":192692,"touch":100.25,"weight":26.63,"margin":5780.76,"pure_weight":27,"margin_percentage":0,"status":1,"discount":0,"Tax":5781,"purchase_price_with_tax":198473},{"product_id":"c1065p20560","menu_id":1065,"actual_price":9640.32,"selling_price":5093,"url":"/TANJORE-PAINTING-AANDAL/c1065p20560/buy","web_userId":6115,"pure_rate":0,"json":{"product_id":20560,"weight":274.656,"price":9640.32,"Tax":4547.32,"Tag Label":"JP00020560","instock_despatch_days":3,"makeorder_despatch_days":30,"Availability":0,"Product Name":"TANJORE PAINTING AANDAL","Images":"aHR0cHM6Ly9zdGF0aWMudGFyYW5nYXJ0cy5jb20vcHJvZHVjdF9pbWFnZXMvczEyMDBfX3A0MjQ1XzEuanBn","Subitem Name":"Subitem Name","Tag Date":"29-01-2024","Category name":"*TANJORE PAINTING","url":"/paintings_of_india/tanjore_painting/aandal"},"frame":[]},{"product_id":"c62p48207","menu_id":62,"actual_price":55580.9,"selling_price":53962,"url":"/22-KT-GOLD-HEARTEN-MIN-CHAIN/c62p48207/buy","web_userId":6108,"pure_rate":6500,"json":{"product_id":48207,"weight":8.03,"price":55580.9,"Tax":1618.86,"Tag Label":"JP00048207","instock_despatch_days":1,"makeorder_despatch_days":12,"Availability":1,"Product Name":"22 KT GOLD HEARTEN MIN CHAIN","Images":"aHR0cHM6Ly9tZWRpYS5kYXJqZXdlbGxlcnkuaW4vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE2ODE0NjY2OTgxOTkuanBn","Subitem Name":"Subitem Name","Tag Date":"07-03-2024","Category name":"GOLD ORNAMENT GST","url":"/gold-jewellery/unisex/chains"},"frame":[],"jbo_own_products_id":48207,"purchase_price":53962,"touch":95,"weight":8.03,"margin":1618.86,"pure_weight":8,"margin_percentage":0,"status":1,"discount":0,"Tax":1619,"purchase_price_with_tax":55581},{"product_id":"c1576p1089","menu_id":1576,"actual_price":7079.52,"selling_price":6321,"url":"/BRASS-LAKSHMI-IDOL-WITH-ANTIQUE-FINISH/c1576p1089/buy","web_userId":6115,"pure_rate":0,"json":{"product_id":1089,"weight":2650,"price":7079.52,"Tax":758.52,"Tag Label":"JP00001089","instock_despatch_days":3,"makeorder_despatch_days":30,"Availability":1,"Product Name":"BRASS LAKSHMI IDOL WITH ANTIQUE FINISH","Images":"aHR0cHM6Ly9zdGF0aWMudGFyYW5nYXJ0cy5jb20vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzMzNjVfMjBfMS5qcGc=","Subitem Name":"Subitem Name","Tag Date":"23-12-2023","Category name":"*BRASS SCULPTURES","url":"/sculptures_of_india/brass_sculptures/diya"},"frame":[]},{"product_id":"c3p50780","menu_id":3,"actual_price":3203.3,"selling_price":3110,"url":"/22-KT-GOLD-0.5-GM-COIN/c3p50780/buy","web_userId":6108,"pure_rate":6500,"json":{"product_id":50780,"weight":0.5,"price":3203.3,"Tax":93.3,"Tag Label":"JP00050780","instock_despatch_days":1,"makeorder_despatch_days":3,"Availability":1,"Product Name":"22 KT GOLD 0.5 GM COIN","Images":"aHR0cHM6Ly9tZWRpYS5kYXJqZXdlbGxlcnkuaW4vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE2OTUxMjQ4NjkzMzIuanBn","Subitem Name":"Subitem Name","Tag Date":"08-03-2024","Category name":"GOLD ORNAMENT GST","url":"/coin/gold-coins/500-ml-coins"},"frame":[],"jbo_own_products_id":50780,"purchase_price":0,"touch":93.45,"weight":0.5,"margin":0,"pure_weight":0,"margin_percentage":0,"status":1,"discount":0,"Tax":0,"purchase_price_with_tax":0},{"product_id":"c1808p54250","menu_id":1808,"actual_price":2002.56,"selling_price":1788,"url":"/CHERIYAL-INDIAN-FOLK-ART-TRADITIONAL-PAINTING-FOR-/c1808p54250/buy","web_userId":6115,"pure_rate":0,"json":{"product_id":54250,"weight":500,"price":2002.56,"Tax":214.56,"Tag Label":"JP00054250","instock_despatch_days":3,"makeorder_despatch_days":30,"Availability":1,"Product Name":"CHERIYAL INDIAN FOLK ART TRADITIONAL PAINTING FOR ","Images":"aHR0cHM6Ly9zdGF0aWMudGFyYW5nYXJ0cy5jb20vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzMxNDBfMjJfMS5qcGc=","Subitem Name":"Subitem Name","Tag Date":"08-03-2024","Category name":"*CANVAS PAINTING","url":"/paintings_of_india/canvas_painting/cheriyal_painting"},"frame":[]},{"product_id":"c266p51582","menu_id":266,"actual_price":2266,"selling_price":2200,"url":"/SILVER-PLAIN-ANKLET-(-GOLUSU-)/c266p51582/buy","web_userId":6108,"pure_rate":4500,"json":{"product_id":51582,"weight":24.3,"price":2266,"Tax":66,"Tag Label":"JP00051582","instock_despatch_days":1,"makeorder_despatch_days":20,"Availability":1,"Product Name":"SILVER PLAIN ANKLET ( GOLUSU )","Images":"aHR0cHM6Ly9tZWRpYS5kYXJqZXdlbGxlcnkuaW4vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE3MDkyOTI2MTE3NTEuanBn","Subitem Name":"Subitem Name","Tag Date":"08-03-2024","Category name":"SILVER ORNAMENT GST","url":"/traditional_silver_handmade_jewellery_&_silver_articles/silver_kids_jewellery/kids_anklets"},"frame":[],"jbo_own_products_id":51582,"purchase_price":2200,"touch":84,"weight":24.3,"margin":66,"pure_weight":20,"margin_percentage":0,"status":1,"discount":0,"Tax":66,"purchase_price_with_tax":2266},{"product_id":"c981p66976","menu_id":981,"actual_price":1559.42,"selling_price":1514,"url":"/92.5-STERLING-SILVER-EVIL-EYE-BRACELET/c981p66976/buy","web_userId":6115,"pure_rate":0,"json":{"product_id":66976,"weight":5.8,"price":1559.42,"Tax":45.42,"Tag Label":"JP00066976","instock_despatch_days":3,"makeorder_despatch_days":30,"Availability":1,"Product Name":"92.5 STERLING SILVER EVIL EYE BRACELET","Images":"aHR0cHM6Ly9zdGF0aWMudGFyYW5nYXJ0cy5jb20vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE3MDY3OTYxODUzMTkuanBn","Subitem Name":"Subitem Name","Tag Date":"09-03-2024","Category name":"*SILVER","url":"/silver_jewellery/bangles_and_bracelets/bracelets"},"frame":[]},{"product_id":"c48p77732","menu_id":48,"actual_price":105084,"selling_price":102023,"url":"/22-KT-GOLD-NECKLACE-SET/c48p77732/buy","web_userId":6108,"pure_rate":6500,"json":{"product_id":77732,"weight":14.41,"price":105084,"Tax":3060.69,"Tag Label":"JP00077732","instock_despatch_days":1,"makeorder_despatch_days":15,"Availability":1,"Product Name":"22 KT GOLD NECKLACE SET","Images":"aHR0cHM6Ly9tZWRpYS5kYXJqZXdlbGxlcnkuaW4vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE3MDk4MTYzMDM2MzQuanBn","Subitem Name":"Subitem Name","Tag Date":"10-03-2024","Category name":"GOLD ORNAMENT GST","url":"/gold-jewellery/womens/necklace"},"frame":[],"jbo_own_products_id":77732,"purchase_price":102023,"touch":96.39,"weight":14.41,"margin":3060.
169,"pure_weight":14,"margin_percentage":0,"status":1,"discount":0,"Tax":3061,"purchase_price_with_tax":105084},{"product_id":"c1950p67624","menu_id":1950,"actual_price":360.5,"selling_price":350,"url":"/92.5-OXIDIZED-SILVER-BALI-EARRINGS/c1950p67624/buy","web_userId":6115,"pure_rate":0,"json":{"product_id":67624,"weight":1.3,"price":360.5,"Tax":10.5,"Tag Label":"JP00067624","instock_despatch_days":3,"makeorder_despatch_days":30,"Availability":1,"Product Name":"92.5 OXIDIZED SILVER BALI EARRINGS","Images":"aHR0cHM6Ly9zdGF0aWMudGFyYW5nYXJ0cy5jb20vcHJvZHVjdF9pbWFnZXMvczEyMDBfXzE3MDgzMjE2NDA5NjAuanBn","Subitem Name":"Subitem Name","Tag Date":"09-03-2024","Category name":"*SILVER","url":"/handcrafted_accessories/silver_jewellery/earrings"},"frame":[]}]}')}},function(e){e.O(0,[4617,5445,7066,3495,5675,1664,733,9395,7681,6664,4300,5685,17,2940,5271,5566,9774,2888,179],function(){return e(e.s=13581)}),_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.