PageSourceSearch

https://www.dhanalakshmijewellery.in/_next/static/chunks/pages/GoldPlan/PlanDetails-4e98ec1091761b22.js

js dhanalakshmijewellery.in collected 2026-10-02 01:56:37 UTC 37,641 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1616],{66227:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/GoldPlan/PlanDetails",function(){return a(93809)}])},73658:function(e,t,a){"use strict";var s=a(85893),n=a(67294),i=a(733),l=a.n(i),r=a(37351),o=a(25675),d=a.n(o);let c=()=>{let e=(0,n.useContext)(r.ThemeContext),[t,a]=(0,n.useState)("");return((0,n.useEffect)(()=>{e.splashLogo&&""!==e.splashLogo&&a(e.splashLogo)},[e]),t)?(0,s.jsx)("div",{className:"flex justify-center items-center py-40",children:(0,s.jsx)(d(),{width:144,height:144,src:t,alt:"Loading",className:"w-36 h-36 object-contain"})}):(0,s.jsx)("div",{className:"w-full h-full flex justify-center items-center py-40",children:(0,s.jsx)(l(),{type:"spinningBubbles",color:"#000000",height:"10%",width:"10%"})})};t.Z=c},4921:function(e,t,a){"use strict";a.d(t,{Z:function(){return o}});var s=a(85893),n=a(9008),i=a.n(n),l=a(85574),r=a(67294);function o(e){let{title:t="",description:a="",keyword:n=""}=e,{domainData:o}=(0,r.useContext)(l.UserContext);return o.seo_domain_name||window.location.hostname,(0,s.jsxs)(i(),{children:[(0,s.jsx)("title",{children:t||""}),(0,s.jsx)("meta",{name:"description",content:a}),(0,s.jsx)("meta",{name:"keywords",content:n}),(0,s.jsx)("meta",{name:"title",content:t})]})}},68481:function(e,t,a){"use strict";var s=a(85893),n=a(67294),i=a(89583),l=a(82940),r=a(14762);let o=e=>{let{open:t,handleClose:a,handleSubmit:o,formData:d={}}
1=e,[c,m]=(0,n.useState)(Array(6).fill("")),[u,h]=(0,n.useState)(!1),g=(0,l.b)(),[p,v]=(0,n.useState)(!1),[x,_]=(0,n.useState)({}),f=e=>{_(e),v(!0)},y=()=>{v(!1),x.redirectOnClose&&router.push(x.redirectOnClose)};if(!t)return null;let b=(e,t)=>{let{value:a}=e.target;if(/^\d?$/.test(a)){let s=[...c];s[t]=a,m(s),a&&t<c.length-1&&document.getElementById("otp-input-".concat(t+1)).focus()}},w=(e,t)=>{"Backspace"===e.key&&t>0&&!c[t]&&document.getElementById("otp-input-".concat(t-1)).focus()},N=e=>{let t=e.clipboardData.getData("text").slice(0,6);/^\d{6}$/.test(t)&&m(t.split(""))},j=async()=>{let e=c.join("");if(!e||e.length<6){f({type:"error",title:"Invalid OTP",subText:"Please enter a valid 6-digit OTP.",autoClose:3,showCloseIcon:!1});return}try{h(!0);let t=await g.post("/savings_scheme/verifyNomineeOtp",{otp:e});if(1===t.data.status){var a;setTimeout(()=>{o()},2e3),f({type:"success",title:"Success",subText:(null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.message)||"OTP Verified Successfully!",autoClose:1})}else f({type:"error",title:"Error",subText:t.data.message||"Invalid OTP. Please try again.",autoClose:2})}catch(s){f({type:"error",title:"API Error",subText:"Unable to verify OTP. Please try again later.",autoClose:3})}finally{h(!1)}},C=async()=>{try{let e=await g.post("/savings_scheme/sendNomineeOtp",{mobile_no:null==d?void 0:d.mobile});1===e.data.status?(m(Array(6).fill("")),f({type:"success",title:"Resend",subText:e.data.message||"OTP Resend Successfully!",autoClose:3})):f({type:"error",title:"Error",subText:e.data.message||"Unable to resend OTP.",autoClose:3})}catch(t){f({type:"error",title:"API Error",subText:"Unable to resend OTP. Please try again later.",autoClose:3})}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{onPaste:N,className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:(0,s.jsxs)("div",{className:"bg-white rounded-lg shadow-lg max-w-md w-full p-6 relative",children:[(0,s.jsx)("button",{onClick:()=>{a(),m(Array(6).fill(""))},className:"absolute top-3 right-3 text-red-500 focus:outline-none",children:(0,s.jsx)(i.aHS,{className:"text-lg"})}),(0,s.jsx)("h2",{className:"text-lg font-bold text-center",children:"Verify OTP"}),(0,s.jsx)("p",{className:"text-sm text-gray-600 text-center",children:"Enter the OTP sent to your registered Email or Mobile number."}),(0,s.jsx)("div",{className:"flex justify-center space-x-2 mt-4",children:c.map((e,t)=>(0,s.jsx)("input",{id:"otp-input-".concat(t),type:"text",maxLength:"1",className:"w-10 h-10 border border-gray-300 rounded-md text-center text-lg font-semibold focus:ring-2 focus:ring-primary",value:e,onChange:e=>b(e,t),onKeyDown:e=>w(e,t)},t))}),(0,s.jsx)("button",{type:"button",onClick:j,disabled:u,className:"w-full mt-4 bg-primary text-white p-2 rounded-md hover:bg-primary-dark transition disabled:opacity-50",children:u?"Verifying...":"Verify OTP"}),(0,s.jsxs)("div",{className:"text-center mt-3",children:[(0,s.jsx)("p",{className:"text-xs text-gray-500",children:"Didn’t receive the OTP?"}),(0,s.jsx)("button",{onClick:C,className:"mt-2 text-primary font-semibold hover:underline",children:"Resend OTP"})]})]})}),(0,s.jsx)(r.Z,{isOpen:p,type:x.type,title:x.title,subText:x.subText,onConfirm:y,onClose:y,autoClose:x.autoClose,confirmLabel:"Ok",cancelLabel:"Close",showConfirmButton:x.showConfirmButton,showCancelButton:x.showCancelButton,showCloseIcon:!0})]})};t.Z=o},79458:function(e,t,a){"use strict";a.r(t),a.d(t,{WishlistContext:function(){return m},WishlistProvider:function(){return u}});var s=a(85893),n=a(67294),i=a(82940),l=a(37351),r=a(60017),o=a(85574),d=a(68015),c=a(15268);let m=(0,n.createContext)(),u=e=>{let{children:t}
1=e,[a,u]=(0,n.useState)([]),h=(0,n.useContext)(l.ThemeContext),[g,p]=(0,n.useState)(0),[v,x]=(0,n.useState)(!0),_=(0,i.b)(),{userId:f,token:y,websiteStatus:b,userDetails:w}=(0,n.useContext)(o.UserContext),{currentCurrency:N}=(0,n.useContext)(r.CurrencyContext),{jboId:j}=(0,d.useJobId)(),[C,S]=(0,n.useState)(!1),P=async()=>{try{let e=3==b&&(null==w?void 0:w.user_type)==1?"product/siteWishList":"product/getWishList",t=await _.post(e,{user_id:f,token:y,product_id:[]});if(t.data){let a=Array.isArray(t.data.data)?t.data.data:[];u(a),localStorage.setItem("wishlist",JSON.stringify(a))}S(!1)}catch(l){var s;S(!0);let n=3==b&&(null==w?void 0:w.user_type)==1?"product/siteWishList":"product/getWishList",i=(null==l?void 0:null===(s=l.response)||void 0===s?void 0:s.data)?l.response.data:"";(0,c.Z)({job_id:j,endpoint:n,payload:{user_id:f,token:y,product_id:[]},responseData:i,errorMsg:l})}};(0,n.useEffect)(()=>{if(f&&"null"!==f&&y&&(null==h?void 0:h.siteStatus)===1){I();let e=localStorage.getItem("wishlist"),t=localStorage.getItem("wishlistCount");try{e&&t?(u(JSON.parse(e)),p(JSON.parse(t))):P()}catch(a){console.error("Wishlist parsing failed:",a),localStorage.removeItem("wishlist"),localStorage.removeItem("wishlistCount"),P()}}else u([]),localStorage.removeItem("wishlist"),localStorage.removeItem("wishlistCount")},[v,N,f,y,null==h?void 0:h.siteStatus]);let I=async()=>{try{let e=await _.post("user/UserWishListCount",{user_id:f});e.data&&e.data.count?(p(e.data.count),localStorage.setItem("wishlistCount",e.data.count)):p(0)}catch(s){var t;let a=(null==s?void 0:null===(t=s.response)||void 0===t?void 0:t.data)?s.response.data:"";(0,c.Z)({job_id:j,endpoint:"user/UserWishListCount",payload:{user_id:f},responseData:a,errorMsg:s})}},A=async e=>{let t=(null==e?void 0:e.mProductId)||(null==e?void 0:e.product_id1)||e.product_id||(null==e?void 0:e.id)||e.jbo_own_products_id;try{let a=await _.post("/user/addToWishList",{user_id:f,token:y,quantity:1,product_id:t});return"1"==a.data.status&&(P(),I(),x(!v)),a.data.status}catch(l){var s;let n={user_id:f,token:y,quantity:1,product_id:(null==e?void 0:e.mProductId)?null==e?void 0:e.mProductId:e.product_id||e.id},i=(null==l?void 0:null===(s=l.response)||void 0===s?void 0:s.data)?l.response.data:"";return(0,c.Z)({job_id:j,endpoint:"/user/addToWishList",payload:n,responseData:i,errorMsg:l}),null}},E=async e=>{let t={user_id:f,token:y,product_id:(null==e?void 0:e.mProductId)?null==e?void 0:e.mProductId:e.product_id1||e.id||e.product_id};try{let a=await _.post("/user/removeWishList",t);return 1===a.data.status&&(I(),P().then(()=>{u(t=>t.map(t=>t.product_id===e.id?{...t,isRemoved:!0}:t))}).then(()=>x(e=>!e))),a.data.status}catch(l){var s;let n={user_id:f,token:y,product_id:e.product_id?e.product_id:e.id},i=(null==l?void 0:null===(s=l.response)||void 0===s?void 0:s.data)?l.response.data:"";(0,c.Z)({job_id:j,endpoint:"/user/removeWishList",payload:n,responseData:i,errorMsg:l})}};return(0,s.jsx)(m.Provider,{value:{wishlist:a,addToWishlist:A,removeFromWishlist:E,wishlistCount:g,fetchWishlistCount:I,errorState:C,fetchWishlist:P},children:t})}},90614:function(e,t,a){"use strict";a.r(t),a.d(t,{Error404Order:function(){return r},NoDataFound:function(){return c},PageNotFound:function(){return o},ProductNotFound:function(){return d}});var s=a(85893),n=a(67294),i=a(85574);let l=()=>{let{errorImages:e,errorLoading:t}=(0,n.useContext)(i.UserContext),a=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return t?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("img",{src:a,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},r=()=>{let{errorImages:e,errorLoading:t}=(0,n.useContext)(i.UserContext),a=(null==e?void 0:e.somethingWentWrong)||"/images/502.jpeg";return t?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-
1h-screen",children:(0,s.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("img",{src:a,alt:"Error",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},o=()=>{let{errorImages:e,errorLoading:t}=(0,n.useContext)(i.UserContext),a=(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,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("img",{src:a,alt:"Page Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},d=()=>{let{errorImages:e,errorLoading:t}=(0,n.useContext)(i.UserContext),a=(null==e?void 0:e.productNotFound)||"/images/404/404-error.jpg";return t?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,s.jsx)("div",{className:"flex items-center p-2 justify-center min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("img",{src:a,alt:"Product Not Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})},c=()=>{let{errorImages:e,errorLoading:t}=(0,n.useContext)(i.UserContext),a=(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,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("div",{className:"w-3/4 md:w-1/2 bg-gray-300 animate-pulse",style:{height:"300px",maxWidth:"100%"}})})}):(0,s.jsx)("div",{className:"flex items-center justify-center p-2 min-h-[50vh] md:min-h-screen",children:(0,s.jsx)("img",{src:a,alt:"No Data Found",className:"w-3/4 md:w-1/2 object-contain ",style:{maxWidth:"100%",height:"auto"}})})};t.default=l},93809:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return T}});var s=a(85893),n=a(67294),i=a(51526),l=a(43495);a(733);var r=a(11163),o=a(33654),d=a(85574),c=a(37351),m=a(60017),u=a(87066),h=a(82940),g=a(2585),p=a(73658),v=a(68015),x=a(15268),_=a(25675),f=a.n(_),y=a(14762),b=a(89583),w=a(4422),N=a(90614),j=a(78954),C=a(43812),S=a(4921),P=a(68481);let I={hidden:{opacity:0},visible:{opacity:1,transition:{when:"beforeChildren",staggerChildren:.1}}},A={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:100,damping:12}}},E=()=>{var e,t;let a;let _=(0,r.useRouter)(),{openAuthPopup:E}=(0,o.Pd)(),{sid:T,type:O}=_.query,D=(0,h.b)(),R=(0,w.Z)("Gold Plan Details Page"),B=(0,n.useContext)(c.ThemeContext),[M,W]=(0,n.useState)(!1),[L,G]=(0,n.useState)({}),[F,z]=(0,n.useState)(!0),[Z,U]=(0,n.useState)(!1),[q,J]=(0,n.useState)(null),{userId:$,token:V,userDetails:H}=(0,n.useContext)(d.UserContext),K=function(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e}),t.current}($),{formatCurrencyString:X}=(0,n.useContext)(m.CurrencyContext),[Y,Q]=(0,n.useState)(""),[ee,et]=(0,n.useState)("1"),[ea,es]=(0,n.useState)(!1),[en,ei]=(0,n.useState)(null),[el,er]=(0,n.useState)(""),[eo,ed]=(0,n.useState)(!1),[ec,em]=(0,n.use
1State)(!1),[eu,eh]=(0,n.useState)(null),[eg,ep]=(0,n.useState)(!1),[ev,ex]=(0,n.useState)(null),[e_,ef]=(0,n.useState)(!1),[ey,eb]=(0,n.useState)(null),[ew,eN]=(0,n.useState)({name:(null==H?void 0:H.name)?H.name:"",email:(null==H?void 0:H.email)?H.email:"",mobile:(null==H?void 0:H.phone_no)?(null==H?void 0:H.phone_no).toString():"",address:"",landmark:"",city:"",state:"",country:"",pincode:"",aadharNo:"",panNo:"",aadharImage:null,panImage:null,showAadhar:!1,showPAN:!1,nominee_name:""}),[ej,eC]=(0,n.useState)({}),{jboId:eS}=(0,v.useJobId)();(0,n.useEffect)(()=>{eN(e=>{var t;return{...e,name:e.name||(null==H?void 0:H.name)||"",email:e.email||(null==H?void 0:H.email)||"",mobile:e.mobile||(null==H?void 0:null===(t=H.phone_no)||void 0===t?void 0:t.toString())||""}})},[H]);let eP=e=>{let{name:t,value:a}=e.target;eN(e=>({...e,[t]:a}))},eI=e=>{G(e),W(!0)},eA=()=>{W(!1),L.redirectOnClose&&_.push(L.redirectOnClose)},eE=e=>{e.preventDefault(),eI({type:"info",title:"Preview Mode",subText:'Actions like "Gold Plan Subscribe" are disabled during preview.',onConfirm:eA,onClose:eA,showConfirmButton:!1,showCancelButton:!1,cancelLabel:"close",autoClose:3})};{let ek=window.location.hostname;a="https://".concat(ek,"/api")}let eT=async e=>{let{name:t,files:s}=e.target;if(s.length>0){let n=s[0],i=new FormData;i.append("aadharImage"===t?"aadhar_upload":"pan_upload",n);try{let l=await u.Z.post("".concat(a,"/upload"),i,{headers:{"Content-Type":"multipart/form-data"}}),r=l.data["aadharImage"===t?"aadhar_upload":"pan_upload"].imageUrl;eN(e=>({...e,[t]:r}))}catch(c){var o;let d=(null==c?void 0:null===(o=c.response)||void 0===o?void 0:o.data)?c.response.data:"";(0,x.Z)({job_id:eS,endpoint:"/upload",payload:"",responseData:d,errorMsg:c})}}},eO=e=>{eN(t=>({...t,[e]:!t[e]}))},eD=()=>{es(e=>!e)},eR=/^\d{12}$/,eB=/[A-Z]{5}[0-9]{4}[A-Z]{1}/,eM=/^\w+([.-]?\w+)*@\w+([.-]?\w+)*(\.\w{2,3})+$/,eW=/^[6-9]\d{9}$/,eL=()=>{let e={},t=!0,a=1==Number(ey);["name","email","mobile","address","city","state","country","pincode"].forEach(a=>{let s=ew[a];if("string"!=typeof s||!s.trim()){let n=a.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase());e[a]="".concat(n," is required"),t=!1}}),eM.test(ew.email)||(e.email="Invalid email format",t=!1),eW.test(ew.mobile)||(e.mobile="Invalid mobile number",t=!1),ew.showAadhar&&!eR.test(ew.aadharNo)&&(e.aadharNo="Invalid Aadhar number",t=!1),ew.showPAN&&!eB.test(ew.panNo)&&(e.panNo="Invalid PAN number",t=!1),ew.showAadhar&&(ew.aadharImage?!ew.aadharImage.size>5242880&&(e.aadharImage="Invalid Aadhar image. Ensure it's   less than 5MB",t=!1):(e.aadharImage="Aadhar image is required",t=!1)),ew.showPAN&&(ew.panImage?!ew.panImage.size>5242880&&(e.panImage="Invalid PAN image. Ensure it's  less than 5MB",t=!1):(e.panImage="PAN image is required",t=!1)),ew.nominee_name||(e.nominee_name="Nominee Name Required",t=!1),!a||ew.showAadhar||ew.showPAN||(e.aadharOrPan="Kindly provide Aadhar or PAN details",t=!1);let s=q.savings_scheme_data.savings_scheme_plan_duration*Y,n=q.rate_data[0].metal_rate*Y*q.savings_scheme_data.savings_scheme_plan_duration;return!a||(1===q.savings_scheme_data.savings_scheme_type&&0!==q.savings_scheme_data.show_weight?(n>=19e4&&(ew.showPAN&&!eB.test(ew.panNo)&&(e.panNo="Invalid PAN number",t=!1),ew.showPAN&&(ew.panImage?!ew.panImage.size>5242880&&(e.panImage="Invalid PAN image. Ensure it's  less than 5MB",t=!1):(e.panImage="PAN image is required",t=!1))),!(n>=19e4)||ew.panNo&&ew.panNo.trim()||(e.aadharOrPan="PAN Details is required for this Scheme ",t=!1)):1===q.savings_scheme_data.savings_scheme_type&&0===q.savings_scheme_data.show_weight?(s>=19e4&&(ew.showPAN&&!eB.test(ew.panNo)&&(e.panNo="Invalid PAN number",t=!1),ew.showPAN&&(ew.panImage?!ew.panImage.size>5242880&&(e.panImage="Invalid PAN image. Ensure it's  less than 5MB",t=!1):(e.panImage="PAN image is required",t=!1))),!(s>=19e4)||ew.panNo&&ew.panNo.trim()||(e.aadharOrPan="PAN Details is required for this Scheme ",t=!1)):2!==q.savings_scheme_data.savings_scheme_type||(s>=19e4&&(ew.showPAN&&!eB.test(ew.panNo)&&(e.panNo="Invalid PAN number",t=!1),ew.showPAN&&(ew.panImage?!ew.panImage.size>5242880&&(e.panImage="Invalid PAN image. Ensure it's  less than 5MB",t=!1):(e.panImage="PAN image is required",t=!1))),!(s>=19e4)||ew.panNo&&ew.panNo.trim()||(e.aadharOrPan="PAN Details is required for this Scheme ",t=!1))),eC(e),t},eG=async(e,t)=>{try{if(e.preventDefault(),!eL())return;let a={aadhar_Image:ew.aadharImage,pan_Image:ew.panImage,...2===q.savings_scheme_data.savings_scheme_type?{amount:Y}:{weight:Y},kycdetails:{aadhar_no:ew.aadharNo,pan_no:ew.panNo},user_id:$,savings_scheme_id:T,nominee_name:ew.nominee_name||""};if(a={...a={...a,address:{address:ew.address,name:ew.name,landmark:ew.landmark,city:ew.city,state:ew.state,country:ew.country,pincode:ew.pincode,email:ew.email,mobile:ew.mobile},...2===q.savings_scheme_data.savings_scheme_type||1!==q.savings_scheme_data.show_weight?{price_based_value:1}:{weight_based_value:1}},...t},eh(a),!e_){eF(a);return}ep(!0);let s=await D.post("/savings_scheme/sendNomineeOtp",{user_id:$,mobile_no:(null==ew?void 0:e
1w.mobile)||""});1===s.data.status?(ed(!1),ep(!1),setTimeout(()=>{em(!0)},2e3),eI({type:"success",title:"OTP Send",subText:s.data.message||"OTP Send Successfully!",autoClose:2})):eI({type:"error",title:"Error",subText:s.data.message||"Unable to send OTP.",autoClose:3})}catch(n){em(!1),eI({type:"error",title:"API Error",subText:"Unable to send OTP. Please try again later.",autoClose:3})}},eF=async e=>{try{em(!1);let t=await D.post("savings_scheme/createSavingsSchemeSubscriber",e||eu);"1"==t.data.status?(eC({}),setTimeout(()=>{ed(!1)},2e3),eI({type:"success",title:"Success!",subText:"Gold Plan Subscribed Successfully",onConfirm:eA,onClose:eA,autoClose:4,redirectOnClose:"/profile/GoldPlans",showConfirmButton:!1,showCancelButton:!1})):(ed(!0),em(!1),eI({type:"error",title:"Error!",subText:t.data.message,onConfirm:eA,onClose:eA,autoClose:2,showConfirmButton:!1,showCancelButton:!1}))}catch(n){var a;let s=(null==n?void 0:null===(a=n.response)||void 0===a?void 0:a.data)?n.response.data:"";(0,x.Z)({job_id:eS,endpoint:"savings_scheme/createSavingsSchemeSubscriber",payload:"",responseData:s,errorMsg:n}),eI({type:"error",title:"Error!",subText:"An error occurred during subscription. Please try again later.",onConfirm:eA,onClose:eA,autoClose:2,showConfirmButton:!1,showCancelButton:!1})}};(0,n.useEffect)(()=>{let e=async()=>{var e,t;try{let a=await D.post("savings_scheme/loadSavingsScheme",{url:"/gold-plan/".concat(T),savings_scheme_id:T,user_id:$});if("0"===a.data.status)U(!0),z(!1);else if(a.data){J(a.data);let s=(null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.faq)||null;ex(s);let n=1==a.data.savings_scheme_data.otp_enable;ef(n);let i=a.data.savings_scheme_data;1===i.fixed_amount_status&&Array.isArray(i.fixed_amount_value)&&i.fixed_amount_value.length>0&&Q(i.fixed_amount_value[0]),z(!1)}else U(!0)}catch(r){let l=(null==r?void 0:null===(t=r.response)||void 0===t?void 0:t.data)?r.response.data:"";(0,x.Z)({job_id:eS,endpoint:"/gold-plan/".concat(T),payload:{url:"/gold-plan/".concat(T),savings_scheme_id:T,user_id:$},responseData:l,errorMsg:r}),U(!0)}finally{z(!1)}};T&&e(),R()},[T]);let ez=async()=>{var e,t;if("null"===$){ed(!0);return}try{let a=await D.post("savings_scheme/checkCustomerAddress",{user_id:$});if(a.data){let s=null!==(e=a.data.kyc_status)&&void 0!==e?e:null,n=a.data.details_count,i=Array.isArray(a.data.address_details)?a.data.address_details:[],l=i[0]||null;ei(n),eb(s),ed(null!==a.data.details_count),l&&eN(e=>{var t,a,s;return{...e,name:(null==l?void 0:l.name)||e.name||(null==H?void 0:H.name)||"",email:(null==l?void 0:l.email)||e.email||(null==H?void 0:H.email)||"",mobile:(null==l?void 0:null===(t=l.mobile)||void 0===t?void 0:t.toString())||e.mobile||(null==H?void 0:null===(a=H.phone_no)||void 0===a?void 0:a.toString())||"",address:(null==l?void 0:l.address)||"",landmark:"string"==typeof(null==l?void 0:l.landmark)?l.landmark.trim():"",city:(null==l?void 0:l.city)||"",state:(null==l?void 0:l.state)||"",country:(null==l?void 0:l.country)||"",pincode:(null==l?void 0:null===(s=l.pincode)||void 0===s?void 0:s.toString())||"",aadharNo:(null==l?void 0:l.aadhar_no)||"",panNo:(null==l?void 0:l.pan_no)||"",aadharImage:"string"==typeof(null==l?void 0:l.aadhar_img)&&l.aadhar_img.trim()?l.aadhar_img:null,panImage:"string"==typeof(null==l?void 0:l.pan_img)&&l.pan_img.trim()?l.pan_img:null,showAadhar:Boolean((null==l?void 0:l.aadhar_no)||"string"==typeof(null==l?void 0:l.aadhar_img)&&l.aadhar_img.trim()),showPAN:Boolean((null==l?void 0:l.pan_no)||"string"==typeof(null==l?void 0:l.pan_img)&&l.pan_img.trim())}})}}catch(o){let r=(null==o?void 0:null===(t=o.response)||void 0===t?void 0:t.data)?o.response.data:"";(0,x.Z)({job_id:eS,endpoint:"savings_scheme/checkCustomerAddress",payload:{user_id:$},responseData:r,errorMsg:o})}finally{z(!1)}};(0,n.useEffect)(()=>{"null"===K&&"null"!==$&&ez()},[$,K]);let eZ=async e=>{let t,a;if(e.preventDefault(),!H||null===H.user_id){let s=window.location.href;document.cookie="initialReferrer=".concat(encodeURIComponent(s),"; path=/"),E(_.asPath);return}let n=2===q.savings_scheme_data.savings_scheme_type||1!==q.savings_scheme_data.show_weight;if(n)t=X(q.savings_scheme_data.min_value),a=X(q.savings_scheme_data.max_value);else{let i=q.savings_scheme_data.min_value>1?"gms":"gm",l=q.savings_scheme_data.max_value>1?"gms":"gm";t="".concat(q.savings_scheme_data.min_value," ").concat(i),a="".concat(q.savings_scheme_data.max_value," ").concat(l)}let r=Number(Y);if(2!==Number(O)&&!r){er("Value is required"),z(!1);return}if(2!==Number(O)&&r<q.savings_scheme_data.min_value||r>q.savings_scheme_data.max_value){er("Please enter a value between ".concat(t," - ").concat(a)),z(!1);return}er(""),el||ez()};if(F)return(0,s.jsx)(p.Z,{});if(Z||!q)return(0,s.jsx)(N.NoDataFound,{});let eU=(e,t)=>2===t||1!==q.savings_scheme_data.show_weight?"".concat(X(e)):"".concat(e," ").concat(e>1?"gms":"gm"),eq=e=>2===e?(0,s.jsx)(b.Dfw,{className:"text-pink-500 mr-2",size:20}):(0,s.jsx)(b.pno,{className:"text-red-500 mr-2",size:20}),eJ=2===q.savings_scheme_data.savings_scheme_type||1!==q.savings_scheme_data.show_weight?"Enter Amount":"Enter Weight(Gm/Gms)";return(0,s.jsxs)(s.Fragment,{children:[233==eS&&28==T&&(0,s.jsx)(S.Z,{title:"Sakthi Gold Plan – Monthly Gold Saving & Chit Scheme | DAR Jewellery",description:"Join DAR Jewellery’s Sakthi Gold Scheme – save 0.500g of gold monthly for 11 months and enjoy 100% off on value addition charges. A secure monthly gold chit and saving plan. GST applicable.",keyword:"sakthi plan, gold scheme, gold investment plan, gold plan, gold chit, gold monetization scheme, gold sip plan, gold investment scheme, gold saving scheme, monthly gold scheme, gold chit scheme, best gold saving scheme, best gold scheme, best gold saving plan, gold scheme online"}),233==eS&&30==T&&(0,s.jsx)(S.Z,{title:"Rani Gold Scheme – Best Monthly Gold Chit & Saving Plan | DAR Jewellery",description:"Join DAR Jewellery’s RANI Gold Plan – a trusted gold chit and saving scheme with Rs.3000/month for 11 months. Get 100% off on value addition charges. Best gold investment plan online. GST applicable.",keyword:"rani plan, gold scheme, gold investment plan, gold plan, gold chit, gold monetization scheme, gold sip plan, gold investment scheme, gold saving scheme, monthly gold scheme, gold chit scheme, best gold saving scheme, best gold scheme, best gold saving plan, gold scheme online"}),233==eS&&31==T&&(0,s.jsx)(S.Z,{title:"Naira Gold Scheme – Monthly Gold Chit & Investment Plan | DAR Jewellery",description:"Start the Naira Gold Scheme by DAR Jewellery – save from ₹1000/month for 11 months and get a 100% value addition discount. Best monthly gold chit, gold plan & saving scheme. GST applicable.",keyword:"naira plan, gold scheme, gold investment plan, gold plan, gold chit, gold monetization scheme, gold sip plan, gold investment scheme, gold saving scheme, monthly gold scheme, gold chit scheme, best gold saving scheme, best gold scheme, best gold saving plan, gold scheme online"}),233==eS&&66==T&&(0,s.jsx)(S.Z,{title:"Book My Gold – Gold Scheme, Gold Chit & Gold Investment Plan | DAR Jewellery",description:"Secure your future with DAR Jewellery’s Book My Gold plan – the best monthly gold saving scheme, chit plan & gold investment option. Enroll online today with trusted benefits.",keyword:"book my gold, gold scheme, gold investment plan, gold plan, gold chit, gold monetization scheme, gold sip plan, gold investment scheme, gold saving scheme, monthly gold scheme, gold chit scheme, best gold saving scheme, best gold scheme, best gold saving plan, gold scheme online"}),(0,s.jsx)(i.M,{children:(0,s.jsxs)(l.E.div,{variants:I,initial:"hidden",animate:"visible",className:"block xl:container lg:px-4 p-6 bg-white rounded-lg shadow-md my-10 mx-auto",children:[(0,s.jsxs)("div",{className:"w-full flex flex-col lg:flex-row items-center justify-center gap-6",children:[(0,s.jsx)(f(),{className:"object-fit roun
1ded-lg",src:(0,C.setImageSrc)(q.savings_scheme_data.thumbnail_image,""),alt:q.savings_scheme_data.savings_scheme_name,width:512,height:256}),(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsx)(l.E.h1,{variants:A,className:"text-2xl font-semibold text-gray-800 text-center md:text-left capitalize",children:q.savings_scheme_data.savings_scheme_name}),(0,s.jsx)(l.E.p,{variants:A,className:"text-gray-600 mt-4",children:q.savings_scheme_data.content}),(0,s.jsxs)("div",{className:"mt-6 grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,s.jsx)(k,{title:(0,s.jsxs)("span",{className:"flex items-center space-x-2",children:[(0,s.jsx)(b.N$0,{className:"text-blue-400 mr-2",size:20}),"Plan Duration"]}),value:"".concat(q.savings_scheme_data.savings_scheme_plan_duration," Months")}),(0,s.jsx)(k,{title:(0,s.jsxs)("span",{className:"flex items-center space-x-2",children:[(0,s.jsx)(b.IiJ,{className:"text-green-500 mr-2",size:20}),"Due Date"]}),value:q.savings_scheme_data.due_date}),(0,s.jsx)(k,{title:(0,s.jsxs)("span",{className:"flex items-center space-x-2",children:[eq(q.savings_scheme_data.savings_scheme_type),"Minimum Value"]}),value:eU(q.savings_scheme_data.min_value,q.savings_scheme_data.savings_scheme_type)}),(0,s.jsx)(k,{title:(0,s.jsxs)("span",{className:"flex items-center space-x-2",children:[eq(q.savings_scheme_data.savings_scheme_type),"Maximum Value"]}),value:eU(q.savings_scheme_data.max_value,q.savings_scheme_data.savings_scheme_type)})]}),(0,s.jsxs)(l.E.div,{variants:A,className:"mt-4",children:[1===q.savings_scheme_data.fixed_amount_status?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"w-full bg-white p-5 border border-gray-200 rounded-xl shadow-sm",children:[(0,s.jsxs)("h3",{className:"text-lg md:text-xl font-semibold text-gray-800 mb-5",children:["Select Investment ",1==q.savings_scheme_data.show_weight?"Weight ":"Amount"]}),(0,s.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 gap-3 mb-6",children:Array.isArray(q.savings_scheme_data.fixed_amount_value)&&q.savings_scheme_data.fixed_amount_value.map((e,t)=>(0,s.jsx)("button",{type:"button",onClick:()=>Q(e),className:"\n            h-10\n            rounded-xl\n            border\n            text-base\n            font-semibold\n            transition-all\n            duration-200\n            ".concat(Number(Y)===e?"border-2 border-primary bg-primary text-white":"border-gray-200 bg-white text-gray-700 hover:border-primary hover:text-primary","\n          "),children:1==q.savings_scheme_data.show_weight?"".concat(e," gms"):X(e)},t))}),2===Number(O)&&null!==q.savings_scheme_data.subscription_count&&q.savings_scheme_data.subscription_count>0?(0,s.jsx)("button",{onClick:e=>{0!==B.siteStatus?_.push("/profile/GoldPlans"):eE(e)},className:" w-full h-14 rounded-xl bg-primary text-white text-base font-semibold hover:opacity-95 transition ",children:"Your Existing Plans"}):(0,s.jsx)("button",{onClick:e=>0!==B.siteStatus?eZ(e):eE(e),className:" w-full h-14 rounded-xl bg-primary text-white text-base font-semibold hover:opacity-95 transition ",children:"Subscribe"}),(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap justify-center gap-x-5 gap-y-2 text-xs sm:text-sm text-gray-500",children:[(0,s.jsx)("span",{children:"• 100% Secure"}),(0,s.jsx)("span",{children:"• Instant Activation"}),(0,s.jsx)("span",{children:"• Hassle-Free"})]})]})}):(0,s.jsxs)(s.Fragment,{children:[2!==Number(O)&&(0,s.jsx)("label",{htmlFor:"amount",className:"block text-lg font-bold text-gray-700 text-center lg:text-left",children:eJ}),(0,s.jsxs)("div",{className:"flex flex-col md:flex-row items-center mt-1 space-y-2 md:space-y-0 md:space-x-2",children:[2!==Number(O)&&(0,s.jsx)("div",{className:"relative flex-1",children:(0,s.jsx)("input",{type:"text",name:"amount",value:Y,onChange:e=>Q(e.target.value),className:"focus:ring-primary border-primary block w-full pl-7 pr-12 sm:text-sm border-1 focus:border-primary rounded-md"})}),2==Number(O)&&!(null==q?void 0:null===(e=q.savings_scheme_data)||void 0===e?void 0:e.subscription_count)&&(0,s.jsx)("button",{type:"button",onClick:e=>0!==B.siteStatus?eZ(e):eE(e),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-primary focus:outline-none ",children:"Subscribe"}),1==Number(O)&&(0,s.jsx)("button",{type:"button",onClick:e=>0!==B.siteStatus?eZ(e):eE(e),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-primary focus:outline-none ",children:"Subscribe"}),2===Number(O)&&null!==q.savings_scheme_data.subscription_count&&q.savings_scheme_data.subscription_count>0&&(0,s.jsx)("button",{type:"button",onClick:e=>{0!==B.siteStatus?_.push("/profile/GoldPlans"):eE(e)},className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary hover:bg-primary focus:outline-none",children:"Your Existing Plans"})]})]}),el&&(0,s.jsx)("p",{className:"text-sm text-center lg:text-left my-2 text-red-500",children:el})]})]})]}),(0,s.jsxs)(l.E.div,{variants:A,children:[(0,s.jsxs)("h2",{className:"text-xl font-semibold mt-4 flex items-center",children:[(0,s.jsx)(g.gnI,{size:28,className:"text-yellow-800 mr-2 mb-2"}),q.savings_scheme_data.savings_scheme_name]}),(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:q.savings_scheme_data.savings_scheme_main_description.replace(/<p>/g,'<p class="mb-4">')}}),(0,s.jsx)("div",{className:"prose prose-sm prose-indigo max-w-none",dangerouslySetInnerHTML:{__html:q.savings_scheme_data.savings_scheme_description.replace(/<p>/g,'<p class="mb-4">')}}),q.savings_scheme_data.disclaimer&&(0,s.jsx)("div",{className:"my-2 ",children:(0,s.jsx)("a",{href:q.savings_scheme_data.disclaimer,target:"_blank",className:"text-primary text-lg sm:text-md break-words",children:"Terms & Conditions"})})]}),Array.isArray(null==ev?void 0:ev.items)&&(null==ev?void 0:null===(t=ev.items)||void 0===t?void 0:t.length)>0&&(0,s.jsxs)("div",{className:"border border-gray-300 p-5 my-4 roun
1ded-xl shadow-sm",children:[ev.topic&&(0,s.jsx)("h2",{className:"text-xl font-semibold text-gray-800 mb-4 border-b border-gray-200 pb-2",children:ev.topic}),Array.isArray(ev.items)&&ev.items.length>0&&(0,s.jsx)("div",{className:"space-y-6",children:ev.items.map((e,t)=>(0,s.jsxs)("div",{className:"flex gap-5 px-2 py-3",children:[(0,s.jsxs)("span",{className:"flex-shrink-0 text-base font-bold text-gray-700",children:[t+1,"."]}),(0,s.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,s.jsx)("p",{className:"text-md font-semibold text-gray-800",children:e.question}),(0,s.jsx)("p",{className:"text-sm text-gray-600 leading-relaxed",children:e.answer})]})]},t))})]})]})}),(0,s.jsx)(j.default,{toggleAuthView:eD,LoginRedirection:ee,isRegistered:ea,handleToggle:eO,addressCount:en,handleFileChange:eT,formData:ew,isModalOpen:eo,validationError:el,setIsModalOpen:ed,formErrors:ej,handleChange:eP,handleSendOtp:eG,userId:$,schemeData:q,isSubmit:eg}),(0,s.jsx)(y.Z,{isOpen:M,type:L.type,title:L.title,subText:L.subText,onConfirm:eA,onClose:eA,autoClose:L.autoClose,confirmLabel:"Ok",cancelLabel:"Close",showConfirmButton:L.showConfirmButton,showCancelButton:L.showCancelButton,showCloseIcon:!0}),(0,s.jsx)(P.Z,{open:ec,handleClose:()=>em(!1),handleSubmit:eF,formData:ew})]})},k=e=>{let{title:t,value:a}=e;return(0,s.jsxs)(l.E.div,{className:"bg-gray-100 p-4 rounded-lg",variants:A,children:[(0,s.jsx)("h3",{className:"text-gray-700",children:t}),(0,s.jsx)("p",{className:"text-gray-800 mt-1",children:a})]})};var T=!0;t.default=E},51526:function(e,t,a){"use strict";a.d(t,{M:function(){return v}});var s=a(67294),n=a(58868);function i(){let e=(0,s.useRef)(!1);return(0,n.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var l=a(2074),r=a(240),o=a(96681);class d extends s.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let a=this.props.sizeRef.current;a.height=t.offsetHeight||0,a.width=t.offsetWidth||0,a.top=t.offsetTop,a.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let a=(0,s.useId)(),n=(0,s.useRef)(null),i=(0,s.useRef)({width:0,height:0,top:0,left:0});return(0,s.useInsertionEffect)(()=>{let{width:e,height:s,top:l,left:r}=i.current;if(t||!n.current||!e||!s)return;n.current.dataset.motionPopId=a;let o=document.createElement("style");return document.head.appendChild(o),o.sheet&&o.sheet.insertRule(`
2          [data-motion-pop-id="${a}"] {
3            position: absolute !important;
4            width: ${e}px !important;
5            height: ${s}px !important;
6            top: ${l}px !important;
7            left: ${r}px !important;
8          }
9        `),()=>{document.head.removeChild(o)}},[t]),s.createElement(d,{isPresent:t,childRef:n,sizeRef:i},s.cloneElement(e,{ref:n}))}let m=({children:e,initial:t,isPresent:a,onExitComplete:n,custom:i,presenceAffectsLayout:l,mode:d})=>{let m=(0,o.h)(u),h=(0,s.useId)(),g=(0,s.useMemo)(()=>({id:h,initial:t,isPresent:a,custom:i,onExitComplete:e=>
9{for(let t of(m.set(e,!0),m.values()))if(!t)return;n&&n()},register:e=>(m.set(e,!1),()=>m.delete(e))}),l?void 0:[a]);return(0,s.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[a]),s.useEffect(()=>{a||m.size||!n||n()},[a]),"popLayout"===d&&(e=s.createElement(c,{isPresent:a},e)),s.createElement(r.O.Provider,{value:g},e)};function u(){return new Map}var h=a(25364),g=a(45487);let p=e=>e.key||"",v=({children:e,custom:t,initial:a=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:d=!0,mode:c="sync"})=>{var u;(0,g.k)(!o,"Replace exitBeforeEnter with mode='wait'");let v=(0,s.useContext)(h.p).forceRender||function(){let e=i(),[t,a]=(0,s.useState)(0),n=(0,s.useCallback)(()=>{e.current&&a(t+1)},[t]),r=(0,s.useCallback)(()=>l.Wi.postRender(n),[n]);return[r,t]}()[0],x=i(),_=function(e){let t=[];return s.Children.forEach(e,e=>{(0,s.isValidElement)(e)&&t.push(e)}),t}(e),f=_,y=(0,s.useRef)(new Map).current,b=(0,s.useRef)(f),w=(0,s.useRef)(new Map).current,N=(0,s.useRef)(!0);if((0,n.L)(()=>{N.current=!1,function(e,t){e.forEach(e=>{let a=p(e);t.set(a,e)})}(_,w),b.current=f}),u=()=>{N.current=!0,w.clear(),y.clear()},(0,s.useEffect)(()=>()=>u(),[]),N.current)return s.createElement(s.Fragment,null,f.map(e=>s.createElement(m,{key:p(e),isPresent:!0,initial:!!a&&void 0,presenceAffectsLayout:d,mode:c},e)));f=[...f];let j=b.current.map(p),C=_.map(p),S=j.length;for(let P=0;P<S;P++){let I=j[P];-1!==C.indexOf(I)||y.has(I)||y.set(I,void 0)}return"wait"===c&&y.size&&(f=[]),y.forEach((e,a)=>{if(-1!==C.indexOf(a))return;let n=w.get(a);if(!n)return;let i=j.indexOf(a),l=e;if(!l){let o=()=>{y.delete(a);let e=Array.from(w.keys()).filter(e=>!C.includes(e));if(e.forEach(e=>w.delete(e)),b.current=_.filter(t=>{let s=p(t);return s===a||e.includes(s)}),!y.size){if(!1===x.current)return;v(),r&&r()}};l=s.createElement(m,{key:p(n),isPresent:!1,onExitComplete:o,custom:t,presenceAffectsLayout:d,mode:c},n),y.set(a,l)}f.splice(i,0,l)}),f=f.map(e=>{let t=e.key;return y.has(t)?e:s.createElement(m,{key:p(e),isPresent:!0,presenceAffectsLayout:d,mode:c},e)}),s.createElement(s.Fragment,null,y.size?f:f.map(e=>(0,s.cloneElement)(e)))}}},function(e){e.O(0,[9774,4617,5445,6556,277,4980,7066,3495,5675,1664,733,9395,7681,6664,4300,5685,577,6893,7536,2216,3763,17,2940,2466,6414,8954,2888,179],function(){return e(e.s=66227)}),_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.