PageSourceSearch

https://www.grtjewels.com/_next/static/chunks/1832-5218199385e11ca1.js

js grtjewels.com collected 2026-09-24 10:28:02 UTC 33,286 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1832,1874],{29854:function(e,a,t){t.d(a,{Z:function(){return j}});var s=t(57437),l=t(24402),r=t(4670),n=t(2265),i=t(65113),o=t(29501),c=t(78361),d=t(13590),u=t(95637),m=t(45061),f=t(58945),h=t(30963),b=t(53974),p=t(65582),x=(e,a,t,s,l)=>{let[r,o]=(0,n.useState)(""),[c,d]=(0,n.useState)(!1),{quoteDetails:x,triggerFormReset:g}=(0,i.CG)(e=>e.digiGoldSlice),v=(0,i.TL)(),y=(0,b.D9)(l),j=(0,b.Nr)(e,80),{trigger:N,isMutating:C}=(0,p.Z)(a&&l?"quote/".concat(a,"/").concat(l,"/calculate"):null,u.gf);(0,n.useEffect)(()=>{(l!==y||g)&&o("")},[l,y,g]);let _=(0,n.useCallback)(e=>{var a;if((null==e?void 0:e.status)==="success"||Array.isArray(e)&&(null===(a=e[0])||void 0===a?void 0:a.status)==="success"){let a=Array.isArray(e)?e[0].data:e.data;o(a[s]),d(!1),v((0,f.$R)(a)),"transfer"!==l&&v((0,f.nV)({...x,...a}))}else o(""),d(!0),v((0,f.$R)(f.Um)),(0,m.C)({message:(null==e?void 0:e.error)||(null==e?void 0:e.message)||"Failed to calculate quantity!",type:"error"})},[x,l,s,v]);return(0,n.useEffect)(()=>{let e=e=>{o(""),d(!0),v((0,f.$R)(f.Um)),(0,m.C)({message:e,type:"error"})};(async()=>{if(j)try{let e=await N({calculation_type:t,value:j});_(e)}catch(a){e(a instanceof Error?a.message:h.N.DIGIGOLD_CALCULATE_ERROR.message)}})()},[j,s,t,v,N]),{calculatedValue:r,isCalculating:C,isCalculationFailed:c}},g=t(92286),v=t(96440),y=t(68412),j=e=>{var a,t;let{optionsData:u,configData:m,currencySymbol:h,onProceed:b}=e,p=(0,i.TL)(),[j,N]=(0,n.useState)("amount"),{amount:C,grams:_,maximum_amount:S,maximum_grams:T,minimum_amount:k,minimum_grams:D}=m,{amount:w,grams:Z}=u,{quoteDetails:V,activeTabkey:O,triggerFormReset:P}=(0,i.CG)(e=>e.digiGoldSlice),q=(0,n.useMemo)(()=>{let e;return"sell"===O||"transfer"===O||"redemption"===O?"amount"===j?e=(0,c.b4)(Number(k),Number(V.amount_balance),!0):"grams"===j&&(e=(0,c.cf)(Number(D),Number(V.quantity_balance),!0)):e="amount"===j?(0,c.b4)(Number(k),Number(S)):(0,c.cf)(Number(D),Number(T)),e?(0,d.F)(e):void 0},[S,T,k,D,j,O,V.amount_balance,V.quantity_balance]),{register:R,handleSubmit:I,formState:{errors:L,isValid:$},setValue:E,reset:F,watch:G}=(0,o.cI)({resolver:q,mode:"onChange"}),A=G("amount"),z=G("grams"),{calculatedValue:M,isCalculationFailed:B}=x(L.amount||"amount"!==j?null:A,V.quoteId,"a","quantity",O),{calculatedValue:U,isCalculationFailed:Y}=x(L.grams||"grams"!==j?null:z,V.quoteId,"q","pre_tax_amount",O);(0,n.useEffect)(()=>{M?E("grams",M,{shouldValidate:!1,shouldDirty:!0,shouldTouch:!1}):E("grams","")},[M,E]),(0,n.useEffect)(()=>{U?E("amount",U,{shouldValidate:!1,shouldDirty:!0,shouldTouch:!1}):E("amount","")},[U,E]),(0,n.useEffect)(()=>{(O||P)&&(F(),p((0,f.NO)(!1)))},[O,P,F,p]);let H=e=>{N(e.target.value),F()},K=async e=>{let a={...e,selectedOption:"amount"===j?"a":"q"};p((0,f.$6)(a)),b(a)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("form",{onSubmit:I(K),className:"digigold-proceed-section ".concat(V.quoteId?"":"disabled-form"),children:[(0,s.jsxs)(l.default,{className:"g-0",children:[(0,s.jsxs)(r.default,{xs:"5",children:[(0,s.jsxs)("label",{className:"custom-radiobtn fs16-variant6",children:[(0,s.jsx)("input",{type:"radio",value:"amount",checked:"amount"===j,onChange:H,name:"radio1"}),(0,s.jsx)("span",{className:"checkmark"}),w.label]}),(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsx)(g.Z,{fieldType:"text",className:"form-control input-price-value fs16-variant17",name:"amount",register:R,onChange:e=>{let a=e.target.value;E("amount",(0,y.Vl)("decimals",a),{shouldValidate:!0})},disabled:"amount"!==j,error:null===(a=L.amount)||void 0===a?void 0:a.message}),(0,s.jsx)("span",{className:"input-left-txt fs18-variant3",children:h})]})]}),(0,s.jsx)(r.default,{xs:"2",className:"digigold-swapicon-section",children:(0,s.jsx)("div",{className:"digigold-swap-icon",children:(0,s.jsx)("i",{className:"bi bi-arrow-left-right"})})}),(0,s.jsxs)(r.default,{xs:"5",children:[(0,s.jsxs)("label",{className:"custom-radiobtn fs16-variant6",children:[(0,s.jsx)("input",{type:"radio",value:"grams",checked:"grams"===j,onChange:H,name:"radio1"}),(0,s.jsx)("span",{className:"checkmark"}),Z.label]}),(0,s.jsxs)("div",{className:"position-relative",children:[(0,s.jsx)(g.Z,{fieldType:"text",className:"form-control input-grams-value fs16-variant17",name:"grams",register:R,onChange:e=>{let a=e.target.value;E("grams",(0,y.Vl)("decimals",a),{shouldValidate:!0})},disabled:"grams"!==j,error:null===(t=L.grams)||void 0===t?void 0:t.message}),(0,s.jsx)("span",{className:"input-right-txt fs18-variant3",children:"1"===z?"gram":"grams"})]})]}),(0,s.jsx)(r.default,{md:"12",children:(0,s.jsxs)("div",{className:"btn-price-section",children:["amount"===j&&(null==C?void 0:C.map(e=>(0,s.jsx)(v.default,{disabled:!V.quoteId,type:"button",className:"btn-price-values ".concat(A===e?"active":""," fs16-variant10 ").concat(V.quoteId?"":"disabled-btn"),handleClick:()=>E("amount",e,{shouldValidate:!0}),children:"+ ".concat(h).concat(e)},e))),"grams"===j&&(null==_?void 0:_.map(e=>(0,s.jsx)(v.default,{disabled:!V.quoteId,type:"button",className:"btn-price-values ".concat(z===e?"active":""," fs16-variant10 ").concat(V.quoteId?"":"disabled-btn"),handleClick:()=>E("grams",e,{shouldValidate:!0}),children:"+ ".concat(e,"g")},e)))]})})]}),(0,s.jsx)(l.default,{children:(0,s.jsx)(r.default,{md:"12",children:(0,s.jsxs)("section",{className:"flex-center flex-column flex",children:[(0,s.jsxs)(v.default,{type:"submit",className:"grt-btn btn--ruby btn--full mt-3 ".concat((!$||Y||B)&&"disabled-btn"),disabled:!$||Y||B,children:["Proceed to ","redemption"===O?"Redeem":O]}),"redemption"!==O&&(0,s.jsx)("p",{className:"txt-content-section fs16-variant6",children:V.tax_percent&&"0"!==V.tax_percent?"Exclusive of ".concat(V.tax_percent,"% GST"):"GST is not applicable"})]})})})]}),"redemption"!==O&&(0,s.jsx)("a",{href:"#faq",className:"faq-btn d-none d-md-block ps-1",children:"FAQ?"})]})}},68362:function(e,a,t){t.r(a),t.d(a,{default:function(){return y}});var s=t(57437),l=t(2265),r=t(61006),n=t(65113),i=t(58945),o=t(68412),c=t(27648),d=t(15595),u=t(61418),m=t(10279),f=t(12754),h=e=>{let{refreshQuote:a}=e,t=(0,n.TL)(),{quoteDetails:r,currencySymbol:h,activeTabkey:b}=(0,n.CG)(e=>e.digiGoldSlice),{amount_balance:p,quantity_balance:x,current_rate:g,pre_tax_current_rate:v,tax_percent:y,quoteValidityTime:j,quoteId:N}=r,{showPopup:C,closePopup:_,countdown:S,ignoreLocalStorage:T}=(0,f.Z)(Number(j)),k="redemption"===b;return(0,l.useEffect)(()=>{N&&T()},[N,T]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("section",{className:"digigold-price-section mt-md-5 mb-3 mt-2",children:[(0,s.jsxs)("p",{className:"d-flex mb-1",children:[(0,s.jsx)("span",{className:"no-shrink",children:" Gold Balance :"})," ",(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:"bold-text text-end",children:["".concat(h).concat(p)," ",(0,s.jsxs)("span",{children:["(",x," gram)"]})]}),v&&(0,s.jsxs)("div",{className:"custom-spinner-wrapper left-aligned mb-2",children:[(0,s.jsx)("p",{children:"@".concat(h).concat(v,"/gram")}),(0,s.jsx)(m.default,{className:"custom-spinner ms-2",size:"sm",animation:"grow",variant:"danger"})," ",(0,s.jsx)("b",{children:"Live"})]})]})]}),!k&&(0,s.jsx)(c.default,{href:"/digi-gold/order/history",type:"button",className:"grt-btn btn--bronze variant-1 btn--full variant-1 mb-md-5 my-2 mb-3",prefetch:!1,children:"View purchase History"}),(0,s.jsxs)("p",{className:"bold-text mb-2",children:["Offer ",k?"Redeem":b," rate"]}),(0,s.jsxs)("p",{className:"mb-2",children:["Price valid for ",(0,s.jsxs)("span",{className:"bold-text price-seconds",children:[(0,o.w1)(S)," Sec "]}),(0,s.jsx)(u.zx,{handleClick:()=>{a(),t((0,i.NO)(!0))},children:(0,s.jsx)("i",{className:"bi bi-arrow-clockwise"})})]}),(0,s.jsxs)("p",{className:"mb-2",children:[(0,s.jsx)("b",{children:"".concat(h).concat(g,"/gram")})," ",!k&&Number(y)>0&&"(".concat(h).concat(v," + ").concat(y,"% GST)")]}),k?(0,s.jsx)("p",{className:"mb-2",children:"Exclusive of Tax (GST is not applicable)"}):(0,s.jsx)("p",{className:"mb-2",children:"24K 99.5% Purity"}),"redemption"!==b&&(0,s.jsx)("a",{href:"#faq",className:"faq-btn d-block d-md-none",children:"FAQ?"})]}),C&&(0,s.jsx)(d.Z,{show:C,quoteValidityTime:j,onRefresh:()=>{_(),t((0,i.nV)(i.oO)),k?t((0,i.i)(!0)):(t((0,i.NO)(!0)),a())}})]})},b=t(66507),p=t(95637),x=t(69714),g=t(45061);let v={buy:x.U2,sell:x.IO,transfer:x.cs,redemption:x.BX};var y=e=>{let{quoteAPI:a,currencySymbol:t}=e,{quoteDetails:o,activeTabkey:c}=(0,n.CG)(e=>e.digiGoldSlice),d=(0,n.TL)(),{data:u,isValidating:m,mutate:f}=(0,r.u)(v[c]?v[c]:null,p.YC,{revalidateOnFocus:!1,shouldRetryOnError:!1});return(0,l.useEffect)(()=>
1{if((null==u?void 0:u.status)==="success"&&(null==u?void 0:u.data))localStorage.removeItem("remainingTime"),d((0,i.nV)(u.data)),d((0,i.kO)(t));else if("redemption"===c){var e,s;Array.isArray(u)&&(null===(e=u[0])||void 0===e?void 0:e.status)==="success"&&(localStorage.removeItem("remainingTime"),d((0,i.nV)(null===(s=u[0])||void 0===s?void 0:s.data)),d((0,i.kO)(t)))}else(null==u?void 0:u.error)&&a===v[c]&&(0,g.C)({message:u.error,type:"error"})},[u,d,a,c,t]),(0,l.useEffect)(()=>{m&&localStorage.removeItem("remainingTime")},[m]),(0,s.jsxs)(s.Fragment,{children:[(null==o?void 0:o.quoteId)&&!m&&(0,s.jsx)(h,{quoteDetails:o,refreshQuote:f}),m&&(0,s.jsx)(b.Z,{responsive:!0})]})}},15595:function(e,a,t){var s=t(57437);t(2265);var l=t(61418),r=t(68412),n=t(18492);a.Z=e=>{let{show:a,onRefresh:t,quoteValidityTime:i}=e;return(0,s.jsxs)(n.Z,{centered:!0,className:"digigold-refresh-modal",backdrop:"static",show:a,keyboard:!1,children:[(0,s.jsx)(n.Z.Body,{children:"Current gold price valid for ".concat((0,r._6)(i)," is expired.")}),(0,s.jsx)(n.Z.Footer,{children:(0,s.jsx)(l.zx,{type:"button",className:"grt-btn btn--ruby btn--medium",handleClick:t,children:"Refresh"})})]})}},70019:function(e,a,t){t.d(a,{Z:function(){return j}});var s=t(57437),l=t(2265),r=t(24402),n=t(4670),i=t(92286),o=t(65113),c=e=>{let{register:a,error:t,name:l,onChange:r}=e,{amountDataForSelectedScheme:n}=(0,o.CG)(e=>e.savingSchemeSlice);return(0,s.jsx)(i.Z,{fieldType:"select",name:l,label:"Select any amount*",register:a,onChange:r,placeholder:"Please select the amount*",error:t,className:"select-field",children:n.length?null==n?void 0:n.map(e=>(0,s.jsx)("option",{value:e,children:e},e)):(0,s.jsx)("option",{value:"",children:"No records found!"},"error")})},d=t(61006),u=t(34370),m=t(83142),f=e=>{let{register:a,name:t,ariaLabel:r,className:n,placeholder:c,disabled:f,conatinerClassName:h,apiDetails:b,sendOptionsData:p,label:x,onChange:g,error:v}=e,y=(0,o.TL)(),{preferredAmount:j,schemeDetailFormData:N}=(0,o.CG)(e=>e.savingSchemeSlice),{endPoint:C,dataConfig:_,additionalInformation:S}=b,{dataProperty:T,key:k,value:D,label:w,customValue:Z}=_,{data:V,error:O}=(0,d.u)(C?{url:C,payload:S}:null,m.gf,{revalidateOnFocus:!1,shouldRetryOnError:!1}),P=(e,a)=>e.replace(/\${(.*?)}/g,(e,t)=>a[t.trim()]||""),q=(0,l.useMemo)(()=>V?T.split(".").reduce((e,a)=>null==e?void 0:e[a],V):[],[V,T]);return(0,l.useEffect)(()=>{var e,a,t;if((null==V?void 0:null===(e=V.data)||void 0===e?void 0:e.default_scheme_code)&&C.includes("method/new")){let e=(null===(a=N.scheme)||void 0===a?void 0:a.split("~")[0])||V.data.default_scheme_code,s=V.data.schemes.find(a=>a.scheme_code===e);if(s){let e=null==j?void 0:null===(t=j.schemes)||void 0===t?void 0:t.find(e=>e.scheme_name===s.scheme_name);j&&y((0,u.n0)((null==e?void 0:e.preferred_amount)||[]))}y((0,u.uN)(V.data.default_branch_name))}},[V,y,C,j,N.scheme]),(0,s.jsx)("div",{className:"form-field",children:(0,s.jsxs)(i.Z,{fieldType:"select",name:t,label:x,sendOptionsData:p,register:a,onChange:p?e=>{g&&g(e,q)}:g,placeholder:c,"aria-label":r,disabled:f,error:v,className:n,conatinerClassName:h,children:[!V&&!O&&(0,s.jsx)("option",{value:"",children:"Loading..."},"loader"),((null==V?void 0:V.error)||O)&&(0,s.jsx)("option",{value:"",children:"No records found!"},"error"),null==q?void 0:q.map(e=>(0,s.jsx)("option",{value:Z?P(Z,e):e[D],children:e[w]},e[k]))]})})},h=t(29139),b=t(29990),p=t(68412),x=t(61418),g=t(57099),v=()=>{let e=(0,o.TL)(),{preferredAmountList:a,amountDataForSelectedScheme:t}=(0,o.CG)(e=>e.savingSchemeSlice),l=(0,p.TZ)(a,t),r=a=>{let t=11*a>=g.r4;e((0,u.Pg)(t)),e((0,u.AK)(a))};return(0,p.Of)(l)&&(0,s.jsxs)(h.Z,{direction:"vertical",children:[(0,s.jsx)(b.Z,{children:"Customer usually prefer"}),(0,s.jsx)("section",{className:"preferred-amounts",children:l.map(e=>(0,s.jsxs)(x.zx,{handleClick:()=>r(e),children:["₹",e]},e))})]})},y=e=>{let{fieldDetails:a,register:t,rowClassName:o,errors:d,subTitles:u,onChangeDetails:m,suggestionValues:h,setValue:b}=e,[p,x]=(0,l.useState)({}),g=(0,l.useMemo)(()=>u?u.reduce((e,a)=>(e[a.position]=a.title,e),{}):{},[u]),y=e=>{var a,l,r,n,o;let{fieldType:u,name:g,label:y,sendOptionsData:j,placeholder:N,className:C,conatinerClassName:_,apiDetail
1s:S,disabled:T,options:k,maxLength:D,max:w,mode:Z,preventPaste:V,status:O}=e,P=null==h?void 0:h[g];switch(u){case"scheme-list":return S?(0,s.jsx)(f,{register:t,label:y,name:g,placeholder:N,onChange:null==m?void 0:m[g],sendOptionsData:j,apiDetails:S,className:C,error:null===(a=d[g])||void 0===a?void 0:a.message}):(0,s.jsx)(i.Z,{fieldType:u,name:g,label:y,sendOptionsData:j,register:t,onChange:null==m?void 0:m[g],placeholder:N,disabled:T,error:null===(l=d[e.name])||void 0===l?void 0:l.message,className:C,conatinerClassName:_,apiDetails:S});case"scheme-amount":return(0,s.jsx)(c,{name:g,register:t,error:null===(r=d.amount)||void 0===r?void 0:r.message,onChange:null==m?void 0:m[g]});case"preferred-amount":return(0,s.jsx)(v,{});case"status":return(0,s.jsxs)("div",{className:"kyc-btn-section d-flex justify-content-center flex-column",children:[(0,s.jsx)("label",{htmlFor:"status-button",className:"d-flex",children:"Status"}),(0,s.jsxs)("button",{id:"status-button",type:"button",className:"fs14-variant15",children:[(0,s.jsx)("i",{className:"bi ".concat((null==O?void 0:O.code)==="Y"?"bi-check-lg":"bi-x-lg")}),null!==(n=null==O?void 0:O.message)&&void 0!==n?n:""]})]});default:return(0,s.jsxs)("div",{style:{position:"relative"},onFocus:()=>{P&&x(e=>({...e,[g]:!0}))},onBlur:()=>{x(e=>({...e,[g]:!1}))},children:[(0,s.jsx)(i.Z,{fieldType:u,name:g,options:k,label:y,sendOptionsData:j,register:t,onChange:null==m?void 0:m[g],placeholder:N,error:null===(o=d[e.name])||void 0===o?void 0:o.message,className:C,conatinerClassName:_,apiDetails:S,disabled:T,maxLength:D,preventPaste:V,mode:Z,max:w}),p[g]&&P&&"tel"===u&&(0,s.jsxs)("div",{style:{marginTop:"4px",padding:"6px 10px",background:"#f1f1f1",borderRadius:"4px",cursor:"pointer",width:"fit-content"},onMouseDown:()=>{b&&b(g,P,{shouldValidate:!0}),x(e=>({...e,[g]:!1}))},children:["Use your registered mobile number: ",(0,s.jsx)("b",{children:P})]})]})}};return(0,s.jsx)(r.default,{className:o,children:null==a?void 0:a.map((e,a)=>{let t=g[a];return(0,s.jsxs)(l.Fragment,{children:[t&&(0,s.jsx)(r.default,{children:(0,s.jsx)("h2",{className:"title mb-md-4 mb-3",children:t})},"".concat(t,"-").concat(a)),(0,l.createElement)(n.default,{...e.colmatrix,key:"".concat(e.name,"_").concat(a),className:"mb-3"},y(e))]},"".concat(e.name,"_").concat(a))})})},j=e=>{let{register:a,formTemplate:t,isSubmitInprogress:l,handleSubmit:i,onSubmit:o,onSubmitButtonClick:c,onSaveButtonClick:d,showSaveButton:u,onChangeDetails:m,hideSubmitButton:f,hideBackButton:h,errors:b,disableForm:p,showResetButton:g,onResetButtonClick:v,disableSubmit:j,onBackButtonClick:N,onSkipButtonClick:C,showSkipButton:_,error:S,suggestionValues:T,setValue:k}=e,{fields:D,button:w,allFieldsMatrix:Z,subTitles:V}=t,{submit:O,additionalButton:P,resetButton:q,backButton:R,skipButton:I,colClassName:L}=w,{text:$,colmatrix:E,...F}=O;return(0,s.jsx)("form",{onSubmit:i(o),className:p?"disabled-form":"",children:(0,s.jsxs)(r.default,{children:[(0,s.jsx)(n.default,{...null==Z?void 0:Z.colmatrix,children:(0,s.jsx)(y,{rowClassName:null==Z?void 0:Z.rowClassName,fieldDetails:D,subTitles:V,register:a,errors:b,onChangeDetails:m,suggestionValues:T,setValue:k})}),""!==S&&(0,s.jsx)("p",{className:"error-message mb-0 mt-1",children:S}),(0,s.jsxs)(n.default,{...E,className:"d-flex gap-md-4 mobile-jss-btn mb-3 gap-2 ".concat(null!=L?L:""),children:[!h&&R&&(0,s.jsx)(x.zx,{type:"button",handleClick:N,className:R.className,children:R.text}),!f&&(0,s.jsx)(x.zx,{...F,type:"submit",className:"".concat(F.className," ").concat(l&&"disabled-btn"),disabled:j||l,handleClick:c,children:$}),u&&P&&(0,s.jsx)(x.zx,{className:"".concat(P.className," ").concat(l&&"disabled-btn"),type:"submit",handleClick:d,disabled:j||l,children:P.text}),_&&I&&(0,s.jsx)(x.zx,{className:I.className,type:"button",handleClick:C,children:I.text}),g&&q&&(0,s.jsx)(x.zx,{className:q.className,type:"button",handleClick:v,children:q.text})]})]})})}},54834:function(e,a,t){t.d(a,{Z:function(){return C}});var s=t(57437),l=t(90099);let r={button:{submit:{className:"grt-btn btn--ruby btn--large mx-md-0 mx-auto",text:"Submit",colmatrix:{md:12}}},fields:[{label:"Scheme Name*",placeholder:"Please select the scheme*",name:"scheme",fieldType:"select",sendOptionsData:!0,apiDetail
1s:{endPoint:"saving-schemes/method/existing",additionalInformation:{isToken:!0},dataConfig:{key:"scheme_code",value:"scheme_code",customValue:"${scheme_code}~${scheme_name}",label:"scheme_name",dataProperty:"data"}},colmatrix:{md:6}},{fieldType:"text",name:"msno",label:"Membership Number*",maxLength:4,placeholder:"Four digit of membership number (Ex., 1234)*",className:"input-field",conatinerClassName:"form-field",colmatrix:{md:6}},{fieldType:"text",name:"group_code",label:"Group Code*",maxLength:4,placeholder:"Three digit of group code (Ex., ABC)*",className:"input-field",conatinerClassName:"form-field",colmatrix:{md:6}},{fieldType:"select",name:"branch",label:"Branch*",placeholder:"Please Select Branch*",className:"select-field",apiDetails:{endPoint:"saving-scheme/branches/",dataConfig:{dataProperty:"data",key:"code",value:"code",label:"name"}},colmatrix:{md:6}},{fieldType:"tel",name:"mobile",maxLength:10,label:"Scheme Registerd Mobile Number*",placeholder:"Mobile Number*",className:"input-field",conatinerClassName:"form-field",colmatrix:{md:6}},{fieldType:"email",label:"Email*",name:"email",maxLength:50,placeholder:"Email ID*",className:"input-field",conatinerClassName:"form-field",colmatrix:{md:6}}]};var n=t(29501),i=t(13590),o=t(61006),c=t(2265),d=t(65582),u=t(65113),m=t(68142),f=t(34370),h=t(45061),b=t(70019),p=t(78361),x=t(68412),g=t(66507),v=t(83142),y=t(69714),j=t(25236),N=t(99376),C=e=>{var a;let{handleTabChange:t,mutateSchemeData:C,isRedemption:_=!1}=e,[S,T]=(0,c.useState)(null),[k,D]=(0,c.useState)(null),w=(0,u.TL)(),{error:Z,showError:V,clearError:O}=(0,j.Z)(),P=(0,N.useRouter)(),{data:q,error:R}=(0,o.u)(y.fk,v.SU,{revalidateOnFocus:!1,shouldRetryOnError:!1}),I=(0,c.useMemo)(()=>{if((null==q?void 0:q.status)!=="success")return{scheme:"",msno:"",group_code:"",branch:"",mobile:"",email:""};{let{data:e}=q,{email:a,mobile:t}=e;return{scheme:"",msno:"",group_code:"",branch:"",mobile:"",email:a}}},[q]),{register:L,handleSubmit:$,formState:{errors:E,isValid:F},setValue:G}=(0,n.cI)({resolver:(0,i.F)(p.ZD),mode:"onChange",values:I}),{trigger:A,isMutating:z}=(0,d.Z)("saving-scheme/mobile/authentication",v.rT),{trigger:M,isMutating:B}=(0,d.Z)("saving-scheme/self/schemes",v.HS),U=async e=>{try{let a=await A({mobile:e});if((null==a?void 0:a.status)==="success"){let{uuid:e}=(null==a?void 0:a.data)||{};return e}if((null==a?void 0:a.status)==="error")return(0,h.C)({message:a.message,type:"error"}),!1;if(null==a?void 0:a.error)return(0,h.C)({message:a.error,type:"error"}),!1}catch(e){return!1}},Y=async(e,a)=>{try{var t;let[s]=(null===(t=e.scheme)||void 0===t?void 0:t.split("~"))||[],l={company_code:e.branch,email:e.email,group_code:e.group_code,mobile:e.mobile,msno:e.msno,scheme_code:s};a&&(l.uuid=a),T(null);let r=await M({data:l});if((null==r?void 0:r.status)==="success"){let{scheme_id:e}=(null==r?void 0:r.data)||!1;return e}if((null==r?void 0:r.status)==="error")return V(null==r?void 0:r.message),!1;if(null==r?void 0:r.error)return V(r.error),!1}catch(e){return!1}},H=async e=>{if(e&&k&&S){let{uuid:e}={...S},a=await Y(k,e);a&&(w((0,f.XS)(a)),_&&t&&C?(C(),t("Choose Existing Plan")):P.push("/jewellery-purchase-plan/scheme"))}T(null)},K=async e=>{var a;if((null==q?void 0:null===(a=q.data)||void 0===a?void 0:a.mobile)!==e.mobile){D(e);let a=await U(e.mobile);a&&T({mobile:e.mobile,uuid:a})}else{let a=await Y(e);a&&(w((0,f.XS)(a)),_&&t&&C?(C(),t("Choose Existing Plan")):P.push("/jewellery-purchase-plan/scheme"))}},Q=(e,a,t,s)=>{O();let l=e.target.value;G(a,(0,x.Vl)(t,l,s),{shouldValidate:!0})};return(0,s.jsxs)(l.default,{children:[!q&&!R&&(0,s.jsx)(g.Z,{}),(0,s.jsx)("section",{className:"form-style1",children:(0,s.jsx)(b.Z,{formTemplate:r,register:L,errors:E,setValue:G,suggestionValues:{mobile:(null==q?void 0:null===(a=q.data)||void 0===a?void 0:a.mobile)||""},onSubmit:K,onChangeDetails:{mobile:e=>Q(e,"mobile","numeric"),msno:e=>Q(e,"msno","numeric"),group_code:e=>Q(e,"group_code","alphanumericwithoutspace"),scheme:e=>{G("scheme",e.target.value,{shouldValidate:!0}),O()},branch:e=>{G("branch",e.target.value,{shouldValidate:!0}),O()},email:e=>{G("email",e.target.value,{shouldValidate:!0}),O()}},handleSubmit:$,isSubmitInprogress:z||B||!F,error:Z})}),S&&(0,s.jsx)(m.Z,{mobileOTPFormData:S,open:!(0,x.nK)(S),onClose:H,isRedemption:_})]})}},66507:function(e,a,t){var s=t(57437);t(2265);
1var l=t(33145);a.Z=e=>{let{responsive:a=!1}=e;return(0,s.jsx)("div",{className:"preloader-style ".concat(a?"responsive-loader":""),children:(0,s.jsx)(l.default,{src:"/grt-placeholder.gif",alt:"GRT Jewels - Image Lotus loader",height:400,width:400,priority:!0,unoptimized:!0})})}},68142:function(e,a,t){t.d(a,{Z:function(){return N}});var s=t(57437),l=t(2265),r=t(5767),n=t(57797),i=t(92286),o=t(45061),c=t(65113),d=t(34370),u=t(78361),m=t(68412),f=t(13590),h=t(10279),b=t(29501),p=t(65582),x=t(83142),g=t(61418),v=t(25236),y=e=>{var a;let{onModalClose:t,uuid:l,toProceedNextStep:r}=e,n=(0,c.TL)(),{trackPreviousStepperIndex:y}=(0,c.CG)(e=>e.savingSchemeSlice),{error:j,showError:N,clearError:C}=(0,v.Z)(),{register:_,handleSubmit:S,setValue:T,formState:{errors:k}}=(0,b.cI)({resolver:(0,f.F)(u.Pc),mode:"onChange"}),{trigger:D,isMutating:w}=(0,p.Z)("saving-scheme/mobile/authentication/otp-verification",x.$),Z=async e=>{try{let s=await D({otp:e.otp,uuid:l});if("success"===s.status)(0,o.C)({message:s.message,type:"success"}),r?n((0,d.E3)(1)):n((0,d.E3)(y)),t(!0);else if("error"===s.status){if((0,m.nK)(s.errors))N(s.message);else{let{otp:e}=s.errors,[a]=e;N(a)}}else{var a;let e=null!==(a=s.error)&&void 0!==a?a:s.message;N(e)}}catch(e){N((0,m.e$)(e))}};return(0,s.jsxs)("form",{onSubmit:S(Z),className:"form-style1 w-75",children:[(0,s.jsx)(i.Z,{fieldType:"text",name:"otp",register:_,error:null===(a=k.otp)||void 0===a?void 0:a.message,onChange:e=>{T("otp",e.target.value),C()},className:"mx-auto mt-3"}),""!==j&&(0,s.jsx)("p",{className:"error-message mt-1",children:j}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsxs)(g.zx,{type:"submit",disabled:w,className:"grt-btn btn--ruby btn--large mx-auto my-3",children:[w&&(0,s.jsx)("output",{"aria-live":"polite",children:(0,s.jsx)(h.default,{as:"span",animation:"grow",size:"sm","aria-hidden":"true"})}),w?"Processing...":"Validate"]})})]})},j=t(19405),N=l.memo(e=>{let{open:a,onClose:t,toProceedNextStep:l,mobileOTPFormData:i,isRedemption:o}=e,{uuid:c,mobile:d}=i;return(0,s.jsx)(s.Fragment,{children:o&&a?(0,s.jsxs)("section",{className:"form-wrapper rm-shadow mt-5",children:[(0,s.jsxs)("h4",{children:["You will receive OTP via SMS on ",(0,j.O3)(i.mobile)]}),(0,s.jsx)(y,{toProceedNextStep:l,uuid:c,onModalClose:t})]}):(0,s.jsxs)(n.Z,{show:a,onHide:t,className:"grt-offcanvas variant-1 otp-offcanvas",position:"end",closingButtonRequired:!1,children:[(0,s.jsx)("div",{className:"customoverlay-drawer-header",children:(0,s.jsx)("h1",{className:"overlay-drawer-title",children:"Verify Mobile Number"})}),(0,s.jsxs)("div",{className:"custom-drawer-body",children:[(0,s.jsxs)("p",{className:"text-center",children:["You will receive OTP via SMS"," ",(0,s.jsx)(r.Z,{bg:"badge-style2",className:"ms-2",children:d})]}),(0,s.jsx)(y,{toProceedNextStep:l,uuid:c,onModalClose:t})]})]})})})},9381:function(e,a,t){var s=t(57437);t(2265);var l=t(21404);a.Z=e=>{let{showModal:a=!1,containerClassName:t="",children:r,handleClose:n=()=>{},placement:i,showCancelBtn:o=!0}=e;return(0,s.jsxs)(l.Z,{show:a,onHide:n,className:t,...i&&{placement:i},children:[o&&(0,s.jsx)(l.Z.Header,{closeButton:!0}),(0,s.jsx)(l.Z.Body,{children:r})]})}},57797:function(e,a,t){var s=t(57437),l=t(61418);t(2265);var r=t(21404);a.Z=e=>{let{show:a,onHide:t,title:n,className:i,position:o="start",enableBackdrop:c=!0,enableBodyScrolling:d=!1,enableBoth:u=!1,backgroundImage:m,closingButtonRequired:f=!0,children:h}=e;return(0,s.jsxs)(r.Z,{show:a,onHide:t,placement:o,backdrop:u?"static":!!c,scroll:!!(u||d),style:{backgroundImage:m?"url(".concat(m,")"):void 0,backgroundSize:"cover",backgroundPosition:"center"},className:i,children:[(0,s.jsxs)(r.Z.Header,{className:"overlay-drawer-header",children:[(0,s.jsx)(r.Z.Title,{className:"overlay-drawer-title",children:n}),f&&(0,s.jsx)(l.zx,{type:"button",className:"button-close md rounded","aria-label":"Close",handleClick:t,children:(0,s.jsx)("i",{className:"bi bi-x"})})]}),(0,s.jsx)(r.Z.Body,{className:"overlay-drawer-body",children:h})]})}},30048:function(e,a,t){t.r(a);var s=t(57437);t(2265);var l=t(6406);t(97425),t(49608),a.default=e=>{let{settings:a,children:t}=e;return(0,s.jsx)(l.Z,{...a,children:t})}},84773:function(e,a,t){t.d(a,{Z:function(){return c}});var s=t(57437);t(2265);
1var l=t(61418),r=t(51268),n=t(35217),i=e=>{let{id:a,activeStep:t,lastVisitedStepperIndex:i,onStepClick:o,stepLabel:c,stepsCount:d,hightlightCompletedStep:u,markCompletedSteps:m,hightlightActiveStep:f,zeroPaddedNumber:h}=e,b=u&&a<=i,p="".concat(h?"0":"").concat(a+1);return(0,s.jsxs)("li",{className:"stepper-item ".concat(f&&a===t?"active":""),children:[(0,s.jsxs)("div",{className:"stepper-item-header ".concat(b?"completed":""),children:[(0,s.jsx)("span",{className:"step-circle ".concat(a<t?"completed":""," ").concat(a===t?"active":""),children:m&&a<t?(0,s.jsx)("i",{className:"bi bi-check2"}):p}),(0,s.jsx)("p",{className:"step-label",children:(0,s.jsxs)(l.zx,{disabled:a>i,handleClick:()=>null==o?void 0:o(a),className:"".concat(a===t?"cursor-auto":""),children:[c,u&&a<i&&(0,s.jsx)(r.G,{icon:n.Yai,className:"edit-icon",title:"Click here to edit"})]})})]}),a<d-1&&(0,s.jsx)("div",{className:"step-line"})]})},o=t(65113),c=e=>{let{currentStep:a,steps:t,onStepClick:l,className:r="",markCompletedSteps:n,lastVisitedIndex:c,hightlightCompletedStep:d,hightlightActiveStep:u,zeroPaddedNumber:m}=e,{stepperCount:f,lastVisitedStepperIndex:h}=(0,o.CG)(e=>e.savingSchemeSlice),b=f||a;return(0,s.jsx)("ul",{className:"horizontal-stepper ".concat(null!=r?r:""),children:t.map((e,a)=>(0,s.jsx)(i,{id:a,activeStep:b,lastVisitedStepperIndex:null!=c?c:h,onStepClick:l,stepLabel:e,stepsCount:t.length,hightlightCompletedStep:d,markCompletedSteps:n,hightlightActiveStep:u,zeroPaddedNumber:m},e))})}},25236:function(e,a,t){var s=t(2265);a.Z=()=>
1{let[e,a]=(0,s.useState)("");return{error:e,showError:e=>{a(e)},clearError:()=>{a("")}}}},12754:function(e,a,t){var s=t(2265);a.Z=e=>{let[a,t]=(0,s.useState)(()=>{let a=localStorage.getItem("remainingTime");return a?Number(a):e}),[l,r]=(0,s.useState)(!1);(0,s.useEffect)(()=>{localStorage.setItem("remainingTime",a.toString()),0===a&&r(!0);let e=setInterval(()=>{t(a=>a<=1?(clearInterval(e),0):a-1)},1e3);return()=>{clearInterval(e)}},[a]);let n=()=>{t(e),localStorage.setItem("remainingTime",e.toString())},i=()=>{localStorage.removeItem("remainingTime"),n()};return{showPopup:l,closePopup:()=>{r(!1),n(),i()},resetCountdown:n,countdown:a,clearLocalStorage:i,ignoreLocalStorage:(0,s.useCallback)(()=>{t(e),localStorage.setItem("remainingTime",e.toString())},[e])}}},95637:function(e,a,t){t.d(a,{IL:function(){return p},Is:function(){return f},Lg:function(){return g},Lw:function(){return v},Lx:function(){return x},Y4:function(){return b},YC:function(){return r},aq:function(){return u},ek:function(){return n},gB:function(){return c},gK:function(){return d},gf:function(){return o},lv:function(){return i},vL:function(){return h},wo:function(){return l},x5:function(){return m}}),t(83079);var s=t(12119),l=(0,s.$)("f6610063c4708bfb342f07a757c99b916aa1ae37"),r=(0,s.$)("5dac702099a43d2648cd5738c4b909a494160b8a"),n=(0,s.$)("0243bdb3c5e5bdd25bcbe57c1b74e32b1321b356"),i=(0,s.$)("5bb104bf6517e3da5c5de1d0927f7e145bdd58dd"),o=(0,s.$)("0061264eade0c94dd78de82d91f2c73f650c7331"),c=(0,s.$)("ff65af30a44245321fea6f34bfb57d4417663276"),d=(0,s.$)("f2b2ca6a2790a7d36d794f87c595568316b93bf6"),u=(0,s.$)("c6e85e5359ad9b3eca0a535e589dd1b8fd83f3fd"),m=(0,s.$)("8b3f02b86a46b07f475c093fc96114ba1e588ddc");(0,s.$)("314b863f913d901e76f3067256b92b64ca15664b");var f=(0,s.$)("11ce2afdff514c94eab662689288e6ba8e6add0c");(0,s.$)("70638d859345fadd21db8e00144fd6858905bd20");var h=(0,s.$)("747fd62584c72ab63016bf4dd1ff833ee8fc84a1"),b=(0,s.$)("0ea3aaf3a92f1513d216d4d72190d5f91bb04836");(0,s.$)("97ca39aa58fc38c029a0fa5cd603d19d093e546c"),(0,s.$)("6de2919b95f4744a5adb0329755784e173156650");var p=(0,s.$)("c61901c94ae3b78b08edb5a8e552f263b668c452"),x=(0,s.$)("a7670f4fdc18f588776b8b2845aba2253bc3d3e9"),g=(0,s.$)("ea804b7ba974d9bf982d42cd9ff2159f606c9e12"),v=(0,s.$)("2ecb797010b8d82cb7547192ae4d4d619657d482");(0,s.$)("c98ab0d98e62a5f5707d017d0d6b1d066a72c314")},58945:function(e,a,t){t.d(a,{$6:function(){return p},$B:function(){return v},$P:function(){return b},$R:function(){return x},Dj:function(){return C},Gb:function(){return d},NO:function(){return w},Oe:function(){return g},TR:function(){return y},Um:function(){return r},V5:function(){return c},VS:function(){return N},Yb:function(){return Z},a5:function(){return i},eT:function(){return j},eq:function(){return S},i:function(){return k},kO:function(){return f},n$:function(){return D},nV:function(){return h},oO:function(){return n},qv:function(){return _}});var s=t(20301);let l={amount:[],grams:[],minimum_amount:"",maximum_amount:"",minimum_grams:"",maximum_grams:"",tax_percentage:""},r={pre_tax_amount:"",quantity:"",total_tax_amount:"",total_amount:"",tax1_amount:"",tax2_amount:"",tax3_amount:"",quoteId:"",quoteValidityTime:0,current_rate:"",pre_tax_current_rate:"",tax3Amt:"",preTaxAmount:"",createdAt:"",is_registered:!1,quantity_balance:"",amount_balance:"",tax_percent:"",tax1Perc:"",tax2Perc:""},n={quoteId:"",quoteValidityTime:0,current_rate:"",pre_tax_current_rate:"",createdAt:"",is_registered:!1,quantity_balance:"",amount_balance:"",tax_percent:"",max_amount_redeem:"",max_quantity_redeem:"",tax3Amt:"",preTaxAmount:"",tax1Perc:"",tax2Perc:""},i={amount:"",grams:"",selectedOption:""},o={account_name:"",account_number:"",reenter_account_number:"",ifsc_code:"",bank_name:""},c={status:"",quantity:"",mobile:0,payment_status_message:"",type:"",current_rate:""},d={uuid:"",otp_sent:!1,mobile:"",message:""},u=(0,s.oM)({name:"digiGoldSlice",initialState:{buy:l,sell:l,transfer:l,quoteDetails:n,currencySymbol:"",paymentMethod:"",formValues:i,calculatedDetails:r,activeTabkey:"buy",sellCheckoutFormData:o,otpData:d,enteredOTP:"",transferDetailsData:{message:"",mobile:""},transferResponseData:c,orderList:[],redirectURL:"/",closeRedemption:!1,showConfirmRedemption:!1,triggerFormReset:!1,digiGoldLogo:""},reducers:{setCurrencySymbol(e,a){e.currencySymbol=a.payload},setDigiGoldLogo(e,a){e.digiGoldLogo=a.payload},setCloseRedemption(e,a){e.closeRedemption=a.payload},setTriggerFormReset(e,a){e.triggerFormReset=a.payload},setShowConfirmRedemption(e,a){e.showConfirmRedemption=a.payload},setRedirectURL(e,a){e.redirectURL=a.payload},setPaymentMethod(e,a){e.paymentMethod=a.payload},setActiveTabKey(e,a){e.activeTabkey=a.payload},setBuyDetails(e,a){e.buy=a.payload},setQuoteDetails(e,a){e.quoteDetails=a.payload}
1,setCalculatedDetails(e,a){e.calculatedDetails=a.payload},setFormValues(e,a){e.formValues=a.payload},setSellCheckoutFormData(e,a){e.sellCheckoutFormData=a.payload},setOTPData(e,a){e.otpData=a.payload},setEnteredOTP(e,a){e.enteredOTP=a.payload},setTransferDetailsFormData(e,a){e.transferDetailsData=a.payload},setTransferResponseData(e,a){e.transferResponseData=a.payload},setOrderListData(e,a){e.orderList=a.payload},resetAllState(e){e.quoteDetails=n,e.formValues=i,e.enteredOTP="",e.otpData=d,e.sellCheckoutFormData=o,e.calculatedDetails=r}}}),{setBuyDetails:m,setCurrencySymbol:f,setQuoteDetails:h,setPaymentMethod:b,setFormValues:p,setCalculatedDetails:x,setActiveTabKey:g,setSellCheckoutFormData:v,setOTPData:y,setEnteredOTP:j,setTransferDetailsFormData:N,setTransferResponseData:C,setOrderListData:_,resetAllState:S,setRedirectURL:T,setCloseRedemption:k,setShowConfirmRedemption:D,setTriggerFormReset:w,setDigiGoldLogo:Z}=u.actions;a.ZP=u.reducer},74402:function(e,a,t){t.d(a,{_F:function(){return l},b2:function(){return s},jm:function(){return r}});let s=["Summary","Address","Payment"],l=["User Details","Scheme Details","Additional Information","Detail Summary","Payment Method"],r=["Choose a Diamond","Choose a Setting","Complete Customization"]}}]);

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.