PageSourceSearch

https://solidityscan.com/assets/SubmitKYCDocument-CQqNM0O2.js

js solidityscan.com collected 2026-10-03 21:22:10 UTC 4,487 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-dotlottie-CKWLB76h.js";import{i as E,a}from"./vendor-react-CCzXVbVA.js";import{u as F}from"./vendor-query-Cq2FYR_1.js";import{A as I,c as w,L as K,b as P,S as l,N as D}from"./app-ZGxtfi_0.js";import{T as N}from"./TeamMemberForm-BdWAbUEV.js";import{k as U,F as c,V as j,h as y,a3 as b,T as m,D as Y}from"./vendor-chakra-z2eW50qa.js";import"./vendor-analytics-kxESroPO.js";import"./vendor-victory-2uYGyQN6.js";import"./vendor-monaco-CiJro7ev.js";const V=async(n,t,s)=>{const{data:i}=await I.post(`${w.API_VALIDATE_KYC_INVITE_LINK}`,{token:n,team_id:t,email:s});return i},R=(n,t,s)=>F(["kyc_validate_link",n,t,s],()=>V(n,t,s),{enabled:!!n&&!!t&&!!s,refetchOnWindowFocus:!1});function X(n){const t=E(),s=U(),i=new URLSearchParams(window.location.search),d=i.get("email")?.replace(" ","+")||"",u=i.get("teamid"),p=i.get("token"),{data:o,isLoading:k}=R(p,u,d),[f,C]=a.useState(1),[S,M]=a.useState("single"),[x,v]=a.useState(!1),[_,g]=a.useState(!1),[W,A]=a.useState(1),[r,h]=a.useState([{id:1,name:"",email:"",sendLink:!1,frontImage:null,backImage:null,frontImageName:"",backImageName:"",frontImageUploaded:!1,backImageUploaded:!1,frontImagePreview:null,backImagePreview:null}]);a.useEffect(()=>{o&&h([{id:1,name:o.applicant_name||"",email:o.applicant_email,sendLink:!1,frontImage:null,backImage:null,frontImageName:"",backImageName:"",frontImageUploaded:!1,backImageUploaded:!1,frontImagePreview:null,backImagePreview:null}])},[o]);const T=async()=>{if(x){g(!0);const{data:L}=await I.post(w.API_UPLOAD_DOCUMENTS_VIA_INVITE_LINK,{token:p,team_id:u,applicant_name:r[0].name,applicant_email:r[0].email,presigned_url_keys:[r[0].frontImageKey,r[0].backImageKey]});L?.status==="success"&&(t.push("/home"),s({title:"KYC Document Uploaded Successfully!",status:"success",duration:5e3,isClosable:!0,position:"bottom"})),g(!1)}};return e.jsxs(e.Fragment,{children:[e.jsx(c,{as:"header",justifyContent:"space-between",maxW:"80vw",mx:"auto",py:8,children:e.jsx(K,{})}),e.jsx(c,{align:"center",direction:"column",justifyContent:"flex-start",my:8,h:"60vh",w:"100vw",children:k&&p&&u&&d?e.jsx(c,{w:"100%",h:"70vh",alignItems:"center",justifyContent:"center",children:e.jsx(P,{})}):e.jsxs(e.Fragment,{children:[e.jsx(j,{align:"center",direction:"column",justifyContent:"flex-start",spacing:3,w:"90vw",mb:10,children:e.jsx(y,{fontSize:f===1?"2xl":"lg",children:"KYC Document Upload Request"})}),f===2?e.jsxs(c,{w:"90%",align:"center",direction:"column",justifyContent:"flex-start",maxW:"750px",h:"fit-content",children:[e.jsx(N,{kycType:S,setIsFormFilled:v,setTotalTeamMembers:A,members:r,setMembers:h,isSingleMemberSubmit:!0}),e.jsxs(b,{direction:["column","column","row"],spacing:[3,3,10],mt:6,children:[e.jsx(l,{id:"ss-kyc-cancel",py:6,variant:"outline",w:"200px",onClick:()=>{window.location.href="/"},children:"Cancel"}),e.jsx(l,{id:"ss-kyc-submit",variant:"brand",w:"200px",isDisabled:!x,isLoading:_,onClick:T,children:"Submit"})]})]}):f===1&&o?.status==="success"?e.jsxs("form",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column"},onSubmit:()=>C(2),children:[e.jsxs(c,{w:"90%",align:"center",direction:"column",justifyContent:"flex-start",maxW:"750px",h:"fit-content",bgColor:"#FCFCFC",border:"1px solid #EAEAEA",p:10,borderRadius:10,children:[e.jsx(m,{fontSize:"lg",fontWeight:600,my:6,children:"KYC Document Upload Request"}),e.jsx(m,{color:"detail",children:d}),e.jsx(Y,{borderColor:"#ECECEC",my:6}),e.jsx(m,{fontSize:"sm",fontWeight:400,color:"#8A94A6",textAlign:"center",children:"Reminder: Your team’s KYC process is pending. Please upload your documents to complete verification and avoid delays for the entire team."})]}),e.jsxs(b,{direction:["column","column","row"],spacing:[3,3,10],mt:10,children:[e.jsx(l,{id:"ss-kyc-reject",py:6,variant:"outline",w:"200px",onClick:()=>{window.location.href="/"},children:"Reject"}),e.jsx(l,{id:"ss-kyc-accept",variant:"brand",w:"200px",type:"submit",children:"Accept"})]})]}):e.jsxs(j,{justifyContent:"flex-start",alignItems:"center",spacing:10,children:[e.jsx(D,{size:200}),e.jsx(y,{fontSize:"lg",children:"Invitation Link not found or expired"}),e.jsxs(m,{w:["200px","250px","500px"],textAlign:"center",children:["Oops!",e.jsx("br",{}
1),"It seems that the invite link you attempted to access has expired",e.jsx("br",{}),"To resolve this issue, kindly get in touch with the administrator or reach out to our support team for assistance."]})]})]})})]})}export{X 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.