1"use strict";(self.webpackChunkpanverificationApp=self.webpackChunkpanverificationApp||[]).push([[352],{91476:function(e,t,n){n.d(t,{Z:function(){return r}});function r(...e){return e.reduce((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}},88962:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce((e,n)=>(e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e),{})}},86143:function(e,t,n){n.r(t),n.d(t,{default:function(){return N}});var r=n(85893),a=n(4065),i=n(3314),o=n(96788),s=n(8346),d=n(65806),l=n(12467),u=n(84677),c=n(77527),A=n(81061),E=n(72353),I=n(27335),p=n(18664);let h=async(e,t)=>{let n=await (0,I.u)(t);return(await E.Z.post(p.ZP.CKYC_URL,e,{headers:{Authorization:"Bearer ".concat(n.accessToken)}})).data};var C=n(35329),m=n(25548),R=n(42598),f=n(74106),_=n(25675),D=n.n(_),S=n(46510);let T=(0,c.ZP)(i.Z)(e=>{let{theme:t}=e;return{margin:"1rem",position:"relative",height:"100%"}});var N=e=>{let{accessToken:t,payload:n,ckycCallback:c}=e;(0,R.useRouter)();let[E,I]=(0,a.useState)(!0),[p,_]=(0,a.useState)("MALE"),[N,y]=(0,a.useState)([]),[v,L]=(0,a.useState)([]),[g,x]=(0,a.useState)(0),[O,b]=(0,a.useState)(""),[P,U]=(0,a.useState)({}),[K,k]=(0,a.useState)([]),[F,Z]=(0,a.useState)(""),[V,H]=(0,a.useState)(""),[w,Y]=(0,a.useState)({text:"Waiting for CKYC ",subText:"Just a moment while we are waiting for KYC"}),M=(e,t,n)=>{c&&c(e,t,n)};(0,a.useEffect)(()=>{h(n,t).then(e=>{var t,n,r,a,i,o;e.kycStatus;let s=[],d=[],l=[];if((null==e?void 0:null===(t=e.voterIdDetail)||void 0===t?void 0:t.completeAddress)&&(s.push(e.voterIdDetail.completeAddress),d.push(e.voterIdDetail.address),l.push("VOTER_ID")),(null==e?void 0:null===(n=e.panDetail)||void 0===n?void 0:n.completeAddress)&&(s.push(e.panDetail.completeAddress),d.push(e.panDetail.address),l.push("PAN_CARD")),(null==e?void 0:null===(r=e.passportDetail)||void 0===r?void 0:r.completeAddress)&&(s.push(e.panDetail.completeAddress),d.push(e.panDetail.address),l.push("PASSPORT")),null==e?void 0:null===(a=e.driverLicenseDetail)||void 0===a?void 0:a.completeAddress){s.push(e.driverLicenseDetail.completeAddress),d.push(e.driverLicenseDetail.address),l.push("DRIVING_LICENCE");let t={documentType:"DRIVING_LICENCE",docNo:e.driverLicenseDetail.dlNumber,name:e.driverLicenseDetail.name,address:e.driverLicenseDetail.completeAddress,pin:e.driverLicenseDetail.address.pinCode,city:e.driverLicenseDetail.address.city,state:e.driverLicenseDetail.address.state,ckycPhone:null==e?void 0:e.ckycPhone};Z(t.name||""),H(t.ckycPhone||"")}if(null==e?void 0:null===(i=e.aadharDetail)||void 0===i?void 0:i.completeAddress){s.push(e.aadharDetail.completeAddress),d.push(e.aadharDetail.address),l.push("AADHAAR_CARD");let t={documentType:"AADHAAR_CARD",docNo:null==e?void 0:e.aadharDetail.aadharNumber,name:e.aadharDetail.name,address:null==e?void 0:null===(o=e.aadharDetail)||void 0===o?void 0:o.completeAddress,pin:e.aadharDetail.address.pinCode,city:e.aadharDetail.address.city,ckycPhone:null==e?void 0:e.ckycPhone,state:e.aadharDetail.address.state||e.aadharDetail.address.stateCode};Z(t.name||""),H(t.ckycPhone||"")}y(s),L(d),U(d[0]),_(e.ckycPersonalDetailResponse.gender),k(l),b(l[0]),M("firstcall",e,p),I(!1)}).catch(e=>M("initialError","",""))},[]);let j=(e,t)=>(0,r.jsxs)(i.Z,{sx:{marginTop:".5rem"},children:[(0,r.jsx)(i.Z,{sx:{fontSize:"14px",fontFamily:"Nunito",color:"#333",fontWeight:"400"},children:e}),(0,r.jsxs)(i.Z,{sx:{marginTop:".5rem",fontSize:"12px",fontWeight:"400",fontFamily:"Nunito",color:"#808080"},children:["Fetched via CERSAI - ",t]})]});return(0,r.jsx)(T,{children:(0,r.jsxs)("div",{className:"".concat(E?"pointer-none pointer-events-none":""),children:[(0,r.jsx)(D(),{src:C.Z.mapIcon,height:32,width:32}),(0,r.jsx)(o.Z,{sx:{fontWeight:"800",fontSize:"18px",lineHeight:"26px",fontFamily:"NunitoExtraBold"},children:"Select your address"}),(0,r.jsx)(o.Z,{sx:{fontFamily:"NunitoRegular",fontStyle:"normal",fontWeight:"700",fontSize:"14px",lineHeight:"20px",marginTop:"0.75rem",marginBottom:"1rem",color:"#365069"},children:"Current Residential Addresss"}),(0,r.jsx)(r.Fragment,{children:N.length>0&&(0,r.jsx)(s.Z,{row:!0,"aria-labelledby":"demo-row-radio-buttons-group-label",name:"row-radio-buttons-group",defaultValue:N[0],sx:{marginBottom:"24px"},children:N&&N.map((e,t)=>
1(0,r.jsx)(d.Z,{value:e,onChange:()=>{x(t),U(v[t]),b(K[t])},control:(0,r.jsx)(l.Z,{inputProps:{"data-lbl":e,"data-ot":"option-"+(t+1)+" "+K[t]}}),label:(0,r.jsx)("span",{id:S.O3.ADDRESS,className:"ue-mask",children:j(e,K[t])}),sx:{background:t===g?"#E3F6E9":"",opacity:"0.7",border:t===g?"1px solid #41C66E":"1px solid #41C66",boxShadow:"0px 8px 24px -6px rgba(0, 0, 0, 0.16), 0px 0px 1px rgba(0, 0, 0, 0.4)",borderRadius:"12px",padding:"20px 18px 20px 8px",margin:"0px",width:"100%",fontFamily:"NunitoRegular",color:"#333333",display:"flex",alignItems:"flex-start"}}))})}),(0,r.jsx)(i.Z,{sx:{border:"1px solid #365069",borderRadius:"8px",textAlign:"center",marginTop:"16px"},children:(0,r.jsx)(u.Z,{sx:{color:"#365069",textTransform:"inherit",fontWeight:"700",fontFamily:"NunitoRegular",fontSize:"16px"},onClick:()=>M("addressChange","",""),"data-lbl":f.K.ADD_A_NEW_ADDRESS,children:"+ Add a new Address"})}),(0,r.jsx)(i.Z,{children:(0,r.jsx)(A.Z,{disabled:!(v.length>0),label:"Continue",loading:E,hideArrow:!1,"data-lbl":f.K.CKYC_CONTINUE,onClick:()=>{I(!0),Y({text:"Hold On!",subText:"Proceeding with your application "}),h({...n,address:P,poa:O},t).then(e=>{let r={source:n.source,leadReferenceId:n.leadReferenceId,applicantReferenceId:n.applicantReferenceId,name:F,alternatePhones:[V,null==n?void 0:n.phone],address:P};(0,m.Z)(r,t).then(e=>{M("finalcall",e,p)}).catch(()=>{M("finalError","","")})}).catch(e=>M("finalError","",""))}})})]})})}},72353:function(e,t,n){var r=n(87066),a=n(34823),i=n(18664);let o=r.Z.create();o.interceptors.request.use(async e=>{let t=await (0,a.Z)();if(e.baseURL=t.API_URL,i.ZP.FEATURE_TREATMENT===e.url?(e.baseURL=t.NGINX_API_URL,e.headers.apikey=t.API_KEY):(e.baseURL=t.API_URL,i.KE.includes(null==e?void 0:e.url)?e.headers["x-apikey"]=t.LIVENESS_API_KEY:e.headers["x-apikey"]=t.API_KEY),t.ENVIRONMENT){var n;(null===(n=t.ENVIRONMENT)||void 0===n?void 0:n.includes("DEV"))&&i.ZP.FEATURE_TREATMENT===e.url?e.headers.Environment="DEV1":e.headers.Environment=t.ENVIRONMENT}return e}),t.Z=o},25548:function(e,t,n){var r=n(85996),a=n(27335),i=n(18664);let o=async(e,t)=>{let n=await (0,a.u)(t);return(await r.Z.post(i.ZP.FRAUD_URL,e,{headers:{Authorization:"Bearer ".concat(n.accessToken)}})).data};t.Z=o},46510:function(e,t,n){n.d(t,{$A:function(){return P},GC:function(){return U},Hx:function(){return v},Mo:function(){return D},O3:function(){return c},Q_:function(){return b},T4:function(){return x},TT:function(){return h},UQ:function(){return A},X9:function(){return C},XF:function(){return S},YN:function(){return K},Z5:function(){return y},cl:function(){return L},eg:function(){return f},fo:function(){return T},jK:function(){return E}
1,ku:function(){return m},qe:function(){return R},sw:function(){return O},tJ:function(){return p},ut:function(){return g},vH:function(){return N},xJ:function(){return I}});var r,a,i,o,s,d,l,u,c,A,E,I,p,h,C,m,R,f,_=n(35329);let D=[{tileImageSource:"".concat(_.Z.brightLight),tileCaption:"Bright Light",markerImageSource:_.Z.doMarker},{tileImageSource:"".concat(_.Z.noSpecs),tileCaption:"No Caps, glasses, spectacles",markerImageSource:_.Z.doNotMarker},{tileImageSource:"".concat(_.Z.blurFace),tileCaption:"No Blurry Image",markerImageSource:_.Z.doNotMarker,isBlur:!0}];function S(e){return Math.floor(Math.random()*e)}_.Z.blink,_.Z.nodHead,_.Z.turnHead,_.Z.smile;let T={CIRCLE_FACE_TEXT:"Position your face in the circle",LIVENESS_SUCCESS_TEXT:"Your liveness has been successfully verified.",DONE:"All done!",FAILURE:"Hmm.. That didn't work.",LIVENESS_FAILURE_TEXT:"We could not verify your Liveness.",LIVENESS_VERIFICATION:"Liveness Verification",FEEDBACK_QUESTION:"Did you perform the action as per the Instruction?",RECORD_INSTRUCTION:"Open your camera for Verification",QUICK_TEXT:"Quick Tips"},N={START_STATUS_CHECK:8e3,CHECK_STATUS_INTERVAL:2e3,MAX_STATUS_CHECK_INTERVAL:3e4,DISABLE_PAN_AADHAAR_LINKING_STATUS_CHECK_BUTTON:864e5},y={LIVENESS:"/liveness",LIVENESS_STATUS:"/liveness/status",OKYC:"/okyc/digilocker",OKYC_STATUS:"/okyc/status"};(r=c||(c={})).PAN="pan_number",r.DOB="dob",r.ADDRESS="address",r.AADHAR="aadhaar_number",r.DRIVING="driving_license",r.MOBILE="mobile_number",r.OTP="otp",r.EMAIL="email",r.PINCODE="pincode",(a=A||(A={})).ROOT="/",a.AADHAAR_INPUT="/aadhaarInput",a.AADHAAR_VALIDATION="/aadhaarValidation",a.ADDRESS_VERIFICATION="/addressVerification",a.DIGILOCKER="/digilocker",a.ERROR_SCREEN="/errorScreen",a.DIGILOCKER_FAILURE="/digilockerFailure",a.DIGILOCKER_CONSENT_FAILURE="/digilockerConsentFailure",a.OKYC_SUCCESS="/okycSuccess",(i=E||(E={})).PAN_AADHAR_LINK_FAILED="KYCS::310",i.EKYC_SUCCESS="KYCS::476",(o=I||(I={})).NAME_MISMATCH="001",o.ADDRESS_MISMATCH="002",(p||(p={})).EKYC="EKYC",(s=h||(h={})).KARZA_OKYC_DEPRECATED="KARZA_OKYC_DEPRECATED",s.KYC_MODE="KYC_MODE",s.FEATURE_USE_ORCHESTRATION_SERVICE="FEATURE_USE_ORCHESTRATION_SERVICE";let v={PCHF_SALES_APP:"PCHF_SALES_APP",RE_KYC:"PCHF_REKYC_VALIDATION_V2",EKYC_PORTAL:"EKYC_PORTAL"};(d=C||(C={})).COMPLETED="COMPLETED",d.REJECTED="REJECTED",(l=m||(m={})).AADHAAR_CARD="AADHAAR_CARD",l.DIGILOCKER_AADHAAR="DIGILOCKER_AADHAAR",l.AADHAAR_OTP="AADHAAR_OTP",l.DIGILOCKER_AADHAAR_XML="DIGILOCKER_AADHAAR_XML",l.DRIVING_LICENCE="DRIVING_LICENCE",(R||(R={})).AADHAAR="Aadhaar";let L="Something went wrong. Please try again.",g="I, the Aadhaar card holder, hereby provide my consent to Piramal Finance Limited to use my Aadhaar number for the purpose of authentication with UIDAI. I acknowledge that my Aadhaar number shall be used solely for the purpose of KYC in opening a loan account, shall not be stored by Piramal Finance Limited, and shall be submitted to UIDAI only for authentication purposes.",x={ID:"1",CONSENT_TYPE:"EKYC_BIOMETRIC",TERMS_AND_CONDITIONS:'I hereby submit my Aadhaar/UID Number and consent to PFL to:\n1. Seed my Aadhaar/UID Number issued by Unique Identification Authority of India ("UIDAI"), Government of India in my name with my aforesaid account.\n2. Use my Aadhaar details to authenticate me from UIDAI.\n3. Use my mobile number mentioned in my account for sending short messaging services ("SMS") alerts to me.\n4. Consent for authentication: I, the holder of the above stated Aadhaar number, hereby give my consent to PFL to obtain my Aadhaar number, Name and Fingerprint / Iris for authentication with UIDAI. PFL has informed me that my identity information would only be used for demographic authentication / validation / e- KYC purpose and also informed that my biometrics will not be stored / shared and will be submitted to CIDR (Central Identities Data Repository) only for the purpose of authentication.',CREATED_BY:"WEBAPP",UPDATED_BY:"WEBAPP"},O={EKYC_BIOMETRIC:"EKYC_BIOMETRIC"},b={ACTIVE:"ACTIVE",INACTIVE:"INACTIVE"},P={CUSTOMER:"CUSTOMER"},U={FINGERPRINT:"FINGERPRINT"},K="Accepted";(u=f||(f={})).INITIATED="INITIATED",u.SOURCE_VERIFIED="SOURCE_VERIFIED",u.REJECTED="REJECTED"},75251:function(e,t,n){var r=n(66497),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INT
vendor: 487 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,i={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,r)&&!d.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:l,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=l,t.jsxs=l},85893:function(e,t,n){e.exports=n(75251)}}]);
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.