@verified-network/verified-custody 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var $n=Object.create;var Pt=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var In=Object.getOwnPropertyNames;var Hn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var Vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jn=(e,t)=>{for(var a in t)Pt(e,a,{get:t[a],enumerable:!0})},ln=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of In(t))!On.call(e,l)&&l!==a&&Pt(e,l,{get:()=>t[l],enumerable:!(i=Dn(t,l))||i.enumerable});return e};var ce=(e,t,a)=>(a=e!=null?$n(Hn(e)):{},ln(t||!e||!e.__esModule?Pt(a,"default",{value:e,enumerable:!0}):a,e)),Rn=e=>ln(Pt({},"__esModule",{value:!0}),e);var vn=Vt((Fi,ii)=>{ii.exports="./Roboto-Regular-UUBD26YO.ttf"});var An=Vt((Bi,ai)=>{ai.exports="./Manrope-Regular-33576HBZ.ttf"});var Pn=Vt((Vi,oi)=>{oi.exports="./Hind-Regular-R5KOYWFC.ttf"});var ki={};Jn(ki,{AddCoSignersPage:()=>dt,ContactPage:()=>Xt,CreatePinPage:()=>mt,EnterPinPage:()=>st,FTUPage:()=>Mt,OTPPage:()=>Et,VaultContextProvider:()=>_t,VerifiedCustody:()=>Fn,decryptString:()=>et,decryptWithPasskey:()=>tt,encryptString:()=>qe,encryptWithPasskey:()=>Ze,getPlatformComponents:()=>xt,hashTheBuffer:()=>Ue,hashTheString:()=>W,initPlatform:()=>bt,loadAllGoogleFonts:()=>Pe,loadAllGoogleFontsRN:()=>Le,publicKeyCredentialRequestOptions:()=>rt});module.exports=Rn(ki);function Un(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Un(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{width:100vh;border-radius:10px;width:100%;flex-shrink:0;background:#0000004d;z-index:100;display:flex;justify-content:center;align-items:center;overflow:auto;position:absolute;inset:0}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:100%}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:90%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:.5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:450;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:200px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
|
|
2
|
-
`);typeof window<"u"&&typeof window.chrome>"u"&&(window.chrome={});if(typeof global<"u"&&typeof global.crypto>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative")try{require("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}var He=ce(require("react"));var Pi=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",cn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],un=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],$t="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Dt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},pt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},ht={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},T={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Lt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];var fn={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var It=!1,Ht=!1,Ot,Jt,Rt,Ut,Qt,Wt,jt,qt,gn,mn,Cn,Zt,pn,bt=async()=>{if(Ht)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");gn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");pn=await(await import("react-native-passkey")).Passkey,mn=l.default,Cn=a.EventEmitter;let x=({className:L,id:f,...k})=>k,s=L=>f=>He.default.createElement(L,{...x(f)});Ot=s(t.View),Jt=s(t.Text),Rt=s(t.Image),Ut=s(t.ScrollView),Qt=t.StyleSheet,Wt=s(t.TextInput),jt=s(t.TouchableOpacity),qt=s(t.ActivityIndicator),Zt=t.StyleSheet.create(fn),It=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Ot=({onPress:a,...i})=>He.default.createElement("div",{onClick:a,...i}),Jt=({onPress:a,...i})=>He.default.createElement("span",{onClick:a,...i}),Rt=({onPress:a,source:i,...l})=>He.default.createElement("img",{onClick:a,...l,src:i?.uri}),Ut=a=>He.default.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),Qt={create:a=>a},Zt={},Wt=(0,He.forwardRef)(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:K,value:x,keyboardType:s,secureTextEntry:L,onSubmitEditing:f,blurOnSubmit:k,placeholderTextColor:n,...d},w)=>He.default.createElement("input",{...d,ref:w,value:x,onInput:m=>{i?.(m),a?.(m.target.value)},onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),f?.(m)),l?.(m),K?.(m)},type:L?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),jt=({onPress:a,style:i,...l})=>He.default.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),qt=({color:a,size:i,...l})=>He.default.createElement(t.img,{height:"50px",width:"50px",src:T.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),It=!1,console.log("Web platform initialized.")}Ht=!0},xt=()=>{if(!Ht)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:It,View:Ot,Text:Jt,Image:Rt,ScrollView:Ut,StyleSheet:Qt,TextInput:Wt,TouchableOpacity:jt,ActivityIndicator:qt,Font:gn,AsyncStorage:mn,EventEmitter:Cn,styles:Zt,rnPasskey:pn}};var E=ce(require("react"));var Ne=ce(require("react")),hn=(0,Ne.createContext)(void 0),_t=({children:e})=>{let[t,a]=(0,Ne.useState)(null),[i,l]=(0,Ne.useState)(null),[K,x]=(0,Ne.useState)(null),[s,L]=(0,Ne.useState)(null),[f,k]=(0,Ne.useState)(null),[n,d]=(0,Ne.useState)(null),[w,m]=(0,Ne.useState)(null);return Ne.default.createElement(hn.Provider,{value:{chainId:t,pk:i,address:K,signer:s,provider:f,vaultContract:n,vaultData:w,setChainId:a,setPk:l,setAddress:x,setSigner:L,setProvider:k,setVaultContract:d,setVaultData:m}},e)},Xe=()=>{let e=(0,Ne.useContext)(hn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};var H=ce(require("react")),Mn=require("lodash");var Re=require("@verified-network/verified-sdk");var ue={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:T.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:T.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:T.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:T.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:T.baseIcon}};var nn=require("@noble/hashes/pbkdf2"),Kt=require("@noble/hashes/sha256"),Oe=require("@noble/hashes/utils"),an=require("@noble/ciphers/aes"),wt=ce(require("crypto-js")),tn=require("react-toastify"),ft=ce(require("react")),Be=require("viem/chains"),Ln=require("viem");var ke=require("viem");var kn={abi:[{type:"constructor",inputs:[{name:"defaultValidator",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],stateMutability:"nonpayable"},{type:"error",name:"CanNotRemoveLastValidator",inputs:[]},{type:"error",name:"DefaultValidatorAlreadyInstalled",inputs:[]},{type:"error",name:"EmergencyUninstallSigError",inputs:[]},{type:"error",name:"EnableModeSigError",inputs:[]},{type:"error",name:"FallbackAlreadyInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackCallTypeInvalid",inputs:[]},{type:"error",name:"FallbackHandlerUninstallFailed",inputs:[]},{type:"error",name:"FallbackNotInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackSelectorForbidden",inputs:[]},{type:"error",name:"HookAlreadyInstalled",inputs:[{name:"currentHook",type:"address",internalType:"address"}]},{type:"error",name:"HookPostCheckFailed",inputs:[]},{type:"error",name:"InvalidInput",inputs:[]},{type:"error",name:"InvalidModule",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"InvalidModuleTypeId",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidNonce",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"MismatchModuleTypeId",inputs:[]},{type:"error",name:"MissingFallbackHandler",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"ModuleAddressCanNotBeZero",inputs:[]},{type:"error",name:"ModuleAlreadyInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"ModuleNotInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"NoValidatorInstalled",inputs:[]},{type:"error",name:"PrevalidationHookAlreadyInstalled",inputs:[{name:"currentPreValidationHook",type:"address",internalType:"address"}]},{type:"error",name:"UnauthorizedOperation",inputs:[{name:"operator",type:"address",internalType:"address"}]},{type:"error",name:"UnsupportedCallType",inputs:[{name:"callType",type:"bytes1",internalType:"CallType"}]},{type:"error",name:"ValidatorNotInstalled",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"event",name:"ERC7484RegistryConfigured",inputs:[{name:"registry",type:"address",indexed:!0,internalType:"contract IERC7484"}],anonymous:!1},{type:"event",name:"ModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ModuleUninstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"fallback",stateMutability:"payable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getActiveHook",inputs:[],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getExecutorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getFallbackHandlerBySelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bytes1",internalType:"CallType"},{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getRegistry",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IERC7484"}],stateMutability:"view"},{type:"function",name:"getValidatorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"initNexus",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScoped",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScopedNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidator",inputs:[{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModules",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidator",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidatorNoRegistry",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"installModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"isModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"additionalContext",type:"bytes",internalType:"bytes"}],outputs:[{name:"installed",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"uninstallModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"deInitData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"receive",stateMutability:"payable"}]};var Kn={abi:[{inputs:[{internalType:"address",name:"implementation_",type:"address"},{internalType:"address",name:"owner_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"AccountAlreadyDeployed",type:"error"},{inputs:[],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ImplementationAddressCanNotBeZero",type:"error"},{inputs:[],name:"InvalidEntryPointAddress",type:"error"},{inputs:[],name:"NewOwnerIsZeroAddress",type:"error"},{inputs:[],name:"NoHandoverRequest",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"ZeroAddressNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"bytes",name:"initData",type:"bytes"},{indexed:!0,internalType:"bytes32",name:"salt",type:"bytes32"}],name:"AccountCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"ACCOUNT_IMPLEMENTATION",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"cancelOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"completeOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"computeAccountAddress",outputs:[{internalType:"address payable",name:"expectedAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"createAccount",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"result",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"ownershipHandoverExpiresAt",outputs:[{internalType:"uint256",name:"result",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"requestOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"}],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"}]};var jn="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",qn="0x00000000D3254452a909E4eeD47455Af7E27C289",yn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",Zn=0n,kt=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},zn=e=>(0,ke.encodeAbiParameters)([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,(0,ke.encodeFunctionData)({abi:kn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),ei=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:K,...x}=e;return{deInitData:t,data:l,module:K,address:K,signer:i,type:a,getStubSignature:async()=>yn,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),...x}},ti=e=>ei({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:ke.zeroAddress,module:ke.zeroAddress,type:"validator",getStubSignature:async()=>yn}),ni=()=>({module:ke.zeroAddress,data:ke.zeroHash}),St=async(e,t,a)=>{let i=(0,ke.createPublicClient)({chain:e,transport:t}),l=ti({signer:a}),K=[],x=[],s=ni(),L=[],f=ke.zeroAddress,k=jn,n=qn,d=[],w=zn({defaultValidator:kt(l),validators:K.map(kt),executors:x.map(kt),hook:kt(s),fallbacks:L.map(kt),registryAddress:f,bootStrapAddress:n,prevalidationHooks:d}),m=(0,ke.pad)((0,ke.toHex)(Zn),{size:32}),b=await i.readContract({address:k,abi:Kn.abi,functionName:"computeAccountAddress",args:[w,m]});if(b?.toLowerCase()!==ke.zeroAddress?.toLowerCase())return b};var Pe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return un.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=i,e.head.appendChild(K)}}),!0},Le=async e=>(await e?.loadAsync({Roboto:vn(),Manrope:An(),Hind:Pn()}),!0),ze=async(e,t)=>{try{let a;if(t)a=new Re.VerifiedWallet(t);else{let d=Re.VerifiedWallet.generateMnemonic();a=Re.VerifiedWallet.importWallet(d)}let i=Re.contractAddress,l=e&&i[e]?.Custody&&ue[e]?.rpcUrls?.length>0?e:8453,K=ue[l]?.rpcUrls[0],x=a.setProvider(new Re.Provider(K)),s=a.privateKey,L=new Re.Custody(x,i[l]?.Custody),f=x,k=[Be.base,Be.mainnet,Be.gnosis,Be.polygon,Be.sepolia,Be.baseSepolia].find(d=>Number(d?.id)===Number(l)),n=await St(k,(0,Ln.http)(),f);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:x,provider:K,vaultContract:L,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},W=e=>{let t=e.toLowerCase(),a=(0,Kt.sha256)((0,Oe.utf8ToBytes)(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},Ue=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=(0,Kt.sha256)(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},qe=(e,t)=>wt.default.AES.encrypt(e,t).toString(),et=(e,t)=>{var a=wt.default.AES.decrypt(e,t),i=a.toString(wt.default.enc.Utf8);return i},ri=(e,t)=>ft.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},ft.default.createElement("img",{style:{marginLeft:"5px"},src:T.errorAlert,alt:""}),ft.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},ft.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),ft.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var _e=(e,t)=>(tn.toast.dismiss(),tn.toast.error(ri(e,t),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));var Q=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},di=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let K=t.substr(l*2,2);i[l]=parseInt(K,16)}return i},on=(e,t,a)=>{let i=di(a);return{challenge:(0,Oe.randomBytes)(32),rp:{name:e},user:{id:i,name:t,displayName:t},pubKeyCredParams:[{alg:-7,type:"public-key"},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"preferred"},timeout:6e4,attestation:"direct"}},rt=()=>({challenge:(0,Oe.randomBytes)(32),timeout:6e4,userVerification:"preferred"}),zt=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),en=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},Ze=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=(0,Oe.randomBytes)(8),K=Array.from(l).map(d=>d.toString(16).padStart(2,"0")).join(""),x=W(`${a}:${K}`),s=(0,Oe.utf8ToBytes)(x),L=(0,Oe.randomBytes)(12),f=(0,nn.pbkdf2)(Kt.sha256,i,s,{c:3e5,dkLen:32}),n=(0,an.gcm)(f,L).encrypt((0,Oe.utf8ToBytes)(e));return[zt(s),zt(L),zt(n)].join(".")},tt=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),x=en(a),s=en(i),L=en(l),f=(0,nn.pbkdf2)(Kt.sha256,K,x,{c:3e5,dkLen:32}),k=(0,an.gcm)(f,s);try{let n=k.decrypt(L);return(0,Oe.bytesToUtf8)(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};var D=ce(require("react"));var rn=ce(require("react")),si=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,d=Number(e.currentSlider),w=e.sliderCount?.length||0,m=w>0?100/w:0;return rn.default.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((b,y)=>{let A=y<=d;return rn.default.createElement(a,{key:y,className:A?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&A?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${m}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${m}%`}:!t&&A?{width:`${m}%`}:{width:`${m}%`}})}))},Te=si;var ge=ce(require("react"));var li=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,[d,w]=(0,ge.useState)(null),m=P=>{if(P===""){w(null);return}let h=e.searchContent.filter(C=>{let u=C?.name?.toLowerCase(),p=P.toLowerCase();if(u?.includes(p))return C.searched=p,C.nameArray=C.name.split(""),C});w(h),e.handleButtonDisplay()},b=(P,h)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(P,h)=>P.map((C,u)=>{let p=h.includes(C.toLowerCase());return ge.default.createElement(i,{key:u,style:p?n.boldText:n.fadedText},C)}),A=(P,h=!1)=>P.map((C,u)=>{let p=t?!1:window?.location?.search===`?${u}`,N=e.selected&&e.selected.length>0,X=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return ge.default.createElement(s,{key:u,className:X,style:n.resultItem,onPress:()=>b(C,u)},ge.default.createElement(a,{style:n.resultInner},ge.default.createElement(l,{source:{uri:e.type==="language"?C.icon:C.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),ge.default.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},C.nameArray&&C.searched?y(C.nameArray,C.searched):C.name,e.type==="language"&&C.label&&ge.default.createElement(i,{style:C.searched?.includes(C.label.toLowerCase())?{}:n.fadedText},` (${C.label})`))),e.type==="language"&&N&&p&&ge.default.createElement(l,{source:{uri:T.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return ge.default.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},ge.default.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&ge.default.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),ge.default.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},ge.default.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},ge.default.createElement(l,{source:{uri:T.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),ge.default.createElement(x,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:m,onFocus:()=>e.type==="language"&&e.setSelected("")})),ge.default.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},ge.default.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(d||e.searchContent)?.length>0&&A(d||e.searchContent))))))},Nt=li;var gt=ce(require("react"));var bn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform;return gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},xn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,d=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&k&&(await k.removeItem("myVault"),await k.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return gt.default.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:Q(t,"0.7rem")}:{fontSize:Q(t,"0.7rem")}},"Want to access a different account? Click"," ",gt.default.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:d},"Logout")," ","to logout and login/create another account")};var ci=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,[d,w]=(0,D.useState)(e.fontsLoaded||!1),[m,b]=(0,D.useState)(""),[y,A]=(0,D.useState)(""),[P,h]=(0,D.useState)(!1),[C,u]=(0,D.useState)(""),[p,N]=(0,D.useState)(!1),{pk:X,vaultContract:Z,address:U}=Xe();(0,D.useEffect)(()=>{let $=async()=>{if(t)f&&await Le(f),w(!0);else{let R=Pe(document);w(R)}};e.fontsLoaded||$()},[]);let J=()=>{e.selectedCountry.area&&m.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(u(""),N(!0)):(u(""),N(!1))},z=async()=>{if(e.userEmail===""&&m===""){u("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){u("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){u("Invalid email format.");return}let $=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${m}`,R=e.userEmail?.length>0?"email":"sms";if($&&R&&X&&Z||$&&R&&e.noContract){e.setIsLoading(!0);try{let te=await e.helperFunctions.sendOTPVerification(U,R,$);e.setIsLoading(!1),te?(u(""),e.setStep("3")):(u(R==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),_e("OTP Error",R==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),u("Unexpected error. Try again.")}}else e.noContract||u("Network error. Check your internet connection.")};return D.default.createElement(K,{style:{width:"100%",height:"100%"}},d&&D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},D.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},D.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},D.default.createElement(s,{onPress:()=>h(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},D.default.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),D.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),D.default.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:T.arrowUp}:{uri:T.arrowDown}})),D.default.createElement(x,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:$=>{let R=$.replace(/\D/g,"");A($),b(R);let te="";for(let ae=0;ae<R?.length;ae++)te+=R[ae],(ae+1)%5===0&&ae+1<R?.length&&(te+=" ");e.setUserNumberFmt(te),J()}})),P&&D.default.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:J,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:h,contentMaxHeight:"300",contentbottomMargin:"300"}),m.length!==10&&y.length>10&&!C&&D.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&D.default.createElement(D.default.Fragment,null,e.enablePhone&&D.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},D.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),D.default.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),D.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},D.default.createElement(x,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:$=>{e.setUserEmail($),e.setUserNumberFmt(""),b(""),A(""),J()}}),C&&e.userEmail.length>0&&D.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},C)))),!P&&D.default.createElement(a,{style:{height:"80px"}}),D.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},D.default.createElement(bn,{platform:e.platform}),D.default.createElement(s,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:z},D.default.createElement(i,null,"Get OTP"))))),!d&&D.default.createElement(i,null,"Loading Module Fonts..."))},Xt=ci;var G=ce(require("react"));var Ee=require("ethers"),yt=require("shamir-secret-sharing"),ie=require("@verified-network/verified-sdk");var Ve=require("viem/chains"),_n=require("viem");var Sn=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},wn=async(e,t,a,i,l,K,x,s,L,f,k,n,d,w,m,b,y)=>{try{let A={vaultId:i,hashedVaultId:l,vaultPin:K,hashedVaultPin:x,vaultContract:k,rawId:m};return await k.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let h;if(m)h=await Ze(L,m,K);else{let u=(0,Ee.encodeBytes32String)(K);h=qe(L,u)}let C;if(chrome?.storage?.local?C=await new Promise(u=>{chrome.storage.local.get(["lastPk"],p=>{u(p.lastPk)})}):!chrome?.storage?.local&&localStorage&&(C=localStorage.getItem("lastPk")),n==="reset-pin"&&d?.vaultContract&&b?.length>1&&y>1&&L?.length>0){let u=Number(b.length),N=(await(0,yt.split)(Uint8Array.from(L.split("").map($=>$.charCodeAt(0))),Number(u),Number(y))).map($=>$.join(",")),X=m?"":(0,Ee.encodeBytes32String)(K),Z=[],U=[];for(let $=0;$<b.length;$++){let R=b[$],te=m?await Ze(N[$],m,K):qe(N[$],X);await k.addParticipant(l,R,te).then(async ae=>{let de={creatorVaultId:i,vaultPin:K,creatorHashedVaultId:l,creatorHashedVaultPin:x,cosigner:R,hashedCosigner:R,cosignerVaultIdType:"",cosignerVaultId:R,share:te};ae?.status===0?U.push(de):Z.push(de)}),await new Promise(ae=>setTimeout(ae,1e3))}if(Z?.length>0||U?.length!==b?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),_e("Oops somethin went wrong","error while adding co-signers"),null;let z=await new ie.VerifiedWallet(L).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:z,vaultId:i,hashedVaultId:l,pk:h,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:z,vaultId:i,hashedVaultId:l,pk:h,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:z,vaultId:i,hashedVaultId:l,pk:h,channel:s})),{}}if(C&&C?.length>0)return await k.confirmParticipant(l,l,!0).then(async u=>{if(u?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let N=await new ie.VerifiedWallet(L).getAddress(),X;if(m)X=await Ze(L,m,K);else{let Z=(0,Ee.encodeBytes32String)(K);X=qe(L,Z)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})),A}catch(p){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return _e("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",u),!1});if(n==="invitation")return{isExisting:!0,...A};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:h,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:h,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:h,channel:s}));let u=e?null:window;if(!e&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:x},txData:w}});else if(!e&&!chrome?.runtime?.sendMessage){let p=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:x},txData:w}}});u?.dispatchEvent(p)}else if(e&&a){let p=new a,N=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",X={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:x},txData:w};p.emit(N,X)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:h,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(h){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",h),_e("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await k.createVault(l).then(async h=>h?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:L}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",L):e&&t&&await t.setItem("lastPk",L),await k.confirmParticipant(l,l,!0).then(async C=>{if(C?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let p=await new ie.VerifiedWallet(L).getAddress(),N;if(m)N=await Ze(L,m,K);else{let X=(0,Ee.encodeBytes32String)(K);N=qe(L,X)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})),A}catch(u){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",u),!1}}else return _e("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",C),!1})):(_e("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",h),!1))})}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",A),_e("Oops something went wrong","Error while creating pin. Try again later"),!1}},Nn=async(e,t,a,i,l,K,x,s,L,f,k)=>{try{let n;if(k)n=await tt(l,k);else{let d=(0,Ee.encodeBytes32String)(a);n=et(l,d)}if(n){let d=ie.contractAddress,w=new ie.VerifiedWallet(n),m=s&&d[s]?.Custody&&ue[s]?.rpcUrls?.length>0?s:8453,b=ue[m]?.rpcUrls[0],y=w.setProvider(new ie.Provider(b)),A=new ie.Custody(y,d[m].Custody);return A?await A.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let h=await A.getQuorum(t);return h?.status===0&&h?.response?.result?.length>0?L&&Number(h?.response?.result[0])>0?{address:K,vaultId:e,hashedVaultId:t,channel:x,chainId:f||m,pin:a,rawId:k,pk:n}:Number(h?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:x,chainId:f||m,pin:a,rawId:k,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:x,chainId:f||m,pin:a,rawId:k}:L?{address:K,vaultId:e,hashedVaultId:t,channel:x,chainId:f||m,pin:a,rawId:k,pk:n}:{address:K,vaultId:e,hashedVaultId:t,channel:x,chainId:f||m,pin:a,rawId:k}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Tt=async(e,t,a,i,l,K,x,s,L,f,k,n,d)=>{let w;if(k)w=k;else{let m=ie.contractAddress,b=new ie.VerifiedWallet(n),y=d&&m[d]?.Custody&&ue[d]?.rpcUrls?.length>0?d:8453,A=ue[y]?.rpcUrls[0],P=b.setProvider(new ie.Provider(A));w=new ie.Custody(P,m[y].Custody)}return w?await w.confirmParticipant(K,i,f).then(async m=>m?.status===0?(f?await e(a,s,L,x):await t(a,s,L,x),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",m),!1)):!1},Xn=async(e,t,a,i,l,K,x,s,L,f,k,n,d,w)=>{let m=Number(a.length),y=(await(0,yt.split)(Uint8Array.from(n.split("").map(C=>C.charCodeAt(0))),Number(m),K)).map(C=>C.join(",")),A=d?"":(0,Ee.encodeBytes32String)(L),P=[],h=[];for(let C=0;C<a.length;C++){let u=a[C],p=d?await Ze(y[C],d,L):qe(y[C],A);await k.addParticipant(s,w==="remove-cosigner"?u:W(u.vaultId),p).then(async N=>{let X=w==="remove-cosigner"?{creatorVaultId:x,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:f,cosigner:u,hashedCosigner:u,cosignerVaultIdType:"",cosignerVaultId:u,share:p}:{creatorVaultId:x,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:f,cosigner:u.vaultId,hashedCosigner:W(u.vaultId),cosignerVaultIdType:u.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:u.vaultId,share:p,...u};N?.status===0?(h.push(X),w!=="remove-cosigner"&&u.vaultId!==x&&await e(u.otpChannel,u.vaultId,x,f).then(Z=>{Z||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(X)}),await new Promise(N=>setTimeout(N,1e3))}return P?.length>0||h?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),_e("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(s,K.toString()).then(async C=>{if(C?.status===0&&w!=="remove-cosigner"){let u=i?.map(p=>({name:p?.name,email:p?.email,phoneNumber:p?.phoneNumber,contactType:String(p?.otpChannel)?.toUpperCase(),position:`${Dt[Number(p?.position)]} Co-Signer`}));return await t(l,x,u,Number(K),f).then(p=>{p||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(C?.status===0&&w==="remove-cosigner"){let u=i?.map(async X=>(await k.removeParticipant(s,W(X?.vaultId)))?.status===0?"true":"false");if((await Promise.all(u))?.find(X=>X==="false")?.length>0)return!1;let N=i?.map(X=>({email:X?.email,phoneNumber:X?.phoneNumber,contactType:String(X?.otpChannel)?.toUpperCase(),position:`${Dt[Number(X?.position)]} Co-Signer`}));return await t(l,x,N,Number(K),f,!0).then(X=>{X||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),_e("Oops somethin went wrong","error while saving vault keys"),!1})},Tn=async(e,t,a,i,l,K,x,s,L)=>{let f;if(L)f=await tt(K,L);else{let k=(0,Ee.encodeBytes32String)(l);f=et(K,k)}if(f){let k=ie.contractAddress,n=new ie.VerifiedWallet(f),d=s&&k[s]?.Custody&&ue[s]?.rpcUrls?.length>0?s:8453,w=ue[d]?.rpcUrls[0],m=n.setProvider(new ie.Provider(w)),b=new ie.Custody(m,k[d].Custody);if(b)return await b.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.hash){let A=new Ee.AbiCoder,P,h;if(y?.response?.result?.logs?.length>0){let C=y?.response?.result?.logs?.filter(N=>N?.address?.toLowerCase()===k[d].Custody?.toLowerCase()&&N?.topics?.map(X=>X?.toLowerCase())?.includes($t?.toLowerCase()));h=C?.length;let u=C[0]?.data,p=A.decode(["bytes32","bytes32","uint256"],u)?.map((N,X)=>X<2?N:Number(N)).flat();P=p[p?.length-1]}else{let N=(await new ie.Provider(w).getTransactionReceipt(y?.response?.hash)).logs?.filter(U=>U?.address?.toLowerCase()===k[d].Custody?.toLowerCase()&&U?.topics?.map(J=>J?.toLowerCase())?.includes($t?.toLowerCase()));h=N?.length;let X=N[0]?.data,Z=A.decode(["bytes32","bytes32","uint256"],X)?.map((U,J)=>J<2?U:Number(U)).flat();P=Z[Z?.length-1]}return await e(x,i,a,Number(P),Number(h)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",y),!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},En=async(e,t,a,i,l,K,x,s,L,f,k,n,d)=>{let w;if(d)w=await tt(x,d);else{let m=(0,Ee.encodeBytes32String)(K);w=et(x,m)}if(w){let m=ie.contractAddress,b=new ie.VerifiedWallet(w),y=n&&m[n]?.Custody&&ue[n]?.rpcUrls?.length>0?n:8453,A=ue[y]?.rpcUrls[0],P=b.setProvider(new ie.Provider(A)),h=new ie.Custody(P,m[y].Custody);if(h)return await h.signTransaction(L,a,String(k)).then(async C=>C?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,f),await h.checkQuorum(L,k).then(async u=>u?.status===0&&u?.response?.result?(u?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,Number(k)),!0):!1)):!1).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",C),!1))}},Yn=async(e,t,a,i,l,K,x,s,L,f,k)=>{let n;if(k)n=await tt(x,k);else{let d=(0,Ee.encodeBytes32String)(K);n=et(x,d)}if(n){let d=ie.contractAddress,w=new ie.VerifiedWallet(n),m=f&&d[f]?.Custody&&ue[f]?.rpcUrls?.length>0?f:8453,b=ue[m]?.rpcUrls[0],y=w.setProvider(new ie.Provider(b)),A=new ie.Custody(y,d[m].Custody);return A?await A.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await A.getShards(a,s).then(async h=>{if(h?.status===0&&h?.response?.result){let C=h?.response?.result.filter(u=>u!=="");if(C.length>1){let u=k?"":(0,Ee.encodeBytes32String)(K),N=(await Promise.all(C.map(U=>k?tt(U,k):et(U,u)))).map(U=>new Uint8Array(U.split(",").map(Number))),X=await(0,yt.combine)(N),Z=new TextDecoder().decode(X);if(Z){let U=k?"":(0,Ee.encodeBytes32String)(K),J=k?await Ze(Z,k,K):qe(Z,U),z=new ie.VerifiedWallet(Z),$=await z.getAddress(),te=z.setProvider(new ie.Provider(b)),ae=[Ve.base,Ve.mainnet,Ve.gnosis,Ve.polygon,Ve.sepolia,Ve.baseSepolia].find(j=>Number(j?.id)===Number(m)),de=await St(ae,(0,_n.http)(),te);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:de,regAddress:$,vaultId:l,hashedVaultId:a,pk:J,channel:L})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:de,regAddress:$,vaultId:l,hashedVaultId:a,pk:J,channel:L})):e&&t&&await t.setItem("myVault",JSON.stringify({address:de,regAddress:$,vaultId:l,hashedVaultId:a,pk:J,channel:L})),!0}}else return!1}else return!1}).catch(h=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",h),!1)):!1).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var ui=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,[d,w]=(0,G.useState)(e.fontsLoaded||!1),m=(0,G.useRef)([]),[b,y]=(0,G.useState)(!1),[A,P]=(0,G.useState)(60),[h,C]=(0,G.useState)(["","","",""]),[u,p]=(0,G.useState)(!1),[N,X]=(0,G.useState)(""),{pk:Z,vaultContract:U,address:J}=Xe();(0,G.useEffect)(()=>{let j=async()=>{if(t)f&&await Le(f),w(!0);else{let I=Pe(document);w(I)}};e.fontsLoaded||j()},[]),(0,G.useEffect)(()=>{if(A===0)return;let j=setInterval(()=>P(I=>I-1),1e3);return()=>clearInterval(j)},[A]);let z=(j,I)=>{if(j?.length>1){let M=j.replace(/\D/g,""),Ke=[...h],S=0;for(let ee=I;ee<h.length&&S<M.length;ee++)Ke[ee]=M[S],S++;C(Ke);let me=I+M.length;me<h.length&&m.current[me]&&m.current[me].focus(),p(!1)}else{let M=j.replace(/\D/g,""),Ke=[...h];Ke[I]=M,C(Ke),M&&m.current[I+1]&&m.current[I+1].focus(),p(!1)}},$=(j,I,M)=>{M.nativeEvent.key==="Backspace"&&!h[I]&&I>0&&m.current[I-1]&&m.current[I-1].focus()},R=h.every(j=>j.length>0),te=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ae=async()=>{if(!R||!e.helperFunctions){p(!0),X("Please enter the complete OTP.");return}let j=te(),I=h.join("");if(!(!e.noContract&&!Z||!e.noContract&&!U)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(J,j,I)){e.setIsLoading(!1),p(!0);return}let Ke=W(j),S=!1;if(!e.noContract&&U&&(S=await Sn(U,Ke),S===null)){e.setIsLoading(!1),X("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(S),e.setIsLoading(!1),e.setStep("4")}catch(M){e.setIsLoading(!1),X("Error verifying OTP. Try again."),p(!0),console.error("error: ",M)}}},de=async()=>{if(!e.helperFunctions){X("Helper functions missing."),p(!0);return}let j=te(),I=e.userEmail?"email":"sms";e.setIsLoading(!0);let M=await e.helperFunctions.sendOTPVerification(J,I,j);e.setIsLoading(!1),M?(C(["","","",""]),P(60),p(!1),X("")):_e("OTP resend failed","Please try again later.")};return G.default.createElement(K,null,d&&G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},G.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&G.default.createElement(G.default.Fragment,null,G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&G.default.createElement(i,null,e.userEmail)),G.default.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},G.default.createElement(l,{source:{uri:T.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},h.map((j,I)=>G.default.createElement(x,{key:I,ref:M=>m.current[I]=M,value:h[I],onChangeText:M=>z(M,I),onKeyPress:M=>$(M,I,M),keyboardType:"number-pad",maxLength:1,style:t&&u?{...n.verifiedCustdMdlOtpInputRed}:t&&!u?{...n.verifiedCustdMdlOtpInput}:{},className:u?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!u&&A>5&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},G.default.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),A),!u&&A<=5&&A>0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},G.default.createElement(i,{style:{fontWeight:"400"}},"00:"),A),!u&&A===0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),u&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),u&&N?.length>0&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},N),!u&&A>0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!u&&A===0&&N===""||u&&N===""?G.default.createElement(s,{style:{background:"transparent"},onPress:async()=>{C(["","","",""]),await de()}},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!b&&G.default.createElement(a,{style:{height:"100px"}}),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},G.default.createElement(s,{className:R&&!u?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ae,disabled:!R||u,style:R&&!u?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},G.default.createElement(i,null,"Proceed"))))),!d&&G.default.createElement(i,null,"Loading Module Fonts..."))},Et=ui;var r=ce(require("react"));var Ge=ce(require("react"));var fi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n,EventEmitter:d}=e.platform;(0,Ge.useEffect)(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let A=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&A?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});A?.dispatchEvent(P)}else t&&d&&new d().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(A){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",A)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let w=()=>{e.setStep?.("6")},m=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},b=()=>{e.handleShowDashboard()};return Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Ge.default.createElement(l,{style:{width:"90%"},source:{uri:T.successIcon},alt:"Success Icon"}),Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Ge.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Ge.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Ge.default.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?w():e.action==="completeRecovery"?b():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Ge.default.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Ge.default.createElement(s,{onPress:()=>{e.action==="invitation"?m():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Ge.default.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Ye=fi;var Yt=require("@verified-network/verified-sdk"),dn=require("ethers");var gi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,EventEmitter:n,styles:d,rnPasskey:w}=e.platform,[m,b]=(0,r.useState)(e.fontsLoaded||!1),[y,A]=(0,r.useState)(!0),[P,h]=(0,r.useState)(!1),[C,u]=(0,r.useState)(""),[p,N]=(0,r.useState)(!1),[X,Z]=(0,r.useState)(!1),[U,J]=(0,r.useState)(!1),[z,$]=(0,r.useState)(!1),[R,te]=(0,r.useState)(""),[ae,de]=(0,r.useState)(""),[j,I]=(0,r.useState)(null),[M,Ke]=(0,r.useState)(!1),[S,me]=(0,r.useState)(!1),[ee,Me]=(0,r.useState)(!1),[le,oe]=(0,r.useState)(""),[V,Ce]=(0,r.useState)(""),[pe,be]=(0,r.useState)([]),[re,Se]=(0,r.useState)(0),{address:se,pk:F,chainId:$e,vaultContract:De,signer:lt,setVaultData:fe,setChainId:Je,setAddress:nt,setPk:it,setProvider:xe,setSigner:ct,setVaultContract:ut,vaultData:O}=Xe(),[g,B]=(0,r.useState)(["","","",""]),[_,ne]=(0,r.useState)(["","","",""]),ve=(0,r.useRef)([]),we=(0,r.useRef)([]);(0,r.useEffect)(()=>{let Y=async()=>{if(t)f&&await Le(f),b(!0);else{let v=Pe(document);b(v)}};e.fontsLoaded||Y()},[]),(0,r.useEffect)(()=>{let Y=async()=>{e.setIsLoading&&e.setIsLoading(!0);let v=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(v?.status===0&&v?.response?.result?.length>0){let Ct=Number(v?.response?.result[0]);Se(Ct)}if(e.vaultData?.existingCosignersHashed?.length>0){be([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let Ae=Yt.contractAddress[$e]?.Custody;if(!Ae)return;let ye=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new dn.ethers.Contract(Ae,ye,e.vaultData?.signer))return;let he=new dn.ethers.Interface(ye),Bn=he.getEvent("NewParticipant").topicHash,Vn=(await new Yt.Provider(ue[$e]?.rpcUrls[0])?.getLogs({address:Ae,fromBlock:ue[$e]?.custodyContractBlock||0,toBlock:"latest",topics:[Bn]}))?.map(Ct=>{let At=he.parseLog(Ct);return At?.args?.creator?.toLowerCase()===W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&At?.args?.creator!==At?.args?.participant?At?.args?.participant:null})?.filter(Ct=>Ct!==null);be([...new Set(Vn)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&Y()},[e.isExistingUser,e.action,e.vaultData]);let Qe=(Y,v,q)=>{h(!1),u("");let Ae=Y.replace(/\D/g,""),ye=q?[..._]:[...g];ye[v]=Ae,q?(ne(ye),Ae&&we.current[v+1]&&we.current[v+1].focus(),v<3&&ye.every(Ie=>Ie!=="")&&g.every(Ie=>Ie!=="")&&ye.join("")!==g.join("")&&(h(!0),u("Confirm Pin must match New Pin.")),v===3&&g.join("")!==ye.join("")&&(h(!0),u("Confirm Pin must match New Pin."))):(B(ye),Ae&&ve.current[v+1]&&ve.current[v+1].focus(),_.every(Ie=>Ie!=="")&&ye.join("")!==_.join("")&&(h(!0),u("New Pin must match Confirm Pin.")))},vt=async()=>{u(""),h(!1);try{let Y=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,v=t?w.create(on("Verified Wallet",Y,W(Y))):await navigator?.credentials?.create({publicKey:on("Verified Wallet",Y,W(Y))}),q=Ue(v?.rawId);return{pinString:v?.id,hashed:q,rawId:v?.rawId}}catch(Y){return u(`Passkey creation failed: ${Y?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0),null}},Ft=async()=>{u(""),h(!1);try{let Y=t?await w.get(rt()):await navigator.credentials.get({publicKey:rt()}),v=Ue(Y?.rawId);return{pinString:Y?.id,hashed:v,rawId:Y?.rawId}}catch(Y){u(`Passkey authentication failed: ${Y?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0)}},Bt=(Y,v,q,Ae)=>{let ye=q.nativeEvent.key;!Ae&&ye==="Backspace"&&!g[v]&&v>0&&ve.current[v-1]&&ve.current[v-1].focus(),Ae&&ye==="Backspace"&&!_[v]&&v>0&&we.current[v-1]&&we.current[v-1].focus()},We=()=>S?e.isExistingUser?g.every(Y=>Y!==""):g.every(Y=>Y!=="")&&_.every(Y=>Y!==""&&g.join("")===_.join("")):!0,at=()=>!!(ee&&V?.length===66&&V?.toLowerCase()?.startsWith("0x")),Fe=async Y=>{if(!e.helperFunctions)u("No Helper Functions. Please include all helper functions in the CreatePinPage props."),h(!0);else{u(""),h(!1);let v=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,q=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&We()&&v&&q&&F&&se&&De||!e.isExistingUser&&We()&&v&&q&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&We()&&v&&q&&F&&se&&De||e.isExistingUser&&We()&&v&&q&&e.vaultData?.vaultContract){e.setIsLoading(!0);let Ae=Y?.pinString||g.join(""),ye=W(v),Ie=Y?.hashed||W(Ae);await wn(t,k,n,v,ye,Ae,Ie,q,Y?.pk?Y?.pk:F||e.vaultData?.pk,Y?.address?Y?.address:se||e.vaultData?.address,Y?.vaultContract?Y?.vaultContract:De||e.vaultData?.vaultContract,e.action,Y?.vaultData?Y?.vaultData:e.vaultData,e.txData,Y?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...pe]:void 0,re).then(async he=>{e.setIsLoading(!1),he?(fe(he?.shouldStop&&he?.vaultId?{vaultId:he?.vaultId,hashedVaultId:he?.hashedVaultId,hashedVaultPin:he?.hashedVaultPin,pk:he?.pk,rawId:he?.rawId,channel:he?.channel}:he?.shouldStop?{}:he),u(""),h(!1),e.action==="invitation"?(de(Ae),I(Y?.rawId),Z(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&S?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&S?localStorage.removeItem("myVault"):t&&k&&S&&await k.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(q,v,Y?.hashed,e.vaultData.hashedVaultPin,Date.now()),te(`You have successfully reset your account ${S?"4-Digits PIN":"Passkey"}. ${S?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),N(!0)):he?.shouldStop?he?.shouldStop&&e.action!=="getPk"?(te(""),N(!0)):he?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):he===null?e.action==="reset-pin"?(u("Reset pin failed. Try again later."),h(!0)):(u(`You are an existing user. Please use the right ${S?"existing 4-Digits PIN":"existing Passkey for "+v} to recover your account login access on this device/browser`),h(!0)):(u("Unexpected error while creating account. Please try again later."),h(!0))})}else We()||(u(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),h(!0))}},ot=async Y=>{let v=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,q=e.userEmail?.length>0?"email":"sms";if(ae?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&v){e.setIsLoading(!0);let Ae=W(v),ye=S?W(ae):Ue(j);await Tt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,q,Ae,ye,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,v,Y,De).then(Ie=>{e.setIsLoading(!1),Ie&&!O?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(Y?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):Ie&&O?.isExisting&&J(!0)})}};return r.default.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},m&&r.default.createElement(r.default.Fragment,null,!p&&!X&&r.default.createElement(r.default.Fragment,null,!ee&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Change Pin":"Change Passkey"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",S?"PIN":"Passkey",". This"," ",S?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&r.default.createElement(r.default.Fragment,null,e.action!=="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},S?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",r.default.createElement(i,{style:{color:"#0C0C0E"}},S?"4-Digits PIN":"Passkey")," ","for your"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!S&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),r.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),S&&r.default.createElement(r.default.Fragment,null,r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},g.map((Y,v)=>r.default.createElement(x,{key:`pin-${v}`,style:t&&P?{...d.verifiedCustdMdlOtpInputRed}:t&&P?{...d.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:q=>ve.current[v]=q,value:g[v],onChangeText:q=>Qe(q,v,!1),onKeyPress:q=>Bt(q,v,q,!1)}))),e.isExistingUser&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&r.default.createElement(i,null),P&&C===""&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),y&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))),!e.isExistingUser&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},_.map((Y,v)=>r.default.createElement(x,{key:`confirm-${v}`,style:t&&P?{...d.verifiedCustdMdlOtpInputRed}:t&&!P?{...d.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:q=>we.current[v]=q,value:_[v],onChangeText:q=>Qe(q,v,!0),onKeyPress:q=>Bt(q,v,q,!0)}))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&r.default.createElement(i,null),P&&C===""&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),y&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))))),!M&&r.default.createElement(a,{style:{height:20}}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!S&&r.default.createElement(r.default.Fragment,null,P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),e.isExistingUser&&r.default.createElement(r.default.Fragment,null,e.action==="reset-pin"&&!S&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...d.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async Y=>{if(e.action==="reset-pin"){let v=await vt();v&&await Fe(v)}else{let v=await Ft();v&&await Fe(v)}}},e.action==="reset-pin"&&r.default.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&r.default.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&r.default.createElement(r.default.Fragment,null,r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...d.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async Y=>{let v=await vt();v&&await Fe(v)}},r.default.createElement(i,null,"Create New Account")),r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...d.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...d.verifiedCustdMdlPPPaymentPortalLine}:{}}),r.default.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...d.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...d.verifiedCustdMdlPPPaymentPortalLine}:{}})),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async Y=>{Me(!0)}},r.default.createElement(i,null,"Import An Existing account")))),S&&r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&We()?{...d.verifiedCustdMdlStartupButtonActive}:t&&!We()?{...d.verifiedCustdMdlStartupButton}:{},className:We()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async Y=>{await Fe()}},r.default.createElement(i,null,"Proceed"))))),ee&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},r.default.createElement(x,{style:t?{...d.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:V,onChangeText:Y=>{Ce(Y)}}),le?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le)),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),r.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!M&&r.default.createElement(a,{style:{height:20}}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&at()?{...d.verifiedCustdMdlStartupButtonActive}:t&&!at()?{...d.verifiedCustdMdlStartupButton}:{},className:at()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async Y=>{try{if(!at()){h(!0),u("Invalid private key entered. Please scroll up, check private key and try again.");return}let v=await ze($e,V);if(!v?.chainId||!v?.address||!v?.pk||!v?.provider||!v?.signer||!v?.vaultContract){h(!0),u("Invalid private key entered. Please check private key starts with 0x and try again.");return}Je(v.chainId),nt(v.address),it(v.pk),xe(v.provider),ct(v.signer),fe(v.vaultData),ut(v.vaultContract);let q=await vt();q&&await Fe({...q,pk:v.pk,vaultContract:v.vaultContract,signer:v.signer,address:v.address,vaultData:v.vaultData})}catch{h(!0),u("Error while importing account.try again later.");return}}},r.default.createElement(i,null,"Proceed With Passkey")))))),!p&&X&&r.default.createElement(r.default.Fragment,null,!U&&r.default.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...d.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},r.default.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),r.default.createElement(l,{style:t?{...d.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1}}),!z&&r.default.createElement(K,null,r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.default.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),r.default.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:T.pkicon}})),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:T.encryptedIcon}})),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>$(!0)},r.default.createElement(i,null,"Reject")),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!0)}},r.default.createElement(i,null,"Accept")))),z&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",r.default.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!1)}},r.default.createElement(i,null,"Yes")),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>$(!1)},r.default.createElement(i,null,"No"))))))),U&&r.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:z?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),p&&r.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:R?.length>0?R:"You have successfully logged in your account."})),!m&&r.default.createElement(i,null,"Loading Module Fonts..."))},mt=gi;var o=ce(require("react"));var sn=require("ethers"),Gt=require("@verified-network/verified-sdk");var mi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n}=e.platform,[d,w]=(0,o.useState)(e.fontsLoaded||!1),[m,b]=(0,o.useState)(!1),[y,A]=(0,o.useState)("1"),[P,h]=(0,o.useState)("1"),[C,u]=(0,o.useState)(!1),[p,N]=(0,o.useState)("email"),[X,Z]=(0,o.useState)(""),[U,J]=(0,o.useState)(""),[z,$]=(0,o.useState)(""),[R,te]=(0,o.useState)(""),[ae,de]=(0,o.useState)(""),[j,I]=(0,o.useState)(!1),[M,Ke]=(0,o.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[S,me]=(0,o.useState)([]),[ee,Me]=(0,o.useState)(0),[le,oe]=(0,o.useState)([]),[V,Ce]=(0,o.useState)([]),[pe,be]=(0,o.useState)(!1),[re,Se]=(0,o.useState)(2),[se,F]=(0,o.useState)(""),[$e,De]=(0,o.useState)(!1),{pk:lt,vaultData:fe,vaultContract:Je,chainId:nt,signer:it}=Xe();(0,o.useEffect)(()=>{let O=async()=>{if(t)try{let g=await Le(f);w(!0)}catch{w(!1)}else{let g=Pe(document);w(g)}};e.fontsLoaded||O()},[]),(0,o.useEffect)(()=>{let O=async()=>{e.setIsLoading&&e.setIsLoading(!0);let g=W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),B=await Je.getQuorum(g);if(B?.status===0&&B?.response?.result?.length>0){let Fe=Number(B?.response?.result[0]);Me(Fe),Ce(new Array(Fe).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),fe?.existingCosignersHashed?.length>0){oe([...new Set(fe?.existingCosignersHashed)]),Ce([...new Set(fe?.existingCosignersHashed)]);return}let ne=Gt.contractAddress[nt]?.Custody;if(!ne)return;let ve=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new sn.ethers.Contract(ne,ve,it))return;let Qe=new sn.ethers.Interface(ve),Ft=Qe.getEvent("NewParticipant").topicHash,at=(await new Gt.Provider(ue[nt]?.rpcUrls[0])?.getLogs({address:ne,fromBlock:ue[nt]?.custodyContractBlock||0,toBlock:"latest",topics:[Ft]}))?.map(Fe=>{let ot=Qe.parseLog(Fe);return ot?.args?.creator?.toLowerCase()===W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&ot?.args?.creator!==ot?.args?.participant?ot?.args?.participant:null})?.filter(Fe=>Fe!==null);oe([...new Set(at)]),Ce([...new Set(at)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&it&&Je||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&it&&Je)&&O()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let xe=()=>{},ct=()=>{let O=S?.length;if(p==="sms"&&X?.length===0){F("Invalid input, please check the phone number");return}else if(p==="sms"&&X?.length!==10){F("Invalid input, please check the phone number");return}else if(p==="email"&&z?.length===0){F("Invalid input, please check the email");return}else if(p==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(z)){F("Invalid input, please check the email");return}else if(S?.find(g=>g?.otpChannel==="sms"?g?.phoneArea?.toLowerCase()+g?.number?.toLowerCase()===M.area?.toLowerCase()+U?.toLowerCase():g?.email?.toLowerCase()===z?.toLowerCase())){e.action!=="remove-cosigner"&&F(p==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&F(p==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(p==="sms"&&M?.area?.toLowerCase()+U?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){F("Invalid input, phone number is creator's phone number");return}else if(p==="email"&&z?.toLowerCase()===e.userEmail?.toLowerCase()){F("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&le?.length===0){F("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!le?.includes(W(p==="sms"?`+${M?.area}${X}`:z))){F(p==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&V?.length===1){F("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(O+1===5){F("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}F(""),me(g=>[{name:R,email:z,number:U,phoneNumber:`+${M?.area}${X}`,otpChannel:p,phoneArea:M?.area,position:g?.length+1,vaultId:p==="sms"?`+${M?.area}${X}`:z},...g]),$(""),te(""),Z(""),J(""),de(""),O+1===4&&u(!1),e.action==="remove-cosigner"&&V?.length>1&&Ce(V?.filter(g=>g!==W(p==="sms"?`+${M?.area}${X}`:z)))},ut=async()=>{let O=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:fe?.vaultId},...S]:[fe?.hashedVaultId,...V];(e.action!=="remove-cosigner"&&O?.length>0&&S?.length>0&&re&&fe?.vaultId&&fe?.hashedVaultId&&Je&<&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&O?.length>1&&re&&fe?.vaultId&&fe?.hashedVaultId&&Je&<&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Xn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,O,S,e?.userEmail?.length>0?"email":"sms",re,fe.vaultId,fe.hashedVaultId,fe.vaultPin,fe.hashedVaultPin,Je,lt,fe?.rawId,e.action).then(g=>{e.setIsLoading(!1),g&&(e.action==="remove-cosigner"?De(!0):e.setStep("7"))}))};return o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},d&&!$e&&o.default.createElement(o.default.Fragment,null,!m&&o.default.createElement(o.default.Fragment,null,P==="1"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.pkicon},alt:"icon"})),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.encryptedIcon},alt:"icon"})),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{A("1"),b(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Learn More")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{h("2"),u(!1),b(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.default.createElement(o.default.Fragment,null," ",o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!pe&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},ee," required signers"))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length+1<5?S?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length,"/5)")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&V?.includes(" ")&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!pe&&S.sort((O,g)=>O?.position-g?.position).map((O,g)=>o.default.createElement(a,{key:g,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},pt[O?.position]?.split(" ")[0],o.default.createElement(i,null,o.default.createElement(i,{style:{fontSize:10}},pt[O?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},O?.name),O.otpChannel==="email"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},O.email),O.otpChannel==="sms"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",O?.phoneArea,") ",O.number))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{me(B=>B?.filter(_=>_?.otpChannel==="sms"?_?.phoneArea?.toLowerCase()+_?.number?.toLowerCase()!==O?.phoneArea?.toLowerCase()+O?.number?.toLowerCase():_?.email?.toLowerCase()!==O?.email?.toLowerCase())?.map((_,ne)=>(_.position=ne+1,_))),xe()}},o.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.delete}}))))))),pe&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?V?.length+1:S?.length+1).fill("1").map((O,g)=>o.default.createElement(a,{key:g,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:g+1===re&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:g+1===re&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(g+1))),o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:T.pointer}})))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t&&S?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length}%`}:!t&&S?.length===1?{width:`${100/S?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length+5}%`}:{width:`calc(${100/S?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:T.sliderDot}})),e.action==="remove-cosigner"&&o.default.createElement(a,{style:t&&V?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/V?.length}%`}:!t&&V?.length===1?{width:`${100/V?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/V?.length+5}%`}:{width:`calc(${100/V?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:T.sliderDot}})))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?V?.length+1:S?.length+1).fill("1").map((O,g)=>o.default.createElement(s,{style:{background:"transparent"},key:g,onPress:()=>{g+1>1&&Se(g+1)}},e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t&&g===S?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&g===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&g===0?{paddingLeft:12}:!t&&g===S?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(g+1)),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t&&g===V?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&g===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&g===0?{paddingLeft:12}:!t&&g===V?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(g+1))))))),o.default.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await ut()}},o.default.createElement(i,null,"Confirm"))))),C&&S?.length<4&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},pt[S?.length+1]?.split(" ")[0],o.default.createElement(i,{style:{fontSize:10}},pt[S?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.default.createElement(x,{onChangeText:te,value:R,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("sms"),F(""),$("")}},o.default.createElement(l,{source:{uri:p==="sms"?T.selectClicked:T.select},style:{width:24,height:24}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("email"),F(""),Z(""),J(""),de("")}},o.default.createElement(l,{source:{uri:p==="email"?T.selectClicked:T.select},style:{width:24,height:24}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},p==="sms"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.default.createElement(s,{onPress:()=>I(!j),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.default.createElement(l,{source:{uri:M.flag},style:{width:24,height:16},alt:"Country Flag"}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",M.area),j?o.default.createElement(l,{source:{uri:T.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.default.createElement(l,{source:{uri:T.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.default.createElement(x,{onChangeText:O=>{de(O===""?ae+" ":O);let g=O.replace(/\D/g,"");Z(g);let B="";for(let _=0;_<g.length;_++)B+=g[_],(_+1)%5===0&&_+1<g.length&&(B+=" ");J(B),F("")},onBlur:xe,value:U,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),j&&o.default.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:xe,setSelected:Ke,selected:M,searchActive:j,setSearchActive:I,contentMaxHeight:300,contentbottomMargin:300}),se===""&&X.length!==10&&ae.length>10&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),se!==""&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},se))),p==="email"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.default.createElement(x,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:O=>{$(O),F("")},onBlur:xe,value:z,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),se!==""&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},se)))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>u(!1)},o.default.createElement(i,null,"Cancel")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{ct(),xe()}},o.default.createElement(i,null,"Add")))),!C&&!pe&&S?.length<4&&o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>u(!0)},o.default.createElement(l,{source:{uri:T.addIcon},style:{width:20,height:20}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!C&&!pe&&S?.length===4&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.default.createElement(l,{source:{uri:T.addDisableIcon},style:{width:20,height:20}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!pe&&o.default.createElement(s,{className:S?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&S?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&S?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&S?.length>0&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&S?.length===0&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!C&&S?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{S?.length>0&&(Se(2),be(!0),u(!1))}},o.default.createElement(i,{style:n.buttonText},"Proceed")))),m&&o.default.createElement(o.default.Fragment,null,y==="1"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon2},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>b(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{onPress:()=>A("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Next")))),y==="2"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:T.addCoSignerIcon3},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Next")))),y==="3"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon4},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{onPress:()=>{h("2"),u(!1),b(!1),A("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Start")))))),d&&$e&&o.default.createElement(Ye,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!d&&o.default.createElement(i,null,"Loading Module Fonts..."))},dt=mi;var c=ce(require("react"));var Gn=require("ethers"),Ci=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:x,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:k,styles:n,rnPasskey:d}=e.platform,[w,m]=(0,c.useState)(e.fontsLoaded||!1),[b,y]=(0,c.useState)(!1),[A,P]=(0,c.useState)(!0),[h,C]=(0,c.useState)(!1),[u,p]=(0,c.useState)(!1),[N,X]=(0,c.useState)(null),[Z,U]=(0,c.useState)(null),[J,z]=(0,c.useState)(e.newChainId||8453),[$,R]=(0,c.useState)(!1),[te,ae]=(0,c.useState)(!1),[de,j]=(0,c.useState)(!1),[I,M]=(0,c.useState)(!1),[Ke,S]=(0,c.useState)(!1),[me,ee]=(0,c.useState)(""),[Me,le]=(0,c.useState)(!1),[oe,V]=(0,c.useState)({}),[Ce,pe]=(0,c.useState)(["","","",""]),be=(0,c.useRef)([]),[re,Se]=(0,c.useState)(!1),{setChainId:se,setAddress:F,setPk:$e,setProvider:De,setSigner:lt,setVaultContract:fe,setVaultData:Je}=Xe();(0,c.useEffect)(()=>{let g=async()=>{if(t)f&&await Le(f),m(!0);else{let B=Pe(document);m(B)}};e.fontsLoaded||g()},[]);let nt=(g,B)=>{if(g.length>1){let _=g.replace(/\D/g,""),ne=[...Ce],ve=0;for(let Qe=B;Qe<Ce.length&&ve<_.length;Qe++)ne[Qe]=_[ve],ve++;pe(ne);let we=B+_.length;we<Ce.length&&be.current[we]&&be.current[we].focus(),y(!1)}else{let _=g.replace(/\D/g,""),ne=[...Ce];ne[B]=_,pe(ne),_&&be.current[B+1]&&be.current[B+1].focus(),y(!1)}},it=(g,B,_)=>{_.nativeEvent.key==="Backspace"&&!Ce[B]&&B>0&&be.current[B-1]&&be.current[B-1].focus()},xe=Ce.every(g=>g.length>0),ct=async g=>{if(!e.helperFunctions)ee("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(ee(""),y(!1),re&&xe&&e.hashedVaultId&&e.encrptedPk||!re&&e.hashedVaultId&&e.encrptedPk&&g){e.setIsLoading(!0);let B=g?.pinString?g?.pinString:Ce.join("");await Nn(e.vaultId,e.hashedVaultId,B,g?.hashed?g?.hashed:W(B),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(J),cn?.includes(e.origin?.toLowerCase()),null,g?.rawId).then(async _=>{if(_&&!_?.inCompleteVault)e.setIsLoading(!1),X(_),U(_?.pk&&e.action!=="eth_requestAccounts"?{address:_.address,channel:_.channel,chainId:_.chainId,pk:_?.pk}:{address:e.regAddress,channel:_.channel,chainId:_.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Tn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,g?.hashed?g?.hashed:W(B),e.vaultId,B,e.encrptedPk,e.vaultChannel,Number(J),g?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ne?p(!0):(ee("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),y(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await En(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,g?.hashed?g?.hashed:W(B),e.vaultId,B,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(J),g?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&k&&!e.reqTxData?.newUser&&!e.vaultAddress&&await k.removeItem("myVault"),ne?p(!0):(ee("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),y(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Yn(t,k,e.hashedVaultId,g?.hashed?g?.hashed:W(B),e.vaultId,B,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(J),g?.rawId).then(async ne=>{e.setIsLoading(!1),ne?p(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ee("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),y(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&_?.pin?.length>0&&e.signTxElement?(V({chainId:J,ky:re?Gn.ethers.encodeBytes32String(_?.pin):"",rawId:re?"":g?.rawId,...e.txToSign}),ae(!1),le(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(ee(""),y(!1),ae(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(ee(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(ee(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ee(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ee(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(ee("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),y(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(ee("Incomplete account login detected. Logout and try again later"),y(!0)):(ee(""),y(!1),p(!0));else if(_&&_?.inCompleteVault&&_?.pk){let ne=await ze(Number(J),_?.pk);if(se(ne.chainId),F(ne.address),$e(ne.pk),De(ne.provider),lt(ne.signer),fe(ne.vaultContract),Je({vaultId:_?.vaultId,hashedVaultId:_?.hashedVaultId,vaultPin:_?.pin,hashedVaultPin:re?W(_?.pin):Ue(_?.rawId),vaultContract:ne.vaultContract,rawId:_?.rawId}),_?.channel?.toLowerCase()==="sms"){let ve=_?.vaultId?.replace(_?.vaultId?.slice(-10),""),we=_?.vaultId?.slice(-10)?.slice(0,5)+" "+_?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:ve?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(we),e.setUserEmail("")}else e.setUserEmail(_?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else ee(re?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!re&&!g&&(ee("Unexpected error with selected passkey. Try again later"),y(!0)),re&&!xe&&(ee("Input your 4-Digits PIN to login."),y(!0))},ut=async g=>{let B=e.vaultId;if(N?.pin?.length>0&&N?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&B&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let _=N.pin,ne=W(B),ve=re?W(_):Ue(N.rawId);await Tt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ne,ve,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,B,g,null,N.pk,Number(J)).then(we=>{e.setIsLoading(!1),we&&(S(g),j(!0))})}},O=async()=>{ee(""),y(!1);try{let g=await navigator.credentials.get({publicKey:rt()}),B=Ue(g?.rawId);return{pinString:g?.id,hashed:B,rawId:g?.rawId}}catch(g){ee(`Passkey authentication failed: ${g?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}};return c.default.createElement(c.default.Fragment,null,w&&!te&&!Me&&c.default.createElement(c.default.Fragment,null,!u&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(Te,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},re?"Enter PIN":"Sign-in with Existing Passkey")),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",c.default.createElement(i,{style:{color:"#0C0C0E"}},re?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",c.default.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),re&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},Ce.map((g,B)=>c.default.createElement(x,{key:B,ref:_=>be.current[B]=_,className:b?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&b?{...n.verifiedCustdMdlOtpInputRed}:t&&!b?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:A,maxLength:1,value:Ce[B],onChangeText:_=>nt(_,B),onKeyPress:_=>it(_,B,_),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${B}`}))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},b&&!me&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),b&&me&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},me),!b&&c.default.createElement(i,null),A?c.default.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:T.pinHide}})):c.default.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:T.pinShow}})))),!re&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),c.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!h&&c.default.createElement(a,{style:{height:20}}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},c.default.createElement(xn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),re&&c.default.createElement(s,{onPress:async()=>await ct(),style:t&&xe&&!b?{...n.verifiedCustdMdlStartupButtonActive}:t&&xe&&b?{...n.verifiedCustdMdlStartupButton}:t&&!xe&&!b?{...n.verifiedCustdMdlStartupButton}:t&&!xe&&b?{...n.verifiedCustdMdlStartupButton}:{},className:xe&&!b?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},c.default.createElement(i,null,"Proceed")),!re&&c.default.createElement(c.default.Fragment,null,b&&me?.length>0&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},me),c.default.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let g=await O();g&&await ct(g)},className:"verified-custd-mdl-startup-button-active"},c.default.createElement(i,null,"Login With Passkey")))))),u&&c.default.createElement(Ye,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:Z},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),w&&te&&!Me&&c.default.createElement(c.default.Fragment,null,!de&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},c.default.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),c.default.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},c.default.createElement(l,{style:{height:250,width:"90%"},source:{uri:T.addCoSignerIcon1}})),I?c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",c.default.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(s,{onPress:async()=>await ut(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"Yes")),c.default.createElement(s,{onPress:()=>M(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"No")))))):c.default.createElement(c.default.Fragment,null,c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:T.pkicon}})),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:T.encryptedIcon}})),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(s,{onPress:()=>M(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},c.default.createElement(i,null,"Reject")),c.default.createElement(s,{onPress:async()=>await ut(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"Accept"))))),de&&c.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:Ke?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),w&&!te&&Me&&c.default.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:oe}),!w&&c.default.createElement(i,null,"Loading Module Fonts..."))},st=Ci;var pi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,StyleSheet:x,Font:s,AsyncStorage:L}=e?.platform,[f,k]=(0,H.useState)(e.fontsLoaded||!1),[n,d]=(0,H.useState)(e.showLogoPage||!1),[w,m]=(0,H.useState)([]),[b,y]=(0,H.useState)("2"),[A,P]=(0,H.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[h,C]=(0,H.useState)(""),[u,p]=(0,H.useState)(""),[N,X]=(0,H.useState)(!1),[Z,U]=(0,H.useState)(""),[J,z]=(0,H.useState)(""),[$,R]=(0,H.useState)(""),[te,ae]=(0,H.useState)(""),[de,j]=(0,H.useState)(null),[I,M]=(0,H.useState)(null),[Ke,S]=(0,H.useState)(!1),{setChainId:me,setAddress:ee,setPk:Me,setProvider:le,setSigner:oe,setVaultContract:V,setVaultData:Ce,vaultData:pe,chainId:be,vaultContract:re}=Xe();return(0,H.useEffect)(()=>{let Se=async()=>{if(t)s&&await Le(s),k(!0);else{let se=Pe(document);k(se)}};e.fontsLoaded||Se()},[]),(0,H.useEffect)(()=>{let Se=async()=>{let se;!t&&chrome?.storage?.local?se=await new Promise($e=>{chrome.storage.local.get(["lastPk"],De=>{$e(De.lastPk)})}):!t&&localStorage?se=localStorage.getItem("lastPk"):t&&L&&(se=L.getItem("lastPk"));let F=await ze(e.chainId,se&&se?.length>0?se:void 0);me(F.chainId),ee(F.address),Me(F.pk),le(F.provider),oe(F.signer),Ce(F.vaultData),F.vaultContract?.contractAddress?V(F.vaultContract):V(void 0)};re?.contractAddress||Se()},[re]),(0,H.useEffect)(()=>{(0,Mn.debounce)(()=>{d(!1)},e.logoTimeoutTime??3e3)()},[]),(0,H.useEffect)(()=>{(()=>{let se=Lt.map(F=>{if(F)return{name:F.name,countryName:F.name,officialName:F.name,currencySymbol:F.currency,currencyName:F.currency,officialCurrencySymbol:F.currency,countryCode:F.code,flag:F.flag,continent:F.continent,phone_code:F.phone_code,code:F.code}}).filter(Boolean);m(se)})()},[]),H.default.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},f&&n&&e.logoPageElement&&H.default.createElement(a,null,e.logoPageElement),f&&!n&&H.default.createElement(a,{style:{width:"100%",heigth:"100%"}},b==="2"&&H.default.createElement(Xt,{platform:e.platform,fontsLoaded:f,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:C,userNumberFmt:h,setUserEmail:p,userEmail:u,setSelectedCountry:P,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),b==="3"&&H.default.createElement(Et,{platform:e.platform,fontsLoaded:f,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:h,setUserNumberFmt:C,setUserEmail:p,userEmail:u,selectedCountry:A,helperFunctions:e.helperFunctions,setIsExistingUser:S}),b==="4"&&H.default.createElement(mt,{platform:e.platform,fontsLoaded:f,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:X,setSuccessBtnText:U,setSuccessBtnNeutText:z,setSuccessBtnFunc:j,setSuccessBtnNeutFunc:M,userNumberFmt:h,userEmail:u,selectedCountry:A,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:R,setActionFooterText:ae,helperFunctions:e.helperFunctions,isExistingUser:Ke}),b==="5"&&H.default.createElement(Ye,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:N,buttonText:Z,buttonNeutText:J,buttonFunc:de,buttonNeutFunc:I,actionHeaderText:$,actionFooterText:te}),b==="6"&&H.default.createElement(dt,{platform:e.platform,fontsLoaded:f,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:h,userEmail:u,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),b==="7"&&e.action===""&&H.default.createElement(Ye,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="7"&&e.action!==""&&H.default.createElement(Ye,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:be}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="8"&&e.dashbordElement&&H.default.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),b==="8"&&!e.dashbordElement&&H.default.createElement(H.default.Fragment,null),b==="0"&&H.default.createElement(st,{platform:e.platform,fontsLoaded:f,vaultId:pe?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:pe?.hashedVaultId,encrptedPk:pe?.pk,vaultAddress:pe?.address,vaultChannel:pe?.channel,actionText:ht.getPk,setIsLoading:e.setIsLoading,newChainId:Number(be||e.chainId),action:"getPk",reqVaultData:pe,reqTxData:e.txData?Object.keys(e.txData)?.map(Se=>(e.txData[Se]=decodeURIComponent(e.txData[Se]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:C,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard})),!f&&H.default.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},H.default.createElement(i,null,"Loading Module Fonts...")))},Mt=pi;var hi=e=>{let[t,a]=(0,E.useState)(!1),[i,l]=(0,E.useState)({}),[K,x]=(0,E.useState)(!1),[s,L]=(0,E.useState)(null),[f,k]=(0,E.useState)({}),[n,d]=(0,E.useState)({}),[w,m]=(0,E.useState)(!1),[b,y]=(0,E.useState)(!1),[A,P]=(0,E.useState)(!1),[h,C]=(0,E.useState)(!1),[u,p]=(0,E.useState)(!1),[N,X]=(0,E.useState)(""),[Z,U]=(0,E.useState)([]),[J,z]=(0,E.useState)(""),[$,R]=(0,E.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[te,ae]=(0,E.useState)(""),[de,j]=(0,E.useState)("");(0,E.useEffect)(()=>{(async()=>{await bt();let oe=xt();oe&&(l(oe),a(!0))})()},[]);let{isReactNative:I,View:M,Text:Ke,Font:S,AsyncStorage:me,ActivityIndicator:ee,styles:Me}=i;return(0,E.useEffect)(()=>{!K&&t&&(async()=>{if(I)S&&await Le(S),x(!0);else{let oe=Pe(document);x(oe)}})()},[t,K]),(0,E.useEffect)(()=>{t&&(async()=>{if(I){if(me)try{let oe=await me.getItem("myVault");if(oe){let V=JSON.parse(oe);if(V?.vaultId){k(V),L(!0);return}}L(!1)}catch(oe){console.error("Error reading vault data on react:",oe),L(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",oe=>{oe.myVault&&JSON.parse(oe.myVault)?.vaultId?(k(JSON.parse(oe.myVault)),L(!0)):L(!1)});else if(localStorage){let oe=JSON.parse(localStorage.getItem("myVault"));oe&&oe?.vaultId?(k(oe),L(!0)):L(!1)}else L(!1)})()},[t]),(0,E.useEffect)(()=>{(()=>{let oe=Lt.map(V=>V?{name:V?.name,countryName:V?.name,officialName:V?.name,currencySymbol:V?.currency,currencyName:V?.currency,officialCurrencySymbol:V?.currency,countryCode:V?.code,flag:V?.flag,continent:V?.continent,phone_code:V?.phone_code,code:V?.code}:null).filter(V=>V!=null);U(oe)})()},[]),E.default.createElement(E.default.Fragment,null,t&&E.default.createElement(E.default.Fragment,null,K&&E.default.createElement(_t,null,w&&E.default.createElement(M,{style:I?{...Me.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},E.default.createElement(ee,{size:"large",color:"blue"})),E.default.createElement(M,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:I?{...Me.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&E.default.createElement(E.default.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&E.default.createElement(M,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&E.default.createElement(E.default.Fragment,null,!s&&!b&&E.default.createElement(Mt,{platform:i,fontsLoaded:K,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:L,setIsLoading:m,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p}),s&&!b&&!A&&E.default.createElement(st,{platform:i,fontsLoaded:K,setisOnboard:L,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,vaultChannel:f?.channel,regAddress:f?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||ht[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:j,setUserNumberFmt:ae,setSelectedCountry:R,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement}),s&&b&&A&&E.default.createElement(st,{platform:i,fontsLoaded:K,setisOnboard:L,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,regAddress:f?.regAddress,vaultChannel:f?.channel,origin:e.origin,title:e.title,actionText:e.actionText||ht[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:j,setUserNumberFmt:ae,setSelectedCountry:R,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement}),s&&!b&&A&&J===""&&E.default.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},E.default.createElement(dt,{platform:i,fontsLoaded:K,setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,selectedCountry:$,allCountries:Z,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p})),s&&!b&&A&&J==="7"&&E.default.createElement(Ye,{platform:i,action:e.action,setStep:z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{C(!1),p(!1),y(!0)},buttonFunc:()=>{C(!1),p(!1),y(!0)}}),s&&!b&&A&&J==="8"&&e.dashbordElement&&E.default.createElement(e.dashbordElement,{setIsLoading:m}),s&&!b&&A&&J==="8"&&!e.dashbordElement&&E.default.createElement(E.default.Fragment,null),!A&&b&&!h&&!u&&e.dashbordElement&&E.default.createElement(e.dashbordElement,{setIsLoading:m,setShowResetPin:C,setShowRemoveCosigner:p,setAction:X,setUserNumberFmt:ae,setUserEmail:j,setSelectedCountry:R,setVaultData:d,initWalletAndContract:ze,useVaultStore:Xe}),s&&!A&&b&&!h&&!u&&!e.dashbordElement&&E.default.createElement(E.default.Fragment,null),s&&!A&&!u&&b&&h&&E.default.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},E.default.createElement(mt,{platform:i,fontsLoaded:K,action:"reset-pin",setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,vaultData:n,selectedCountry:$,helperFunctions:e.helperFunctions,isExistingUser:!0})),s&&!A&&b&&!h&&u&&E.default.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},E.default.createElement(dt,{platform:i,fontsLoaded:K,action:"remove-cosigner",setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,selectedCountry:$,allCountries:Z,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p}))))),!K&&E.default.createElement(Ke,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&E.default.createElement(E.default.Fragment,null,"Preparing Module..."))},Fn=hi;0&&(module.exports={AddCoSignersPage,ContactPage,CreatePinPage,EnterPinPage,FTUPage,OTPPage,VaultContextProvider,VerifiedCustody,decryptString,decryptWithPasskey,encryptString,encryptWithPasskey,getPlatformComponents,hashTheBuffer,hashTheString,initPlatform,loadAllGoogleFonts,loadAllGoogleFontsRN,publicKeyCredentialRequestOptions});
|
|
1
|
+
var In=Object.create;var Pt=Object.defineProperty;var $n=Object.getOwnPropertyDescriptor;var Dn=Object.getOwnPropertyNames;var Hn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var Vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jn=(e,t)=>{for(var a in t)Pt(e,a,{get:t[a],enumerable:!0})},ln=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of Dn(t))!On.call(e,l)&&l!==a&&Pt(e,l,{get:()=>t[l],enumerable:!(i=$n(t,l))||i.enumerable});return e};var ce=(e,t,a)=>(a=e!=null?In(Hn(e)):{},ln(t||!e||!e.__esModule?Pt(a,"default",{value:e,enumerable:!0}):a,e)),Rn=e=>ln(Pt({},"__esModule",{value:!0}),e);var vn=Vt((Fi,ii)=>{ii.exports="./Roboto-Regular-UUBD26YO.ttf"});var An=Vt((Bi,ai)=>{ai.exports="./Manrope-Regular-33576HBZ.ttf"});var Pn=Vt((Vi,oi)=>{oi.exports="./Hind-Regular-R5KOYWFC.ttf"});var ki={};Jn(ki,{AddCoSignersPage:()=>dt,ContactPage:()=>Xt,CreatePinPage:()=>mt,EnterPinPage:()=>st,FTUPage:()=>Mt,OTPPage:()=>Tt,VaultContextProvider:()=>_t,VerifiedCustody:()=>Fn,decryptString:()=>et,decryptWithPasskey:()=>tt,encryptString:()=>qe,encryptWithPasskey:()=>Ze,getPlatformComponents:()=>xt,hashTheBuffer:()=>Ue,hashTheString:()=>j,initPlatform:()=>bt,loadAllGoogleFonts:()=>Pe,loadAllGoogleFontsRN:()=>Le,publicKeyCredentialRequestOptions:()=>rt});module.exports=Rn(ki);function Un(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Un(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{width:100vh;border-radius:10px;width:100%;flex-shrink:0;background:#0000004d;z-index:100;display:flex;justify-content:center;align-items:center;overflow:auto;position:absolute;inset:0}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:100%}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:90%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:.5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:450;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:200px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
|
|
2
|
+
`);typeof window<"u"&&typeof window.chrome>"u"&&(window.chrome={});if(typeof global<"u"&&typeof global.crypto>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative")try{require("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}var He=ce(require("react"));var Pi=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",cn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],un=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],It="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",$t={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},pt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},ht={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},T={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Lt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];var fn={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var Dt=!1,Ht=!1,Ot,Jt,Rt,Ut,Wt,Qt,jt,qt,gn,mn,Cn,Zt,pn,bt=async()=>{if(Ht)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");gn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");pn=await(await import("react-native-passkey")).Passkey,mn=l.default,Cn=a.EventEmitter;let _=({className:L,id:g,...K})=>K,s=L=>g=>He.default.createElement(L,{..._(g)});Ot=s(t.View),Jt=s(t.Text),Rt=s(t.Image),Ut=s(t.ScrollView),Wt=t.StyleSheet,Qt=s(t.TextInput),jt=s(t.TouchableOpacity),qt=s(t.ActivityIndicator),Zt=t.StyleSheet.create(fn),Dt=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Ot=({onPress:a,...i})=>He.default.createElement("div",{onClick:a,...i}),Jt=({onPress:a,...i})=>He.default.createElement("span",{onClick:a,...i}),Rt=({onPress:a,source:i,...l})=>He.default.createElement("img",{onClick:a,...l,src:i?.uri}),Ut=a=>He.default.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),Wt={create:a=>a},Zt={},Qt=(0,He.forwardRef)(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:y,value:_,keyboardType:s,secureTextEntry:L,onSubmitEditing:g,blurOnSubmit:K,placeholderTextColor:n,...d},w)=>He.default.createElement("input",{...d,ref:w,value:_,onInput:m=>{i?.(m),a?.(m.target.value)},onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),g?.(m)),l?.(m),y?.(m)},type:L?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),jt=({onPress:a,style:i,...l})=>He.default.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),qt=({color:a,size:i,...l})=>He.default.createElement(t.img,{height:"50px",width:"50px",src:T.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Dt=!1,console.log("Web platform initialized.")}Ht=!0},xt=()=>{if(!Ht)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Dt,View:Ot,Text:Jt,Image:Rt,ScrollView:Ut,StyleSheet:Wt,TextInput:Qt,TouchableOpacity:jt,ActivityIndicator:qt,Font:gn,AsyncStorage:mn,EventEmitter:Cn,styles:Zt,rnPasskey:pn}};var Y=ce(require("react"));var Ne=ce(require("react")),hn=(0,Ne.createContext)(void 0),_t=({children:e})=>{let[t,a]=(0,Ne.useState)(null),[i,l]=(0,Ne.useState)(null),[y,_]=(0,Ne.useState)(null),[s,L]=(0,Ne.useState)(null),[g,K]=(0,Ne.useState)(null),[n,d]=(0,Ne.useState)(null),[w,m]=(0,Ne.useState)(null);return Ne.default.createElement(hn.Provider,{value:{chainId:t,pk:i,address:y,signer:s,provider:g,vaultContract:n,vaultData:w,setChainId:a,setPk:l,setAddress:_,setSigner:L,setProvider:K,setVaultContract:d,setVaultData:m}},e)},Xe=()=>{let e=(0,Ne.useContext)(hn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};var H=ce(require("react")),Mn=require("lodash");var Re=require("@verified-network/verified-sdk");var fe={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:T.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:T.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:T.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:T.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:T.baseIcon}};var nn=require("@noble/hashes/pbkdf2"),Kt=require("@noble/hashes/sha256"),Oe=require("@noble/hashes/utils"),an=require("@noble/ciphers/aes"),wt=ce(require("crypto-js")),tn=require("react-toastify"),ft=ce(require("react")),Be=require("viem/chains"),Ln=require("viem");var Ke=require("viem");var kn={abi:[{type:"constructor",inputs:[{name:"defaultValidator",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],stateMutability:"nonpayable"},{type:"error",name:"CanNotRemoveLastValidator",inputs:[]},{type:"error",name:"DefaultValidatorAlreadyInstalled",inputs:[]},{type:"error",name:"EmergencyUninstallSigError",inputs:[]},{type:"error",name:"EnableModeSigError",inputs:[]},{type:"error",name:"FallbackAlreadyInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackCallTypeInvalid",inputs:[]},{type:"error",name:"FallbackHandlerUninstallFailed",inputs:[]},{type:"error",name:"FallbackNotInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackSelectorForbidden",inputs:[]},{type:"error",name:"HookAlreadyInstalled",inputs:[{name:"currentHook",type:"address",internalType:"address"}]},{type:"error",name:"HookPostCheckFailed",inputs:[]},{type:"error",name:"InvalidInput",inputs:[]},{type:"error",name:"InvalidModule",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"InvalidModuleTypeId",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidNonce",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"MismatchModuleTypeId",inputs:[]},{type:"error",name:"MissingFallbackHandler",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"ModuleAddressCanNotBeZero",inputs:[]},{type:"error",name:"ModuleAlreadyInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"ModuleNotInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"NoValidatorInstalled",inputs:[]},{type:"error",name:"PrevalidationHookAlreadyInstalled",inputs:[{name:"currentPreValidationHook",type:"address",internalType:"address"}]},{type:"error",name:"UnauthorizedOperation",inputs:[{name:"operator",type:"address",internalType:"address"}]},{type:"error",name:"UnsupportedCallType",inputs:[{name:"callType",type:"bytes1",internalType:"CallType"}]},{type:"error",name:"ValidatorNotInstalled",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"event",name:"ERC7484RegistryConfigured",inputs:[{name:"registry",type:"address",indexed:!0,internalType:"contract IERC7484"}],anonymous:!1},{type:"event",name:"ModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ModuleUninstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"fallback",stateMutability:"payable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getActiveHook",inputs:[],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getExecutorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getFallbackHandlerBySelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bytes1",internalType:"CallType"},{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getRegistry",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IERC7484"}],stateMutability:"view"},{type:"function",name:"getValidatorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"initNexus",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScoped",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScopedNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidator",inputs:[{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModules",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidator",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidatorNoRegistry",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"installModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"isModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"additionalContext",type:"bytes",internalType:"bytes"}],outputs:[{name:"installed",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"uninstallModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"deInitData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"receive",stateMutability:"payable"}]};var Kn={abi:[{inputs:[{internalType:"address",name:"implementation_",type:"address"},{internalType:"address",name:"owner_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"AccountAlreadyDeployed",type:"error"},{inputs:[],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ImplementationAddressCanNotBeZero",type:"error"},{inputs:[],name:"InvalidEntryPointAddress",type:"error"},{inputs:[],name:"NewOwnerIsZeroAddress",type:"error"},{inputs:[],name:"NoHandoverRequest",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"ZeroAddressNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"bytes",name:"initData",type:"bytes"},{indexed:!0,internalType:"bytes32",name:"salt",type:"bytes32"}],name:"AccountCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"ACCOUNT_IMPLEMENTATION",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"cancelOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"completeOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"computeAccountAddress",outputs:[{internalType:"address payable",name:"expectedAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"createAccount",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"result",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"ownershipHandoverExpiresAt",outputs:[{internalType:"uint256",name:"result",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"requestOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"}],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"}]};var jn="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",qn="0x00000000D3254452a909E4eeD47455Af7E27C289",yn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",Zn=0n,kt=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},zn=e=>(0,Ke.encodeAbiParameters)([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,(0,Ke.encodeFunctionData)({abi:kn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),ei=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:y,..._}=e;return{deInitData:t,data:l,module:y,address:y,signer:i,type:a,getStubSignature:async()=>yn,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),..._}},ti=e=>ei({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:Ke.zeroAddress,module:Ke.zeroAddress,type:"validator",getStubSignature:async()=>yn}),ni=()=>({module:Ke.zeroAddress,data:Ke.zeroHash}),St=async(e,t,a)=>{let i=(0,Ke.createPublicClient)({chain:e,transport:t}),l=ti({signer:a}),y=[],_=[],s=ni(),L=[],g=Ke.zeroAddress,K=jn,n=qn,d=[],w=zn({defaultValidator:kt(l),validators:y.map(kt),executors:_.map(kt),hook:kt(s),fallbacks:L.map(kt),registryAddress:g,bootStrapAddress:n,prevalidationHooks:d}),m=(0,Ke.pad)((0,Ke.toHex)(Zn),{size:32}),b=await i.readContract({address:K,abi:Kn.abi,functionName:"computeAccountAddress",args:[w,m]});if(b?.toLowerCase()!==Ke.zeroAddress?.toLowerCase())return b};var Pe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return un.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let y=e.createElement("link");y.rel="stylesheet",y.href=i,e.head.appendChild(y)}}),!0},Le=async e=>(await e?.loadAsync({Roboto:vn(),Manrope:An(),Hind:Pn()}),!0),ze=async(e,t)=>{try{let a;if(t)a=new Re.VerifiedWallet(t);else{let d=Re.VerifiedWallet.generateMnemonic();a=Re.VerifiedWallet.importWallet(d)}let i=Re.contractAddress,l=e&&i[e]?.Custody&&fe[e]?.rpcUrls?.length>0?e:8453,y=fe[l]?.rpcUrls[0],_=a.setProvider(new Re.Provider(y)),s=a.privateKey,L=new Re.Custody(_,i[l]?.Custody),g=_,K=[Be.base,Be.mainnet,Be.gnosis,Be.polygon,Be.sepolia,Be.baseSepolia].find(d=>Number(d?.id)===Number(l)),n=await St(K,(0,Ln.http)(),g);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:_,provider:y,vaultContract:L,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},j=e=>{let t=e.toLowerCase(),a=(0,Kt.sha256)((0,Oe.utf8ToBytes)(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},Ue=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=(0,Kt.sha256)(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},qe=(e,t)=>wt.default.AES.encrypt(e,t).toString(),et=(e,t)=>{var a=wt.default.AES.decrypt(e,t),i=a.toString(wt.default.enc.Utf8);return i},ri=(e,t)=>ft.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},ft.default.createElement("img",{style:{marginLeft:"5px"},src:T.errorAlert,alt:""}),ft.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},ft.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),ft.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var _e=(e,t)=>(tn.toast.dismiss(),tn.toast.error(ri(e,t),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));var Q=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},di=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let y=t.substr(l*2,2);i[l]=parseInt(y,16)}return i},on=(e,t,a)=>{let i=di(a);return{challenge:(0,Oe.randomBytes)(32),rp:{name:e},user:{id:i,name:t,displayName:t},pubKeyCredParams:[{alg:-7,type:"public-key"},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"preferred"},timeout:6e4,attestation:"direct"}},rt=()=>({challenge:(0,Oe.randomBytes)(32),timeout:6e4,userVerification:"preferred"}),zt=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),en=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},Ze=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=(0,Oe.randomBytes)(8),y=Array.from(l).map(d=>d.toString(16).padStart(2,"0")).join(""),_=j(`${a}:${y}`),s=(0,Oe.utf8ToBytes)(_),L=(0,Oe.randomBytes)(12),g=(0,nn.pbkdf2)(Kt.sha256,i,s,{c:3e5,dkLen:32}),n=(0,an.gcm)(g,L).encrypt((0,Oe.utf8ToBytes)(e));return[zt(s),zt(L),zt(n)].join(".")},tt=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let y=t instanceof Uint8Array?t:new Uint8Array(t),_=en(a),s=en(i),L=en(l),g=(0,nn.pbkdf2)(Kt.sha256,y,_,{c:3e5,dkLen:32}),K=(0,an.gcm)(g,s);try{let n=K.decrypt(L);return(0,Oe.bytesToUtf8)(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};var $=ce(require("react"));var rn=ce(require("react")),si=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,d=Number(e.currentSlider),w=e.sliderCount?.length||0,m=w>0?100/w:0;return rn.default.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((b,v)=>{let A=v<=d;return rn.default.createElement(a,{key:v,className:A?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&A?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${m}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${m}%`}:!t&&A?{width:`${m}%`}:{width:`${m}%`}})}))},Ee=si;var me=ce(require("react"));var li=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,[d,w]=(0,me.useState)(null),m=P=>{if(P===""){w(null);return}let k=e.searchContent.filter(C=>{let u=C?.name?.toLowerCase(),p=P.toLowerCase();if(u?.includes(p))return C.searched=p,C.nameArray=C.name.split(""),C});w(k),e.handleButtonDisplay()},b=(P,k)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},v=(P,k)=>P.map((C,u)=>{let p=k.includes(C.toLowerCase());return me.default.createElement(i,{key:u,style:p?n.boldText:n.fadedText},C)}),A=(P,k=!1)=>P.map((C,u)=>{let p=t?!1:window?.location?.search===`?${u}`,N=e.selected&&e.selected.length>0,E=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return me.default.createElement(s,{key:u,className:E,style:n.resultItem,onPress:()=>b(C,u)},me.default.createElement(a,{style:n.resultInner},me.default.createElement(l,{source:{uri:e.type==="language"?C.icon:C.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),me.default.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},C.nameArray&&C.searched?v(C.nameArray,C.searched):C.name,e.type==="language"&&C.label&&me.default.createElement(i,{style:C.searched?.includes(C.label.toLowerCase())?{}:n.fadedText},` (${C.label})`))),e.type==="language"&&N&&p&&me.default.createElement(l,{source:{uri:T.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return me.default.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},me.default.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&me.default.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),me.default.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},me.default.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},me.default.createElement(l,{source:{uri:T.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),me.default.createElement(_,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:m,onFocus:()=>e.type==="language"&&e.setSelected("")})),me.default.createElement(y,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},me.default.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(d||e.searchContent)?.length>0&&A(d||e.searchContent))))))},Nt=li;var gt=ce(require("react"));var bn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform;return gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",gt.default.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},xn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,d=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&K&&(await K.removeItem("myVault"),await K.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return gt.default.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:Q(t,"0.7rem")}:{fontSize:Q(t,"0.7rem")}},"Want to access a different account? Click"," ",gt.default.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:d},"Logout")," ","to logout and login/create another account")};var ci=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,[d,w]=(0,$.useState)(e.fontsLoaded||!1),[m,b]=(0,$.useState)(""),[v,A]=(0,$.useState)(""),[P,k]=(0,$.useState)(!1),[C,u]=(0,$.useState)(""),[p,N]=(0,$.useState)(!1),{pk:E,vaultContract:Z,address:W}=Xe();(0,$.useEffect)(()=>{let I=async()=>{if(t)g&&await Le(g),w(!0);else{let U=Pe(document);w(U)}};e.fontsLoaded||I()},[]);let R=()=>{e.selectedCountry.area&&m.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(u(""),N(!0)):(u(""),N(!1))},z=async()=>{if(e.userEmail===""&&m===""){u("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){u("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){u("Invalid email format.");return}let I=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${m}`,U=e.userEmail?.length>0?"email":"sms";if(I&&U&&E&&Z||I&&U&&e.noContract){e.setIsLoading(!0);try{let te=await e.helperFunctions.sendOTPVerification(W,U,I);e.setIsLoading(!1),te?(u(""),e.setStep("3")):(u(U==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),_e("OTP Error",U==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),u("Unexpected error. Try again.")}}else e.noContract||u("Network error. Check your internet connection.")};return $.default.createElement(y,{style:{width:"100%",height:"100%"}},d&&$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},$.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},$.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},$.default.createElement(s,{onPress:()=>k(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},$.default.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),$.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),$.default.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:T.arrowUp}:{uri:T.arrowDown}})),$.default.createElement(_,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:I=>{let U=I.replace(/\D/g,"");A(I),b(U);let te="";for(let ae=0;ae<U?.length;ae++)te+=U[ae],(ae+1)%5===0&&ae+1<U?.length&&(te+=" ");e.setUserNumberFmt(te),R()}})),P&&$.default.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:R,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:k,contentMaxHeight:"300",contentbottomMargin:"300"}),m.length!==10&&v.length>10&&!C&&$.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&$.default.createElement($.default.Fragment,null,e.enablePhone&&$.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},$.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),$.default.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),$.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},$.default.createElement(_,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:I=>{e.setUserEmail(I),e.setUserNumberFmt(""),b(""),A(""),R()}}),C&&e.userEmail.length>0&&$.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},C)))),!P&&$.default.createElement(a,{style:{height:"80px"}}),$.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},$.default.createElement(bn,{platform:e.platform}),$.default.createElement(s,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:z},$.default.createElement(i,null,"Get OTP"))))),!d&&$.default.createElement(i,null,"Loading Module Fonts..."))},Xt=ci;var G=ce(require("react"));var Te=require("ethers"),yt=require("shamir-secret-sharing"),ie=require("@verified-network/verified-sdk");var Ve=require("viem/chains"),_n=require("viem");var Sn=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},wn=async(e,t,a,i,l,y,_,s,L,g,K,n,d,w,m,b,v)=>{try{let A={vaultId:i,hashedVaultId:l,vaultPin:y,hashedVaultPin:_,vaultContract:K,rawId:m};return await K.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let k;if(m)k=await Ze(L,m,y);else{let u=(0,Te.encodeBytes32String)(y);k=qe(L,u)}let C;if(chrome?.storage?.local?C=await new Promise(u=>{chrome.storage.local.get(["lastPk"],p=>{u(p.lastPk)})}):!chrome?.storage?.local&&localStorage&&(C=localStorage.getItem("lastPk")),n==="reset-pin"&&d?.vaultContract&&b?.length>1&&v>1&&L?.length>0){let u=Number(b.length),N=(await(0,yt.split)(Uint8Array.from(L.split("").map(I=>I.charCodeAt(0))),Number(u),Number(v))).map(I=>I.join(",")),E=m?"":(0,Te.encodeBytes32String)(y),Z=[],W=[];for(let I=0;I<b.length;I++){let U=b[I],te=m?await Ze(N[I],m,y):qe(N[I],E);await K.addParticipant(l,U,te).then(async ae=>{let de={creatorVaultId:i,vaultPin:y,creatorHashedVaultId:l,creatorHashedVaultPin:_,cosigner:U,hashedCosigner:U,cosignerVaultIdType:"",cosignerVaultId:U,share:te};ae?.status===0?W.push(de):Z.push(de)}),await new Promise(ae=>setTimeout(ae,1e3))}if(Z?.length>0||W?.length!==b?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),_e("Oops somethin went wrong","error while adding co-signers"),null;let z=await new ie.VerifiedWallet(L).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:g,regAddress:z,vaultId:i,hashedVaultId:l,pk:k,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:g,regAddress:z,vaultId:i,hashedVaultId:l,pk:k,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:g,regAddress:z,vaultId:i,hashedVaultId:l,pk:k,channel:s})),{}}if(C&&C?.length>0)return await K.confirmParticipant(l,l,!0).then(async u=>{if(u?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let N=await new ie.VerifiedWallet(L).getAddress(),E;if(m)E=await Ze(L,m,y);else{let Z=(0,Te.encodeBytes32String)(y);E=qe(L,Z)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:g,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:g,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:g,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})),A}catch(p){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return _e("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",u),!1});if(n==="invitation")return{isExisting:!0,...A};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s}));let u=e?null:window;if(!e&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w}});else if(!e&&!chrome?.runtime?.sendMessage){let p=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w}}});u?.dispatchEvent(p)}else if(e&&a){let p=new a,N=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",E={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?d:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w};p.emit(N,E)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:k,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",k),_e("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await K.createVault(l).then(async k=>k?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:L}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",L):e&&t&&await t.setItem("lastPk",L),await K.confirmParticipant(l,l,!0).then(async C=>{if(C?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let p=await new ie.VerifiedWallet(L).getAddress(),N;if(m)N=await Ze(L,m,y);else{let E=(0,Te.encodeBytes32String)(y);N=qe(L,E)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:g,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:g,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:g,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})),A}catch(u){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",u),!1}}else return _e("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",C),!1})):(_e("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",k),!1))})}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",A),_e("Oops something went wrong","Error while creating pin. Try again later"),!1}},Nn=async(e,t,a,i,l,y,_,s,L,g,K)=>{try{let n;if(K)n=await tt(l,K);else{let d=(0,Te.encodeBytes32String)(a);n=et(l,d)}if(n){let d=ie.contractAddress,w=new ie.VerifiedWallet(n),m=s&&d[s]?.Custody&&fe[s]?.rpcUrls?.length>0?s:8453,b=fe[m]?.rpcUrls[0],v=w.setProvider(new ie.Provider(b)),A=new ie.Custody(v,d[m].Custody);return A?await A.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let k=await A.getQuorum(t);return k?.status===0&&k?.response?.result?.length>0?L&&Number(k?.response?.result[0])>0?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:g||m,pin:a,rawId:K,pk:n}:Number(k?.response?.result[0])===0?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:g||m,pin:a,rawId:K,pk:n,inCompleteVault:!0}:{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:g||m,pin:a,rawId:K}:L?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:g||m,pin:a,rawId:K,pk:n}:{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:g||m,pin:a,rawId:K}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Et=async(e,t,a,i,l,y,_,s,L,g,K,n,d)=>{let w;if(K)w=K;else{let m=ie.contractAddress,b=new ie.VerifiedWallet(n),v=d&&m[d]?.Custody&&fe[d]?.rpcUrls?.length>0?d:8453,A=fe[v]?.rpcUrls[0],P=b.setProvider(new ie.Provider(A));w=new ie.Custody(P,m[v].Custody)}return w?await w.confirmParticipant(y,i,g).then(async m=>m?.status===0?(g?await e(a,s,L,_):await t(a,s,L,_),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",m),!1)):!1},Xn=async(e,t,a,i,l,y,_,s,L,g,K,n,d,w)=>{let m=Number(a.length),v=(await(0,yt.split)(Uint8Array.from(n.split("").map(C=>C.charCodeAt(0))),Number(m),y)).map(C=>C.join(",")),A=d?"":(0,Te.encodeBytes32String)(L),P=[],k=[];for(let C=0;C<a.length;C++){let u=a[C],p=d?await Ze(v[C],d,L):qe(v[C],A);await K.addParticipant(s,w==="remove-cosigner"?u:j(u.vaultId),p).then(async N=>{let E=w==="remove-cosigner"?{creatorVaultId:_,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:g,cosigner:u,hashedCosigner:u,cosignerVaultIdType:"",cosignerVaultId:u,share:p}:{creatorVaultId:_,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:g,cosigner:u.vaultId,hashedCosigner:j(u.vaultId),cosignerVaultIdType:u.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:u.vaultId,share:p,...u};N?.status===0?(k.push(E),w!=="remove-cosigner"&&u.vaultId!==_&&await e(u.otpChannel,u.vaultId,_,g).then(Z=>{Z||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(E)}),await new Promise(N=>setTimeout(N,1e3))}return P?.length>0||k?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),_e("Oops somethin went wrong","error while adding co-signers"),!1):await K.defineQuorum(s,y.toString()).then(async C=>{if(C?.status===0&&w!=="remove-cosigner"){let u=i?.map(p=>({name:p?.name,email:p?.email,phoneNumber:p?.phoneNumber,contactType:String(p?.otpChannel)?.toUpperCase(),position:`${$t[Number(p?.position)]} Co-Signer`}));return await t(l,_,u,Number(y),g).then(p=>{p||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(C?.status===0&&w==="remove-cosigner"){let u=i?.map(async E=>(await K.removeParticipant(s,j(E?.vaultId)))?.status===0?"true":"false");if((await Promise.all(u))?.find(E=>E==="false")?.length>0)return!1;let N=i?.map(E=>({email:E?.email,phoneNumber:E?.phoneNumber,contactType:String(E?.otpChannel)?.toUpperCase(),position:`${$t[Number(E?.position)]} Co-Signer`}));return await t(l,_,N,Number(y),g,!0).then(E=>{E||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),_e("Oops somethin went wrong","error while saving vault keys"),!1})},En=async(e,t,a,i,l,y,_,s,L)=>{let g;if(L)g=await tt(y,L);else{let K=(0,Te.encodeBytes32String)(l);g=et(y,K)}if(g){let K=ie.contractAddress,n=new ie.VerifiedWallet(g),d=s&&K[s]?.Custody&&fe[s]?.rpcUrls?.length>0?s:8453,w=fe[d]?.rpcUrls[0],m=n.setProvider(new ie.Provider(w)),b=new ie.Custody(m,K[d].Custody);if(b)return await b.promptSignatures(t).then(async v=>{if(v?.status===0&&v?.response?.hash){let A=new Te.AbiCoder,P,k;if(v?.response?.result?.logs?.length>0){let C=v?.response?.result?.logs?.filter(N=>N?.address?.toLowerCase()===K[d].Custody?.toLowerCase()&&N?.topics?.map(E=>E?.toLowerCase())?.includes(It?.toLowerCase()));k=C?.length;let u=C[0]?.data,p=A.decode(["bytes32","bytes32","uint256"],u)?.map((N,E)=>E<2?N:Number(N)).flat();P=p[p?.length-1]}else{let N=(await new ie.Provider(w).getTransactionReceipt(v?.response?.hash)).logs?.filter(W=>W?.address?.toLowerCase()===K[d].Custody?.toLowerCase()&&W?.topics?.map(R=>R?.toLowerCase())?.includes(It?.toLowerCase()));k=N?.length;let E=N[0]?.data,Z=A.decode(["bytes32","bytes32","uint256"],E)?.map((W,R)=>R<2?W:Number(W)).flat();P=Z[Z?.length-1]}return await e(_,i,a,Number(P),Number(k)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",v),!1}).catch(v=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",v),!1))}},Tn=async(e,t,a,i,l,y,_,s,L,g,K,n,d)=>{let w;if(d)w=await tt(_,d);else{let m=(0,Te.encodeBytes32String)(y);w=et(_,m)}if(w){let m=ie.contractAddress,b=new ie.VerifiedWallet(w),v=n&&m[n]?.Custody&&fe[n]?.rpcUrls?.length>0?n:8453,A=fe[v]?.rpcUrls[0],P=b.setProvider(new ie.Provider(A)),k=new ie.Custody(P,m[v].Custody);if(k)return await k.signTransaction(L,a,String(K)).then(async C=>C?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,g),await k.checkQuorum(L,K).then(async u=>u?.status===0&&u?.response?.result?(u?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,Number(K)),!0):!1)):!1).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",C),!1))}},Yn=async(e,t,a,i,l,y,_,s,L,g,K)=>{let n;if(K)n=await tt(_,K);else{let d=(0,Te.encodeBytes32String)(y);n=et(_,d)}if(n){let d=ie.contractAddress,w=new ie.VerifiedWallet(n),m=g&&d[g]?.Custody&&fe[g]?.rpcUrls?.length>0?g:8453,b=fe[m]?.rpcUrls[0],v=w.setProvider(new ie.Provider(b)),A=new ie.Custody(v,d[m].Custody);return A?await A.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await A.getShards(a,s).then(async k=>{if(k?.status===0&&k?.response?.result){let C=k?.response?.result.filter(u=>u!=="");if(C.length>1){let u=K?"":(0,Te.encodeBytes32String)(y),N=(await Promise.all(C.map(W=>K?tt(W,K):et(W,u)))).map(W=>new Uint8Array(W.split(",").map(Number))),E=await(0,yt.combine)(N),Z=new TextDecoder().decode(E);if(Z){let W=K?"":(0,Te.encodeBytes32String)(y),R=K?await Ze(Z,K,y):qe(Z,W),z=new ie.VerifiedWallet(Z),I=await z.getAddress(),te=z.setProvider(new ie.Provider(b)),ae=[Ve.base,Ve.mainnet,Ve.gnosis,Ve.polygon,Ve.sepolia,Ve.baseSepolia].find(q=>Number(q?.id)===Number(m)),de=await St(ae,(0,_n.http)(),te);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:de,regAddress:I,vaultId:l,hashedVaultId:a,pk:R,channel:L})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:de,regAddress:I,vaultId:l,hashedVaultId:a,pk:R,channel:L})):e&&t&&await t.setItem("myVault",JSON.stringify({address:de,regAddress:I,vaultId:l,hashedVaultId:a,pk:R,channel:L})),!0}}else return!1}else return!1}).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var ui=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,[d,w]=(0,G.useState)(e.fontsLoaded||!1),m=(0,G.useRef)([]),[b,v]=(0,G.useState)(!1),[A,P]=(0,G.useState)(60),[k,C]=(0,G.useState)(["","","",""]),[u,p]=(0,G.useState)(!1),[N,E]=(0,G.useState)(""),{pk:Z,vaultContract:W,address:R}=Xe();(0,G.useEffect)(()=>{let q=async()=>{if(t)g&&await Le(g),w(!0);else{let D=Pe(document);w(D)}};e.fontsLoaded||q()},[]),(0,G.useEffect)(()=>{if(A===0)return;let q=setInterval(()=>P(D=>D-1),1e3);return()=>clearInterval(q)},[A]);let z=(q,D)=>{if(q?.length>1){let F=q.replace(/\D/g,""),ye=[...k],S=0;for(let ee=D;ee<k.length&&S<F.length;ee++)ye[ee]=F[S],S++;C(ye);let Ce=D+F.length;Ce<k.length&&m.current[Ce]&&m.current[Ce].focus(),p(!1)}else{let F=q.replace(/\D/g,""),ye=[...k];ye[D]=F,C(ye),F&&m.current[D+1]&&m.current[D+1].focus(),p(!1)}},I=(q,D,F)=>{F.nativeEvent.key==="Backspace"&&!k[D]&&D>0&&m.current[D-1]&&m.current[D-1].focus()},U=k.every(q=>q.length>0),te=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ae=async()=>{if(!U||!e.helperFunctions){p(!0),E("Please enter the complete OTP.");return}let q=te(),D=k.join("");if(!(!e.noContract&&!Z||!e.noContract&&!W)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(R,q,D)){e.setIsLoading(!1),p(!0);return}let ye=j(q),S=!1;if(!e.noContract&&W&&(S=await Sn(W,ye),S===null)){e.setIsLoading(!1),E("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(S),e.setIsLoading(!1),e.setStep("4")}catch(F){e.setIsLoading(!1),E("Error verifying OTP. Try again."),p(!0),console.error("error: ",F)}}},de=async()=>{if(!e.helperFunctions){E("Helper functions missing."),p(!0);return}let q=te(),D=e.userEmail?"email":"sms";e.setIsLoading(!0);let F=await e.helperFunctions.sendOTPVerification(R,D,q);e.setIsLoading(!1),F?(C(["","","",""]),P(60),p(!1),E("")):_e("OTP resend failed","Please try again later.")};return G.default.createElement(y,null,d&&G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},G.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&G.default.createElement(G.default.Fragment,null,G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),G.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&G.default.createElement(i,null,e.userEmail)),G.default.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},G.default.createElement(l,{source:{uri:T.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},k.map((q,D)=>G.default.createElement(_,{key:D,ref:F=>m.current[D]=F,value:k[D],onChangeText:F=>z(F,D),onKeyPress:F=>I(F,D,F),keyboardType:"number-pad",maxLength:1,style:t&&u?{...n.verifiedCustdMdlOtpInputRed}:t&&!u?{...n.verifiedCustdMdlOtpInput}:{},className:u?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!u&&A>5&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},G.default.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),A),!u&&A<=5&&A>0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},G.default.createElement(i,{style:{fontWeight:"400"}},"00:"),A),!u&&A===0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),u&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),u&&N?.length>0&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},N),!u&&A>0&&N===""&&G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!u&&A===0&&N===""||u&&N===""?G.default.createElement(s,{style:{background:"transparent"},onPress:async()=>{C(["","","",""]),await de()}},G.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!b&&G.default.createElement(a,{style:{height:"100px"}}),G.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},G.default.createElement(s,{className:U&&!u?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ae,disabled:!U||u,style:U&&!u?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},G.default.createElement(i,null,"Proceed"))))),!d&&G.default.createElement(i,null,"Loading Module Fonts..."))},Tt=ui;var r=ce(require("react"));var Ge=ce(require("react"));var fi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n,EventEmitter:d}=e.platform;(0,Ge.useEffect)(()=>{let v;return e.showButton||(v=setTimeout(()=>{if(e.messageTosend)try{let A=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&A?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});A?.dispatchEvent(P)}else t&&d&&new d().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(A){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",A)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{v&&clearTimeout(v)}},[]);let w=()=>{e.setStep?.("6")},m=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},b=()=>{e.handleShowDashboard()};return Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Ge.default.createElement(l,{style:{width:"90%"},source:{uri:T.successIcon},alt:"Success Icon"}),Ge.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Ge.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Ge.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Ge.default.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?w():e.action==="completeRecovery"?b():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Ge.default.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Ge.default.createElement(s,{onPress:()=>{e.action==="invitation"?m():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Ge.default.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Ye=fi;var Yt=require("@verified-network/verified-sdk"),dn=require("ethers");var gi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,EventEmitter:n,styles:d,rnPasskey:w}=e.platform,[m,b]=(0,r.useState)(e.fontsLoaded||!1),[v,A]=(0,r.useState)(!0),[P,k]=(0,r.useState)(!1),[C,u]=(0,r.useState)(""),[p,N]=(0,r.useState)(!1),[E,Z]=(0,r.useState)(!1),[W,R]=(0,r.useState)(!1),[z,I]=(0,r.useState)(!1),[U,te]=(0,r.useState)(""),[ae,de]=(0,r.useState)(""),[q,D]=(0,r.useState)(null),[F,ye]=(0,r.useState)(!1),[S,Ce]=(0,r.useState)(!1),[ee,Me]=(0,r.useState)(!1),[le,oe]=(0,r.useState)(""),[V,pe]=(0,r.useState)(""),[he,be]=(0,r.useState)([]),[re,Se]=(0,r.useState)(0),{address:se,pk:B,chainId:Ie,vaultContract:$e,signer:lt,setVaultData:ge,setChainId:Je,setAddress:nt,setPk:it,setProvider:xe,setSigner:ct,setVaultContract:ut,vaultData:O}=Xe(),[f,M]=(0,r.useState)(["","","",""]),[x,ne]=(0,r.useState)(["","","",""]),Ae=(0,r.useRef)([]),we=(0,r.useRef)([]);(0,r.useEffect)(()=>{let X=async()=>{if(t)g&&await Le(g),b(!0);else{let h=Pe(document);b(h)}};e.fontsLoaded||X()},[]),(0,r.useEffect)(()=>{let X=async()=>{e.setIsLoading&&e.setIsLoading(!0);let h=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(h?.status===0&&h?.response?.result?.length>0){let Ct=Number(h?.response?.result[0]);Se(Ct)}if(e.vaultData?.existingCosignersHashed?.length>0){be([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let ue=Yt.contractAddress[Ie]?.Custody;if(!ue)return;let ve=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new dn.ethers.Contract(ue,ve,e.vaultData?.signer))return;let ke=new dn.ethers.Interface(ve),Bn=ke.getEvent("NewParticipant").topicHash,Vn=(await new Yt.Provider(fe[Ie]?.rpcUrls[0])?.getLogs({address:ue,fromBlock:fe[Ie]?.custodyContractBlock||0,toBlock:"latest",topics:[Bn]}))?.map(Ct=>{let At=ke.parseLog(Ct);return At?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&At?.args?.creator!==At?.args?.participant?At?.args?.participant:null})?.filter(Ct=>Ct!==null);be([...new Set(Vn)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&X()},[e.isExistingUser,e.action,e.vaultData]);let We=(X,h,J)=>{k(!1),u("");let ue=X.replace(/\D/g,""),ve=J?[...x]:[...f];ve[h]=ue,J?(ne(ve),ue&&we.current[h+1]&&we.current[h+1].focus(),h<3&&ve.every(De=>De!=="")&&f.every(De=>De!=="")&&ve.join("")!==f.join("")&&(k(!0),u("Confirm Pin must match New Pin.")),h===3&&f.join("")!==ve.join("")&&(k(!0),u("Confirm Pin must match New Pin."))):(M(ve),ue&&Ae.current[h+1]&&Ae.current[h+1].focus(),x.every(De=>De!=="")&&ve.join("")!==x.join("")&&(k(!0),u("New Pin must match Confirm Pin.")))},vt=async()=>{if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth=e?.rootExpandedWidth||"max-content",X.style.minHeight=e?.rootExpandedHeight||"100vh")}u(""),k(!1);try{let X=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,h=t?w.create(on("Verified Wallet",X,j(X))):await navigator?.credentials?.create({publicKey:on("Verified Wallet",X,j(X))}),J=Ue(h?.rawId);if(!t&&e.rootTagId?.length>0){let ue=document.getElementById(e.rootTagId);ue&&(ue.style.minWidth="unset",ue.style.minHeight="unset")}return{pinString:h?.id,hashed:J,rawId:h?.rawId}}catch(X){if(!t&&e.rootTagId?.length>0){let h=document.getElementById(e.rootTagId);h&&(h.style.minWidth="unset",h.style.minHeight="unset")}return u(`Passkey creation failed: ${X?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0),null}},Ft=async()=>{if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth="max-content",X.style.minHeight="100vh")}if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth=e?.rootExpandedWidth||"max-content",X.style.minHeight=e?.rootExpandedHeight||"100vh")}u(""),k(!1);try{let X=t?await w.get(rt()):await navigator.credentials.get({publicKey:rt()}),h=Ue(X?.rawId);if(!t&&e.rootTagId?.length>0){let J=document.getElementById(e.rootTagId);J&&(J.style.minWidth="unset",J.style.minHeight="unset")}return{pinString:X?.id,hashed:h,rawId:X?.rawId}}catch(X){if(!t&&e.rootTagId?.length>0){let h=document.getElementById(e.rootTagId);h&&(h.style.minWidth="unset",h.style.minHeight="unset")}u(`Passkey authentication failed: ${X?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0)}},Bt=(X,h,J,ue)=>{let ve=J.nativeEvent.key;!ue&&ve==="Backspace"&&!f[h]&&h>0&&Ae.current[h-1]&&Ae.current[h-1].focus(),ue&&ve==="Backspace"&&!x[h]&&h>0&&we.current[h-1]&&we.current[h-1].focus()},Qe=()=>S?e.isExistingUser?f.every(X=>X!==""):f.every(X=>X!=="")&&x.every(X=>X!==""&&f.join("")===x.join("")):!0,at=()=>!!(ee&&V?.length===66&&V?.toLowerCase()?.startsWith("0x")),Fe=async X=>{if(!e.helperFunctions)u("No Helper Functions. Please include all helper functions in the CreatePinPage props."),k(!0);else{u(""),k(!1);let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,J=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Qe()&&h&&J&&B&&se&&$e||!e.isExistingUser&&Qe()&&h&&J&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Qe()&&h&&J&&B&&se&&$e||e.isExistingUser&&Qe()&&h&&J&&e.vaultData?.vaultContract){e.setIsLoading(!0);let ue=X?.pinString||f.join(""),ve=j(h),De=X?.hashed||j(ue);await wn(t,K,n,h,ve,ue,De,J,X?.pk?X?.pk:B||e.vaultData?.pk,X?.address?X?.address:se||e.vaultData?.address,X?.vaultContract?X?.vaultContract:$e||e.vaultData?.vaultContract,e.action,X?.vaultData?X?.vaultData:e.vaultData,e.txData,X?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...he]:void 0,re).then(async ke=>{e.setIsLoading(!1),ke?(ge(ke?.shouldStop&&ke?.vaultId?{vaultId:ke?.vaultId,hashedVaultId:ke?.hashedVaultId,hashedVaultPin:ke?.hashedVaultPin,pk:ke?.pk,rawId:ke?.rawId,channel:ke?.channel}:ke?.shouldStop?{}:ke),u(""),k(!1),e.action==="invitation"?(de(ue),D(X?.rawId),Z(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&S?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&S?localStorage.removeItem("myVault"):t&&K&&S&&await K.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(J,h,X?.hashed,e.vaultData.hashedVaultPin,Date.now()),te(`You have successfully reset your account ${S?"4-Digits PIN":"Passkey"}. ${S?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),N(!0)):ke?.shouldStop?ke?.shouldStop&&e.action!=="getPk"?(te(""),N(!0)):ke?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):ke===null?e.action==="reset-pin"?(u("Reset pin failed. Try again later."),k(!0)):(u(`You are an existing user. Please use the right ${S?"existing 4-Digits PIN":"existing Passkey for "+h} to recover your account login access on this device/browser`),k(!0)):(u("Unexpected error while creating account. Please try again later."),k(!0))})}else Qe()||(u(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),k(!0))}},ot=async X=>{let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,J=e.userEmail?.length>0?"email":"sms";if(ae?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h){e.setIsLoading(!0);let ue=j(h),ve=S?j(ae):Ue(q);await Et(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,J,ue,ve,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,h,X,$e).then(De=>{e.setIsLoading(!1),De&&!O?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(X?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):De&&O?.isExisting&&R(!0)})}};return r.default.createElement(y,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},m&&r.default.createElement(r.default.Fragment,null,!p&&!E&&r.default.createElement(r.default.Fragment,null,!ee&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Change Pin":"Change Passkey"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",S?"PIN":"Passkey",". This"," ",S?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&r.default.createElement(r.default.Fragment,null,e.action!=="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},S?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",r.default.createElement(i,{style:{color:"#0C0C0E"}},S?"4-Digits PIN":"Passkey")," ","for your"," ",r.default.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!S&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),r.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),S&&r.default.createElement(r.default.Fragment,null,r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},f.map((X,h)=>r.default.createElement(_,{key:`pin-${h}`,style:t&&P?{...d.verifiedCustdMdlOtpInputRed}:t&&P?{...d.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:v,keyboardType:"number-pad",maxLength:1,ref:J=>Ae.current[h]=J,value:f[h],onChangeText:J=>We(J,h,!1),onKeyPress:J=>Bt(J,h,J,!1)}))),e.isExistingUser&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&r.default.createElement(i,null),P&&C===""&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!v&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),v&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))),!e.isExistingUser&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((X,h)=>r.default.createElement(_,{key:`confirm-${h}`,style:t&&P?{...d.verifiedCustdMdlOtpInputRed}:t&&!P?{...d.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:v,keyboardType:"number-pad",maxLength:1,ref:J=>we.current[h]=J,value:x[h],onChangeText:J=>We(J,h,!0),onKeyPress:J=>Bt(J,h,J,!0)}))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&r.default.createElement(i,null),P&&C===""&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!v&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),v&&r.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))))),!F&&r.default.createElement(a,{style:{height:20}}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!S&&r.default.createElement(r.default.Fragment,null,P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),e.isExistingUser&&r.default.createElement(r.default.Fragment,null,e.action==="reset-pin"&&!S&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...d.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async X=>{if(e.action==="reset-pin"){let h=await vt();h&&await Fe(h)}else{let h=await Ft();h&&await Fe(h)}}},e.action==="reset-pin"&&r.default.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&r.default.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&r.default.createElement(r.default.Fragment,null,r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...d.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async X=>{let h=await vt();h&&await Fe(h)}},r.default.createElement(i,null,"Create New Account")),r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...d.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...d.verifiedCustdMdlPPPaymentPortalLine}:{}}),r.default.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...d.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),r.default.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...d.verifiedCustdMdlPPPaymentPortalLine}:{}})),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async X=>{Me(!0)}},r.default.createElement(i,null,"Import An Existing account")))),S&&r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Qe()?{...d.verifiedCustdMdlStartupButtonActive}:t&&!Qe()?{...d.verifiedCustdMdlStartupButton}:{},className:Qe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async X=>{await Fe()}},r.default.createElement(i,null,"Proceed"))))),ee&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},r.default.createElement(_,{style:t?{...d.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:V,onChangeText:X=>{pe(X)}}),le?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le)),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),r.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!F&&r.default.createElement(a,{style:{height:20}}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&C?.length>0&&r.default.createElement(i,{style:t?{...d.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),r.default.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&at()?{...d.verifiedCustdMdlStartupButtonActive}:t&&!at()?{...d.verifiedCustdMdlStartupButton}:{},className:at()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async X=>{try{if(!at()){k(!0),u("Invalid private key entered. Please scroll up, check private key and try again.");return}let h=await ze(Ie,V);if(!h?.chainId||!h?.address||!h?.pk||!h?.provider||!h?.signer||!h?.vaultContract){k(!0),u("Invalid private key entered. Please check private key starts with 0x and try again.");return}Je(h.chainId),nt(h.address),it(h.pk),xe(h.provider),ct(h.signer),ge(h.vaultData),ut(h.vaultContract);let J=await vt();J&&await Fe({...J,pk:h.pk,vaultContract:h.vaultContract,signer:h.signer,address:h.address,vaultData:h.vaultData})}catch{k(!0),u("Error while importing account.try again later.");return}}},r.default.createElement(i,null,"Proceed With Passkey")))))),!p&&E&&r.default.createElement(r.default.Fragment,null,!W&&r.default.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...d.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},r.default.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),r.default.createElement(l,{style:t?{...d.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1}}),!z&&r.default.createElement(y,null,r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.default.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...d.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),r.default.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:T.pkicon}})),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:T.encryptedIcon}})),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>I(!0)},r.default.createElement(i,null,"Reject")),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!0)}},r.default.createElement(i,null,"Accept")))),z&&r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),r.default.createElement(i,{style:t?{...d.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",r.default.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),r.default.createElement(a,{style:t?{...d.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!1)}},r.default.createElement(i,null,"Yes")),r.default.createElement(s,{style:t?{...d.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>I(!1)},r.default.createElement(i,null,"No"))))))),W&&r.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:z?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),p&&r.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:U?.length>0?U:"You have successfully logged in your account."})),!m&&r.default.createElement(i,null,"Loading Module Fonts..."))},mt=gi;var o=ce(require("react"));var sn=require("ethers"),Gt=require("@verified-network/verified-sdk");var mi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n}=e.platform,[d,w]=(0,o.useState)(e.fontsLoaded||!1),[m,b]=(0,o.useState)(!1),[v,A]=(0,o.useState)("1"),[P,k]=(0,o.useState)("1"),[C,u]=(0,o.useState)(!1),[p,N]=(0,o.useState)("email"),[E,Z]=(0,o.useState)(""),[W,R]=(0,o.useState)(""),[z,I]=(0,o.useState)(""),[U,te]=(0,o.useState)(""),[ae,de]=(0,o.useState)(""),[q,D]=(0,o.useState)(!1),[F,ye]=(0,o.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[S,Ce]=(0,o.useState)([]),[ee,Me]=(0,o.useState)(0),[le,oe]=(0,o.useState)([]),[V,pe]=(0,o.useState)([]),[he,be]=(0,o.useState)(!1),[re,Se]=(0,o.useState)(2),[se,B]=(0,o.useState)(""),[Ie,$e]=(0,o.useState)(!1),{pk:lt,vaultData:ge,vaultContract:Je,chainId:nt,signer:it}=Xe();(0,o.useEffect)(()=>{let O=async()=>{if(t)try{let f=await Le(g);w(!0)}catch{w(!1)}else{let f=Pe(document);w(f)}};e.fontsLoaded||O()},[]),(0,o.useEffect)(()=>{let O=async()=>{e.setIsLoading&&e.setIsLoading(!0);let f=j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),M=await Je.getQuorum(f);if(M?.status===0&&M?.response?.result?.length>0){let Fe=Number(M?.response?.result[0]);Me(Fe),pe(new Array(Fe).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),ge?.existingCosignersHashed?.length>0){oe([...new Set(ge?.existingCosignersHashed)]),pe([...new Set(ge?.existingCosignersHashed)]);return}let ne=Gt.contractAddress[nt]?.Custody;if(!ne)return;let Ae=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new sn.ethers.Contract(ne,Ae,it))return;let We=new sn.ethers.Interface(Ae),Ft=We.getEvent("NewParticipant").topicHash,at=(await new Gt.Provider(fe[nt]?.rpcUrls[0])?.getLogs({address:ne,fromBlock:fe[nt]?.custodyContractBlock||0,toBlock:"latest",topics:[Ft]}))?.map(Fe=>{let ot=We.parseLog(Fe);return ot?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&ot?.args?.creator!==ot?.args?.participant?ot?.args?.participant:null})?.filter(Fe=>Fe!==null);oe([...new Set(at)]),pe([...new Set(at)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&it&&Je||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&it&&Je)&&O()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let xe=()=>{},ct=()=>{let O=S?.length;if(p==="sms"&&E?.length===0){B("Invalid input, please check the phone number");return}else if(p==="sms"&&E?.length!==10){B("Invalid input, please check the phone number");return}else if(p==="email"&&z?.length===0){B("Invalid input, please check the email");return}else if(p==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(z)){B("Invalid input, please check the email");return}else if(S?.find(f=>f?.otpChannel==="sms"?f?.phoneArea?.toLowerCase()+f?.number?.toLowerCase()===F.area?.toLowerCase()+W?.toLowerCase():f?.email?.toLowerCase()===z?.toLowerCase())){e.action!=="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(p==="sms"&&F?.area?.toLowerCase()+W?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){B("Invalid input, phone number is creator's phone number");return}else if(p==="email"&&z?.toLowerCase()===e.userEmail?.toLowerCase()){B("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&le?.length===0){B("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!le?.includes(j(p==="sms"?`+${F?.area}${E}`:z))){B(p==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&V?.length===1){B("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(O+1===5){B("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}B(""),Ce(f=>[{name:U,email:z,number:W,phoneNumber:`+${F?.area}${E}`,otpChannel:p,phoneArea:F?.area,position:f?.length+1,vaultId:p==="sms"?`+${F?.area}${E}`:z},...f]),I(""),te(""),Z(""),R(""),de(""),O+1===4&&u(!1),e.action==="remove-cosigner"&&V?.length>1&&pe(V?.filter(f=>f!==j(p==="sms"?`+${F?.area}${E}`:z)))},ut=async()=>{let O=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:ge?.vaultId},...S]:[ge?.hashedVaultId,...V];(e.action!=="remove-cosigner"&&O?.length>0&&S?.length>0&&re&&ge?.vaultId&&ge?.hashedVaultId&&Je&<&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&O?.length>1&&re&&ge?.vaultId&&ge?.hashedVaultId&&Je&<&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Xn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,O,S,e?.userEmail?.length>0?"email":"sms",re,ge.vaultId,ge.hashedVaultId,ge.vaultPin,ge.hashedVaultPin,Je,lt,ge?.rawId,e.action).then(f=>{e.setIsLoading(!1),f&&(e.action==="remove-cosigner"?$e(!0):e.setStep("7"))}))};return o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},d&&!Ie&&o.default.createElement(o.default.Fragment,null,!m&&o.default.createElement(o.default.Fragment,null,P==="1"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.pkicon},alt:"icon"})),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.encryptedIcon},alt:"icon"})),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.default.createElement(l,{source:{uri:T.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{A("1"),b(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Learn More")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{k("2"),u(!1),b(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.default.createElement(o.default.Fragment,null," ",o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!he&&o.default.createElement(o.default.Fragment,null,o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},ee," required signers"))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length+1<5?S?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length,"/5)")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&V?.includes(" ")&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!he&&S.sort((O,f)=>O?.position-f?.position).map((O,f)=>o.default.createElement(a,{key:f,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},pt[O?.position]?.split(" ")[0],o.default.createElement(i,null,o.default.createElement(i,{style:{fontSize:10}},pt[O?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},O?.name),O.otpChannel==="email"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},O.email),O.otpChannel==="sms"&&o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",O?.phoneArea,") ",O.number))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.default.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{Ce(M=>M?.filter(x=>x?.otpChannel==="sms"?x?.phoneArea?.toLowerCase()+x?.number?.toLowerCase()!==O?.phoneArea?.toLowerCase()+O?.number?.toLowerCase():x?.email?.toLowerCase()!==O?.email?.toLowerCase())?.map((x,ne)=>(x.position=ne+1,x))),xe()}},o.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.delete}}))))))),he&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?V?.length+1:S?.length+1).fill("1").map((O,f)=>o.default.createElement(a,{key:f,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:f+1===re&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:f+1===re&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(f+1))),o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:T.pointer}})))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t&&S?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length}%`}:!t&&S?.length===1?{width:`${100/S?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length+5}%`}:{width:`calc(${100/S?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:T.sliderDot}})),e.action==="remove-cosigner"&&o.default.createElement(a,{style:t&&V?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/V?.length}%`}:!t&&V?.length===1?{width:`${100/V?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/V?.length+5}%`}:{width:`calc(${100/V?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:T.sliderDot}})))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?V?.length+1:S?.length+1).fill("1").map((O,f)=>o.default.createElement(s,{style:{background:"transparent"},key:f,onPress:()=>{f+1>1&&Se(f+1)}},e.action!=="remove-cosigner"&&o.default.createElement(i,{style:t&&f===S?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&f===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&f===0?{paddingLeft:12}:!t&&f===S?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(f+1)),e.action==="remove-cosigner"&&o.default.createElement(i,{style:t&&f===V?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&f===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&f===0?{paddingLeft:12}:!t&&f===V?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(f+1))))))),o.default.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await ut()}},o.default.createElement(i,null,"Confirm"))))),C&&S?.length<4&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},pt[S?.length+1]?.split(" ")[0],o.default.createElement(i,{style:{fontSize:10}},pt[S?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.default.createElement(_,{onChangeText:te,value:U,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("sms"),B(""),I("")}},o.default.createElement(l,{source:{uri:p==="sms"?T.selectClicked:T.select},style:{width:24,height:24}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("email"),B(""),Z(""),R(""),de("")}},o.default.createElement(l,{source:{uri:p==="email"?T.selectClicked:T.select},style:{width:24,height:24}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},p==="sms"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.default.createElement(s,{onPress:()=>D(!q),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.default.createElement(l,{source:{uri:F.flag},style:{width:24,height:16},alt:"Country Flag"}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",F.area),q?o.default.createElement(l,{source:{uri:T.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.default.createElement(l,{source:{uri:T.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.default.createElement(_,{onChangeText:O=>{de(O===""?ae+" ":O);let f=O.replace(/\D/g,"");Z(f);let M="";for(let x=0;x<f.length;x++)M+=f[x],(x+1)%5===0&&x+1<f.length&&(M+=" ");R(M),B("")},onBlur:xe,value:W,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),q&&o.default.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:xe,setSelected:ye,selected:F,searchActive:q,setSearchActive:D,contentMaxHeight:300,contentbottomMargin:300}),se===""&&E.length!==10&&ae.length>10&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),se!==""&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},se))),p==="email"&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.default.createElement(_,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:O=>{I(O),B("")},onBlur:xe,value:z,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),se!==""&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},se)))),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>u(!1)},o.default.createElement(i,null,"Cancel")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{ct(),xe()}},o.default.createElement(i,null,"Add")))),!C&&!he&&S?.length<4&&o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>u(!0)},o.default.createElement(l,{source:{uri:T.addIcon},style:{width:20,height:20}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!C&&!he&&S?.length===4&&o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.default.createElement(l,{source:{uri:T.addDisableIcon},style:{width:20,height:20}}),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!he&&o.default.createElement(s,{className:S?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&S?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&S?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&S?.length>0&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&S?.length===0&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!C&&S?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{S?.length>0&&(Se(2),be(!0),u(!1))}},o.default.createElement(i,{style:n.buttonText},"Proceed")))),m&&o.default.createElement(o.default.Fragment,null,v==="1"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon2},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>b(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{onPress:()=>A("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Next")))),v==="2"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:T.addCoSignerIcon3},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Next")))),v==="3"&&o.default.createElement(o.default.Fragment,null,o.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon4},alt:""}),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.default.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.default.createElement(i,null,"Back")),o.default.createElement(s,{onPress:()=>{k("2"),u(!1),b(!1),A("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.default.createElement(i,null,"Start")))))),d&&Ie&&o.default.createElement(Ye,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!d&&o.default.createElement(i,null,"Loading Module Fonts..."))},dt=mi;var c=ce(require("react"));var Gn=require("ethers"),Ci=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:g,AsyncStorage:K,styles:n,rnPasskey:d}=e.platform,[w,m]=(0,c.useState)(e.fontsLoaded||!1),[b,v]=(0,c.useState)(!1),[A,P]=(0,c.useState)(!0),[k,C]=(0,c.useState)(!1),[u,p]=(0,c.useState)(!1),[N,E]=(0,c.useState)(null),[Z,W]=(0,c.useState)(null),[R,z]=(0,c.useState)(e.newChainId||8453),[I,U]=(0,c.useState)(!1),[te,ae]=(0,c.useState)(!1),[de,q]=(0,c.useState)(!1),[D,F]=(0,c.useState)(!1),[ye,S]=(0,c.useState)(!1),[Ce,ee]=(0,c.useState)(""),[Me,le]=(0,c.useState)(!1),[oe,V]=(0,c.useState)({}),[pe,he]=(0,c.useState)(["","","",""]),be=(0,c.useRef)([]),[re,Se]=(0,c.useState)(!1),{setChainId:se,setAddress:B,setPk:Ie,setProvider:$e,setSigner:lt,setVaultContract:ge,setVaultData:Je}=Xe();(0,c.useEffect)(()=>{let f=async()=>{if(t)g&&await Le(g),m(!0);else{let M=Pe(document);m(M)}};e.fontsLoaded||f()},[]);let nt=(f,M)=>{if(f.length>1){let x=f.replace(/\D/g,""),ne=[...pe],Ae=0;for(let We=M;We<pe.length&&Ae<x.length;We++)ne[We]=x[Ae],Ae++;he(ne);let we=M+x.length;we<pe.length&&be.current[we]&&be.current[we].focus(),v(!1)}else{let x=f.replace(/\D/g,""),ne=[...pe];ne[M]=x,he(ne),x&&be.current[M+1]&&be.current[M+1].focus(),v(!1)}},it=(f,M,x)=>{x.nativeEvent.key==="Backspace"&&!pe[M]&&M>0&&be.current[M-1]&&be.current[M-1].focus()},xe=pe.every(f=>f.length>0),ct=async f=>{if(!e.helperFunctions)ee("No Helper Functions. Please include all helper functions in the EnterPinPage props."),v(!0);else if(ee(""),v(!1),re&&xe&&e.hashedVaultId&&e.encrptedPk||!re&&e.hashedVaultId&&e.encrptedPk&&f){e.setIsLoading(!0);let M=f?.pinString?f?.pinString:pe.join("");await Nn(e.vaultId,e.hashedVaultId,M,f?.hashed?f?.hashed:j(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(R),cn?.includes(e.origin?.toLowerCase()),null,f?.rawId).then(async x=>{if(x&&!x?.inCompleteVault)e.setIsLoading(!1),E(x),W(x?.pk&&e.action!=="eth_requestAccounts"?{address:x.address,channel:x.channel,chainId:x.chainId,pk:x?.pk}:{address:e.regAddress,channel:x.channel,chainId:x.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await En(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,f?.hashed?f?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(R),f?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),ne?p(!0):(ee("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),v(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Tn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,f?.hashed?f?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(R),f?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&K&&!e.reqTxData?.newUser&&!e.vaultAddress&&await K.removeItem("myVault"),ne?p(!0):(ee("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),v(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Yn(t,K,e.hashedVaultId,f?.hashed?f?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(R),f?.rawId).then(async ne=>{e.setIsLoading(!1),ne?p(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),ee("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),v(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&x?.pin?.length>0&&e.signTxElement?(V({chainId:R,ky:re?Gn.ethers.encodeBytes32String(x?.pin):"",rawId:re?"":f?.rawId,...e.txToSign}),ae(!1),le(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(ee(""),v(!1),ae(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(ee(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),v(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(ee(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),v(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),ee(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),v(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),ee(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),v(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(ee("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),v(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(ee("Incomplete account login detected. Logout and try again later"),v(!0)):(ee(""),v(!1),p(!0));else if(x&&x?.inCompleteVault&&x?.pk){let ne=await ze(Number(R),x?.pk);if(se(ne.chainId),B(ne.address),Ie(ne.pk),$e(ne.provider),lt(ne.signer),ge(ne.vaultContract),Je({vaultId:x?.vaultId,hashedVaultId:x?.hashedVaultId,vaultPin:x?.pin,hashedVaultPin:re?j(x?.pin):Ue(x?.rawId),vaultContract:ne.vaultContract,rawId:x?.rawId}),x?.channel?.toLowerCase()==="sms"){let Ae=x?.vaultId?.replace(x?.vaultId?.slice(-10),""),we=x?.vaultId?.slice(-10)?.slice(0,5)+" "+x?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Ae?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(we),e.setUserEmail("")}else e.setUserEmail(x?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else ee(re?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),v(!0),e.setIsLoading(!1)})}else!re&&!f&&(ee("Unexpected error with selected passkey. Try again later"),v(!0)),re&&!xe&&(ee("Input your 4-Digits PIN to login."),v(!0))},ut=async f=>{let M=e.vaultId;if(N?.pin?.length>0&&N?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&M&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let x=N.pin,ne=j(M),Ae=re?j(x):Ue(N.rawId);await Et(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ne,Ae,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,M,f,null,N.pk,Number(R)).then(we=>{e.setIsLoading(!1),we&&(S(f),q(!0))})}},O=async()=>{if(!t&&e.rootTagId?.length>0){let f=document.getElementById(e.rootTagId);f&&(f.style.minWidth=e?.rootExpandedWidth||"max-content",f.style.minHeight=e?.rootExpandedHeight||"100vh")}ee(""),v(!1);try{let f=await navigator.credentials.get({publicKey:rt()}),M=Ue(f?.rawId);if(!t&&e.rootTagId?.length>0){let x=document.getElementById(e.rootTagId);x&&(x.style.minWidth="unset",x.style.minHeight="unset")}return{pinString:f?.id,hashed:M,rawId:f?.rawId}}catch(f){if(!t&&e.rootTagId?.length>0){let M=document.getElementById(e.rootTagId);M&&(M.style.minWidth="unset",M.style.minHeight="unset")}ee(`Passkey authentication failed: ${f?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),v(!0)}};return c.default.createElement(c.default.Fragment,null,w&&!te&&!Me&&c.default.createElement(c.default.Fragment,null,!u&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(Ee,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},re?"Enter PIN":"Sign-in with Existing Passkey")),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",c.default.createElement(i,{style:{color:"#0C0C0E"}},re?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",c.default.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),re&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},pe.map((f,M)=>c.default.createElement(_,{key:M,ref:x=>be.current[M]=x,className:b?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&b?{...n.verifiedCustdMdlOtpInputRed}:t&&!b?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:A,maxLength:1,value:pe[M],onChangeText:x=>nt(x,M),onKeyPress:x=>it(x,M,x),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${M}`}))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},b&&!Ce&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),b&&Ce&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},Ce),!b&&c.default.createElement(i,null),A?c.default.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:T.pinHide}})):c.default.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:T.pinShow}})))),!re&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),c.default.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!k&&c.default.createElement(a,{style:{height:20}}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},c.default.createElement(xn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),re&&c.default.createElement(s,{onPress:async()=>await ct(),style:t&&xe&&!b?{...n.verifiedCustdMdlStartupButtonActive}:t&&xe&&b?{...n.verifiedCustdMdlStartupButton}:t&&!xe&&!b?{...n.verifiedCustdMdlStartupButton}:t&&!xe&&b?{...n.verifiedCustdMdlStartupButton}:{},className:xe&&!b?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},c.default.createElement(i,null,"Proceed")),!re&&c.default.createElement(c.default.Fragment,null,b&&Ce?.length>0&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},Ce),c.default.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let f=await O();f&&await ct(f)},className:"verified-custd-mdl-startup-button-active"},c.default.createElement(i,null,"Login With Passkey")))))),u&&c.default.createElement(Ye,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:Z},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),w&&te&&!Me&&c.default.createElement(c.default.Fragment,null,!de&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(Ee,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},c.default.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),c.default.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},c.default.createElement(l,{style:{height:250,width:"90%"},source:{uri:T.addCoSignerIcon1}})),D?c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",c.default.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(s,{onPress:async()=>await ut(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"Yes")),c.default.createElement(s,{onPress:()=>F(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"No")))))):c.default.createElement(c.default.Fragment,null,c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:T.pkicon}})),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:T.encryptedIcon}})),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(s,{onPress:()=>F(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},c.default.createElement(i,null,"Reject")),c.default.createElement(s,{onPress:async()=>await ut(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(i,null,"Accept"))))),de&&c.default.createElement(Ye,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:ye?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),w&&!te&&Me&&c.default.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:oe}),!w&&c.default.createElement(i,null,"Loading Module Fonts..."))},st=Ci;var pi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,StyleSheet:_,Font:s,AsyncStorage:L}=e?.platform,[g,K]=(0,H.useState)(e.fontsLoaded||!1),[n,d]=(0,H.useState)(e.showLogoPage||!1),[w,m]=(0,H.useState)([]),[b,v]=(0,H.useState)("2"),[A,P]=(0,H.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[k,C]=(0,H.useState)(""),[u,p]=(0,H.useState)(""),[N,E]=(0,H.useState)(!1),[Z,W]=(0,H.useState)(""),[R,z]=(0,H.useState)(""),[I,U]=(0,H.useState)(""),[te,ae]=(0,H.useState)(""),[de,q]=(0,H.useState)(null),[D,F]=(0,H.useState)(null),[ye,S]=(0,H.useState)(!1),{setChainId:Ce,setAddress:ee,setPk:Me,setProvider:le,setSigner:oe,setVaultContract:V,setVaultData:pe,vaultData:he,chainId:be,vaultContract:re}=Xe();return(0,H.useEffect)(()=>{let Se=async()=>{if(t)s&&await Le(s),K(!0);else{let se=Pe(document);K(se)}};e.fontsLoaded||Se()},[]),(0,H.useEffect)(()=>{let Se=async()=>{let se;!t&&chrome?.storage?.local?se=await new Promise(Ie=>{chrome.storage.local.get(["lastPk"],$e=>{Ie($e.lastPk)})}):!t&&localStorage?se=localStorage.getItem("lastPk"):t&&L&&(se=L.getItem("lastPk"));let B=await ze(e.chainId,se&&se?.length>0?se:void 0);Ce(B.chainId),ee(B.address),Me(B.pk),le(B.provider),oe(B.signer),pe(B.vaultData),B.vaultContract?.contractAddress?V(B.vaultContract):V(void 0)};re?.contractAddress||Se()},[re]),(0,H.useEffect)(()=>{(0,Mn.debounce)(()=>{d(!1)},e.logoTimeoutTime??3e3)()},[]),(0,H.useEffect)(()=>{(()=>{let se=Lt.map(B=>{if(B)return{name:B.name,countryName:B.name,officialName:B.name,currencySymbol:B.currency,currencyName:B.currency,officialCurrencySymbol:B.currency,countryCode:B.code,flag:B.flag,continent:B.continent,phone_code:B.phone_code,code:B.code}}).filter(Boolean);m(se)})()},[]),H.default.createElement(y,{style:{padding:20,width:"100%",heigth:"100%"}},g&&n&&e.logoPageElement&&H.default.createElement(a,null,e.logoPageElement),g&&!n&&H.default.createElement(a,{style:{width:"100%",heigth:"100%"}},b==="2"&&H.default.createElement(Xt,{platform:e.platform,fontsLoaded:g,setStep:v,setIsLoading:e.setIsLoading,setUserNumberFmt:C,userNumberFmt:k,setUserEmail:p,userEmail:u,setSelectedCountry:P,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),b==="3"&&H.default.createElement(Tt,{platform:e.platform,fontsLoaded:g,setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:k,setUserNumberFmt:C,setUserEmail:p,userEmail:u,selectedCountry:A,helperFunctions:e.helperFunctions,setIsExistingUser:S}),b==="4"&&H.default.createElement(mt,{platform:e.platform,fontsLoaded:g,setStep:v,setIsLoading:e.setIsLoading,setShowSuccessBtn:E,setSuccessBtnText:W,setSuccessBtnNeutText:z,setSuccessBtnFunc:q,setSuccessBtnNeutFunc:F,userNumberFmt:k,userEmail:u,selectedCountry:A,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:U,setActionFooterText:ae,helperFunctions:e.helperFunctions,isExistingUser:ye,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),b==="5"&&H.default.createElement(Ye,{platform:e.platform,setStep:v,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:N,buttonText:Z,buttonNeutText:R,buttonFunc:de,buttonNeutFunc:D,actionHeaderText:I,actionFooterText:te}),b==="6"&&H.default.createElement(dt,{platform:e.platform,fontsLoaded:g,setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:k,userEmail:u,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),b==="7"&&e.action===""&&H.default.createElement(Ye,{platform:e.platform,action:e.action,setStep:v,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="7"&&e.action!==""&&H.default.createElement(Ye,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:be}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="8"&&e.dashbordElement&&H.default.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),b==="8"&&!e.dashbordElement&&H.default.createElement(H.default.Fragment,null),b==="0"&&H.default.createElement(st,{platform:e.platform,fontsLoaded:g,vaultId:he?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:he?.hashedVaultId,encrptedPk:he?.pk,vaultAddress:he?.address,vaultChannel:he?.channel,actionText:ht.getPk,setIsLoading:e.setIsLoading,newChainId:Number(be||e.chainId),action:"getPk",reqVaultData:he,reqTxData:e.txData?Object.keys(e.txData)?.map(Se=>(e.txData[Se]=decodeURIComponent(e.txData[Se]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:C,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight})),!g&&H.default.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},H.default.createElement(i,null,"Loading Module Fonts...")))},Mt=pi;var hi=e=>{let[t,a]=(0,Y.useState)(!1),[i,l]=(0,Y.useState)({}),[y,_]=(0,Y.useState)(!1),[s,L]=(0,Y.useState)(null),[g,K]=(0,Y.useState)({}),[n,d]=(0,Y.useState)({}),[w,m]=(0,Y.useState)(!1),[b,v]=(0,Y.useState)(!1),[A,P]=(0,Y.useState)(!1),[k,C]=(0,Y.useState)(!1),[u,p]=(0,Y.useState)(!1),[N,E]=(0,Y.useState)(""),[Z,W]=(0,Y.useState)([]),[R,z]=(0,Y.useState)(""),[I,U]=(0,Y.useState)(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[te,ae]=(0,Y.useState)(""),[de,q]=(0,Y.useState)("");(0,Y.useEffect)(()=>{(async()=>{await bt();let oe=xt();oe&&(l(oe),a(!0))})()},[]);let{isReactNative:D,View:F,Text:ye,Font:S,AsyncStorage:Ce,ActivityIndicator:ee,styles:Me}=i;return(0,Y.useEffect)(()=>{!y&&t&&(async()=>{if(D)S&&await Le(S),_(!0);else{let oe=Pe(document);_(oe)}})()},[t,y]),(0,Y.useEffect)(()=>{t&&(async()=>{if(D){if(Ce)try{let oe=await Ce.getItem("myVault");if(oe){let V=JSON.parse(oe);if(V?.vaultId){K(V),L(!0);return}}L(!1)}catch(oe){console.error("Error reading vault data on react:",oe),L(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",oe=>{oe.myVault&&JSON.parse(oe.myVault)?.vaultId?(K(JSON.parse(oe.myVault)),L(!0)):L(!1)});else if(localStorage){let oe=JSON.parse(localStorage.getItem("myVault"));oe&&oe?.vaultId?(K(oe),L(!0)):L(!1)}else L(!1)})()},[t]),(0,Y.useEffect)(()=>{(()=>{let oe=Lt.map(V=>V?{name:V?.name,countryName:V?.name,officialName:V?.name,currencySymbol:V?.currency,currencyName:V?.currency,officialCurrencySymbol:V?.currency,countryCode:V?.code,flag:V?.flag,continent:V?.continent,phone_code:V?.phone_code,code:V?.code}:null).filter(V=>V!=null);W(oe)})()},[]),Y.default.createElement(Y.default.Fragment,null,t&&Y.default.createElement(Y.default.Fragment,null,y&&Y.default.createElement(_t,null,w&&Y.default.createElement(F,{style:D?{...Me.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},Y.default.createElement(ee,{size:"large",color:"blue"})),Y.default.createElement(F,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:D?{...Me.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&Y.default.createElement(Y.default.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&Y.default.createElement(F,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&Y.default.createElement(Y.default.Fragment,null,!s&&!b&&Y.default.createElement(Mt,{platform:i,fontsLoaded:y,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:L,setIsLoading:m,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&!b&&!A&&Y.default.createElement(st,{platform:i,fontsLoaded:y,setisOnboard:L,vaultId:g?.vaultId,hashedVaultId:g?.hashedVaultId,encrptedPk:g?.pk,vaultAddress:g?.address,vaultChannel:g?.channel,regAddress:g?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||ht[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:q,setUserNumberFmt:ae,setSelectedCountry:U,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&b&&A&&Y.default.createElement(st,{platform:i,fontsLoaded:y,setisOnboard:L,vaultId:g?.vaultId,hashedVaultId:g?.hashedVaultId,encrptedPk:g?.pk,vaultAddress:g?.address,regAddress:g?.regAddress,vaultChannel:g?.channel,origin:e.origin,title:e.title,actionText:e.actionText||ht[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(le=>(e.txData[le]=decodeURIComponent(e.txData[le]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:q,setUserNumberFmt:ae,setSelectedCountry:U,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&!b&&A&&R===""&&Y.default.createElement(F,{style:{width:"100%",heigth:"100%",padding:"20px"}},Y.default.createElement(dt,{platform:i,fontsLoaded:y,setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,selectedCountry:I,allCountries:Z,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p})),s&&!b&&A&&R==="7"&&Y.default.createElement(Ye,{platform:i,action:e.action,setStep:z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{C(!1),p(!1),v(!0)},buttonFunc:()=>{C(!1),p(!1),v(!0)}}),s&&!b&&A&&R==="8"&&e.dashbordElement&&Y.default.createElement(e.dashbordElement,{setIsLoading:m}),s&&!b&&A&&R==="8"&&!e.dashbordElement&&Y.default.createElement(Y.default.Fragment,null),!A&&b&&!k&&!u&&e.dashbordElement&&Y.default.createElement(e.dashbordElement,{setIsLoading:m,setShowResetPin:C,setShowRemoveCosigner:p,setAction:E,setUserNumberFmt:ae,setUserEmail:q,setSelectedCountry:U,setVaultData:d,initWalletAndContract:ze,useVaultStore:Xe}),s&&!A&&b&&!k&&!u&&!e.dashbordElement&&Y.default.createElement(Y.default.Fragment,null),s&&!A&&!u&&b&&k&&Y.default.createElement(F,{style:{width:"100%",heigth:"100%",padding:"20px"}},Y.default.createElement(mt,{platform:i,fontsLoaded:y,action:"reset-pin",setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,vaultData:n,selectedCountry:I,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight})),s&&!A&&b&&!k&&u&&Y.default.createElement(F,{style:{width:"100%",heigth:"100%",padding:"20px"}},Y.default.createElement(dt,{platform:i,fontsLoaded:y,action:"remove-cosigner",setStep:z,setIsLoading:m,userNumberFmt:te,userEmail:de,selectedCountry:I,allCountries:Z,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p}))))),!y&&Y.default.createElement(ye,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&Y.default.createElement(Y.default.Fragment,null,"Preparing Module..."))},Fn=hi;0&&(module.exports={AddCoSignersPage,ContactPage,CreatePinPage,EnterPinPage,FTUPage,OTPPage,VaultContextProvider,VerifiedCustody,decryptString,decryptWithPasskey,encryptString,encryptWithPasskey,getPlatformComponents,hashTheBuffer,hashTheString,initPlatform,loadAllGoogleFonts,loadAllGoogleFontsRN,publicKeyCredentialRequestOptions});
|
|
3
3
|
//# sourceMappingURL=index.js.map
|