PageSourceSearch

https://www.freecharge.in/_next/static/chunks/pages/reactivateWallet-cf69227cba601c0c.js

js freecharge.in collected 2026-09-24 15:21:51 UTC 9,693 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1571],{46147:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>U,default:()=>L});var n=a(37876),r=a(14232),i=a(76e3),o=a(89099),s=a.n(o),l=a(2171),c=a(40123),p=a.n(c),m=a(19850),d=a.n(m),u=a(22160),N=a(88635);let f={HEADER_TEXT:"Reactivate Wallet",DONE:"DONE",GO_BACK:"Go Back",ERROR_MESSAGE:"We are unable to process your request now. Please try again after some time.",CONGRATULATION:"Congratulations!",CONGRATULATION_MESSAGE:"Your Freecharge wallet has been reactivated",CONSENT_TEXT:"On successful PAN verification, you will receive an OTP from Freecharge"},O={STATUS_ICON:"status icon"};var b=a(62462),g=a(93359);let v=(0,l.Ng)(e=>({reactivateWallet:e.reactivateWallet}))(e=>{let{reactivateWallet:t,generateOtp:a,submitOtp:i,resendOtp:o,showHeader:l}=e,{generateOtpResponse:c,resendOtpResponse:m}=t,[O,v]=(0,r.useState)({});return(0,r.useEffect)(()=>{if(!p()(m)&&m.data&&m.data.otpId){let{otpId:e}=m.data;v({...O,otpId:e})}},[m]),(0,r.useEffect)(()=>{p()(c)?a():v({step:"panOtp",maskedMobileNumber:c.maskedMobileNumber?c.maskedMobileNumber:"",otpId:c.otpId?c.otpId:""})},[c]),(0,r.useEffect)(()=>{(0,g.MZ)(b.Ye.PAGE_LOAD,{pageName:b.ip.otpScreenLanding})},[]),(0,n.jsx)(N.default,{customAppLayoutClass:"reactivate-wallet-container-wrapper",layoutId:l?2:3,headerText:f.HEADER_TEXT,handleGoBackClick:()=>{s().back()},children:(0,n.jsx)(u.A,{submitOtpCb:e=>{if(d()(i)){let{otpId:t=""}=O;i(e,t)}},resendOtpCb:()=>{if(d()(o)){let{otpId:e=""}=O;o(e)}},timerDurationInSec:30,formName:"reactivateWallet",...O})})});var C=a(16747),E=a(43665),R=a(15785),A=a(95118),k=a(7766),w=a.n(k);let T=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.useRouter)(),a=w()(t,"query.flowName",e.verificationFlow),n=w()(t,"query.screenName",e.screenName),r=w()(t,"query.poiReferenceNo",e.poiReferenceNo),i=w()(t,"query.maskedPoiNumber",e.maskedPoiNumber),s=w()(t,"query.maskedMobileNumber",e.maskedMobileNumber),l=w()(t,"query.poiVerified",e.poiVerified),c=w()(t,"query.poiName",e.poiName),p=w()(t,"query.otpId",e.otpId),m=w()(t,"query.errorMessage",e.errorMessage);return{verificationFlow:a,screenName:n,poiReferenceNo:r?decodeURIComponent(r):"",maskedPoiNumber:i?decodeURIComponent(i):"",maskedMobileNumber:s?decodeURIComponent(s):"",poiVerified:l?decodeURIComponent(l):"",poiName:c?decodeURIComponent(c):"",otpId:p?decodeURIComponent(p):"",errorMessage:m?decodeURIComponent(m):""}};var I=a(73709),h=a(33688);let _=(0,l.Ng)(e=>({userPoiDetails:e.kycReducer.userPoiDetails,panSubmitDetails:e.reactivateWallet.panSubmitDetails,generateOtpResponse:e.reactivateWallet.generateOtpResponse,resendOtpResponse:e.reactivateWallet.resendOtpResponse}),e=>({reduxActions:(0,i.zH)({...E.o,...R.o},e)}))(e=>{let{submitOtpCb:t,userPoiDetails:a,panSubmitDetails:i,screenName:o,maskedPoiNumber:l,poiVerified:c,poiName:m,generateOtpResponse:O,maskedMobileNumber:b,otpId:g,poiReferenceNo:v,resendOtp:E,reduxActions:R,generateOtp:k,resendOtpResponse:w,showHeader:T}=e,[_,x]=(0,r.useState)(null),S=!p()(a.kycEligibilityDetails)&&a.kycEligibilityDetails||{},y=!p()(S)&&!S.eligible,D=(e,t)=>{let a=i&&i.refNumber?encodeURIComponent(i.refNumber):"";s().replace("/reactivateWallet?flowName=panOtpFlow&screenName=panOtp&maskedMobileNumber=".concat(encodeURIComponent(e),"&otpId=").concat(encodeURIComponent(t),"&poiReferenceNo=").concat(a),"/reactivateWallet/panOtpFlow?screenName=panOtp&maskedMobileNumber=".concat(encodeURIComponent(e),"&otpId=").concat(encodeURIComponent(t),"&poiReferenceNo=").concat(a))};return(0,r.useEffect)(()=>{if("panOtp"!==o)if(p()(a));else{let e=(e=>{if(!p()(e)){let{userDocumentDetail:t}=e;if(t)return(0,A.gU)("poiType","PAN_CARD",t.documents)}})(a);if(x(e),p()(e))s().replace("/reactivateWallet?flowName=panOtpFlow&screenName=panLanding","/reactivateWallet/panOtpFlow?screenName=panLanding");else{let t=encodeURIComponent(e.maskedPoiNumber),a=encodeURIComponent(e.poiVerified),n=encodeURIComponent(e.poiName);s().replace("/reactivateWallet?flowName=panOtpFlow&screenName=panLanding&poiName="+n+"&maskedPoiNumber="+t+"&poiVerified="+a,"/reactivateWallet/panOtpFlow?screenName=panLanding&poiName="+n+"&maskedPoiNumber="+t+"&poiVerified="+a)}}},[a]),(0,r.useEffect)(()=>{p()(i)||(i.poiVerified?k(i.refNumber):s().replace("/reactivateWallet?flowName=panOtpFlow&screenName=panLanding","/reactivateWallet/panOtpFlow?screenName=panLanding"))},[i]),(0,r.useEffect)(()=>
1{if(!p()(null==O?void 0:O.response)){let{maskedMobileNumber:e="",otpId:t=""}=O.response;D(e,t)}},[O]),(0,r.useEffect)(()=>{if(!p()(w)&&!p()(O)){let{maskedMobileNumber:e=""}=O.response,{otpId:t}=w.data;D(e,t)}},[w]),(0,r.useEffect)(()=>{o&&("panLanding"===o?(e=>{(0,h.mi)({pageName:"true"===e?I.tA.panScreenLanding.pageName:I.tA.panNameScreenLanding.pageName,steps_name:"true"===e?I.tA.panScreenLanding.stepDescription:I.tA.panNameScreenLanding.stepDescription})})(c):"panOtp"===o&&(0,h.mi)({pageName:I.tA.otpScreenLanding.pageName,steps_name:I.tA.otpScreenLanding.stepDescription}))},[o]),y?(0,n.jsx)(C.A,{reason:S.reasonOfNonEligibility,showHeader:T,headerText:f.HEADER_TEXT}):(0,n.jsx)(N.default,{customAppLayoutClass:"reactivate-wallet-container-wrapper",layoutId:T?2:3,headerText:f.HEADER_TEXT,handleGoBackClick:()=>{s().back()},children:(0,n.jsx)(u.A,{...e,panDetails:_,kycDetail:a.kycDetail,submitPanDetailsCb:(e,t,a)=>{(e=>{(0,h.mi)({pageName:"true"===e?I.tA.panScreenProceedButtonClick.pageName:I.tA.panNameScreenProceedButtonClick.pageName,steps_name:"true"===e?I.tA.panScreenProceedButtonClick.stepDescription:I.tA.panNameScreenProceedButtonClick.stepDescription})})(c),R.reactivateWalletPanSubmitRequest(e,t,a)},name:m,maskedPanNumber:l,poiVerified:"true"===c,submitOtpCb:e=>{t(e,g,v)},maskedMobileNumber:b,resendOtpCb:()=>{d()(E)&&E(g)},timerDurationInSec:30,step:o,consentText:f.CONSENT_TEXT,formName:"reactivateWallet"})})});var x=a(82572);let S=e=>{let{imgUrl:t,titleText:a,titleDesc:r,customClass:i,titleSubDesc:o}=e;return(0,n.jsxs)("div",{className:i?"title-div ".concat(i):"title-div",children:[t&&(0,n.jsx)(x.A,{src:t,alt:O.STATUS_ICON}),(0,n.jsx)("p",{className:"title-text",children:a}),r&&(0,n.jsxs)("p",{className:"title-desc",children:[r,o&&(0,n.jsx)("span",{className:"bold-text",children:o})]})]})};var y=a(3738),D=a(62238);a(47777);let P=e=>{let{errorMessage:t,isMobileView:a}=e;return(0,n.jsxs)("div",{className:"reactivate-wallet-container error-page",children:[(0,n.jsx)(S,{imgUrl:"".concat(D.wT,"/mobile/images/sherlock.png"),titleText:t||f.ERROR_MESSAGE}),(0,n.jsx)("div",{className:"btn-div",children:(0,n.jsx)(y.default,{handleClick:()=>{(0,A.eO)(a)},text:f.GO_BACK,customClass:"home-button",buttonType:"primary"})})]})},W=e=>{let{isMobileView:t,showHeader:a}=e,r=()=>{(0,A.eO)(t)};return(0,n.jsx)(N.default,{customAppLayoutClass:"reactivate-wallet-container-wrapper",layoutId:a?2:3,headerText:f.HEADER_TEXT,handleGoBackClick:r,children:(0,n.jsxs)("div",{className:"reactivate-wallet-container success-page",children:[(0,n.jsx)(S,{imgUrl:"".concat(D.Cp,"/kyc/done.png"),titleText:f.CONGRATULATION,titleDesc:f.CONGRATULATION_MESSAGE}),(0,n.jsx)("div",{className:"btn-div",children:(0,n.jsx)(y.default,{handleClick:r,text:f.DONE,customClass:"home-button",buttonType:"primary"})})]})})};var M=a(54022),U=!0;let L=(0,l.Ng)(e=>{let{reactivateWallet:t={},app:{platform:a=""}}=e;return{reactivateWallet:t,platform:a}},e=>({reduxActions:(0,i.zH)(E.o,e)}))(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{reduxActions:t={},platform:a="",reactivateWallet:i={}}=e,{reactivateWalletMode:o,otpVerifySuccess:l,error:c}=i,{verificationFlow:m="",screenName:d="",poiReferenceNo:u="",maskedPoiNumber:N="",maskedMobileNumber:f="",poiVerified:O="",poiName:b="",otpId:g="",errorMessage:C=""}=T(e),[E,R]=(0,r.useState)(null),[k,w]=(0,r.useState)(!0),x=e=>({request:{poiReferenceNo:e||""},intent:null}),S=e=>{let a=x(e);t.reactivateWalletGenerateOtpRequest(a)},y=(e,a,n)=>{(0,h.mi)({pageName:I.tA.verifyOtpClick.pageName,steps_name:I.tA.verifyOtpClick.stepDescription}),t.reactivateWalletOtpVerifyRequest({otpId:a,otp:e,request:{poiReferenceNo:n||""}})},D=e=>{if((0,h.mi)({pageName:I.tA.resendOtpClick.pageName,steps_name:I.tA.resendOtpClick.stepDescription}),p()(e))S();else{let a=x(u);a.otpId=e,t.reactivateWalletResendOtpRequest(a)}};return((0,r.useEffect)(()=>{if(p()(o)&&!m)t.reactivateWalletModeRequest();else if(!p()(o)){let e=o.response;"OTP"===e?R("otpFlow"):"PAN_OTP"===e&&R("panOtpFlow")}},[o]),(0,r.useEffect)(()=>
1{!p()(l)&&l.otpVerified&&((0,h.mi)({pageName:I.tA.successfulReactivation.pageName,steps_name:I.tA.successfulReactivation.stepDescription}),s().push("/reactivateWallet?flowName=success","/reactivateWallet/success"))},[l]),(0,r.useEffect)(()=>{if(!p()(c)){let{errorMessage:e}=c;s().push("/reactivateWallet?flowName=error&errorMessage=".concat(e?encodeURIComponent(e):""),"/reactivateWallet/error?errorMessage=".concat(e?encodeURIComponent(e):""))}},[c]),(0,r.useEffect)(()=>{m&&R(m)},[m]),(0,r.useEffect)(()=>{(A.un||A.m0)&&w(!1)},[]),"otpFlow"===E)?(0,n.jsx)(v,{generateOtp:S,submitOtp:y,resendOtp:D,showHeader:k}):"panOtpFlow"===E?(0,n.jsx)(_,{screenName:d,generateOtp:S,submitOtpCb:y,resendOtp:D,maskedPoiNumber:N,poiVerified:O,poiName:b,otpId:g,poiReferenceNo:u,maskedMobileNumber:f,showHeader:k}):"success"===E?(0,n.jsx)(W,{isMobileView:a===M.Z.MOBILE,showHeader:k}):"error"===E?(0,n.jsx)(P,{errorMessage:C,isMobileView:a===M.Z.MOBILE,showHeader:k}):null})},47777:()=>{},63356:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/reactivateWallet",function(){return a(46147)}])}},e=>{e.O(0,[470,452,9067,9979,9129,8635,4023,9811,5667,5888,636,6593,8792],()=>e(e.s=63356)),_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.