PageSourceSearch

https://iome.ai/_next/static/chunks/1347.97a449175223fb61.js

js iome.ai collected 2026-10-05 12:05:33 UTC 3,619 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1347],{61347:function(e,t,s){s.r(t);var l=s(85893),a=s(50576),i=s(14789),n=s(79686),r=s(5152),c=s.n(r),d=s(67294),o=s(9473);let u=[{text:"Individual",value:0},{text:"Organisation",value:1}];t.default=e=>{let{open:t,onClose:r,onProceed:m,loader:x,profileDetails:f,askEmail:h,setAskEmail:p}=e,[v,g]=(0,d.useState)(!1),[w,j]=(0,d.useState)(""),[y,N]=(0,d.useState)(!1),[b,C]=(0,d.useState)(""),[S,k]=(0,d.useState)(!1),[E,P]=(0,d.useState)(""),[T,V]=(0,d.useState)(!1),[z,Y]=(0,d.useState)(""),[I,K]=(0,d.useState)(""),Z=c()(()=>Promise.resolve().then(s.bind(s,30962)),{ssr:!1}),_=(0,o.v9)(e=>e.user.userID),handleKYCProceed=async()=>{try{if(""===w){dispatch((0,a.wz)("Please select the KYC type."));return}if(!y){dispatch((0,a.wz)("Please check the consent before you proceed."));return}p(!0);return}catch(e){dispatch((0,a.wz)("Something went wrong, please try again after some time"))}},onSelectOption=e=>{j(e),g(!0)},verifyEmailProceed=async()=>{if(!b||!S){P("Please verify your email first");return}await m(w)},handleVerifyEmail=async()=>{P("");let e=/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b);if(!e){P("Please provide a valid email");return}Y("email"),K(b),V(!0)};(0,d.useEffect)(()=>{getEmailSatus()},[]);let getEmailSatus=()=>{var e,t,s,l;let a=null!==(s=null==f?void 0:null===(e=f.email)||void 0===e?void 0:e.value)&&void 0!==s?s:"",i=null!==(l=null==f?void 0:null===(t=f.email)||void 0===t?void 0:t.verified)&&void 0!==l&&l;k(i),C(a)};return(0,l.jsxs)(l.Fragment,{children:[T&&(0,l.jsx)(Z,{open:T,pageType:"digitalme",source:I,otpType:z,userAddress:_,onClose:()=>V(!1),onSuccess:()=>{V(!1),k(!0)}}),(0,l.jsx)(i.u_,{open:t,centered:!0,title:"Verify KYC/KYB",onCancel:()=>r(),className:"w-full max-w-sm sm:max-w-md lg:max-w-lg p-4",children:(0,l.jsx)("div",{className:"pt-4",children:h?(0,l.jsxs)("div",{className:"flex flex-col gap-y-5 w-full",children:[(0,l.jsx)(i.ZT,{className:"font-semibold text-left",children:"Email Verification"}),(0,l.jsxs)("div",{className:"flex flex-col sm:flex-row items-center gap-5 w-full",children:[(0,l.jsx)(i.II,{placeholder:"[email protected]",className:"rounded-none border-2 border-primary-200 opacity-70 w-full sm:w-9/12 ".concat(S?"text-black":""),onChange:e=>{C(e.target.value)},value:b,disabled:S}),S?(0,l.jsxs)("div",{className:"flex gap-x-2 items-center",children:[(0,l.jsx)(n.default,{className:"text-green-500 text-lg"}),(0,l.jsx)(i.ZT,{className:"text-green-500 text-base",children:"Verified"})]}):(0,l.jsx)(i.zx,{className:"cursor-pointer w-full sm:w-auto",onClick:handleVerifyEmail,disabled:S,title:S?"Verified":"Verify"})]}),E&&(0,l.jsx)(i.ZT,{className:"text-red-600 text-sm",children:E}),(0,l.jsx)("div",{className:"text-center sm:text-left",children:(0,l.jsx)(i.zx,{loading:x,disabled:x&&!S,title:"Continue",className:"bg-primary-100 text-[white] rounded-none px-5 w-full sm:w-[130px]",onClick:verifyEmailProceed})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.ZT,{className:"pb-6 font-semibold text-center sm:text-left",children:"Who are you?"}),(0,l.jsx)(i.Y8,{group:!0,options:u,onChange:e=>onSelectOption(e.target.value)}),v&&(0,l.jsx)("div",{className:"pt-8",children:(0,l.jsx)(i.Jg,{checked:y,onChange:()=>N(!y),children:(0,l.jsx)(i.ZT,{className:"text-sm sm:text-base",children:"I understand that this choice is final and cannot be undone."})})}),(0,l.jsx)("div",{className:"pt-8 text-center sm:text-left",children:(0,l.jsx)(i.zx,{loading:x,disabled:x,title:"Continue",className:"bg-primary-100 text-[white] rounded-none px-10 w-full sm:w-auto",onClick:handleKYCProceed})})]})})})]})}}}]);

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.