PageSourceSearch

https://www.yashojewellers.com/_next/static/chunks/pages/profile/GoldPlans-bdffdfbd0f4b4d56.js

js yashojewellers.com collected 2026-10-02 01:53:39 UTC 22,199 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4809],{39390:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/GoldPlans",function(){return t(34939)}])},8946:function(e,s){"use strict";s.Z={src:"/_next/static/media/profile.3f0160b4.jpeg",height:600,width:600,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAgACAMBIgACEQEDEQH/xAAoAAEBAAAAAAAAAAAAAAAAAAAABwEBAQAAAAAAAAAAAAAAAAAAAQL/2gAMAwEAAhADEAAAAKUJf//EAB4QAAAEBwAAAAAAAAAAAAAAAAACEhMEERUkMjOx/9oACAEBAAE/AFx1RS1Zs5TLs6P/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AH//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AH//2Q==",blurWidth:8,blurHeight:8}},15268:function(e,s,t){"use strict";var a=t(87066),l=t(43812);let i=l.BUILDER_URL,r=e=>{let{job_id:s,endpoint:t,payload:r,responseData:n,errorMsg:c}=e,o=JSON.stringify(r),d=JSON.stringify(c),m={responseData:JSON.stringify({job_id:s,endpoint:t,payLoad:o,responseData:n,error:d})};(0,l.isDevelopment)()||a.Z.post("".concat(i,"/error-log"),m).then(e=>{200===e.status&&console.log("Success response",e.data)}).catch(e=>{})};s.Z=r},73658:function(e,s,t){"use strict";var a=t(85893),l=t(67294),i=t(733),r=t.n(i),n=t(37351),c=t(25675),o=t.n(c);let d=()=>{let e=(0,l.useContext)(n.ThemeContext),[s,t]=(0,l.useState)("");return((0,l.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&t(e.splashLogo)},[e]),s)?(0,a.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,a.jsx)(o(),{width:144,height:144,src:s,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)(r(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};s.Z=d},66506:function(e,s,t){"use strict";var a=t(85893),l=t(67294),i=t(8193),r=t(51526),n=t(43495);let c=e=>{let{isOpen:s,onClose:t,onConfirm:c}=e,o=(0,l.useRef)();return(0,l.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&t()};return s?document.addEventListener("mousedown",e):document.removeEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[s,t]),(0,a.jsx)(r.M,{children:s&&(0,a.jsx)(n.E.div,{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,a.jsx)(n.E.div,{className:"bg-white rounded-lg shadow-lg p-8 w-full max-w-lg border-t-4 border-primary md:max-w-md",initial:{y:50,opacity:0},animate:{y:0,opacity:1},exit:{y:50,opacity:0},transition:{type:"tween",ease:"easeInOut",duration:.4},ref:o,children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)(i.sQg,{className:"text-red-500 text-6xl mb-4"}),(0,a.jsx)("h2",{className:"text-2xl font-semibold mb-4",children:"Are you sure?"}),(0,a.jsx)("p",{className:"text-gray-600 mb-6 text-center",children:"Do you want to logout?"}),(0,a.jsxs)("div",{className:"flex flex-wrap justify-center space-x-4 space-y-2 md:space-y-0",children:[(0,a.jsx)("button",{onClick:c,className:"bg-blue-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-blue-600 transition-all duration-300 transform hover:scale-105",children:"Yes, logout!"}),(0,a.jsx)("button",{onClick:t,className:"bg-red-500 text-white px-6 py-2 rounded-full shadow-md hover:bg-red-600 transition-all duration-300 transform hover:scale-105",children:"Cancel"})]})]})})})})};s.Z=c},88776:function(e,s,t){"use strict";var a=t(85893);t(67294);var l=t(50657),i=t(33090),r=t(6514),n=t(93946),c=t(50594);let o=e=>{let{open:s,handleClose:t,title:o,content:d,actions:m,fullWidth:h=!0,maxWidth:x="sm"}=e;return(0,a.jsxs)(l.Z,{open:s,maxWidth:x,fullWidth:h,onClose:(e,s)=>{"backdropClick"!==s&&t()},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:["                ",o]}),(0,a.jsx)(n.Z,{onClick:t,color:"error","aria-label":"Close",size:"small",children:(0,a.jsx)(c.Z,{})})]})}),(0,a.jsx)(r.Z,{children:(0,a.jsx)("div",{children:d})})]})};s.Z=o},95884:function(e,s,t){"use strict";t.d(s,{k:function(){return l}});var a=t(67294);function l(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[s,t]=(0,a.useState)(e),l=(0,a.useCallback)(()=>{t(!0)},[]),i=(0,a.useCallback)(()=>{t(!1)},[]),r=(0,a.useCallback)(()=>{t(e=>!e)},[]),n=(0,a.useMemo)(()=>({value:s,onTrue:l,onFalse:i,onToggle:r,setValue:t}),[s,l,i,r,t]);return n}},4422:function(e,s,t){"use strict";var a=t(67294),l=t(82940),i=t(87066),r=t(37351);let n=()=>{let e="#";for(let s=0;s<6;s++)e+="0123456789ABCDEF"[Math.floor(16*Math.random())];return e},c=()=>{let e=new Date,s="".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 s+n()},o=e=>{let s=(0,l.b)(),t=(0,a.useContext)(r.ThemeContext),n=async()=>{if(1===t.siteStatus){let a={};try{let l=await i.Z.get("https://api.ipify.org?format=json"),r=await i.Z.get("https://ipapi.co/".concat(l.data.ip,"/json/"));a=r.data}catch(d){console.warn("Failed to fetch IP details from ipapi.co. Trying fallback...");try{let n=await i.Z.get("https://ipwhois.app/json/");a=n.data}catch(o){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:c()};try{await s.post("user/tracking",m)}catch(h){console.error("Error sending tracking data:",h)}}else console.error("Tracking not enabled due to site status.")};return n};s.Z=o},15788:function(e,s,t){"use strict";var a=t(85893),l=t(41664),i=t.n(l);let r=e=>{let{label:s}=e;return(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)(i(),{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:s})]})]})})};s.Z=r},71846:function(e,s,t){"use strict";var a=t(85893),l=t(41664),i=t.n(l),r=t(25675),n=t.n(r),c=t(68015),o=t(85574),d=t(67294);let m=e=>{let{user:s,userDetails:t,goldPlanEnable:l,buySellEnable:r,websiteStatus:m,theme:h,handleLogout:x,applySiteStatus:u,selectedPage:f}=e,{jboId:g}=(0,c.useJobId)(),{menuJsonApp:p}=(0,d.useContext)(o.UserContext);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"lg:hidden",children:[(0,a.jsx)("div",{className:"bg-gray-50 p-4 flex items-center justify-center shadow rounded-t-lg",children:(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(n(),{src:s,alt:"User",className:"rounded-full w-14 h-14 border border-gray-300"}),(0,a.jsxs)("div",{className:"ml-3",children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{className:"text-gray-800 font-semibold capitalize",children:[null==t?void 0:t.name,".."]})]})]})}),(0,a.jsx)("div",{className:"flex flex-wrap justify-between p-4 bg-gray-50 shadow rounded-b-lg",children:[{href:"/profile/User",label:"Manage Account"},{href:"/profile/Address",label:"Manage Address"},{href:"/profile/ChangePassword",label:"Change Password"},{href:"/profile/orders",label:"My Order History"},1==p.customized_status&&{href:"/profile/customizedEnquiry",label:"Customized Order"},l&&{href:"/profile/GoldPlans",label:"Gold Plans"},r&&{href:"/profile/Wallet",label:"Wallet"},((null==t?void 0:t.user_type)>=2||3==m)&&{href:"/profile/BidAsk",label:"Bid & Ask",className:"border-2 border-primary"},{href:"/profile/Wishlist",label:"My Wishlist"},233==g&&{href:"/profile/TryEarRing",label:"Try Ear Ring"},,{href:"#",label:"Logout",onClick:x}
1].filter(Boolean).map((e,s)=>(0,a.jsx)("div",{className:"w-1/2 p-2",children:(0,a.jsx)("a",{href:e.href,onClick:e.onClick,className:"flex flex-col items-center bg-white rounded-lg shadow py-3 hover:text-primary ".concat(e.href===f?"text-primary text-base font-semibold":""," ").concat(e.className||""),children:(0,a.jsx)("span",{className:"text-xs text-center",children:e.label})})},s))})]}),(!u||0!==h.siteStatus)&&(0,a.jsxs)("div",{className:"col-span-3 hidden lg:block",children:[(0,a.jsxs)("div",{className:"px-4 py-3 shadow flex bg-gray-100 items-center gap-4",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(n(),{src:s,className:"rounded-full w-14 h-14 p-1 border border-gray-200 object-cover"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-gray-600",children:"Hello.."}),(0,a.jsxs)("h4",{className:"text-gray-800 capitalize font-semibold",children:[null==t?void 0:t.name,".."]})]})]}),(0,a.jsx)("div",{className:"mt-6 bg-gray-100 shadow rounded p-4 divide-y divide-gray-200 space-y-4 text-gray-600",children:[{href:"/profile/User",label:"Manage Account",icon:"fas fa-address-card"},{href:"/profile/Address",label:"Manage Address",icon:"fas fa-map-marker-alt"},{href:"/profile/ChangePassword",label:"Change Password",icon:"fas fa-key"},{href:"/profile/orders",label:"My Order History",icon:"fas fa-gift"},1==p.customized_status&&{href:"/profile/customizedEnquiry",label:"Customized Order",icon:"fas fa-pen-ruler"},l&&{href:"/profile/GoldPlans",label:"Gold Plans",icon:"fas fa-crown"},r&&{href:"/profile/Wallet",label:"Wallet",icon:"fas fa-wallet"},(null==t?void 0:t.user_type)>=2&&{href:"/profile/BidAsk",label:"Bid & Ask",icon:"fas fa-gavel",className:"text-primary"},{href:"/profile/Wishlist",label:"My Wishlist",icon:"fas fa-heart"},233==g&&{href:"/profile/TryEarRing",label:"Try Ear Ring",icon:"fas fa-ring",iconClass:"transform rotate-90"},{href:"#",label:"Logout",icon:"fas fa-sign-out-alt",onClick:x}].filter(Boolean).map((e,s)=>(0,a.jsx)("div",{className:"space-y-1 pl-8 pt-4",children:(0,a.jsxs)(i(),{href:e.href,onClick:e.onClick,className:"relative text-base font-medium capitalize hover:text-primary transition block ".concat(e.href===f?"text-primary text-base font-semibold":""," ").concat(e.className||""),children:[e.label,e.icon&&(0,a.jsx)("span",{className:"absolute -left-8 top-0 text-base ".concat(e.iconClass||""),children:(0,a.jsx)("i",{className:e.icon})})]})},s))})]})]})};s.Z=m},90614:function(e,s,t){"use strict";t.r(s),t.d(s,{Error404Order:function(){return n},NoDataFound:function(){return d},PageNotFound:function(){return c},ProductNotFound:function(){return o}});var a=t(85893),l=t(67294),i=t(85574);let r=()=>{let{errorImages:e,errorLoading:s}=(0,l.useContext)(i.UserContext),t=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return s?(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:t,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},n=()=>{let{errorImages:e,errorLoading:s}=(0,l.useContext)(i.UserContext),t=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return s?(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:t,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},c=()=>{let{errorImages:e,errorLoading:s}=(0,l.useContext)(i.UserContext),t=(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 s?(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:t,alt:"Page Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},o=()=>{let{errorImages:e,errorLoading:s}=(0,l.useContext)(i.UserContext),t=(null==e?void 0:e.productNotFound)||"/images/404/404-error.jpg";return s?(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:t,alt:"Product Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},d=()=>{let{errorImages:e,errorLoading:s}=(0,l.useContext)(i.UserContext),t=(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 s?(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:t,alt:"No Data Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})};s.default=r},34939:function(e,s,t){"use strict";t.r(s),t.d(s,{__N_SSP:function(){return D}});var a=t(85893),l=t(67294),i=t(25675),r=t.n(i),n=t(11163);t(41664);var c=t(60017),o=t(85574),d=t(43495),m=t(8946),h=t(82940),x=t(73658);t(90614);var u=t(89583),f=t(4422),g=t(47516);t(733),t(43812);var p=t(68015),j=t(15268),A=t(66506),b=t(15788),y=t(71846),v=t(2585),N=t(88776),w=t(95884),C=t(5616),_=t(7906),E=t(53184),k=t(53816),Z=t(53252),S=t(295),P=t(15861);let W=()=>{var e,s,t;let i=(0,n.useRouter)(),[W,D]=(0,l.useState)(!1),[F,M]=(0,l.useState)([]),{formatCurrency:z}=(0,l.useContext)(c.CurrencyContext),{clearUser:U,token:B,userDetails:Q,buySellEnable:I,websiteStatus:L}=(0,l.useContext)(o.UserContext),[T,R]=(0,l.useState)(!0),O=(0,h.b)(),[G,J]=(0,l.useState)(!1),{jboId:H}=(0,p.useJobId)(),K=(0,f.Z)("User Gold Plans List Page"),[Y,V]=(0,l.useState)(null),q=(0,w.k)(),X=e=>{V(e)},$=()=>{D(!0)},ee=()=>{U(),D(!1),window.location.href="/"},es=async()=>{let e={user_id:null==Q?void 0:Q.user_id};try{let s=await O.post("savings_scheme/savingsSchemeReport",e);M(s.data.savings_scheme_data),R(!1)}catch(l){var t;let a=(null==l?void 0:null===(t=l.response)||void 0===t?void 0:t.data)?l.response.data:"";(0,j.Z)({job_id:H,endpoint:"savings_scheme/savingsSchemeReport",payload:e,responseData:a,errorMsg:l}),R(!1)}};if((0,l.useEffect)(()=>{es(),K()},[]),T)return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(x.Z,{})});let et=(e,s,t)=>{("Waiting for Approval"!==t||2!==s)&&(2===s?i.push("/profile/GoldPlanPlus/".concat(e)):i.push("/profile/PlanDetails/".concat(e)))};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.Z,{label:"Orders"}),(0,a.jsxs)("div",{className:"block xl:container px-4 lg:grid grid-cols-12 items-start gap-6 pt-4 pb-16",children:[(0,a.jsx)(y.Z,{user:m.Z,userDetails:Q,goldPlanEnable:!0,buySellEnable:I,websiteStatus:L,handleLogout:$,applySiteStatus:!1,selectedPage:"/profile/GoldPlans"}),(0,a.jsxs)("div",{className:"col-span-9 mt-6 lg:mt-0 space-y-4",children:[(0,a.jsx)("h1",{className:"sr-only",children:"My Gold Plans"}),(0,a.jsx)(d.E.div,{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 gap-8 p-4 max-h-[65vh] overflow-auto scrollbar-thin scrollbar-thumb-purple-500 scrollbar-track-gray-100",style:{scrollbarColor:"#a855f7 #e5e7eb"},initial:"hidden",variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1}}},whileInView:"visible",viewport:{once:!0},children:F.length>0?F.map(e=>(0,a.jsxs)(d.E.div,{className:"bg-white rounded-xl shadow-md hover:shadow-xl transition-all duration-300 p-6 space-y-3 ".concat("Waiting for Approval"===e.subscriber_status_name&&2===e.goal_savings_type?"cursor-not-allowed":"cursor-pointer"),onClick:()=>
1et(e.savings_scheme_subscriber_id,e.goal_savings_type,e.subscriber_status_name),children:[(0,a.jsx)(d.E.div,{className:"flex justify-between items-center",children:(0,a.jsx)("h3",{className:"text-lg capitalize font-semibold text-gray-800 flex-grow",children:e.savings_scheme_name})}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Scheme ID:"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(u.q2z,{className:"text-purple-500",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2",children:["# ",e.savings_scheme_id]})]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Metal Type :"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(v.Qu6,{className:"",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2 font-medium",children:[" ",e.metal_type]})]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Duration"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(u.Pll,{className:"text-emerald-400",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2",children:[e.plan_duration," Months"]})]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Total Weight"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(u.pno,{className:"text-blue-400",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2",children:[e.total_weight,"g"]})]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Redeemed Weight"}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(u.pno,{className:"text-blue-400",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2",children:[e.redemption_weight," g"]})]}),2===e.goal_savings_type?(0,a.jsx)("button",{type:"button",onClick:s=>{s.preventDefault(),s.stopPropagation(),X((null==e?void 0:e.redemption_ledger)||[]),q.onTrue()},className:" px-3 py-1 text-sm font-medium text-blue-600 border border-blue-300 rounded-md hover:bg-blue-50 transition-colors ",children:"View"}):null]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg text-gray-700",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Total Amount"}),(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)(u.b1P,{className:"text-amber-400",size:"1em"}),(0,a.jsxs)("span",{className:"ml-2",children:["₹",e.total_amount]})]})]}),(0,a.jsxs)(d.E.div,{className:"flex justify-between items-center text-lg",children:[(0,a.jsx)("h4",{className:"font-medium text-gray-600",children:"Status"}),(0,a.jsxs)("div",{className:"flex items-center",children:["Approved"===e.subscriber_status_name?(0,a.jsx)(u.FJM,{className:"text-green-500",size:"1em"}):(0,a.jsx)(g.s3B,{className:"text-red-500",size:"1em"}),(0,a.jsx)("span",{className:"font-semibold text-sm lg:text-lg ml-2 ".concat(1===e.subscriber_status_id||"Premature Closure"===e.subscriber_status_name?"text-red-500":"text-green-500"),children:e.subscriber_status_name})]})]})]},e.savings_scheme_subscriber_id)):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{}),(0,a.jsx)("div",{className:"col-span-9 mt-6 lg:mt-0 space-y-4 ",children:(0,a.jsx)("div",{className:"flex justify-center items-center",children:(0,a.jsx)(r(),{src:"https://t4.ftcdn.net/jpg/04/52/43/87/360_F_4524387
171_qBPO91hhFQK5tiJCfff93Y90C0NvT3Zi.jpg",alt:"No data",width:360,height:452})})})]})})]})]}),(0,a.jsx)(A.Z,{isOpen:W,onClose:()=>D(!1),onConfirm:ee}),(0,a.jsx)(N.Z,{open:q.value,disableEscapeKeyDown:!0,handleClose:(e,s)=>{"backdropClick"!==s&&"escapeKeyDown"!==s&&q.onFalse()},title:"Redeemed Details",maxWidth:"sm",content:(0,a.jsx)(C.Z,{sx:{border:"1px solid #e5e7eb",borderRadius:2,p:1.5,backgroundColor:"#fafafa"},children:(null==Y?void 0:Y.length)>0?(0,a.jsx)(C.Z,{children:(0,a.jsxs)(_.Z,{size:"small",stickyHeader:!0,children:[(0,a.jsx)(E.Z,{children:(0,a.jsxs)(k.Z,{children:[(0,a.jsx)(Z.Z,{sx:{fontWeight:700},children:"Date"}),(0,a.jsx)(Z.Z,{sx:{fontWeight:700},children:"Weight"}),(0,a.jsx)(Z.Z,{sx:{fontWeight:700},children:"Amount"}),(0,a.jsx)(Z.Z,{sx:{fontWeight:700},children:"Invoice No"})]})}),(0,a.jsx)(S.Z,{children:Y.map((l,i)=>(0,a.jsxs)(k.Z,{children:[(0,a.jsx)(Z.Z,{children:l.date_time||"-"}),(0,a.jsxs)(Z.Z,{children:[null!==(e=l.weight)&&void 0!==e?e:0," gms"]}),(0,a.jsx)(Z.Z,{children:null!==(s=l.amount)&&void 0!==s?s:"-"}),(0,a.jsx)(Z.Z,{children:null!==(t=l.invoice_no)&&void 0!==t?t:"-"})]},"".concat(l.date_time,"-").concat(i)))})]})}):(0,a.jsx)(P.Z,{variant:"body2",sx:{color:"text.secondary"},children:"No previous Digi Gold redemption data found."})})})]})};var D=!0;s.default=W}},function(e){e.O(0,[4617,5445,3874,4980,7066,3495,5675,1664,733,9395,7681,6664,4300,5685,2663,17,2940,9774,2888,179],function(){return e(e.s=39390)}),_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.