PageSourceSearch

https://myka.ng/assets/VerifyNinPage-CFlY04OM.js

js myka.ng collected 2026-10-09 22:43:35 UTC 2,166 bytes, 1 lines download raw bytes

1import{d as v,r as l,j as i,N as w}from"./vendor-react-DfYGAhtm.js";import{h as S,g as x}from"./vendor-state-BsBVN-fX.js";import{e as j,$ as m,a0 as C}from"./index-DsBgCU7r.js";import{u as E}from"./usePropertyStepBreadcrumbs-Cr5KdyVf.js";import{S as V}from"./StepPageLayout-DdZUweau.js";import{g as k}from"./errors-BYKXB8DF.js";import{N as I}from"./NinVerificationPanel-Cl3L-HVS.js";import{P as M}from"./PropertyFormShell-IPscn5xG.js";import{P as p}from"./routes-D6u-5hjo.js";import"./vendor-icons-1odZwi-b.js";import"./vendor-ui-DA_r9yXk.js";import"./vendor-forms-BP-7CbAP.js";import"./stepBreadcrumbs-FCtSk5Kj.js";const B=async t=>{const{data:a}=await j.post("/api/v1/compliance/kyc/",t);return a},R=()=>{const t=S({mutationKey:["property","compliance","kyc","nin"],mutationFn:B});return{verifyNinAsync:t.mutateAsync,isLoading:t.isPending,isError:t.isError}},z=()=>{const{items:t,onGoBack:a}=E(),y=v(),f=x(),N=m(e=>e?.kycApproved??!1),s=m(e=>e?.email??""),r=m(e=>e?.kyc),{verifyNinAsync:d}=R(),[h,c]=l.useState(!1),u=l.useMemo(()=>r?{fullName:[r.firstName,r.middleName,r.lastName].filter(Boolean).join(" ").trim()||"N/A",nin:r.documentNo??"N/A",email:s||"N/A",phoneNumber:r.phoneNumber??"N/A"}:null,[r,s]);if(N)return i.jsx(w,{to:`/${p.ReviewSubmit}`,replace:!0});const A=async e=>{try{const o=await d({documentType:"NIN",documentNumber:e});if(o.success===!1)throw new Error(o.message?.trim()||"Verification could not be completed. Please try again.");const n=o.data,P=[n?.firstName,n?.middleName,n?.lastName].filter(Boolean).join(" "),b=n?.phoneNumber||n?.phone||"";return{fullName:P||"N/A",nin:e,email:s||"N/A",phoneNumber:b||"N/A"}}catch(o){throw new Error(k(o)||"Verification failed. Please check your NIN and try again.")}},g=async()=>{c(!0);try{await C(f),y(`/${p.ReviewSubmit}`)}finally{c(!1)}};return i.jsx(V,{items:t,onGoBack:a,contentMaxW:"560px",mobileContentOnly:!0,children:i.jsx(M,{children:i.jsx(I,{onVerifyNin:A,onContinue:g,isContinuing:h,noteDescription:"To complete your property request and comply with NAICOM rules, we need to verify your identity. Your information is encrypted and secure.",...u&&{initialInfo:u}})})})};export{z as default};

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.