@verified-network/verified-custody 0.4.1 → 0.4.3

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.js CHANGED
@@ -1,3 +1,3 @@
1
- var Sn=Object.create;var wt=Object.defineProperty;var En=Object.getOwnPropertyDescriptor;var An=Object.getOwnPropertyNames;var kn=Object.getPrototypeOf,In=Object.prototype.hasOwnProperty;var Pn=(e,r)=>{for(var h in r)wt(e,h,{get:r[h],enumerable:!0})},tn=(e,r,h,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of An(r))!In.call(e,n)&&n!==h&&wt(e,n,{get:()=>r[n],enumerable:!(s=En(r,n))||s.enumerable});return e};var Ae=(e,r,h)=>(h=e!=null?Sn(kn(e)):{},tn(r||!e||!e.__esModule?wt(h,"default",{value:e,enumerable:!0}):h,e)),_n=e=>tn(wt({},"__esModule",{value:!0}),e);var Gn={};Pn(Gn,{AddCoSignersPage:()=>dt,ContactPage:()=>At,CreatePinPage:()=>rt,EnterPinPage:()=>et,FTUPage:()=>_t,OTPPage:()=>Pt,VaultContextProvider:()=>Nt,VerifiedCustody:()=>Cn,decryptString:()=>qe,encryptString:()=>Ye,hashTheString:()=>pe});module.exports=_n(Gn);function Fn(e){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.type="text/css",r.firstChild?r.insertBefore(h,r.firstChild):r.appendChild(h),h.styleSheet?h.styleSheet.cssText=e:h.appendChild(document.createTextNode(e))}Fn(`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;align-items:center;padding-top:20px;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{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.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:90%;max-width:700px}.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:100%}.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:0verified-custd-mdl-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:.6rem;font-style:normal;font-weight:400;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}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.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:150px;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 chrome>"u"&&(window.chrome={});var H=Ae(require("react"));var ke=Ae(require("react")),nn=(0,ke.createContext)(void 0),Nt=e=>{let[r,h]=(0,ke.useState)(null),[s,n]=(0,ke.useState)(null),[a,N]=(0,ke.useState)(null),[c,v]=(0,ke.useState)(null),[m,E]=(0,ke.useState)(null),[b,B]=(0,ke.useState)(null),[D,M]=(0,ke.useState)(null),[y,I]=(0,ke.useState)(null);return ke.default.createElement(nn.Provider,{value:{chainId:r,pk:s,address:a,signer:c,provider:m,vaultContract:b,vaultData:D,setChainId:h,setPk:n,setAddress:N,setSigner:v,setProvider:E,setVaultContract:B,setVaultData:M}},e.children)},Le=()=>{let e=(0,ke.useContext)(nn);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};var $=Ae(require("react")),wn=require("lodash");var ze=process.env.REACT_APP_NODE_ENV==="production"?8453:84532,Yn=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",an=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],on=["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"],sn="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",rn={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},vt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},yt={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"},_={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"},Ct=[{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 He=require("@verified-network/verified-sdk");var Ie={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:_.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:_.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:_.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:_.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:_.baseIcon}};var dn=Ae(require("crypto")),St=Ae(require("crypto-js")),Ft=require("react-toastify"),nt=Ae(require("react")),ln=require("@biconomy/abstractjs"),Be=require("viem/chains"),Qe=require("viem"),at=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.googleapis.com",e.head.appendChild(s)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.gstatic.com",e.head.appendChild(s)}return on.map(s=>{if(!e.querySelector(`link[href="${s}"]`)){let a=e.createElement("link");a.rel="stylesheet",a.href=s,e.head.appendChild(a)}}),!0},it=async(e,r)=>{var h,s,n,a,N;try{let c;if(r)c=new He.VerifiedWallet(r);else{let z=He.VerifiedWallet.generateMnemonic();c=He.VerifiedWallet.importWallet(z)}let v=He.contractAddress,m=e&&((h=v[e])!=null&&h.Custody)&&((n=(s=Ie[e])==null?void 0:s.rpcUrls)==null?void 0:n.length)>0?e:ze,E=(a=Ie[m])==null?void 0:a.rpcUrls[0],b=c.setProvider(new He.Provider(E)),B=c.privateKey,D=new He.Custody(b,(N=v[m])==null?void 0:N.Custody),M=b,I=(await(0,ln.toMultichainNexusAccount)({chains:[Be.base,Be.mainnet,Be.sepolia,Be.gnosis,Be.baseSepolia,Be.polygon],transports:[(0,Qe.http)(),(0,Qe.http)(),(0,Qe.http)(),(0,Qe.http)(),(0,Qe.http)(),(0,Qe.http)()],signer:M})).addressOn(m);return{chainId:m,address:I,pk:B,signer:b,provider:E,vaultContract:D,vaultData:null}}catch(c){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",c),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},pe=e=>`0x${dn.default.createHash("sha256").update(e==null?void 0:e.toLowerCase()).digest("hex")}`,Ye=(e,r)=>St.default.AES.encrypt(e,r).toString(),qe=(e,r)=>{var h=St.default.AES.decrypt(e,r),s=h.toString(St.default.enc.Utf8);return s};var Dn=(e,r)=>nt.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},nt.default.createElement("img",{style:{marginLeft:"5px"},src:_.errorAlert,alt:""}),nt.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},nt.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),nt.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},r)));var Ne=(e,r)=>(Ft.toast.dismiss(),Ft.toast.error(Dn(e,r),{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 W=Ae(require("react"));var ot=Ae(require("react")),Tn=e=>{var r;return ot.default.createElement("div",{className:"verified-custd-mdl-startup-slider"},((r=e.sliderCount)==null?void 0:r.length)>0&&e.sliderCount.map((h,s)=>ot.default.createElement(ot.default.Fragment,{key:s},s<=Number(e.currentSlider)&&ot.default.createElement("div",{key:`active-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),s>Number(e.currentSlider)&&ot.default.createElement("div",{key:`inactive-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},Fe=Tn;var F=Ae(require("react"));var Ln=e=>{var s;let[r,h]=(0,F.useState)(null);return F.default.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},F.default.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&F.default.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),F.default.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},F.default.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},F.default.createElement("img",{style:{paddingLeft:"6px"},src:_.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),F.default.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:n=>{n.target.value===""?h(null):e.type==="language"?h(e.searchContent.filter(a=>{if(a.name.toLowerCase().includes(n.target.value.toLowerCase()))return a.searched=n.target.value.toLowerCase(),a.nameArray=a.name.split(""),a})):e.type==="area-code"&&h(e.searchContent.filter(a=>{var N,c;if((N=a==null?void 0:a.name)!=null&&N.toLowerCase().includes(n.target.value.toLowerCase()))return a.searched=n.target.value.toLowerCase(),a.nameArray=(c=a==null?void 0:a.name)==null?void 0:c.split(""),a})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),F.default.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},F.default.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!r&&((s=e==null?void 0:e.searchContent)==null?void 0:s.length)>0&&e.searchContent.map((n,a)=>F.default.createElement(F.default.Fragment,{key:a},e.type==="area-code"&&F.default.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:n.phone_code,flag:n.flag,name:n.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},F.default.createElement("img",{src:n.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.type==="language"&&F.default.createElement(F.default.Fragment,null,window.location.search!==`?${a}`&&F.default.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},F.default.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),window.location.search===`?${a}`&&F.default.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},F.default.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},F.default.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.selected&&e.selected.length>0&&F.default.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))),r&&r.length>0&&r.map((n,a)=>{var N,c,v;return F.default.createElement(F.default.Fragment,{key:a},e.type==="area-code"&&F.default.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:n==null?void 0:n.phone_code,flag:n==null?void 0:n.flag,name:n==null?void 0:n.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},F.default.createElement("img",{src:n==null?void 0:n.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((N=n==null?void 0:n.nameArray)==null?void 0:N.length)>0&&(n==null?void 0:n.nameArray.map((m,E)=>F.default.createElement(F.default.Fragment,{key:E},!n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E},m)))))),e.type==="language"&&F.default.createElement(F.default.Fragment,{key:a},window.location.search!==`?${a}`&&F.default.createElement("div",{onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},F.default.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((c=n.nameArray)==null?void 0:c.length)>0&&n.nameArray.map((m,E)=>F.default.createElement(F.default.Fragment,{key:E},!n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E},m)))),n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((v=n.nameArray)==null?void 0:v.length)>0&&n.nameArray.map((m,E)=>F.default.createElement(F.default.Fragment,{key:E},!n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),n.searched.includes(m.toLowerCase())&&F.default.createElement("span",{key:E},m))),!n.searched.includes(n.label.toLowerCase())&&F.default.createElement("span",{style:{color:"#B6B7C3"}},` (${n.label})`),n.searched.includes(n.label.toLowerCase())&&F.default.createElement("span",null,` (${n.label})`))),window.location.search===`?${a}`&&F.default.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},F.default.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},F.default.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&F.default.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.selected&&e.selected.length>0&&F.default.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))}))))))},Et=Ln;var st=Ae(require("react"));var cn=()=>st.default.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",st.default.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",st.default.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),un=e=>st.default.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",st.default.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var r,h;e.setIsLoading(!0),(r=chrome==null?void 0:chrome.storage)!=null&&r.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!((h=chrome==null?void 0:chrome.storage)!=null&&h.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account");var Bn=e=>{var M;let[r,h]=(0,W.useState)(""),[s,n]=(0,W.useState)(""),[a,N]=(0,W.useState)(!1),[c,v]=(0,W.useState)(""),{pk:m,vaultContract:E,address:b}=Le(),B=()=>{var I,z;let y=document.getElementById("verified-custd-mdl-contact-button");y&&e.selectedCountry.area&&r.length===10||y&&((I=e.userEmail)==null?void 0:I.length)>0&&isNaN(Number(e.userEmail))&&((z=e.userEmail)!=null&&z.includes("@"))?(v(""),y.className="verified-custd-mdl-startup-button-active"):(v(""),y.className="verified-custd-mdl-startup-button")},D=async()=>{var y,I,z;if(!e.helperFunctions)v("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((y=e.userEmail)==null?void 0:y.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){v("Invalid input, please check your email");return}let T=((I=e.userEmail)==null?void 0:I.length)>0?e.userEmail:`+${e.selectedCountry.area}${r}`,L=((z=e.userEmail)==null?void 0:z.length)>0?"email":"sms";T&&L&&m&&E||T&&L&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(b,L,T).then(x=>{var A;e.setIsLoading(!1),x?(v(""),e.setStep("3")):(v(L==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),Ne("Oops something went wrong",((A=e.userEmail)==null?void 0:A.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?v(""):v("Network error. check your internet connection and try again.")}};return W.default.createElement("div",{className:"verified-custd-mdl-startup-language"},W.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},W.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"0"}),W.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},e.enablePhone&&W.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),!e.enablePhone&&W.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your email address"),e.enablePhone&&W.default.createElement("div",{className:"verified-custd-mdl-st-contact-input"},W.default.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},W.default.createElement("div",{onClick:()=>{N(!a)},className:"verified-custd-mdl-st-contact-first-section"},W.default.createElement("img",{onClick:()=>{N(!a)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),W.default.createElement("p",{onClick:()=>{N(!a)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),a&&W.default.createElement("img",{onClick:()=>{N(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!a&&W.default.createElement("img",{onClick:()=>{N(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),W.default.createElement("input",{onInputCapture:y=>{var T;y.target.value===""?n(s+" "):n(y.target.value);let I=(T=y.target.value)==null?void 0:T.replace(/\D/g,"");h(I);let z="";for(let L=0;L<(I==null?void 0:I.length);L++)z+=I[L],(L+1)%5===0&&L+1<(I==null?void 0:I.length)&&(z+=" ");e.setUserNumberFmt(z)},onInput:y=>{B()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),a&&W.default.createElement(Et,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:B,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:a,setSearchActive:N,contentMaxHeight:"300",contentbottomMargin:"300"}),r.length!==10&&s.length>10&&c===""&&W.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(c==null?void 0:c.length)>0&&W.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},c)))),!a&&W.default.createElement(W.default.Fragment,null,e.enablePhone&&W.default.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},W.default.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),W.default.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),W.default.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),W.default.createElement("div",{className:"verified-custd-mdl-st-contact-input"},W.default.createElement("input",{onInputCapture:y=>{var I;e.setUserEmail((I=y.target)==null?void 0:I.value),e.setUserNumberFmt(""),h(""),n("")},onInput:y=>{B()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(c==null?void 0:c.length)>0&&((M=e.userEmail)==null?void 0:M.length)>0&&W.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},c))))),!a&&W.default.createElement("div",{style:{height:"80px"}}),W.default.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},W.default.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},W.default.createElement(cn,null),W.default.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async y=>{if(y.target.className.includes("verified-custd-mdl-startup-button")&&y.target.className!=="verified-custd-mdl-startup-button")y.target.className="verified-custd-mdl-startup-button-click",await D();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await D())}},className:"verified-custd-mdl-startup-button"},"Get OTP"))))},At=Bn;var j=Ae(require("react"));var De=require("ethers"),kt=require("shamir-secret-sharing"),le=require("@verified-network/verified-sdk");var mn=require("@biconomy/abstractjs"),Ve=require("viem/chains"),Re=require("viem"),fn=async(e,r)=>{try{return await e.getCreator(r,"").then(async h=>{var s,n;if((h==null?void 0:h.status)===0)return!0;if(((s=h==null?void 0:h.reason)==null?void 0:s.toLowerCase())==="wallet not created")return!1;if(((n=h==null?void 0:h.reason)==null?void 0:n.toLowerCase())==="invalid pin")return!0})}catch{return null}},gn=async(e,r,h,s,n,a,N,c,v,m,E)=>{try{let b={vaultId:e,hashedVaultId:r,vaultPin:h,hashedVaultPin:s,vaultContract:c};return await c.getCreator(r,s).then(async B=>{var D,M,y,I,z,T,L,x;if((B==null?void 0:B.status)===0)try{let A=(0,De.encodeBytes32String)(h),V=Ye(a,A);if(v==="invitation")return{isExisting:!0,...b};if((D=chrome==null?void 0:chrome.storage)!=null&&D.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:r,pk:V,channel:n})}):!((M=chrome==null?void 0:chrome.storage)!=null&&M.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:r,pk:V,channel:n})),(y=chrome==null?void 0:chrome.runtime)!=null&&y.sendMessage)chrome.runtime.sendMessage({type:v&&v==="connect_wallet"||v&&v==="eth_requestAccounts"?"getPk":v&&v!=="connect_wallet"?v:"getPk",value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?m:{vaultId:e,hashedVaultId:r,hashedVaultPin:s},txData:E}});else if(!((I=chrome==null?void 0:chrome.runtime)!=null&&I.sendMessage)){let k=new CustomEvent(v&&v==="connect_wallet"||v&&v==="eth_requestAccounts"?"getPk":v&&v!=="connect_wallet"?v:"getPk",{detail:{value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?m:{vaultId:e,hashedVaultId:r,hashedVaultPin:s},txData:E}}});window.dispatchEvent(k)}return v==="getPk"?{vaultId:e,hashedVaultId:r,pk:V,channel:n,shouldStop:!0}:{shouldStop:!0}}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",A),Ne("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((z=B==null?void 0:B.reason)==null?void 0:z.toLowerCase())==="invalid pin"){let A;return(T=chrome==null?void 0:chrome.storage)!=null&&T.local?A=await new Promise(V=>{chrome.storage.local.get(["lastPk"],k=>{V(k.lastPk)})}):!((L=chrome==null?void 0:chrome.storage)!=null&&L.local)&&localStorage&&(A=localStorage.getItem("lastPk")),v==="reset-pin"&&(m!=null&&m.hashedOldPin)&&(m!=null&&m.vaultContract)?await Vn(r,m==null?void 0:m.hashedOldPin,s,m==null?void 0:m.vaultContract):A&&(A==null?void 0:A.length)>0?await c.confirmParticipant(r,s,r,s,!0).then(async V=>{var k,l,i,O;if((V==null?void 0:V.status)===0){(k=chrome==null?void 0:chrome.storage)!=null&&k.local?await chrome.storage.local.remove("lastPk"):!((l=chrome==null?void 0:chrome.storage)!=null&&l.local)&&localStorage&&localStorage.removeItem("lastPk");try{let P=await new le.VerifiedWallet(a).getAddress(),G=(0,De.encodeBytes32String)(h),se=Ye(a,G);return(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.set({myVault:JSON.stringify({address:N,regAddress:P,vaultId:e,hashedVaultId:r,pk:se,channel:n})}):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:N,regAddress:P,vaultId:e,hashedVaultId:r,pk:se,channel:n})),b}catch(C){return Ne("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",C),!1}}else return Ne("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: ",V),!1}):null}else if(((x=B==null?void 0:B.reason)==null?void 0:x.toLowerCase())==="wallet not created")return await c.createVault(r,s).then(async A=>{var V,k;return(A==null?void 0:A.status)===0?((V=chrome==null?void 0:chrome.storage)!=null&&V.local?await chrome.storage.local.set({lastPk:a}):!((k=chrome==null?void 0:chrome.storage)!=null&&k.local)&&localStorage&&localStorage.setItem("lastPk",a),await c.confirmParticipant(r,s,r,s,!0).then(async l=>{var i,O,C,P;if((l==null?void 0:l.status)===0){(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.remove("lastPk"):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.removeItem("lastPk");try{let se=await new le.VerifiedWallet(a).getAddress(),ie=(0,De.encodeBytes32String)(h),X=Ye(a,ie);return(C=chrome==null?void 0:chrome.storage)!=null&&C.local?await chrome.storage.local.set({myVault:JSON.stringify({address:N,regAddress:se,vaultId:e,hashedVaultId:r,pk:X,channel:n})}):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:N,regAddress:se,vaultId:e,hashedVaultId:r,pk:X,channel:n})),b}catch(G){return Ne("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",G),!1}}else return Ne("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: ",l),!1})):(Ne("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",A),!1)})})}catch(b){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",b),Ne("Oops something went wrong","Error while creating pin. Try again later"),!1}},pn=async(e,r,h,s,n,a,N,c,v,m)=>{var E,b,B,D;try{let M=(0,De.encodeBytes32String)(h),y=qe(n,M);if(y){let I=le.contractAddress,z=new le.VerifiedWallet(y),T=c&&((E=I[c])!=null&&E.Custody)&&((B=(b=Ie[c])==null?void 0:b.rpcUrls)==null?void 0:B.length)>0?c:ze,L=(D=Ie[T])==null?void 0:D.rpcUrls[0],x=z.setProvider(new le.Provider(L)),A=new le.Custody(x,I[T].Custody);return A?await A.getCreator(r,s).then(async V=>{var k,l,i,O;if((V==null?void 0:V.status)===0){let C=await A.getQuorum(r,s);return(C==null?void 0:C.status)===0&&((l=(k=C==null?void 0:C.response)==null?void 0:k.result)==null?void 0:l.length)>0?v&&Number((i=C==null?void 0:C.response)==null?void 0:i.result[0])>0?{address:a,vaultId:e,hashedVaultId:r,channel:N,chainId:m||T,pin:h,pk:y}:Number((O=C==null?void 0:C.response)==null?void 0:O.result[0])===0?{address:a,vaultId:e,hashedVaultId:r,channel:N,chainId:m||T,pin:h,pk:y,inCompleteVault:!0}:{address:a,vaultId:e,hashedVaultId:r,channel:N,chainId:m||T,pin:h}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(M){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",M),null}},It=async(e,r,h,s,n,a,N,c,v,m,E,b,B)=>{var M,y,I,z;let D;if(E)D=E;else{let T=le.contractAddress,L=new le.VerifiedWallet(b),x=B&&((M=T[B])!=null&&M.Custody)&&((I=(y=Ie[B])==null?void 0:y.rpcUrls)==null?void 0:I.length)>0?B:ze,A=(z=Ie[x])==null?void 0:z.rpcUrls[0],V=L.setProvider(new le.Provider(A));D=new le.Custody(V,T[x].Custody)}return D?await D.confirmParticipant(a,n,s,N,m).then(async T=>(T==null?void 0:T.status)===0?(m?await e(h,c,v):await r(h,c,v),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(T=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",T),!1)):!1},hn=async(e,r,h,s,n,a,N,c,v,m,E,b)=>{let B=Number(h.length),M=(await(0,kt.split)(Uint8Array.from(b.split("").map(T=>T.charCodeAt(0))),Number(B),a)).map(T=>T.join(",")),y=(0,De.encodeBytes32String)(v),I=[],z=[];for(let T=0;T<h.length;T++){let L=h[T];await E.addParticipant(c,m,pe(L.vaultId),Ye(M[T],y)).then(async x=>{let A={creatorVaultId:N,vaultPin:v,creatorHashedVaultId:c,creatorHashedVaultPin:m,cosigner:L.vaultId,hashedCosigner:pe(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:Ye(M[T],y),...L};(x==null?void 0:x.status)===0?(z.push(A),L.vaultId!==N&&await e(L.otpChannel,L.vaultId,N,m).then(V=>{V||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):I.push(A)}),await new Promise(x=>setTimeout(x,1e3))}return(I==null?void 0:I.length)>0||(z==null?void 0:z.length)!==(h==null?void 0:h.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ne("Oops somethin went wrong","error while adding co-signers"),!1):await E.defineQuorum(c,m,a.toString()).then(async T=>{if((T==null?void 0:T.status)===0){let L=s==null?void 0:s.map(x=>{var A;return{name:x==null?void 0:x.name,email:x==null?void 0:x.email,phoneNumber:x==null?void 0:x.phoneNumber,contactType:(A=String(x==null?void 0:x.otpChannel))==null?void 0:A.toUpperCase(),position:`${rn[Number(x==null?void 0:x.position)]} Co-Signer`}});return await r(n,N,L,Number(a)).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"),Ne("Oops somethin went wrong","error while saving vault keys"),!1})},vn=async(e,r,h,s,n,a,N,c)=>{var E,b,B,D;let v=(0,De.encodeBytes32String)(n),m=qe(a,v);if(m){let M=le.contractAddress,y=new le.VerifiedWallet(m),I=c&&((E=M[c])!=null&&E.Custody)&&((B=(b=Ie[c])==null?void 0:b.rpcUrls)==null?void 0:B.length)>0?c:ze,z=(D=Ie[I])==null?void 0:D.rpcUrls[0],T=y.setProvider(new le.Provider(z)),L=new le.Custody(T,M[I].Custody);if(L)return await L.promptSignatures(r,h).then(async x=>{var A,V,k,l,i,O,C;if((x==null?void 0:x.status)===0&&((V=(A=x==null?void 0:x.response)==null?void 0:A.result)!=null&&V.logs)){let P=new De.AbiCoder,G=(i=(l=(k=x==null?void 0:x.response)==null?void 0:k.result)==null?void 0:l.logs)==null?void 0:i.filter(ee=>{var K,re,te,ce,o;return((K=ee==null?void 0:ee.address)==null?void 0:K.toLowerCase())===((re=M[I].Custody)==null?void 0:re.toLowerCase())&&((o=(te=ee==null?void 0:ee.topics)==null?void 0:te.map(S=>S==null?void 0:S.toLowerCase()))==null?void 0:o.includes((ce=sn)==null?void 0:ce.toLowerCase()))}),se=(O=G[0])==null?void 0:O.data,ie=(C=P.decode(["bytes32","bytes32","uint256"],se))==null?void 0:C.map((ee,K)=>K<2?ee:Number(ee)).flat(),X=ie[(ie==null?void 0:ie.length)-1];return await e(N,s,h,Number(X),Number(G==null?void 0:G.length)),!0}else return!1}).catch(x=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",x),!1))}},yn=async(e,r,h,s,n,a,N,c,v,m,E,b)=>{var M,y,I,z;let B=(0,De.encodeBytes32String)(a),D=qe(N,B);if(D){let T=le.contractAddress,L=new le.VerifiedWallet(D),x=b&&((M=T[b])!=null&&M.Custody)&&((I=(y=Ie[b])==null?void 0:y.rpcUrls)==null?void 0:I.length)>0?b:ze,A=(z=Ie[x])==null?void 0:z.rpcUrls[0],V=L.setProvider(new le.Provider(A)),k=new le.Custody(V,T[x].Custody);if(k)return await k.signTransaction(v,s,h,E,m).then(async l=>(l==null?void 0:l.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,n),await k.checkQuorum(v,m,h,E).then(async i=>{var O,C;return(i==null?void 0:i.status)===0&&((O=i==null?void 0:i.response)!=null&&O.result)?(((C=i==null?void 0:i.response)==null?void 0:C.result[0])===!0&&await r(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,Number(E)),!0):!1})):!1).catch(l=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",l),!1))}},bn=async(e,r,h,s,n,a,N,c)=>{var E,b,B,D;let v=(0,De.encodeBytes32String)(s),m=qe(n,v);if(m){let M=le.contractAddress,y=new le.VerifiedWallet(m),I=c&&((E=M[c])!=null&&E.Custody)&&((B=(b=Ie[c])==null?void 0:b.rpcUrls)==null?void 0:B.length)>0?c:ze,z=(D=Ie[I])==null?void 0:D.rpcUrls[0],T=y.setProvider(new le.Provider(z)),L=new le.Custody(T,M[I].Custody);return L?await L.checkQuorum(e,r,e,a).then(async x=>{var A,V;return(x==null?void 0:x.status)===0&&((A=x==null?void 0:x.response)!=null&&A.result)&&((V=x==null?void 0:x.response)==null?void 0:V.result[0])===!0?await L.getShards(e,r,a).then(async k=>{var l,i,O,C;if((k==null?void 0:k.status)===0&&((l=k==null?void 0:k.response)!=null&&l.result)){let P=(i=k==null?void 0:k.response)==null?void 0:i.result.filter(G=>G!=="");if(P.length>1){let G=(0,De.encodeBytes32String)(s),ie=P.map(K=>qe(K,G)).map(K=>new Uint8Array(K.split(",").map(Number))),X=await(0,kt.combine)(ie),ee=new TextDecoder().decode(X);if(ee){let K=(0,De.encodeBytes32String)(s),re=Ye(ee,K),te=new le.VerifiedWallet(ee),ce=await te.getAddress(),S=te.setProvider(new le.Provider(z)),ae=(await(0,mn.toMultichainNexusAccount)({chains:[Ve.base,Ve.mainnet,Ve.sepolia,Ve.gnosis,Ve.baseSepolia,Ve.polygon],transports:[(0,Re.http)(),(0,Re.http)(),(0,Re.http)(),(0,Re.http)(),(0,Re.http)(),(0,Re.http)()],signer:S})).addressOn(I);return(O=chrome==null?void 0:chrome.storage)!=null&&O.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:ae,regAddress:ce,vaultId:h,hashedVaultId:e,pk:re,channel:N})})):!((C=chrome==null?void 0:chrome.storage)!=null&&C.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:ae,regAddress:ce,vaultId:h,hashedVaultId:e,pk:re,channel:N}))),!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(x=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",x),!1)):!1}},Vn=async(e,r,h,s)=>await s.resetPin(e,r,h).then(async n=>(n==null?void 0:n.status)===0?await s.confirmParticipant(e,h,e,h,!0).then(N=>(N==null?void 0:N.status)===0?{}:null):null);var Un=e=>{var T,L,x,A,V,k;let[r,h]=(0,j.useState)(!1),[s,n]=(0,j.useState)(60),[a,N]=(0,j.useState)(!1),[c,v]=(0,j.useState)(""),{pk:m,vaultContract:E,address:b}=Le();(0,j.useEffect)(()=>{if(s===0)return;let l=setInterval(()=>{n(i=>i-1)},1e3);return()=>clearInterval(l)},[s]);let B=l=>{if(l.value.length>0){let i=l.nextElementSibling;i&&i.focus()}else l.value.length===0&&l.focus()},D=l=>{let i=l.clipboardData.getData("text"),O=i==null?void 0:i.replace(/\D/g,""),C=document.getElementsByClassName("otp-input");if((C==null?void 0:C.length)===4&&(O==null?void 0:O.length)>0)for(let P=0;P<C.length;P++)O[P]&&(C[P].value=O[P],C[P].focus())},M=l=>{let i=l.target.previousElementSibling;i&&i.focus()},y=()=>{let l=document.getElementById("verified-custd-mdl-otp-button"),i=document.getElementById("verified-custd-mdl-otp-input-1"),O=document.getElementById("verified-custd-mdl-otp-input-2"),C=document.getElementById("verified-custd-mdl-otp-input-3"),P=document.getElementById("verified-custd-mdl-otp-input-4");l&&(i==null?void 0:i.value.length)>0&&(O==null?void 0:O.value.length)>0&&(C==null?void 0:C.value.length)>0&&(P==null?void 0:P.value.length)>0&&!a?l.className="verified-custd-mdl-startup-button-active":l.className="verified-custd-mdl-startup-button"},I=async()=>{var l,i,O,C,P,G,se,ie,X,ee;if(!e.helperFunctions)v("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let K=((l=e.userEmail)==null?void 0:l.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,re=document.getElementById("verified-custd-mdl-otp-input-1"),te=document.getElementById("verified-custd-mdl-otp-input-2"),ce=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");if(((O=re==null?void 0:re.value)==null?void 0:O.length)>0&&((C=te==null?void 0:te.value)==null?void 0:C.length)>0&&((P=ce==null?void 0:ce.value)==null?void 0:P.length)>0&&((G=o==null?void 0:o.value)==null?void 0:G.length)>0&&K&&m&&E||((se=re==null?void 0:re.value)==null?void 0:se.length)>0&&((ie=te==null?void 0:te.value)==null?void 0:ie.length)>0&&((X=ce==null?void 0:ce.value)==null?void 0:X.length)>0&&((ee=o==null?void 0:o.value)==null?void 0:ee.length)>0&&K&&e.noContract){e.setIsLoading(!0);let S=(re==null?void 0:re.value)+(te==null?void 0:te.value)+(ce==null?void 0:ce.value)+(o==null?void 0:o.value);await e.helperFunctions.checkOTPVerification(b,K,String(S)).then(async ne=>{if(ne){let ae=pe(K),Y=!1;if(e.noContract||(Y=await fn(E,ae)),Y===null){v("Unexpected error while fetching account details. Try again later."),N(!0);return}e.setIsExistingUser&&e.setIsExistingUser(Y),e.setIsLoading(!1),e.setStep("4")}else e.setIsLoading(!1),N(!0)})}}},z=async()=>{var l,i,O;if(!e.helperFunctions)v("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let C=((l=e.userEmail)==null?void 0:l.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,P=((O=e.userEmail)==null?void 0:O.length)>0?"email":"sms";C&&P&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(b,P,C).then(G=>{if(e.setIsLoading(!1),G){n(60),N(!1),v("");let se=document.getElementById("verified-custd-mdl-otp-input-1"),ie=document.getElementById("verified-custd-mdl-otp-input-2"),X=document.getElementById("verified-custd-mdl-otp-input-3"),ee=document.getElementById("verified-custd-mdl-otp-input-4");se.value="",ie.value="",X.value="",ee.value=""}else Ne("Oops something went wrong","Unexpected error")}))}};return j.default.createElement("div",{className:"verified-custd-mdl-startup-language"},j.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},j.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"0"}),j.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},j.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),j.default.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},j.default.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",j.default.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((T=e.userNumberFmt)==null?void 0:T.length)>0?"phone number":"email address"),j.default.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},j.default.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((L=e.userNumberFmt)==null?void 0:L.length)>0&&j.default.createElement(j.default.Fragment,null,j.default.createElement("span",null,"(+",(x=e.selectedCountry)==null?void 0:x.area,")")," ",j.default.createElement("span",null," ",(A=e.userNumberFmt)==null?void 0:A.split(" ")[0])," ",j.default.createElement("span",null," ",(V=e.userNumberFmt)==null?void 0:V.split(" ")[1])),((k=e.userEmail)==null?void 0:k.length)>0&&j.default.createElement("span",null,e.userEmail)),j.default.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:_.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),j.default.createElement("div",{className:"verified-custd-mdl-otp-input-container"},j.default.createElement("div",{className:"verified-custd-mdl-otp-input-group"},j.default.createElement("input",{onInputCapture:l=>{var i;l.target.value=(i=l.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),v("")},onInput:l=>{B(l.target),y()},onKeyDown:l=>{l.key==="Backspace"&&l.target.value===""&&M(l)},onPaste:l=>{D(l)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),j.default.createElement("input",{onInputCapture:l=>{var i;l.target.value=(i=l.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),v("")},onInput:l=>{B(l.target),y()},onKeyDown:l=>{l.key==="Backspace"&&l.target.value===""&&M(l)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),j.default.createElement("input",{onInputCapture:l=>{var i;l.target.value=(i=l.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),v("")},onInput:l=>{B(l.target),y()},onKeyDown:l=>{l.key==="Backspace"&&l.target.value===""&&M(l)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),j.default.createElement("input",{onInputCapture:l=>{var i;l.target.value=(i=l.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),v("")},onInput:l=>{B(l.target),y()},onKeyDown:l=>{l.key==="Backspace"&&l.target.value===""&&M(l)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),j.default.createElement("div",{className:"verified-custd-mdl-otp-timer"},!a&&s>5&&c===""&&j.default.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},j.default.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),s),!a&&s<=5&&s>0&&c===""&&j.default.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},j.default.createElement("span",{style:{fontWeight:400}},"00:"),s),!a&&s===0&&c===""&&j.default.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),a&&c===""&&j.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),a&&(c==null?void 0:c.length)>0&&j.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},c),!a&&s>0&&c===""&&j.default.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!a&&s===0&&c===""&&j.default.createElement("p",{onClick:async()=>{let l=document.getElementsByClassName("otp-input");if(l)for(let i=0;i<l.length;i++)l[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),a&&c===""&&j.default.createElement("p",{onClick:async()=>{let l=document.getElementsByClassName("otp-input");if(l)for(let i=0;i<l.length;i++)l[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!r&&j.default.createElement("div",{style:{height:"100px"}}),j.default.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},j.default.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},j.default.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async l=>{if(l.target.className.includes("verified-custd-mdl-startup-button")&&l.target.className!=="verified-custd-mdl-startup-button")l.target.className="verified-custd-mdl-startup-button-click",await I();else{let i=document.getElementsByClassName("verified-custd-mdl-startup-button-active");i.length>0&&(i[0].className="verified-custd-mdl-startup-button-click",await I())}},className:"verified-custd-mdl-startup-button"},"Proceed"))))},Pt=Un;var f=Ae(require("react"));var Ze=Ae(require("react"));var On=e=>{var a,N;let r=e.showButton?null:setTimeout(()=>{var c,v,m,E;if(e.messageTosend)try{if((c=chrome==null?void 0:chrome.runtime)!=null&&c.sendMessage)chrome.runtime.sendMessage(e.messageTosend,b=>{b&&e.action!=="signRecovery"&&window.close()});else if(!((v=chrome==null?void 0:chrome.runtime)!=null&&v.sendMessage)){let b=new CustomEvent((m=e.messageTosend)==null?void 0:m.type,{detail:{value:(E=e.messageTosend)==null?void 0:E.value}});window.dispatchEvent(b)}}catch(b){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",b),Ne("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),h=()=>{e.setStep("6")},s=()=>{chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},n=()=>{e.setShowDasboard(!0)};return Ze.default.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},Ze.default.createElement("div",{className:"verified-custd-mdl-success-popup-content"},Ze.default.createElement("img",{style:{width:"90%"},src:_.successIcon,alt:"Success Icon"}),Ze.default.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},Ze.default.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),Ze.default.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((a=e.buttonText)==null?void 0:a.length)>0&&Ze.default.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{r&&clearTimeout(r),e.action==="invitation"&&h(),e.action==="completeRecovery"&&n()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((N=e.buttonNeutText)==null?void 0:N.length)>0&&Ze.default.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{r&&clearTimeout(r),e.action==="invitation"&&s()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Ue=On;var Mn=e=>{var X,ee,K,re,te,ce;let[r,h]=(0,f.useState)(!1),[s,n]=(0,f.useState)(!1),[a,N]=(0,f.useState)(""),[c,v]=(0,f.useState)(!0),[m,E]=(0,f.useState)(!1),[b,B]=(0,f.useState)(!1),[D,M]=(0,f.useState)(!1),[y,I]=(0,f.useState)(""),[z,T]=(0,f.useState)(""),[L,x]=(0,f.useState)(!1),{address:A,pk:V,vaultContract:k,setVaultData:l,setChainId:i,vaultData:O}=Le(),C=o=>{if(o.value.length>0){let S=o.nextElementSibling;S&&S.focus()}else o.value.length===0&&o.focus()},P=o=>{let S=o.target.previousElementSibling;S&&S.focus()},G=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),S=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),ae=document.getElementById("verified-custd-mdl-otp-input-3"),Y=document.getElementById("verified-custd-mdl-otp-input-4"),p=document.getElementById("verified-custd-mdl-otp-input-5"),u=document.getElementById("verified-custd-mdl-otp-input-6"),q=document.getElementById("verified-custd-mdl-otp-input-7"),Q=document.getElementById("verified-custd-mdl-otp-input-8");!e.isExistingUser&&o&&(S==null?void 0:S.value.length)>0&&(ne==null?void 0:ne.value.length)>0&&(ae==null?void 0:ae.value.length)>0&&(Y==null?void 0:Y.value.length)>0&&(p==null?void 0:p.value.length)>0&&(u==null?void 0:u.value.length)>0&&(q==null?void 0:q.value.length)>0&&(Q==null?void 0:Q.value.length)>0||e.isExistingUser&&o&&(S==null?void 0:S.value.length)>0&&(ne==null?void 0:ne.value.length)>0&&(ae==null?void 0:ae.value.length)>0&&(Y==null?void 0:Y.value.length)>0?!e.isExistingUser&&(S==null?void 0:S.value)+(ne==null?void 0:ne.value)+(ae==null?void 0:ae.value)+(Y==null?void 0:Y.value)===(p==null?void 0:p.value)+(u==null?void 0:u.value)+(q==null?void 0:q.value)+(Q==null?void 0:Q.value)||e.isExistingUser?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",n(!0)):o.className="verified-custd-mdl-startup-button"},se=async()=>{var o,S,ne,ae,Y,p,u,q,Q,oe,Z,R,he,w,U,ue,fe,ge,Oe,Ce,Se,Ee,de,me,d,ve,Pe,Xe,lt,ct,ut,mt,ft,gt;if(!e.helperFunctions)N("No Helper Functions. Please include all helper functions in the CreatePinPage props."),n(!0);else{N(""),n(!1);let ye=document.getElementById("verified-custd-mdl-otp-input-1"),be=document.getElementById("verified-custd-mdl-otp-input-2"),xe=document.getElementById("verified-custd-mdl-otp-input-3"),we=document.getElementById("verified-custd-mdl-otp-input-4"),je=document.getElementById("verified-custd-mdl-otp-input-5"),Ke=document.getElementById("verified-custd-mdl-otp-input-6"),Ge=document.getElementById("verified-custd-mdl-otp-input-7"),We=document.getElementById("verified-custd-mdl-otp-input-8"),$e=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(S=e.userNumberFmt)==null?void 0:S.replace(" ","")}`,Je=((ne=e.userEmail)==null?void 0:ne.length)>0?"email":"sms";if(!e.isExistingUser&&((ae=ye==null?void 0:ye.value)==null?void 0:ae.length)>0&&((Y=be==null?void 0:be.value)==null?void 0:Y.length)>0&&((p=xe==null?void 0:xe.value)==null?void 0:p.length)>0&&((u=we==null?void 0:we.value)==null?void 0:u.length)>0&&((q=je==null?void 0:je.value)==null?void 0:q.length)>0&&((Q=Ke==null?void 0:Ke.value)==null?void 0:Q.length)>0&&((oe=Ge==null?void 0:Ge.value)==null?void 0:oe.length)>0&&((Z=We==null?void 0:We.value)==null?void 0:Z.length)>0&&$e&&Je&&V&&A&&k||!e.isExistingUser&&((R=ye==null?void 0:ye.value)==null?void 0:R.length)>0&&((he=be==null?void 0:be.value)==null?void 0:he.length)>0&&((w=xe==null?void 0:xe.value)==null?void 0:w.length)>0&&((U=we==null?void 0:we.value)==null?void 0:U.length)>0&&((ue=je==null?void 0:je.value)==null?void 0:ue.length)>0&&((fe=Ke==null?void 0:Ke.value)==null?void 0:fe.length)>0&&((ge=Ge==null?void 0:Ge.value)==null?void 0:ge.length)>0&&((Oe=We==null?void 0:We.value)==null?void 0:Oe.length)>0&&$e&&Je&&((Ce=e.vaultData)!=null&&Ce.vaultContract)&&((Se=e.vaultData)!=null&&Se.hashedOldPin)||e.isExistingUser&&((Ee=ye==null?void 0:ye.value)==null?void 0:Ee.length)>0&&((de=be==null?void 0:be.value)==null?void 0:de.length)>0&&((me=xe==null?void 0:xe.value)==null?void 0:me.length)>0&&((d=we==null?void 0:we.value)==null?void 0:d.length)>0&&$e&&Je&&V&&A&&k||e.isExistingUser&&((ve=ye==null?void 0:ye.value)==null?void 0:ve.length)>0&&((Pe=be==null?void 0:be.value)==null?void 0:Pe.length)>0&&((Xe=xe==null?void 0:xe.value)==null?void 0:Xe.length)>0&&((lt=we==null?void 0:we.value)==null?void 0:lt.length)>0&&$e&&Je&&((ct=e.vaultData)!=null&&ct.vaultContract)&&((ut=e.vaultData)!=null&&ut.hashedOldPin)){e.setIsLoading(!0);let tt=(ye==null?void 0:ye.value)+(be==null?void 0:be.value)+(xe==null?void 0:xe.value)+(we==null?void 0:we.value),bt=pe($e),xt=pe(tt);await gn($e,bt,tt,xt,Je,V||((mt=e.vaultData)==null?void 0:mt.pk),A||((ft=e.vaultData)==null?void 0:ft.address),k||((gt=e.vaultData)==null?void 0:gt.vaultContract),e.action,e.vaultData,e.txData).then(J=>{var pt,ht;e.setIsLoading(!1),J?(l(J!=null&&J.shouldStop&&(J!=null&&J.vaultId)?{vaultId:J==null?void 0:J.vaultId,hashedVaultId:J==null?void 0:J.hashedVaultId,pk:J==null?void 0:J.pk,channel:J==null?void 0:J.channel}:J!=null&&J.shouldStop?{}:J),N(""),n(!1),e.action==="invitation"?(T(tt),E(!0)):e.action==="reset-pin"?((pt=chrome==null?void 0:chrome.storage)!=null&&pt.local?chrome.storage.local.remove("myVault"):!((ht=chrome==null?void 0:chrome.storage)!=null&&ht.local)&&localStorage&&localStorage.removeItem("myVault"),I("You have successfully reset your account pin. Login with the new pin"),M(!0)):J!=null&&J.shouldStop?J!=null&&J.shouldStop&&e.action!=="getPk"?(I(""),M(!0)):J!=null&&J.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):J===null?e.action==="reset-pin"?(N("Reset pin failed. Try again later."),n(!0)):(N("You are an existing user. Please input the right pin to recover your account."),n(!0)):(N("Unexpected error while creating account. Please try again later."),n(!0))})}}},ie=async o=>{var ae,Y,p,u,q,Q,oe,Z;let S=((ae=e.userEmail)==null?void 0:ae.length)>0?e.userEmail:`+${e.selectedCountry.area}${(Y=e.userNumberFmt)==null?void 0:Y.replace(" ","")}`,ne=((p=e.userEmail)==null?void 0:p.length)>0?"email":"sms";if((z==null?void 0:z.length)===4&&((u=e==null?void 0:e.vaultData)!=null&&u.hashedVaultId)&&((q=e.vaultData)!=null&&q.hashedVaultPin)&&S){e.setIsLoading(!0);let R=pe(S),he=pe(z);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ne,R,he,(Q=e==null?void 0:e.vaultData)==null?void 0:Q.hashedVaultId,(oe=e.vaultData)==null?void 0:oe.hashedVaultPin,(Z=e.vaultData)==null?void 0:Z.vaultId,S,o,k).then(w=>{var U,ue;e.setIsLoading(!1),w&&!(O!=null&&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(o?`You have been added as a Co-Signer for ${(U=e.vaultData)==null?void 0:U.vaultId}`:`You rejected Co-signer reject from ${(ue=e.vaultData)==null?void 0:ue.vaultId}`),e.setStep("5")):w&&(O!=null&&O.isExisting)&&B(!0)})}};return f.default.createElement(f.default.Fragment,null,!D&&!m&&f.default.createElement("div",{className:"verified-custd-mdl-startup-language"},f.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},f.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"1"}),f.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&f.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),e.isExistingUser&&f.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter PIN"),f.default.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&f.default.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."),e.isExistingUser&&f.default.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",f.default.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",f.default.createElement("span",{style:{color:"#0C0C0E"}},((X=e.userEmail)==null?void 0:X.length)>0?e.userEmail:`+${e.selectedCountry.area}${(ee=e.userNumberFmt)==null?void 0:ee.replace(" ","")}`)," ","account."))),f.default.createElement("div",{className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&f.default.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),f.default.createElement("div",{className:"verified-custd-mdl-otp-input-group"},f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),e.isExistingUser&&f.default.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&f.default.createElement("p",null),s&&a===""&&f.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&f.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!c&&f.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!0),src:_.pinShow,alt:"show pin icon"}),c&&f.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!1),src:_.pinHide,alt:"hide pin icon"}))),!e.isExistingUser&&f.default.createElement("div",{className:"verified-custd-mdl-otp-input-container"},f.default.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),f.default.createElement("div",{className:"verified-custd-mdl-otp-input-group"},f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),f.default.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),G()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),f.default.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&f.default.createElement("p",null),s&&a===""&&f.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&f.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!c&&f.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!0),src:_.pinShow,alt:"show pin icon"}),c&&f.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!1),src:_.pinHide,alt:"hide pin icon"})))),!r&&f.default.createElement("div",{style:{height:"30px"}}),f.default.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},f.default.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},f.default.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await se();else{let S=document.getElementsByClassName("verified-custd-mdl-startup-button-active");S.length>0&&(S[0].className="verified-custd-mdl-startup-button-click",await se())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!D&&m&&f.default.createElement(f.default.Fragment,null,!b&&f.default.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},f.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},f.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"1"}),f.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},f.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},f.default.createElement("b",null,(K=e.vaultData)==null?void 0:K.vaultId)," has requested you to be a Co-Signer"))),f.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!L&&f.default.createElement(f.default.Fragment,null,f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},f.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),f.default.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},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."," "),f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.default.createElement("img",{src:_.pkicon,alt:"icon"})),f.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",f.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.default.createElement("img",{src:_.encryptedIcon,alt:"icon"})),f.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",f.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.default.createElement("button",{onClick:()=>{x(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),f.default.createElement("button",{onClick:async()=>{await ie(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),L&&f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},f.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},f.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),f.default.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",f.default.createElement("b",null,(re=e.vaultData)==null?void 0:re.vaultId),", you will not be able to reset the PIN for them.")),f.default.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.default.createElement("button",{onClick:async()=>{await ie(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),f.default.createElement("button",{onClick:()=>{x(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),b&&f.default.createElement(Ue,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:L?`You rejected Co-signer reject from ${(ce=e.vaultData)==null?void 0:ce.vaultId}`:`You have been added as a Co-Signer for ${(te=e.vaultData)==null?void 0:te.vaultId}`})),D&&f.default.createElement(Ue,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(y==null?void 0:y.length)>0?y:"You have successfully logged in your account."}))},rt=Mn;var t=Ae(require("react"));var zn=e=>{var S,ne,ae,Y;let[r,h]=(0,t.useState)(!1),[s,n]=(0,t.useState)("1"),[a,N]=(0,t.useState)("1"),[c,v]=(0,t.useState)(!1),[m,E]=(0,t.useState)("email"),[b,B]=(0,t.useState)(""),[D,M]=(0,t.useState)(""),[y,I]=(0,t.useState)(""),[z,T]=(0,t.useState)(""),[L,x]=(0,t.useState)(""),[A,V]=(0,t.useState)(!1),[k,l]=(0,t.useState)(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=(0,t.useState)([]),[C,P]=(0,t.useState)(!1),[G,se]=(0,t.useState)(2),[ie,X]=(0,t.useState)(""),{pk:ee,vaultData:K,vaultContract:re}=Le(),te=()=>{let p=document.getElementById("add-cosigner-button");p&&(i==null?void 0:i.length)>0?p.className="startup-button-active":p.className="startup-button"},ce=()=>{var u,q,Q,oe;if(m==="sms"&&(b==null?void 0:b.length)===0){X("Invalid input, please check the phone number");return}else if(m==="sms"&&(b==null?void 0:b.length)!==10){X("Invalid input, please check the phone number");return}else if(m==="email"&&(y==null?void 0:y.length)===0){X("Invalid input, please check the email");return}else if(m==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(y)){X("Invalid input, please check the email");return}else if(i!=null&&i.find(Z=>{var R,he,w,U;return(Z==null?void 0:Z.otpChannel)==="sms"?((R=Z==null?void 0:Z.phoneArea)==null?void 0:R.toLowerCase())+((he=Z==null?void 0:Z.number)==null?void 0:he.toLowerCase())===((w=k.area)==null?void 0:w.toLowerCase())+(D==null?void 0:D.toLowerCase()):((U=Z==null?void 0:Z.email)==null?void 0:U.toLowerCase())===(y==null?void 0:y.toLowerCase())})){X(m==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(m==="sms"&&((u=k==null?void 0:k.area)==null?void 0:u.toLowerCase())+(D==null?void 0:D.toLowerCase())===((q=e.selectedCountry.area)==null?void 0:q.toLowerCase())+((Q=e.userNumberFmt)==null?void 0:Q.toLowerCase())){X("Invalid input, phone number is creator's phone number");return}else if(m==="email"&&(y==null?void 0:y.toLowerCase())===((oe=e.userEmail)==null?void 0:oe.toLowerCase())){X("Invalid input, email is creator's email");return}X("");let p=i==null?void 0:i.length;O(Z=>[{name:z,email:y,number:D,phoneNumber:`+${k==null?void 0:k.area}${b}`,otpChannel:m,phoneArea:k==null?void 0:k.area,position:(Z==null?void 0:Z.length)+1,vaultId:m==="sms"?`+${k==null?void 0:k.area}${b}`:y},...Z]),I(""),T(""),B(""),M(""),x(""),p+1===4&&v(!1)},o=async()=>{var u,q,Q,oe,Z,R;let p=[{otpChannel:((u=e==null?void 0:e.userEmail)==null?void 0:u.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(q=e==null?void 0:e.selectedCountry)==null?void 0:q.area}${(Q=e==null?void 0:e.userNumberFmt)==null?void 0:Q.replace(" ","")}`,vaultId:K==null?void 0:K.vaultId},...i];(p==null?void 0:p.length)>0&&(i==null?void 0:i.length)>0&&G&&(K!=null&&K.vaultId)&&(K!=null&&K.hashedVaultId)&&(K!=null&&K.vaultPin)&&(K!=null&&K.hashedVaultPin)&&re&&ee&&((oe=e.helperFunctions)!=null&&oe.sendCoSignerInvitation)&&((Z=e.helperFunctions)!=null&&Z.sendCreatorConfirmation)&&(e.setIsLoading(!0),await hn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,p,i,((R=e==null?void 0:e.userEmail)==null?void 0:R.length)>0?"email":"sms",G,K.vaultId,K.hashedVaultId,K.vaultPin,K.hashedVaultPin,re,ee).then(he=>{e.setIsLoading(!1),he&&e.setStep("7")}))};return t.default.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!r&&t.default.createElement(t.default.Fragment,null,a==="1"&&t.default.createElement(t.default.Fragment,null," ",t.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"2"}),t.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.default.createElement("img",{src:_.pkicon,alt:"icon"})),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.default.createElement("img",{src:_.encryptedIcon,alt:"icon"})),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.default.createElement("img",{src:_.supervise,alt:"icon"})),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.default.createElement("span",{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."))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.default.createElement("button",{onClick:()=>{n("1"),h(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.default.createElement("button",{onClick:()=>{N("2"),v(!1),h(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),a==="2"&&t.default.createElement(t.default.Fragment,null," ",t.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"2"}),t.default.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.default.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!C&&t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.default.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((S=e.userEmail)==null?void 0:S.length)>0&&t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((ne=e.userEmail)==null?void 0:ne.length)===0&&t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!C&&i.sort((p,u)=>(p==null?void 0:p.position)-(u==null?void 0:u.position)).map((p,u)=>{var q,Q;return t.default.createElement("div",{key:u,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(q=vt[p==null?void 0:p.position])==null?void 0:q.split(" ")[0],t.default.createElement("sup",null,(Q=vt[p==null?void 0:p.position])==null?void 0:Q.split(" ")[1])," ","Co-Signer")),t.default.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},p==null?void 0:p.name),p.otpChannel==="email"&&t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},p.email),p.otpChannel==="sms"&&t.default.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",p==null?void 0:p.phoneArea,") ",p.number))),t.default.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.default.createElement("img",{style:{cursor:"pointer"},src:_.editBlack,alt:"edit"}),t.default.createElement("img",{onClickCapture:()=>{O(oe=>{var Z;return(Z=oe==null?void 0:oe.filter(R=>{var he,w,U,ue,fe,ge;return(R==null?void 0:R.otpChannel)==="sms"?((he=R==null?void 0:R.phoneArea)==null?void 0:he.toLowerCase())+((w=R==null?void 0:R.number)==null?void 0:w.toLowerCase())!==((U=p==null?void 0:p.phoneArea)==null?void 0:U.toLowerCase())+((ue=p==null?void 0:p.number)==null?void 0:ue.toLowerCase()):((fe=R==null?void 0:R.email)==null?void 0:fe.toLowerCase())!==((ge=p==null?void 0:p.email)==null?void 0:ge.toLowerCase())}))==null?void 0:Z.map((R,he)=>(R.position=he+1,R))})},onClick:()=>{te()},style:{cursor:"pointer"},src:_.delete,alt:"delete"}))))})),C&&t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.default.createElement("p",{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.")),t.default.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((p,u)=>t.default.createElement("div",{style:u+1===G?{}:{height:"0",width:"0",overflow:"hidden"},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(u+1))," "),t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:_.pointer,alt:""})))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.default.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:_.sliderDot,alt:""})))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((p,u)=>t.default.createElement("p",{style:u===(i==null?void 0:i.length)?{paddingRight:"12px"}:u===0?{paddingLeft:"12px"}:{},onClick:()=>{u+1>1&&se(u+1)},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1)))))),t.default.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async p=>{if(p.target.className.includes("startup-button")&&p.target.className!=="startup-button")p.target.className="startup-button-click",await o();else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click"),await o()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),c&&(i==null?void 0:i.length)<4&&t.default.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(ae=vt[(i==null?void 0:i.length)+1])==null?void 0:ae.split(" ")[0],t.default.createElement("sup",null,(Y=vt[(i==null?void 0:i.length)+1])==null?void 0:Y.split(" ")[1])," ","Co-Signer"))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.default.createElement("input",{onInput:p=>{T(p.target.value)},value:z,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.default.createElement("img",{onClick:()=>{E("sms"),X(""),I("")},src:m==="sms"?_.selectClicked:_.select,alt:""}),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.default.createElement("img",{onClick:()=>{E("email"),X(""),B(""),M(""),x("")},src:m==="email"?_.selectClicked:_.select,alt:""}),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},m==="sms"&&t.default.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.default.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.default.createElement("div",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-first-section"},t.default.createElement("img",{onClick:()=>{V(!A)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:k.flag}),t.default.createElement("p",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",k.area),A&&t.default.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!A&&t.default.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),t.default.createElement("input",{onInputCapture:p=>{var Q;p.target.value===""?x(L+" "):x(p.target.value);let u=(Q=p.target.value)==null?void 0:Q.replace(/\D/g,"");B(u);let q="";for(let oe=0;oe<(u==null?void 0:u.length);oe++)q+=u[oe],(oe+1)%5===0&&oe+1<(u==null?void 0:u.length)&&(q+=" ");M(q),X("")},onInput:p=>{te()},value:D,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),A&&t.default.createElement(Et,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:te,setSelected:l,selected:k,searchActive:A,setSearchActive:V,contentMaxHeight:"300",contentbottomMargin:"300"}),ie===""&&b.length!==10&&L.length>10&&t.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ie!==""&&t.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},ie))),m==="email"&&t.default.createElement(t.default.Fragment,null,t.default.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.default.createElement("input",{style:{width:"100%"},onInputCapture:p=>{I(p.target.value),X("")},onInput:p=>{te()},value:y,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ie!==""&&t.default.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.default.createElement("p",{className:"verified-custd-mdl-input-error-text"},ie))))),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.default.createElement("button",{onClick:()=>v(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.default.createElement("button",{onClickCapture:()=>{ce()},onClick:()=>te(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!c&&!C&&(i==null?void 0:i.length)<4&&t.default.createElement("div",{onClick:()=>v(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.default.createElement("img",{style:{width:"20px"},src:_.addIcon,alt:"add icon"}),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!c&&!C&&(i==null?void 0:i.length)===4&&t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.default.createElement("img",{style:{width:"20px"},src:_.addDisableIcon,alt:"add icon"}),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!C&&t.default.createElement("button",{style:!c&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},id:"add-cosigner-button",onClick:async p=>{if(p.target.className.includes("startup-button")&&p.target.className!=="startup-button")p.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(se(2),P(!0),v(!1));else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(se(2),P(!0),v(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),r&&t.default.createElement(t.default.Fragment,null,s==="1"&&t.default.createElement(t.default.Fragment,null,t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon2,alt:""}),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.default.createElement("p",{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."," ")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.default.createElement("button",{onClick:()=>h(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.default.createElement("button",{onClick:()=>n("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="2"&&t.default.createElement(t.default.Fragment,null,t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon3,alt:""}),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.default.createElement("p",{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")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.default.createElement("button",{onClick:()=>n("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.default.createElement("button",{onClick:()=>n("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="3"&&t.default.createElement(t.default.Fragment,null,t.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon4,alt:""}),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.default.createElement("button",{onClick:()=>n("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.default.createElement("button",{onClick:()=>{N("2"),v(!1),h(!1),n("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},dt=zn;var g=Ae(require("react"));var xn=require("ethers"),Hn=e=>{var Q,oe,Z,R,he;let[r,h]=(0,g.useState)(e.fontsLoaded||!1),[s,n]=(0,g.useState)(!1),[a,N]=(0,g.useState)(!0),[c,v]=(0,g.useState)(!1),[m,E]=(0,g.useState)(!1),[b,B]=(0,g.useState)(null),[D,M]=(0,g.useState)(null),[y,I]=(0,g.useState)(e.newChainId||ze),[z,T]=(0,g.useState)(!1),[L,x]=(0,g.useState)(!1),[A,V]=(0,g.useState)(!1),[k,l]=(0,g.useState)(!1),[i,O]=(0,g.useState)(!1),[C,P]=(0,g.useState)(""),[G,se]=(0,g.useState)(!1),[ie,X]=(0,g.useState)({}),{setChainId:ee,setAddress:K,setPk:re,setProvider:te,setSigner:ce,setVaultContract:o,setVaultData:S}=Le();(0,g.useEffect)(()=>{let w=()=>{let U=at(document);h(U)};e.fontsLoaded||w()},[]);let ne=w=>{if(w.value.length>0){let U=w.nextElementSibling;U&&U.focus()}else w.value.length===0&&w.focus()},ae=w=>{let U=w.clipboardData.getData("text"),ue=U==null?void 0:U.replace(/\D/g,""),fe=document.getElementsByClassName("otp-input");if((fe==null?void 0:fe.length)===4&&(ue==null?void 0:ue.length)>0)for(let ge=0;ge<fe.length;ge++)ue[ge]&&(fe[ge].value=ue[ge],fe[ge].focus())},Y=w=>{let U=w.target.previousElementSibling;U&&U.focus()},p=()=>{let w=document.getElementById("verified-custd-mdl-otp-button"),U=document.getElementById("verified-custd-mdl-otp-input-1"),ue=document.getElementById("verified-custd-mdl-otp-input-2"),fe=document.getElementById("verified-custd-mdl-otp-input-3"),ge=document.getElementById("verified-custd-mdl-otp-input-4");w&&(U==null?void 0:U.value.length)>0&&(ue==null?void 0:ue.value.length)>0&&(fe==null?void 0:fe.value.length)>0&&(ge==null?void 0:ge.value.length)>0&&!s?w.className="verified-custd-mdl-startup-button-active":w.className="verified-custd-mdl-startup-button"},u=async()=>{var w,U,ue,fe,ge,Oe;if(!e.helperFunctions)P("No Helper Functions. Please include all helper functions in the EnterPinPage props."),n(!0);else{P(""),n(!1);let Ce=document.getElementById("verified-custd-mdl-otp-input-1"),Se=document.getElementById("verified-custd-mdl-otp-input-2"),Ee=document.getElementById("verified-custd-mdl-otp-input-3"),de=document.getElementById("verified-custd-mdl-otp-input-4");if(((w=Ce==null?void 0:Ce.value)==null?void 0:w.length)>0&&((U=Se==null?void 0:Se.value)==null?void 0:U.length)>0&&((ue=Ee==null?void 0:Ee.value)==null?void 0:ue.length)>0&&((fe=de==null?void 0:de.value)==null?void 0:fe.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let me=(Ce==null?void 0:Ce.value)+(Se==null?void 0:Se.value)+(Ee==null?void 0:Ee.value)+(de==null?void 0:de.value);await pn(e.vaultId,e.hashedVaultId,me,pe(me),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(y),(Oe=an)==null?void 0:Oe.includes((ge=e.origin)==null?void 0:ge.toLowerCase())).then(async d=>{var ve,Pe,Xe,lt,ct,ut,mt,ft,gt,ye,be,xe,we,je,Ke,Ge,We,$e,Je,tt,bt,xt,J,pt,ht,Dt,Tt,Lt,Bt,Vt,Ut,Ot,Mt,zt,Ht,jt,Kt,Gt,Wt,$t,Yt,Zt,Jt,qt,Xt,Qt;if(d&&!(d!=null&&d.inCompleteVault))e.setIsLoading(!1),B(d),M(d!=null&&d.pk&&e.action!=="eth_requestAccounts"?{address:d.address,channel:d.channel,chainId:d.chainId,pk:d==null?void 0:d.pk}:{address:e.regAddress,channel:d.channel,chainId:d.chainId}),e.action==="getPk"&&((Pe=(ve=e.reqVaultData)==null?void 0:ve.vaultId)==null?void 0:Pe.toLowerCase())===((Xe=e.vaultId)==null?void 0:Xe.toLowerCase())?(e.setIsLoading(!0),await vn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,pe(me),e.vaultId,me,e.encrptedPk,e.vaultChannel,Number(y)).then(async _e=>{var Te,Me;e.setIsLoading(!1),(Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Me=chrome==null?void 0:chrome.storage)!=null&&Me.local)&&localStorage&&localStorage.removeItem("myVault"),_e?E(!0):(P("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),n(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await yn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,pe(me),e.vaultId,me,e.encrptedPk,(lt=e.reqVaultData)==null?void 0:lt.vaultId,(ct=e.reqVaultData)==null?void 0:ct.hashedVaultId,(ut=e.reqVaultData)==null?void 0:ut.hashedVaultPin,(mt=e.reqTxData)==null?void 0:mt.id,Number(y)).then(async _e=>{var Te,Me,Rt,en;e.setIsLoading(!1),!((Te=e.reqTxData)!=null&&Te.newUser)&&((Me=chrome==null?void 0:chrome.storage)!=null&&Me.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((Rt=e.reqTxData)!=null&&Rt.newUser)&&!((en=chrome==null?void 0:chrome.storage)!=null&&en.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),_e?E(!0):(P("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."),n(!0))})):e.action==="completeRecovery"&&((gt=(ft=e.reqVaultData)==null?void 0:ft.vaultId)==null?void 0:gt.toLowerCase())===((ye=e.vaultId)==null?void 0:ye.toLowerCase())?(e.setIsLoading(!0),await bn(e.hashedVaultId,pe(me),e.vaultId,me,e.encrptedPk,(be=e.reqTxData)==null?void 0:be.id,e.vaultChannel,Number(y)).then(async _e=>{var Te,Me;e.setIsLoading(!1),_e?E(!0):((Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Me=chrome==null?void 0:chrome.storage)!=null&&Me.local)&&localStorage&&localStorage.removeItem("myVault"),P("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),n(!0))})):e.action==="eth_sendTransaction"&&((xe=e.encrptedPk)==null?void 0:xe.length)>0&&((we=d==null?void 0:d.pin)==null?void 0:we.length)>0&&e.signTxElement?(X({chainId:y,ky:xn.ethers.encodeBytes32String(d==null?void 0:d.pin),...e.txToSign}),x(!1),se(!0)):e.action==="invitation"&&((Ke=(je=e.reqVaultData)==null?void 0:je.vaultId)==null?void 0:Ke.toLowerCase())!==((Ge=e.vaultId)==null?void 0:Ge.toLowerCase())&&(($e=(We=e.reqVaultData)==null?void 0:We.coSignerId)==null?void 0:$e.toLowerCase())===((Je=e.vaultId)==null?void 0:Je.toLowerCase())?(P(""),n(!1),x(!0)):e.action==="invitation"&&((bt=(tt=e.reqVaultData)==null?void 0:tt.vaultId)==null?void 0:bt.toLowerCase())===((xt=e.vaultId)==null?void 0:xt.toLowerCase())?(P(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(J=e.reqVaultData)==null?void 0:J.coSignerId} account`),n(!0)):e.action==="invitation"&&((ht=(pt=e.reqVaultData)==null?void 0:pt.coSignerId)==null?void 0:ht.toLowerCase())!==((Dt=e.vaultId)==null?void 0:Dt.toLowerCase())?(P(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Tt=e.reqVaultData)==null?void 0:Tt.coSignerId} account`),n(!0)):e.action==="getPk"&&((Bt=(Lt=e.reqVaultData)==null?void 0:Lt.vaultId)==null?void 0:Bt.toLowerCase())!==((Vt=e.vaultId)==null?void 0:Vt.toLowerCase())?((Ut=chrome==null?void 0:chrome.storage)!=null&&Ut.local?await chrome.storage.local.remove("myVault"):!((Ot=chrome==null?void 0:chrome.storage)!=null&&Ot.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to fetch account details. please logout and login to: ${(Mt=e.reqVaultData)==null?void 0:Mt.vaultId} account`),n(!0)):e.action==="completeRecovery"&&((Ht=(zt=e.reqVaultData)==null?void 0:zt.vaultId)==null?void 0:Ht.toLowerCase())!==((jt=e.vaultId)==null?void 0:jt.toLowerCase())?((Kt=chrome==null?void 0:chrome.storage)!=null&&Kt.local?await chrome.storage.local.remove("myVault"):!((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to restore login access for this account. please logout and login to: ${(Wt=e.reqVaultData)==null?void 0:Wt.vaultId} account`),n(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)||e.action==="eth_requestAccounts"&&!(e!=null&&e.vaultAddress)?(P("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),n(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(P("Incomplete account login detected. Logout and try again later"),n(!0)):(P(""),n(!1),E(!0));else if(d&&(d!=null&&d.inCompleteVault)&&(d!=null&&d.pk)){let _e=await it(Number(y),d==null?void 0:d.pk);if(ee(_e.chainId),K(_e.address),re(_e.pk),te(_e.provider),ce(_e.signer),o(_e.vaultContract),S({vaultId:d==null?void 0:d.vaultId,hashedVaultId:d==null?void 0:d.hashedVaultId,vaultPin:d==null?void 0:d.pin,hashedVaultPin:pe(d==null?void 0:d.pin),vaultContract:_e.vaultContract}),(($t=d==null?void 0:d.channel)==null?void 0:$t.toLowerCase())==="sms"){let Te=(Zt=d==null?void 0:d.vaultId)==null?void 0:Zt.replace((Yt=d==null?void 0:d.vaultId)==null?void 0:Yt.slice(-10),""),Me=((qt=(Jt=d==null?void 0:d.vaultId)==null?void 0:Jt.slice(-10))==null?void 0:qt.slice(0,5))+" "+((Qt=(Xt=d==null?void 0:d.vaultId)==null?void 0:Xt.slice(-10))==null?void 0:Qt.slice(5));e.setSelectedCountry({area:Te==null?void 0:Te.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Me),e.setUserEmail("")}else e.setUserEmail(d==null?void 0:d.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else P(""),n(!0),e.setIsLoading(!1)})}}},q=async w=>{var ue,fe,ge,Oe,Ce,Se,Ee,de,me;let U=e.vaultId;if(((ue=b==null?void 0:b.pin)==null?void 0:ue.length)>0&&((fe=b==null?void 0:b.pk)==null?void 0:fe.length)>0&&((ge=e==null?void 0:e.reqVaultData)!=null&&ge.hashedVaultId)&&((Oe=e.reqVaultData)!=null&&Oe.hashedVaultPin)&&U&&((Ce=e.helperFunctions)!=null&&Ce.sendCreatorAcceptance)&&((Se=e.helperFunctions)!=null&&Se.sendCreatorRejection)){e.setIsLoading(!0);let d=b.pin,ve=pe(U),Pe=pe(d);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ve,Pe,(Ee=e==null?void 0:e.reqVaultData)==null?void 0:Ee.hashedVaultId,(de=e.reqVaultData)==null?void 0:de.hashedVaultPin,(me=e==null?void 0:e.reqVaultData)==null?void 0:me.vaultId,U,w,null,b.pk,Number(y)).then(Xe=>{e.setIsLoading(!1),Xe&&(O(w),V(!0))})}};return g.default.createElement(g.default.Fragment,null,r&&!L&&!G&&g.default.createElement(g.default.Fragment,null,!m&&g.default.createElement("div",{className:"verified-custd-mdl-startup-language"},g.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.default.createElement(Fe,{sliderCount:[1],currentSlider:"0"}),g.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},g.default.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),g.default.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},g.default.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",g.default.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",g.default.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),g.default.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&g.default.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),g.default.createElement("div",{className:"verified-custd-mdl-otp-input-container"},g.default.createElement("div",{className:"verified-custd-mdl-otp-input-group"},g.default.createElement("input",{onInputCapture:w=>{var U;w.target.value=(U=w.target.value)==null?void 0:U.replace(/\D/g,""),n(!1)},onInput:w=>{ne(w.target),p()},onKeyDown:w=>{w.key==="Backspace"&&w.target.value===""&&Y(w)},onPaste:w=>{ae(w)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),g.default.createElement("input",{onInputCapture:w=>{var U;w.target.value=(U=w.target.value)==null?void 0:U.replace(/\D/g,""),n(!1)},onInput:w=>{ne(w.target),p()},onKeyDown:w=>{w.key==="Backspace"&&w.target.value===""&&Y(w)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),g.default.createElement("input",{onInputCapture:w=>{var U;w.target.value=(U=w.target.value)==null?void 0:U.replace(/\D/g,""),n(!1)},onInput:w=>{ne(w.target),p()},onKeyDown:w=>{w.key==="Backspace"&&w.target.value===""&&Y(w)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),g.default.createElement("input",{onInputCapture:w=>{var U;w.target.value=(U=w.target.value)==null?void 0:U.replace(/\D/g,""),n(!1)},onInput:w=>{ne(w.target),p()},onKeyDown:w=>{w.key==="Backspace"&&w.target.value===""&&Y(w)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),g.default.createElement("div",{className:"verified-custd-mdl-otp-timer"},s&&C===""&&g.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(C==null?void 0:C.length)>0&&g.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},C),!s&&g.default.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!a&&g.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!0),src:_.pinShow,alt:"show pin icon"}),a&&g.default.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!1),src:_.pinHide,alt:"hide pin icon"})))),!c&&g.default.createElement("div",{style:{height:"100px"}}),g.default.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},g.default.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},g.default.createElement(un,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),g.default.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async w=>{if(w.target.className.includes("verified-custd-mdl-startup-button")&&w.target.className!=="verified-custd-mdl-startup-button")w.target.className="verified-custd-mdl-startup-button-click",await u();else{let U=document.getElementsByClassName("verified-custd-mdl-startup-button-active");U.length>0&&(U[0].className="verified-custd-mdl-startup-button-click",await u())}},className:"verified-custd-mdl-startup-button"},"Proceed")))),m&&g.default.createElement(Ue,{messageTosend:e.action==="getPk"?{type:"closePopup",key:"",value:""}:e.action==="signRecovery"?{type:"closePopup",key:"",value:""}:e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:D},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: ${(Q=e.reqVaultData)==null?void 0:Q.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"||e.action==="eth_requestAccounts"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `,showButton:e.action==="completeRecovery",buttonText:e.action==="completeRecovery"?"Go To Dashboard":"",setShowDasboard:e.setShowDashboard,actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:""})),r&&L&&!G&&g.default.createElement(g.default.Fragment,null,!A&&g.default.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},g.default.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.default.createElement(Fe,{sliderCount:[1,2,3],currentSlider:"1"}),g.default.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.default.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},g.default.createElement("b",null,(oe=e.reqVaultData)==null?void 0:oe.vaultId)," has requested you to be a Co-Signer"))),g.default.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!k&&g.default.createElement(g.default.Fragment,null,g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),g.default.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},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."," "),g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.default.createElement("img",{src:_.pkicon,alt:"icon"})),g.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",g.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.default.createElement("img",{src:_.encryptedIcon,alt:"icon"})),g.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",g.default.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.default.createElement("button",{onClick:()=>{l(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),g.default.createElement("button",{onClick:async()=>{await q(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),k&&g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},g.default.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},g.default.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),g.default.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",g.default.createElement("b",null,(Z=e.reqVaultData)==null?void 0:Z.vaultId),", you will not be able to reset the PIN for them.")),g.default.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.default.createElement("button",{onClick:async()=>{await q(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),g.default.createElement("button",{onClick:()=>{l(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),A&&g.default.createElement(Ue,{messageTosend:{type:"getPk",key:"vaultData",value:b},customTextHeader:"Successful",customTextFooter:i?`You have been added as a Co-Signer for ${(R=e.reqVaultData)==null?void 0:R.vaultId}`:`You rejected Co-signer reject from ${(he=e.reqVaultData)==null?void 0:he.vaultId}`})),r&&!L&&G&&g.default.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ie}),!r&&g.default.createElement("h3",null,"Preparing Modules..."))},et=Hn;var jn=e=>{var ne,ae;let[r,h]=(0,$.useState)(e.fontsLoaded||!1),[s,n]=(0,$.useState)(e.showLogoPage||!1),[a,N]=(0,$.useState)([]),[c,v]=(0,$.useState)("2"),[m,E]=(0,$.useState)(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[b,B]=(0,$.useState)(""),[D,M]=(0,$.useState)(""),[y,I]=(0,$.useState)(!1),[z,T]=(0,$.useState)(""),[L,x]=(0,$.useState)(""),[A,V]=(0,$.useState)(""),[k,l]=(0,$.useState)(""),[i,O]=(0,$.useState)(null),[C,P]=(0,$.useState)(null),[G,se]=(0,$.useState)(!1),{setChainId:ie,setAddress:X,setPk:ee,setProvider:K,setSigner:re,setVaultContract:te,setVaultData:ce,vaultData:o,chainId:S}=Le();return(0,$.useEffect)(()=>{let Y=()=>{let p=at(document);h(p)};e.fontsLoaded||Y()},[]),(0,$.useEffect)(()=>{(async()=>{var q,Q;let p;(q=chrome==null?void 0:chrome.storage)!=null&&q.local?p=await new Promise(oe=>{chrome.storage.local.get(["lastPk"],Z=>{oe(Z.lastPk)})}):!((Q=chrome==null?void 0:chrome.storage)!=null&&Q.local)&&localStorage&&(p=localStorage.getItem("lastPk"));let u=await it(e.chainId,p&&(p==null?void 0:p.length)>0?p:void 0);ie(u.chainId),X(u.address),ee(u.pk),K(u.provider),re(u.signer),te(u.vaultContract),ce(u.vaultData)})()},[]),(0,$.useEffect)(()=>{(0,wn.debounce)(()=>{n(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),(0,$.useEffect)(()=>{(()=>{let p=Ct.map(u=>{if(u)return{name:u==null?void 0:u.name,countryName:u==null?void 0:u.name,officialName:u==null?void 0:u.name,currencySymbol:u==null?void 0:u.currency,currencyName:u==null?void 0:u.currency,officialCurrencySymbol:u==null?void 0:u.currency,countryCode:u==null?void 0:u.code,flag:u==null?void 0:u.flag,continent:u==null?void 0:u.continent,phone_code:u==null?void 0:u.phone_code,code:u==null?void 0:u.code}}).flat();N(p==null?void 0:p.filter(u=>u!==void 0))})()},[]),$.default.createElement($.default.Fragment,null,r&&s&&e.logoPageElement&&$.default.createElement($.default.Fragment,null," ",e.logoPageElement),r&&!s&&$.default.createElement($.default.Fragment,null,c==="2"&&$.default.createElement(At,{setStep:v,setIsLoading:e.setIsLoading,setUserNumberFmt:B,userNumberFmt:b,setUserEmail:M,userEmail:D,setSelectedCountry:E,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),c==="3"&&$.default.createElement(Pt,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:b,setUserNumberFmt:B,setUserEmail:M,userEmail:D,selectedCountry:m,helperFunctions:e.helperFunctions,setIsExistingUser:se}),c==="4"&&$.default.createElement(rt,{setStep:v,setIsLoading:e.setIsLoading,setShowSuccessBtn:I,setSuccessBtnText:T,setSuccessBtnNeutText:x,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:P,userNumberFmt:b,userEmail:D,selectedCountry:m,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:V,setActionFooterText:l,helperFunctions:e.helperFunctions,isExistingUser:G}),c==="5"&&$.default.createElement(Ue,{setStep:v,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:y,buttonText:z,buttonNeutText:L,buttonFunc:i,buttonNeutFunc:C,actionHeaderText:A,actionFooterText:k}),c==="6"&&$.default.createElement(dt,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:b,userEmail:D,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),c==="7"&&e.action===""&&$.default.createElement(Ue,{action:e.action,setStep:v,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="7"&&e.action!==""&&$.default.createElement(Ue,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:S}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="8"&&e.dashbordElement&&$.default.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),c==="8"&&!e.dashbordElement&&$.default.createElement($.default.Fragment,null),c==="0"&&$.default.createElement(et,{fontsLoaded:r,vaultId:o==null?void 0:o.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:o==null?void 0:o.hashedVaultId,encrptedPk:o==null?void 0:o.pk,vaultAddress:o==null?void 0:o.address,vaultChannel:o==null?void 0:o.channel,actionText:yt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(S||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map(Y=>(e.txData[Y]=decodeURIComponent(e.txData[Y]),e.txData))[((ne=Object.keys(e.txData))==null?void 0:ne.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:M,setUserNumberFmt:B,setSelectedCountry:E,enablePhone:e.enablePhone})),!r&&$.default.createElement("h3",null,"Preparing Modules..."))},_t=jn;var Nn=require("framer-motion");var Kn=e=>{var ee,K,re,te,ce,o,S,ne,ae,Y,p,u,q,Q,oe,Z,R,he,w,U,ue,fe,ge,Oe,Ce,Se,Ee;let[r,h]=(0,H.useState)(!0),[s,n]=(0,H.useState)(null),[a,N]=(0,H.useState)({}),[c,v]=(0,H.useState)({}),[m,E]=(0,H.useState)(!1),[b,B]=(0,H.useState)(!1),[D,M]=(0,H.useState)(!1),[y,I]=(0,H.useState)(!1),[z,T]=(0,H.useState)(""),[L,x]=(0,H.useState)([]),[A,V]=(0,H.useState)(""),[k,l]=(0,H.useState)(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=(0,H.useState)(""),[C,P]=(0,H.useState)(""),[G,se]=(0,H.useState)(null),[ie,X]=(0,H.useState)(null);return(0,H.useEffect)(()=>{(()=>{let me=at(document);h(me)})()},[]),(0,H.useEffect)(()=>{(()=>{var me,d;if((me=chrome==null?void 0:chrome.storage)!=null&&me.local)chrome.storage.local.get("myVault",ve=>{var Pe;ve.myVault&&((Pe=JSON.parse(ve.myVault))!=null&&Pe.vaultId)?(N(JSON.parse(ve.myVault)),n(!0)):n(!1)});else if(!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage){let ve=JSON.parse(localStorage.getItem("myVault"));ve&&(ve!=null&&ve.vaultId)?(N(ve),n(!0)):n(!1)}else n(!1)})()},[]),(0,H.useEffect)(()=>{(()=>{let me=Ct.map(d=>{if(d)return{name:d==null?void 0:d.name,countryName:d==null?void 0:d.name,officialName:d==null?void 0:d.name,currencySymbol:d==null?void 0:d.currency,currencyName:d==null?void 0:d.currency,officialCurrencySymbol:d==null?void 0:d.currency,countryCode:d==null?void 0:d.code,flag:d==null?void 0:d.flag,continent:d==null?void 0:d.continent,phone_code:d==null?void 0:d.phone_code,code:d==null?void 0:d.code}}).flat();x(me==null?void 0:me.filter(d=>d!==void 0))})()},[]),(0,H.useEffect)(()=>{function de(){var d,ve,Pe;let me=document.querySelector("#verified-custd-out-cont");me?(se((ve=(d=me.getBoundingClientRect())==null?void 0:d.height)==null?void 0:ve.toString()),se((Pe=me.scrollHeight)==null?void 0:Pe.toString())):(se(null),X(null))}return de(),window.addEventListener("resize",de),()=>window.removeEventListener("resize",de)},[]),H.default.createElement(H.default.Fragment,null,r&&H.default.createElement(Nt,null,H.default.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},s===null&&e.delayPageElement&&H.default.createElement(H.default.Fragment,null,e.delayPageElement," "),s===null&&!e.delayPageElement&&H.default.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),m&&H.default.createElement("div",{style:G&&ie&&window&&Number(ie)>window.innerHeight?{height:`${Number(G)+Number(ie)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},H.default.createElement(Nn.motion.img,{height:"50px",width:"50px",src:_.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),s!==null&&H.default.createElement(H.default.Fragment,null,!s&&H.default.createElement(_t,{fontsLoaded:r,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((ee=e.reqVaultData)==null?void 0:ee.vId)||((K=e.reqVaultData)==null?void 0:K.vaultId)),hashedVaultId:pe(decodeURIComponent(((re=e.reqVaultData)==null?void 0:re.vId)||((te=e.reqVaultData)==null?void 0:te.vaultId))),hashedVaultPin:decodeURIComponent(((ce=e.reqVaultData)==null?void 0:ce.vPh)||((o=e.reqVaultData)==null?void 0:o.hashedVaultPin)),coSignerId:decodeURIComponent((S=e.reqVaultData)==null?void 0:S.cId)}:null,txData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[((ne=Object.keys(e.txData))==null?void 0:ne.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:n,setIsLoading:E,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),s&&!b&&!D&&H.default.createElement(et,{fontsLoaded:r,setisOnboard:n,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,vaultChannel:a==null?void 0:a.channel,regAddress:a==null?void 0:a.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||yt[e.action],setIsLoading:E,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((Y=e.reqVaultData)==null?void 0:Y.vId)||((p=e.reqVaultData)==null?void 0:p.vaultId)),hashedVaultId:pe(decodeURIComponent(((u=e.reqVaultData)==null?void 0:u.vId)||((q=e.reqVaultData)==null?void 0:q.vaultId))),hashedVaultPin:decodeURIComponent(((Q=e.reqVaultData)==null?void 0:Q.vPh)||((oe=e.reqVaultData)==null?void 0:oe.hashedVaultPin)),coSignerId:decodeURIComponent((Z=e.reqVaultData)==null?void 0:Z.cId)}:null,reqTxData:e.txData?(he=Object.keys(e.txData))==null?void 0:he.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[((R=Object.keys(e.txData))==null?void 0:R.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:l,enablePhone:e.enablePhone}),s&&b&&D&&H.default.createElement(et,{fontsLoaded:r,setisOnboard:n,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,regAddress:a==null?void 0:a.regAddress,vaultChannel:a==null?void 0:a.channel,origin:e.origin,title:e.title,actionText:e.actionText||yt[e.action],setIsLoading:E,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((w=e.reqVaultData)==null?void 0:w.vId)||((U=e.reqVaultData)==null?void 0:U.vaultId)),hashedVaultId:pe(decodeURIComponent(((ue=e.reqVaultData)==null?void 0:ue.vId)||((fe=e.reqVaultData)==null?void 0:fe.vaultId))),hashedVaultPin:decodeURIComponent(((ge=e.reqVaultData)==null?void 0:ge.vPh)||((Oe=e.reqVaultData)==null?void 0:Oe.hashedVaultPin)),coSignerId:decodeURIComponent((Ce=e.reqVaultData)==null?void 0:Ce.cId)}:null,reqTxData:e.txData?(Ee=Object.keys(e.txData))==null?void 0:Ee.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[((Se=Object.keys(e.txData))==null?void 0:Se.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:l,enablePhone:e.enablePhone}),s&&!b&&D&&A===""&&H.default.createElement(dt,{setStep:V,setIsLoading:E,userNumberFmt:i,userEmail:C,selectedCountry:k,allCountries:L,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),s&&!b&&D&&A==="7"&&H.default.createElement(Ue,{action:e.action,setStep:V,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),s&&!b&&D&&A==="8"&&e.dashbordElement&&H.default.createElement(e.dashbordElement,{setIsLoading:E}),s&&!b&&D&&A==="8"&&!e.dashbordElement&&H.default.createElement(H.default.Fragment,null),s&&!D&&b&&!y&&e.dashbordElement&&H.default.createElement(e.dashbordElement,{setIsLoading:E,setShowResetPin:I,setAction:T,setUserNumberFmt:O,setUserEmail:P,setSelectedCountry:l,setVaultData:v,initWalletAndContract:it}),s&&!D&&b&&!y&&!e.dashbordElement&&H.default.createElement(H.default.Fragment,null),s&&!D&&b&&y&&H.default.createElement(rt,{action:"reset-pin",setStep:V,setIsLoading:E,userNumberFmt:i,userEmail:C,vaultData:c,selectedCountry:k,helperFunctions:e.helperFunctions})))),!r&&H.default.createElement("h3",null,"Preparing Modules..."))},Cn=Kn;0&&(module.exports={AddCoSignersPage,ContactPage,CreatePinPage,EnterPinPage,FTUPage,OTPPage,VaultContextProvider,VerifiedCustody,decryptString,encryptString,hashTheString});
1
+ var hn=Object.create;var dt=Object.defineProperty;var Kn=Object.getOwnPropertyDescriptor;var yn=Object.getOwnPropertyNames;var vn=Object.getPrototypeOf,An=Object.prototype.hasOwnProperty;var vt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Pn=(e,t)=>{for(var i in t)dt(e,i,{get:t[i],enumerable:!0})},Vt=(e,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of yn(t))!An.call(e,l)&&l!==i&&dt(e,l,{get:()=>t[l],enumerable:!(a=Kn(t,l))||a.enumerable});return e};var fe=(e,t,i)=>(i=e!=null?hn(vn(e)):{},Vt(t||!e||!e.__esModule?dt(i,"default",{value:e,enumerable:!0}):i,e)),Ln=e=>Vt(dt({},"__esModule",{value:!0}),e);var en=vt((fi,Gn)=>{Gn.exports="./Roboto-Regular-UUBD26YO.ttf"});var tn=vt((gi,Mn)=>{Mn.exports="./Manrope-Regular-33576HBZ.ttf"});var nn=vt((mi,Fn)=>{Fn.exports="./Hind-Regular-R5KOYWFC.ttf"});var jn={};Pn(jn,{AddCoSignersPage:()=>et,ContactPage:()=>pt,CreatePinPage:()=>ze,EnterPinPage:()=>We,FTUPage:()=>Kt,OTPPage:()=>ht,VaultContextProvider:()=>ut,VerifiedCustody:()=>kn,decryptString:()=>He,decryptWithPasskey:()=>Je,encryptString:()=>Ie,encryptWithPasskey:()=>Oe,getPlatformComponents:()=>ct,hashTheString:()=>ne,initPlatform:()=>lt,loadAllGoogleFonts:()=>ye,loadAllGoogleFontsRN:()=>ve,publicKeyCredentialRequestOptions:()=>Qe});module.exports=Ln(jn);function bn(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}bn(`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 Ge=fe(require("react"));var Zn=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Dt=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],It=["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"],Ht="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ot={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},nt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},it={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"},N={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"},st=[{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 Jt={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 At=!1,Pt=!1,Lt,bt,_t,xt,Nt,St,Xt,wt,Rt,Ut,Qt,Yt,Wt,lt=async()=>{if(Pt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),i=await import("events");Rt=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");Wt=await(await import("react-native-passkey")).Passkey,Ut=l.default,Qt=i.EventEmitter;let L=({className:A,id:m,...C})=>C,d=A=>m=>Ge.default.createElement(A,{...L(m)});Lt=d(t.View),bt=d(t.Text),_t=d(t.Image),xt=d(t.ScrollView),Nt=t.StyleSheet,St=d(t.TextInput),Xt=d(t.TouchableOpacity),wt=d(t.ActivityIndicator),Yt=t.StyleSheet.create(Jt),At=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Lt=({onPress:i,...a})=>Ge.default.createElement("div",{onClick:i,...a}),bt=({onPress:i,...a})=>Ge.default.createElement("span",{onClick:i,...a}),_t=({onPress:i,source:a,...l})=>Ge.default.createElement("img",{onClick:i,...l,src:a?.uri}),xt=i=>Ge.default.createElement("div",{style:{overflowY:"auto",...i.style}},i.children),Nt={create:i=>i},Yt={},St=(0,Ge.forwardRef)(({onChangeText:i,onInput:a,onKeyDown:l,onKeyPress:K,value:L,keyboardType:d,secureTextEntry:A,onSubmitEditing:m,blurOnSubmit:C,placeholderTextColor:n,...o},x)=>Ge.default.createElement("input",{...o,ref:x,value:L,onInput:p=>{a?.(p),i?.(p.target.value)},onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),m?.(p)),l?.(p),K?.(p)},type:A?"password":d==="numeric"||d==="number-pad"?"tel":"text",onChange:()=>{}})),Xt=({onPress:i,style:a,...l})=>Ge.default.createElement("button",{style:{outline:"none",border:"none",...a},onClick:i,...l},l.children),wt=({color:i,size:a,...l})=>Ge.default.createElement(t.img,{height:"50px",width:"50px",src:N.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),At=!1,console.log("Web platform initialized.")}Pt=!0},ct=()=>{if(!Pt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:At,View:Lt,Text:bt,Image:_t,ScrollView:xt,StyleSheet:Nt,TextInput:St,TouchableOpacity:Xt,ActivityIndicator:wt,Font:Rt,AsyncStorage:Ut,EventEmitter:Qt,styles:Yt,rnPasskey:Wt}};var w=fe(require("react"));var Pe=fe(require("react")),jt=(0,Pe.createContext)(void 0),ut=({children:e})=>{let[t,i]=(0,Pe.useState)(null),[a,l]=(0,Pe.useState)(null),[K,L]=(0,Pe.useState)(null),[d,A]=(0,Pe.useState)(null),[m,C]=(0,Pe.useState)(null),[n,o]=(0,Pe.useState)(null),[x,p]=(0,Pe.useState)(null);return Pe.default.createElement(jt.Provider,{value:{chainId:t,pk:a,address:K,signer:d,provider:m,vaultContract:n,vaultData:x,setChainId:i,setPk:l,setAddress:L,setSigner:A,setProvider:C,setVaultContract:o,setVaultData:p}},e)},Xe=()=>{let e=(0,Pe.useContext)(jt);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};var $=fe(require("react")),Cn=require("lodash");var Fe=require("@verified-network/verified-sdk");var Le={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:N.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:N.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:N.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:N.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:N.baseIcon}};var Mt=require("@noble/hashes/pbkdf2"),rt=require("@noble/hashes/sha256"),Me=require("@noble/hashes/utils"),Ft=require("@noble/ciphers/aes"),gt=fe(require("crypto-js")),Gt=require("react-toastify"),je=fe(require("react")),we=require("viem/chains"),an=require("viem");var he=require("viem");var qt={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 Zt={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 Nn="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",Sn="0x00000000D3254452a909E4eeD47455Af7E27C289",zt="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",Xn=0n,at=e=>{let t=e.module||e.address,i=e.initData||e.data;if(!t||!i)throw new Error("Module or data is missing");return{module:t,data:i}},wn=e=>(0,he.encodeAbiParameters)([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,(0,he.encodeFunctionData)({abi:qt.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),Yn=e=>{let{deInitData:t="0x",type:i="validator",signer:a,data:l="0x",module:K,...L}=e;return{deInitData:t,data:l,module:K,address:K,signer:a,type:i,getStubSignature:async()=>zt,signUserOpHash:async d=>await a.signMessage({message:{raw:d}}),signMessage:async d=>await a.signMessage({message:d}),...L}},En=e=>Yn({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:he.zeroAddress,module:he.zeroAddress,type:"validator",getStubSignature:async()=>zt}),Tn=()=>({module:he.zeroAddress,data:he.zeroHash}),ft=async(e,t,i)=>{let a=(0,he.createPublicClient)({chain:e,transport:t}),l=En({signer:i}),K=[],L=[],d=Tn(),A=[],m=he.zeroAddress,C=Nn,n=Sn,o=[],x=wn({defaultValidator:at(l),validators:K.map(at),executors:L.map(at),hook:at(d),fallbacks:A.map(at),registryAddress:m,bootStrapAddress:n,prevalidationHooks:o}),p=(0,he.pad)((0,he.toHex)(Xn),{size:32}),v=await a.readContract({address:C,abi:Zt.abi,functionName:"computeAccountAddress",args:[x,p]});if(v?.toLowerCase()!==he.zeroAddress?.toLowerCase())return v};var ye=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return It.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=a,e.head.appendChild(K)}}),!0},ve=async e=>(await e?.loadAsync({Roboto:en(),Manrope:tn(),Hind:nn()}),!0),qe=async(e,t)=>{try{let i;if(t)i=new Fe.VerifiedWallet(t);else{let o=Fe.VerifiedWallet.generateMnemonic();i=Fe.VerifiedWallet.importWallet(o)}let a=Fe.contractAddress,l=e&&a[e]?.Custody&&Le[e]?.rpcUrls?.length>0?e:8453,K=Le[l]?.rpcUrls[0],L=i.setProvider(new Fe.Provider(K)),d=i.privateKey,A=new Fe.Custody(L,a[l]?.Custody),m=L,C=[we.base,we.mainnet,we.gnosis,we.polygon,we.sepolia,we.baseSepolia].find(o=>Number(o?.id)===Number(l)),n=await ft(C,(0,an.http)(),m);return{chainId:l,address:n,pk:d,signer:L,provider:K,vaultContract:A,vaultData:null}}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",i),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},ne=e=>{let t=e.toLowerCase(),i=(0,rt.sha256)((0,Me.utf8ToBytes)(t));return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},De=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),i=(0,rt.sha256)(t);return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},Ie=(e,t)=>gt.default.AES.encrypt(e,t).toString(),He=(e,t)=>{var i=gt.default.AES.decrypt(e,t),a=i.toString(gt.default.enc.Utf8);return a},Bn=(e,t)=>je.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},je.default.createElement("img",{style:{marginLeft:"5px"},src:N.errorAlert,alt:""}),je.default.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},je.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),je.default.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var be=(e,t)=>(Gt.toast.dismiss(),Gt.toast.error(Bn(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 re=(e,t,i=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*i:(t.endsWith("px"),a)},$n=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 i=t.length/2,a=new Uint8Array(i);for(let l=0;l<i;l++){let K=t.substr(l*2,2);a[l]=parseInt(K,16)}return a},Bt=(e,t,i)=>{let a=$n(i);return{challenge:(0,Me.randomBytes)(32),rp:{name:e},user:{id:a,name:t,displayName:t},pubKeyCredParams:[{alg:-7,type:"public-key"},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"preferred"},timeout:6e4,attestation:"direct"}},Qe=()=>({challenge:(0,Me.randomBytes)(32),timeout:6e4,userVerification:"preferred"}),Et=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Tt=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),i=atob(t);return new Uint8Array([...i].map(a=>a.charCodeAt(0)))},Oe=async(e,t,i)=>{let a=t instanceof Uint8Array?t:new Uint8Array(t),l=(0,Me.randomBytes)(8),K=Array.from(l).map(o=>o.toString(16).padStart(2,"0")).join(""),L=ne(`${i}:${K}`),d=(0,Me.utf8ToBytes)(L),A=(0,Me.randomBytes)(12),m=(0,Mt.pbkdf2)(rt.sha256,a,d,{c:3e5,dkLen:32}),n=(0,Ft.gcm)(m,A).encrypt((0,Me.utf8ToBytes)(e));return[Et(d),Et(A),Et(n)].join(".")},Je=async(e,t)=>{let[i,a,l]=e.split(".");if(!i||!a||!l)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),L=Tt(i),d=Tt(a),A=Tt(l),m=(0,Mt.pbkdf2)(rt.sha256,K,L,{c:3e5,dkLen:32}),C=(0,Ft.gcm)(m,d);try{let n=C.decrypt(A);return(0,Me.bytesToUtf8)(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};var H=fe(require("react"));var $t=fe(require("react")),Vn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,o=Number(e.currentSlider),x=e.sliderCount?.length||0,p=x>0?100/x:0;return $t.default.createElement(i,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((v,y)=>{let k=y<=o;return $t.default.createElement(i,{key:y,className:k?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&k?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${p}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${p}%`}:!t&&k?{width:`${p}%`}:{width:`${p}%`}})}))},_e=Vn;var me=fe(require("react"));var Dn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=(0,me.useState)(null),p=h=>{if(h===""){x(null);return}let f=e.searchContent.filter(g=>{let u=g?.name?.toLowerCase(),P=h.toLowerCase();if(u?.includes(P))return g.searched=P,g.nameArray=g.name.split(""),g});x(f),e.handleButtonDisplay()},v=(h,f)=>{e.type==="area-code"?e.setSelected({area:h.phone_code,flag:h.flag,name:h.name}):e.type==="language"&&e.setSelected(h.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(h,f)=>h.map((g,u)=>{let P=f.includes(g.toLowerCase());return me.default.createElement(a,{key:u,style:P?n.boldText:n.fadedText},g)}),k=(h,f=!1)=>h.map((g,u)=>{let P=t?!1:window?.location?.search===`?${u}`,G=e.selected&&e.selected.length>0,Z=e.type==="language"&&P?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return me.default.createElement(d,{key:u,className:Z,style:n.resultItem,onPress:()=>v(g,u)},me.default.createElement(i,{style:n.resultInner},me.default.createElement(l,{source:{uri:e.type==="language"?g.icon:g.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),me.default.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},g.nameArray&&g.searched?y(g.nameArray,g.searched):g.name,e.type==="language"&&g.label&&me.default.createElement(a,{style:g.searched?.includes(g.label.toLowerCase())?{}:n.fadedText},` (${g.label})`))),e.type==="language"&&G&&P&&me.default.createElement(l,{source:{uri:N.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return me.default.createElement(i,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},me.default.createElement(i,{className:"verified-custd-mdl-st-language-content"},e.headerText&&me.default.createElement(a,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),me.default.createElement(i,{className:"verified-custd-mdl-mobille-startup-search-box-container"},me.default.createElement(i,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},me.default.createElement(l,{source:{uri:N.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),me.default.createElement(L,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:p,onFocus:()=>e.type==="language"&&e.setSelected("")})),me.default.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},me.default.createElement(i,{className:"verified-custd-mdl-ms-search-content-container"},(o||e.searchContent)?.length>0&&k(o||e.searchContent))))))},mt=Dn;var Ze=fe(require("react"));var rn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform;return Ze.default.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Ze.default.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",Ze.default.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},on=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,o=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&&C&&(await C.removeItem("myVault"),await C.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return Ze.default.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:re(t,"0.7rem")}:{fontSize:re(t,"0.7rem")}},"Want to access a different account? Click"," ",Ze.default.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:o},"Logout")," ","to logout and login/create another account")};var In=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=(0,H.useState)(e.fontsLoaded||!1),[p,v]=(0,H.useState)(""),[y,k]=(0,H.useState)(""),[h,f]=(0,H.useState)(!1),[g,u]=(0,H.useState)(""),[P,G]=(0,H.useState)(!1),{pk:Z,vaultContract:se,address:z}=Xe();(0,H.useEffect)(()=>{let q=async()=>{if(t)m&&await ve(m),x(!0);else{let R=ye(document);x(R)}};e.fontsLoaded||q()},[]);let j=()=>{e.selectedCountry.area&&p.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(u(""),G(!0)):(u(""),G(!1))},ae=async()=>{if(e.userEmail===""&&p===""){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 q=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${p}`,R=e.userEmail?.length>0?"email":"sms";if(q&&R&&Z&&se||q&&R&&e.noContract){e.setIsLoading(!0);try{let ie=await e.helperFunctions.sendOTPVerification(z,R,q);e.setIsLoading(!1),ie?(u(""),e.setStep("3")):(u(R==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),be("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 H.default.createElement(K,{style:{width:"100%",height:"100%"}},o&&H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},H.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},H.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},H.default.createElement(d,{onPress:()=>f(!h),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},H.default.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),H.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),H.default.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:h?{uri:N.arrowUp}:{uri:N.arrowDown}})),H.default.createElement(L,{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:q=>{let R=q.replace(/\D/g,"");k(q),v(R);let ie="";for(let oe=0;oe<R?.length;oe++)ie+=R[oe],(oe+1)%5===0&&oe+1<R?.length&&(ie+=" ");e.setUserNumberFmt(ie),j()}})),h&&H.default.createElement(mt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:j,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:h,setSearchActive:f,contentMaxHeight:"300",contentbottomMargin:"300"}),p.length!==10&&y.length>10&&!g&&H.default.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!h&&H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},H.default.createElement(L,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:q=>{e.setUserEmail(q),e.setUserNumberFmt(""),v(""),k(""),j()}}),g&&e.userEmail.length>0&&H.default.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},g))),!h&&H.default.createElement(i,{style:{height:"80px"}}),H.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},H.default.createElement(rn,{platform:e.platform}),H.default.createElement(d,{style:t&&P?{...n.verifiedCustdMdlStartupButtonActive}:t&&!P?{...n.verifiedCustdMdlStartupButton}:{},className:P?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ae},H.default.createElement(a,null,"Get OTP"))))),!o&&H.default.createElement(a,null,"Loading Module Fonts..."))},pt=In;var Y=fe(require("react"));var xe=require("ethers"),Ct=require("shamir-secret-sharing"),ee=require("@verified-network/verified-sdk");var Ye=require("viem/chains"),dn=require("viem");var sn=async(e,t)=>{try{return await e.getCreator(t).then(async i=>i?.status===0&&i?.response?.result[0]===!0)}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",i),null}},ln=async(e,t,i,a,l,K,L,d,A,m,C,n,o,x,p)=>{try{let v={vaultId:a,hashedVaultId:l,vaultPin:K,hashedVaultPin:L,vaultContract:C,rawId:p};return await C.getCreator(l).then(async y=>{if(y?.status===0&&y?.response?.result[0]===!0)try{let k;if(p)k=await Oe(A,p,K);else{let f=(0,xe.encodeBytes32String)(K);k=Ie(A,f)}let h;if(chrome?.storage?.local?h=await new Promise(f=>{chrome.storage.local.get(["lastPk"],g=>{f(g.lastPk)})}):!chrome?.storage?.local&&localStorage&&(h=localStorage.getItem("lastPk")),h&&h?.length>0)return await C.confirmParticipant(l,l,!0).then(async f=>{if(f?.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 u=await new ee.VerifiedWallet(A).getAddress(),P;if(p)P=await Oe(A,p,K);else{let G=(0,xe.encodeBytes32String)(K);P=Ie(A,G)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:m,regAddress:u,vaultId:a,hashedVaultId:l,pk:P,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:m,regAddress:u,vaultId:a,hashedVaultId:l,pk:P,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({address:m,regAddress:u,vaultId:a,hashedVaultId:l,pk:P,channel:d})),v}catch(g){return be("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",g),!1}}else return be("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: ",f),!1});if(n==="invitation")return{isExisting:!0,...v};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:a,hashedVaultId:l,pk:k,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:a,hashedVaultId:l,pk:k,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:a,hashedVaultId:l,pk:k,channel:d}));let f=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"?o:{vaultId:a,hashedVaultId:l,hashedVaultPin:L},txData:x}});else if(!e&&!chrome?.runtime?.sendMessage){let g=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"?o:{vaultId:a,hashedVaultId:l,hashedVaultPin:L},txData:x}}});f?.dispatchEvent(g)}else if(e&&i){let g=new i,u=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",P={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?o:{vaultId:a,hashedVaultId:l,hashedVaultPin:L},txData:x};g.emit(u,P)}}return n==="getPk"?{vaultId:a,hashedVaultId:l,pk:k,channel:d,shouldStop:!0}:{shouldStop:!0}}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",k),be("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(y?.status===0&&y?.response?.result[0]!==!0)return await C.createVault(l).then(async k=>k?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:A}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",A):e&&t&&await t.setItem("lastPk",A),await C.confirmParticipant(l,l,!0).then(async h=>{if(h?.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 g=await new ee.VerifiedWallet(A).getAddress(),u;if(p)u=await Oe(A,p,K);else{let P=(0,xe.encodeBytes32String)(K);u=Ie(A,P)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:l,pk:u,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:l,pk:u,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:l,pk:u,channel:d})),v}catch(f){return be("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",f),!1}}else return be("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: ",h),!1})):(be("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(v){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",v),be("Oops something went wrong","Error while creating pin. Try again later"),!1}},cn=async(e,t,i,a,l,K,L,d,A,m,C)=>{try{let n;if(C)n=await Je(l,C);else{let o=(0,xe.encodeBytes32String)(i);n=He(l,o)}if(n){let o=ee.contractAddress,x=new ee.VerifiedWallet(n),p=d&&o[d]?.Custody&&Le[d]?.rpcUrls?.length>0?d:8453,v=Le[p]?.rpcUrls[0],y=x.setProvider(new ee.Provider(v)),k=new ee.Custody(y,o[p].Custody);return k?await k.getCreator(t).then(async h=>{if(h?.status===0&&h?.response?.result[0]===!0){let f=await k.getQuorum(t);return f?.status===0&&f?.response?.result?.length>0?A&&Number(f?.response?.result[0])>0?{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C,pk:n}:Number(f?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}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}},kt=async(e,t,i,a,l,K,L,d,A,m,C,n,o)=>{let x;if(C)x=C;else{let p=ee.contractAddress,v=new ee.VerifiedWallet(n),y=o&&p[o]?.Custody&&Le[o]?.rpcUrls?.length>0?o:8453,k=Le[y]?.rpcUrls[0],h=v.setProvider(new ee.Provider(k));x=new ee.Custody(h,p[y].Custody)}return x?await x.confirmParticipant(K,a,m).then(async p=>p?.status===0?(m?await e(i,d,A):await t(i,d,A),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(p=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",p),!1)):!1},un=async(e,t,i,a,l,K,L,d,A,m,C,n,o)=>{let x=Number(i.length),v=(await(0,Ct.split)(Uint8Array.from(n.split("").map(f=>f.charCodeAt(0))),Number(x),K)).map(f=>f.join(",")),y=o?"":(0,xe.encodeBytes32String)(A),k=[],h=[];for(let f=0;f<i.length;f++){let g=i[f],u=o?await Oe(v[f],o,A):Ie(v[f],y);await C.addParticipant(d,ne(g.vaultId),u).then(async P=>{let G={creatorVaultId:L,vaultPin:A,creatorHashedVaultId:d,creatorHashedVaultPin:m,cosigner:g.vaultId,hashedCosigner:ne(g.vaultId),cosignerVaultIdType:g.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:g.vaultId,share:u,...g};P?.status===0?(h.push(G),g.vaultId!==L&&await e(g.otpChannel,g.vaultId,L,m).then(Z=>{Z||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):k.push(G)}),await new Promise(P=>setTimeout(P,1e3))}return k?.length>0||h?.length!==i?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),be("Oops somethin went wrong","error while adding co-signers"),!1):await C.defineQuorum(d,K.toString()).then(async f=>{if(f?.status===0){let g=a?.map(u=>({name:u?.name,email:u?.email,phoneNumber:u?.phoneNumber,contactType:String(u?.otpChannel)?.toUpperCase(),position:`${Ot[Number(u?.position)]} Co-Signer`}));return await t(l,L,g,Number(K)).then(u=>{u||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"),be("Oops somethin went wrong","error while saving vault keys"),!1})},fn=async(e,t,i,a,l,K,L,d,A)=>{let m;if(A)m=await Je(K,A);else{let C=(0,xe.encodeBytes32String)(l);m=He(K,C)}if(m){let C=ee.contractAddress,n=new ee.VerifiedWallet(m),o=d&&C[d]?.Custody&&Le[d]?.rpcUrls?.length>0?d:8453,x=Le[o]?.rpcUrls[0],p=n.setProvider(new ee.Provider(x)),v=new ee.Custody(p,C[o].Custody);if(v)return await v.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.result?.logs){let k=new xe.AbiCoder,h=y?.response?.result?.logs?.filter(P=>P?.address?.toLowerCase()===C[o].Custody?.toLowerCase()&&P?.topics?.map(G=>G?.toLowerCase())?.includes(Ht?.toLowerCase())),f=h[0]?.data,g=k.decode(["bytes32","bytes32","uint256"],f)?.map((P,G)=>G<2?P:Number(P)).flat(),u=g[g?.length-1];return await e(L,a,i,Number(u),Number(h?.length)),!0}else return!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},gn=async(e,t,i,a,l,K,L,d,A,m,C,n,o)=>{let x;if(o)x=await Je(L,o);else{let p=(0,xe.encodeBytes32String)(K);x=He(L,p)}if(x){let p=ee.contractAddress,v=new ee.VerifiedWallet(x),y=n&&p[n]?.Custody&&Le[n]?.rpcUrls?.length>0?n:8453,k=Le[y]?.rpcUrls[0],h=v.setProvider(new ee.Provider(k)),f=new ee.Custody(h,p[y].Custody);if(f)return await f.signTransaction(A,i,C).then(async g=>g?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)?"email":"sms",d,l),await f.checkQuorum(A,C).then(async u=>u?.status===0&&u?.response?.result?(u?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)?"email":"sms",d,Number(C)),!0):!1)):!1).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",g),!1))}},mn=async(e,t,i,a,l,K,L,d,A,m,C)=>{let n;if(C)n=await Je(L,C);else{let o=(0,xe.encodeBytes32String)(K);n=He(L,o)}if(n){let o=ee.contractAddress,x=new ee.VerifiedWallet(n),p=m&&o[m]?.Custody&&Le[m]?.rpcUrls?.length>0?m:8453,v=Le[p]?.rpcUrls[0],y=x.setProvider(new ee.Provider(v)),k=new ee.Custody(y,o[p].Custody);return k?await k.checkQuorum(i,d).then(async h=>h?.status===0&&h?.response?.result&&h?.response?.result[0]===!0?await k.getShards(i,d).then(async f=>{if(f?.status===0&&f?.response?.result){let g=f?.response?.result.filter(u=>u!=="");if(g.length>1){let u=C?"":(0,xe.encodeBytes32String)(K),G=(await Promise.all(g.map(z=>C?Je(z,C):He(z,u)))).map(z=>new Uint8Array(z.split(",").map(Number))),Z=await(0,Ct.combine)(G),se=new TextDecoder().decode(Z);if(se){let z=C?"":(0,xe.encodeBytes32String)(K),j=C?await Oe(se,C,K):Ie(se,z),ae=new ee.VerifiedWallet(se),q=await ae.getAddress(),ie=ae.setProvider(new ee.Provider(v)),oe=[Ye.base,Ye.mainnet,Ye.gnosis,Ye.polygon,Ye.sepolia,Ye.baseSepolia].find(V=>Number(V?.id)===Number(p)),ce=await ft(oe,(0,dn.http)(),ie);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:ce,regAddress:q,vaultId:l,hashedVaultId:i,pk:j,channel:A})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:ce,regAddress:q,vaultId:l,hashedVaultId:i,pk:j,channel:A})):e&&t&&await t.setItem("myVault",JSON.stringify({address:ce,regAddress:q,vaultId:l,hashedVaultId:i,pk:j,channel:A})),!0}}else return!1}else return!1}).catch(f=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",f),!1)):!1).catch(h=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",h),!1)):!1}};var Hn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=(0,Y.useState)(e.fontsLoaded||!1),p=(0,Y.useRef)([]),[v,y]=(0,Y.useState)(!1),[k,h]=(0,Y.useState)(60),[f,g]=(0,Y.useState)(["","","",""]),[u,P]=(0,Y.useState)(!1),[G,Z]=(0,Y.useState)(""),{pk:se,vaultContract:z,address:j}=Xe();(0,Y.useEffect)(()=>{let V=async()=>{if(t)m&&await ve(m),x(!0);else{let D=ye(document);x(D)}};e.fontsLoaded||V()},[]),(0,Y.useEffect)(()=>{if(k===0)return;let V=setInterval(()=>h(D=>D-1),1e3);return()=>clearInterval(V)},[k]);let ae=(V,D)=>{if(V?.length>1){let B=V.replace(/\D/g,""),pe=[...f],b=0;for(let F=D;F<f.length&&b<B.length;F++)pe[F]=B[b],b++;g(pe);let Ce=D+B.length;Ce<f.length&&p.current[Ce]&&p.current[Ce].focus(),P(!1)}else{let B=V.replace(/\D/g,""),pe=[...f];pe[D]=B,g(pe),B&&p.current[D+1]&&p.current[D+1].focus(),P(!1)}},q=(V,D,B)=>{B.nativeEvent.key==="Backspace"&&!f[D]&&D>0&&p.current[D-1]&&p.current[D-1].focus()},R=f.every(V=>V.length>0),ie=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,oe=async()=>{if(!R||!e.helperFunctions){P(!0),Z("Please enter the complete OTP.");return}let V=ie(),D=f.join("");if(!(!e.noContract&&!se||!e.noContract&&!z)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(j,V,D)){e.setIsLoading(!1),P(!0);return}let pe=ne(V),b=!1;if(!e.noContract&&z&&(b=await sn(z,pe),b===null)){e.setIsLoading(!1),Z("Unexpected error. Try again later."),P(!0);return}e.setIsExistingUser?.(b),e.setIsLoading(!1),e.setStep("4")}catch(B){e.setIsLoading(!1),Z("Error verifying OTP. Try again."),P(!0),console.error("error: ",B)}}},ce=async()=>{if(!e.helperFunctions){Z("Helper functions missing."),P(!0);return}let V=ie(),D=e.userEmail?"email":"sms";e.setIsLoading(!0);let B=await e.helperFunctions.sendOTPVerification(j,D,V);e.setIsLoading(!1),B?(g(["","","",""]),h(60),P(!1),Z("")):be("OTP resend failed","Please try again later.")};return Y.default.createElement(K,null,o&&Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},Y.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",Y.default.createElement(a,{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",":"),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&Y.default.createElement(Y.default.Fragment,null,Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&Y.default.createElement(a,null,e.userEmail)),Y.default.createElement(d,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},Y.default.createElement(l,{source:{uri:N.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},f.map((V,D)=>Y.default.createElement(L,{key:D,ref:B=>p.current[D]=B,value:f[D],onChangeText:B=>ae(B,D),onKeyPress:B=>q(B,D,B),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"}))),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!u&&k>5&&G===""&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},Y.default.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),k),!u&&k<=5&&k>0&&G===""&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},Y.default.createElement(a,{style:{fontWeight:"400"}},"00:"),k),!u&&k===0&&G===""&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),u&&G===""&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),u&&G?.length>0&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},G),!u&&k>0&&G===""&&Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!u&&k===0&&G===""||u&&G===""?Y.default.createElement(d,{style:{background:"transparent"},onPress:async()=>{g(["","","",""]),await ce()}},Y.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!v&&Y.default.createElement(i,{style:{height:"100px"}}),Y.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},Y.default.createElement(d,{className:R&&!u?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:oe,disabled:!R||u,style:R&&!u?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},Y.default.createElement(a,null,"Proceed"))))),!o&&Y.default.createElement(a,null,"Loading Module Fonts..."))},ht=Hn;var s=fe(require("react"));var Ne=fe(require("react"));var On=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n,EventEmitter:o}=e.platform;(0,Ne.useEffect)(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let k=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,h=>{h&&e.action!=="signRecovery"&&k?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let h=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});k?.dispatchEvent(h)}else t&&o&&new o().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(k){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",k)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let x=()=>{e.setStep?.("6")},p=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},v=()=>{e.setShowDasboard?.(!0)};return Ne.default.createElement(i,{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"},Ne.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Ne.default.createElement(l,{style:{width:"90%"},source:{uri:N.successIcon},alt:"Success Icon"}),Ne.default.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Ne.default.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Ne.default.createElement(a,{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&&Ne.default.createElement(d,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?x():e.action==="completeRecovery"?v():e.buttonFunc?.()},className:"verified-custd-mdl-startup-button-active"},Ne.default.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Ne.default.createElement(d,{onPress:()=>{e.action==="invitation"?p():e.buttonNeutFunc?.()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Ne.default.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},Ee=On;var Jn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,EventEmitter:n,styles:o,rnPasskey:x}=e.platform,[p,v]=(0,s.useState)(e.fontsLoaded||!1),[y,k]=(0,s.useState)(!0),[h,f]=(0,s.useState)(!1),[g,u]=(0,s.useState)(""),[P,G]=(0,s.useState)(!1),[Z,se]=(0,s.useState)(!1),[z,j]=(0,s.useState)(!1),[ae,q]=(0,s.useState)(!1),[R,ie]=(0,s.useState)(""),[oe,ce]=(0,s.useState)(""),[V,D]=(0,s.useState)(null),[B,pe]=(0,s.useState)(!1),[b,Ce]=(0,s.useState)(!1),{address:F,pk:J,vaultContract:O,setVaultData:Ve,setChainId:Te,vaultData:te}=Xe(),[de,le]=(0,s.useState)(["","","",""]),[W,Ke]=(0,s.useState)(["","","",""]),ge=(0,s.useRef)([]),U=(0,s.useRef)([]);(0,s.useEffect)(()=>{let T=async()=>{if(t)m&&await ve(m),v(!0);else{let S=ye(document);v(S)}};e.fontsLoaded||T()},[]);let I=(T,S,Q)=>{f(!1),u("");let Ae=T.replace(/\D/g,""),X=Q?[...W]:[...de];X[S]=Ae,Q?(Ke(X),Ae&&U.current[S+1]&&U.current[S+1].focus(),S<3&&X.every(E=>E!=="")&&de.every(E=>E!=="")&&X.join("")!==de.join("")&&(f(!0),u("Confirm Pin must match New Pin.")),S===3&&de.join("")!==X.join("")&&(f(!0),u("Confirm Pin must match New Pin."))):(le(X),Ae&&ge.current[S+1]&&ge.current[S+1].focus(),W.every(E=>E!=="")&&X.join("")!==W.join("")&&(f(!0),u("New Pin must match Confirm Pin.")))},M=async()=>{u(""),f(!1);try{let T=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,S=t?x.create(Bt("Verified Wallet",T,ne(T))):await navigator?.credentials?.create({publicKey:Bt("Verified Wallet",T,ne(T))}),Q=De(S?.rawId);return{pinString:S?.id,hashed:Q,rawId:S?.rawId}}catch(T){return u(`Passkey creation failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0),null}},Be=async()=>{u(""),f(!1);try{let T=t?await x.get(Qe()):await navigator.credentials.get({publicKey:Qe()}),S=De(T?.rawId);return{pinString:T?.id,hashed:S,rawId:T?.rawId}}catch(T){u(`Passkey authentication failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0)}},ke=(T,S,Q,Ae)=>{let X=Q.nativeEvent.key;!Ae&&X==="Backspace"&&!de[S]&&S>0&&ge.current[S-1]&&ge.current[S-1].focus(),Ae&&X==="Backspace"&&!W[S]&&S>0&&U.current[S-1]&&U.current[S-1].focus()},Se=()=>b?e.isExistingUser?de.every(T=>T!==""):de.every(T=>T!=="")&&W.every(T=>T!==""&&de.join("")===W.join("")):!0,tt=async T=>{if(!e.helperFunctions)u("No Helper Functions. Please include all helper functions in the CreatePinPage props."),f(!0);else{u(""),f(!1);let S=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,Q=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Se()&&S&&Q&&J&&F&&O||!e.isExistingUser&&Se()&&S&&Q&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Se()&&S&&Q&&J&&F&&O||e.isExistingUser&&Se()&&S&&Q&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin){e.setIsLoading(!0);let Ae=T?.pinString||de.join(""),X=ne(S),E=T?.hashed||ne(Ae);await ln(t,C,n,S,X,Ae,E,Q,J||e.vaultData?.pk,F||e.vaultData?.address,O||e.vaultData?.vaultContract,e.action,e.vaultData,e.txData,T?.rawId).then(async _=>{e.setIsLoading(!1),_?(Ve(_?.shouldStop&&_?.vaultId?{vaultId:_?.vaultId,hashedVaultId:_?.hashedVaultId,pk:_?.pk,rawId:_?.rawId,channel:_?.channel}:_?.shouldStop?{}:_),u(""),f(!1),e.action==="invitation"?(ce(Ae),D(T?.rawId),se(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),ie(`You have successfully reset your account ${b?"4-Digits PIN":"Passkey"}. Login with the new ${b?"4-Digits PIN":"Passkey"}`),G(!0)):_?.shouldStop?_?.shouldStop&&e.action!=="getPk"?(ie(""),G(!0)):_?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):_===null?e.action==="reset-pin"?(u("Reset pin failed. Try again later."),f(!0)):(u(`You are an existing user. Please use the right ${b?"existing 4-Digits PIN":"existing Passkey for "+S} to recover your account login access on this device/browser`),f(!0)):(u("Unexpected error while creating account. Please try again later."),f(!0))})}else Se()||(u(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),f(!0))}},ot=async T=>{let S=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,Q=e.userEmail?.length>0?"email":"sms";if(oe?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&S){e.setIsLoading(!0);let Ae=ne(S),X=b?ne(oe):De(V);await kt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,Q,Ae,X,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,S,T,O).then(E=>{e.setIsLoading(!1),E&&!te?.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(T?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):E&&te?.isExisting&&j(!0)})}};return s.default.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},p&&s.default.createElement(s.default.Fragment,null,!P&&!Z&&s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},s.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},b?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},b?"Enter PIN":"Sign-in with Existing Passkey"),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",b?"PIN":"Passkey",". This"," ",b?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",s.default.createElement(a,{style:{color:"#0C0C0E"}},b?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",s.default.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."))),!b&&s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:re(t,"14px")}:{fontSize:re(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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."),s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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."),s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},`Click "Login With Passkey" button, passkey popup will appears to login using the accoun't passkey.`),s.default.createElement(d,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),b&&s.default.createElement(s.default.Fragment,null,s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},de.map((T,S)=>s.default.createElement(L,{key:`pin-${S}`,style:t&&h?{...o.verifiedCustdMdlOtpInputRed}:t&&h?{...o.verifiedCustdMdlOtpInput}:{},className:h?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:Q=>ge.current[S]=Q,value:de[S],onChangeText:Q=>I(Q,S,!1),onKeyPress:Q=>ke(Q,S,Q,!1)}))),e.isExistingUser&&s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!h&&s.default.createElement(a,null),h&&g===""&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),h&&g?.length>0&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!y&&s.default.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!0)},s.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinShow}})),y&&s.default.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!1)},s.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinHide}})))),!e.isExistingUser&&s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},W.map((T,S)=>s.default.createElement(L,{key:`confirm-${S}`,style:t&&h?{...o.verifiedCustdMdlOtpInputRed}:t&&!h?{...o.verifiedCustdMdlOtpInput}:{},className:h?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:Q=>U.current[S]=Q,value:W[S],onChangeText:Q=>I(Q,S,!0),onKeyPress:Q=>ke(Q,S,Q,!0)}))),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!h&&s.default.createElement(a,null),h&&g===""&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),h&&g?.length>0&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!y&&s.default.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!0)},s.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinShow}})),y&&s.default.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!1)},s.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinHide}})))))),!B&&s.default.createElement(i,{style:{height:20}}),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!b&&s.default.createElement(s.default.Fragment,null,h&&g?.length>0&&s.default.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),e.isExistingUser&&s.default.createElement(d,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{let S=await Be();S&&await tt(S)}},s.default.createElement(a,null,"Login With Passkey")),!e.isExistingUser&&s.default.createElement(d,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{let S=await M();S&&await tt(S)}},s.default.createElement(a,null,"Create New Passkey"))),b&&s.default.createElement(d,{id:"verified-custd-mdl-otp-button",style:t&&Se()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!Se()?{...o.verifiedCustdMdlStartupButton}:{},className:Se()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async T=>{await tt()}},s.default.createElement(a,null,"Proceed"))))),!P&&Z&&s.default.createElement(s.default.Fragment,null,!z&&s.default.createElement(i,{className:"verified-custd-mdl-startup-language",style:t?{...o.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},s.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},s.default.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),s.default.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon1}}),!ae&&s.default.createElement(K,null,s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),s.default.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...o.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."),s.default.createElement(i,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},s.default.createElement(l,{source:{uri:N.pkicon}})),s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},s.default.createElement(l,{source:{uri:N.encryptedIcon}})),s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},s.default.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonNeut}:{},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>q(!0)},s.default.createElement(a,null,"Reject")),s.default.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!0)}},s.default.createElement(a,null,"Accept")))),ae&&s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},s.default.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),s.default.createElement(a,{style:t?{...o.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"," ",s.default.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),s.default.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},s.default.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ot(!1)}},s.default.createElement(a,null,"Yes")),s.default.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>q(!1)},s.default.createElement(a,null,"No"))))))),z&&s.default.createElement(Ee,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:ae?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),P&&s.default.createElement(Ee,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:R?.length>0?R:"You have successfully logged in your account."})),!p&&s.default.createElement(a,null,"Loading Module Fonts..."))},ze=Jn;var r=fe(require("react"));var Rn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=(0,r.useState)(e.fontsLoaded||!1),[p,v]=(0,r.useState)(!1),[y,k]=(0,r.useState)("1"),[h,f]=(0,r.useState)("1"),[g,u]=(0,r.useState)(!1),[P,G]=(0,r.useState)("email"),[Z,se]=(0,r.useState)(""),[z,j]=(0,r.useState)(""),[ae,q]=(0,r.useState)(""),[R,ie]=(0,r.useState)(""),[oe,ce]=(0,r.useState)(""),[V,D]=(0,r.useState)(!1),[B,pe]=(0,r.useState)(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[b,Ce]=(0,r.useState)([]),[F,J]=(0,r.useState)(!1),[O,Ve]=(0,r.useState)(2),[Te,te]=(0,r.useState)(""),{pk:de,vaultData:le,vaultContract:W}=Xe();(0,r.useEffect)(()=>{let I=async()=>{if(t)try{let M=await ve(m);x(!0)}catch{x(!1)}else{let M=ye(document);x(M)}};e.fontsLoaded||I()},[]);let Ke=()=>{},ge=()=>{if(P==="sms"&&Z?.length===0){te("Invalid input, please check the phone number");return}else if(P==="sms"&&Z?.length!==10){te("Invalid input, please check the phone number");return}else if(P==="email"&&ae?.length===0){te("Invalid input, please check the email");return}else if(P==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ae)){te("Invalid input, please check the email");return}else if(b?.find(M=>M?.otpChannel==="sms"?M?.phoneArea?.toLowerCase()+M?.number?.toLowerCase()===B.area?.toLowerCase()+z?.toLowerCase():M?.email?.toLowerCase()===ae?.toLowerCase())){te(P==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(P==="sms"&&B?.area?.toLowerCase()+z?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){te("Invalid input, phone number is creator's phone number");return}else if(P==="email"&&ae?.toLowerCase()===e.userEmail?.toLowerCase()){te("Invalid input, email is creator's email");return}te("");let I=b?.length;Ce(M=>[{name:R,email:ae,number:z,phoneNumber:`+${B?.area}${Z}`,otpChannel:P,phoneArea:B?.area,position:M?.length+1,vaultId:P==="sms"?`+${B?.area}${Z}`:ae},...M]),q(""),ie(""),se(""),j(""),ce(""),I+1===4&&u(!1)},U=async()=>{let I=[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:le?.vaultId},...b];I?.length>0&&b?.length>0&&O&&le?.vaultId&&le?.hashedVaultId&&le?.vaultPin&&le?.hashedVaultPin&&W&&de&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation&&(e.setIsLoading(!0),await un(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,I,b,e?.userEmail?.length>0?"email":"sms",O,le.vaultId,le.hashedVaultId,le.vaultPin,le.hashedVaultPin,W,de,le?.rawId).then(M=>{e.setIsLoading(!1),M&&e.setStep("7")}))};return r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},o&&r.default.createElement(r.default.Fragment,null,!p&&r.default.createElement(r.default.Fragment,null,h==="1"&&r.default.createElement(r.default.Fragment,null,r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),r.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon1},alt:""}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:N.pkicon},alt:"icon"})),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:N.encryptedIcon},alt:"icon"})),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",r.default.createElement(a,{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.")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.default.createElement(l,{source:{uri:N.supervise},alt:"icon"})),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",r.default.createElement(a,{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."))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{k("1"),v(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},r.default.createElement(a,null,"Learn More")),r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{f("2"),u(!1),v(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},r.default.createElement(a,null,"Add Co-Signer")))),h==="2"&&r.default.createElement(r.default.Fragment,null," ",r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!F&&r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",b?.length+1<5?b?.length+1:5,"/5)")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!F&&b.sort((I,M)=>I?.position-M?.position).map((I,M)=>r.default.createElement(i,{key:M,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},nt[I?.position]?.split(" ")[0],r.default.createElement(a,null,r.default.createElement(a,{style:{fontSize:10}},nt[I?.position]?.split(" ")[1]))," ","Co-Signer")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},I?.name),I.otpChannel==="email"&&r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},I.email),I.otpChannel==="sms"&&r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",I?.phoneArea,") ",I.number))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},r.default.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>{Ce(Be=>Be?.filter(ke=>ke?.otpChannel==="sms"?ke?.phoneArea?.toLowerCase()+ke?.number?.toLowerCase()!==I?.phoneArea?.toLowerCase()+I?.number?.toLowerCase():ke?.email?.toLowerCase()!==I?.email?.toLowerCase())?.map((ke,Se)=>(ke.position=Se+1,ke))),Ke()}},r.default.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.delete}}))))))),F&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.default.createElement(a,{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"),r.default.createElement(a,{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.")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(b?.length+1).fill("1").map((I,M)=>r.default.createElement(i,{key:M,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:M+1===O&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:M+1===O&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(M+1))),r.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:N.pointer}})))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},r.default.createElement(i,{style:t&&b?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/b?.length}%`}:!t&&b?.length===1?{width:`${100/b?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/b?.length+5}%`}:{width:`calc(${100/b?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},r.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:N.sliderDot}})))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(b?.length+1).fill("1").map((I,M)=>r.default.createElement(d,{style:{background:"transparent"},key:M,onPress:()=>{M+1>1&&Ve(M+1)}},r.default.createElement(a,{style:t&&M===b?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&M===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&M===0?{paddingLeft:12}:!t&&M===b?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(M+1))))))),r.default.createElement(d,{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 U()}},r.default.createElement(a,null,"Confirm"))))),g&&b?.length<4&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},nt[b?.length+1]?.split(" ")[0],r.default.createElement(a,{style:{fontSize:10}},nt[b?.length+1]?.split(" ")[1])," ","Co-Signer"))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},r.default.createElement(L,{onChangeText:ie,value:R,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{G("sms"),te(""),q("")}},r.default.createElement(l,{source:{uri:P==="sms"?N.selectClicked:N.select},style:{width:24,height:24}}),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{G("email"),te(""),se(""),j(""),ce("")}},r.default.createElement(l,{source:{uri:P==="email"?N.selectClicked:N.select},style:{width:24,height:24}}),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},P==="sms"&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},r.default.createElement(d,{onPress:()=>D(!V),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},r.default.createElement(l,{source:{uri:B.flag},style:{width:24,height:16},alt:"Country Flag"}),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",B.area),V?r.default.createElement(l,{source:{uri:N.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):r.default.createElement(l,{source:{uri:N.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),r.default.createElement(L,{onChangeText:I=>{ce(I===""?oe+" ":I);let M=I.replace(/\D/g,"");se(M);let Be="";for(let ke=0;ke<M.length;ke++)Be+=M[ke],(ke+1)%5===0&&ke+1<M.length&&(Be+=" ");j(Be),te("")},onBlur:Ke,value:z,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),V&&r.default.createElement(mt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Ke,setSelected:pe,selected:B,searchActive:V,setSearchActive:D,contentMaxHeight:300,contentbottomMargin:300}),Te===""&&Z.length!==10&&oe.length>10&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),Te!==""&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},Te))),P==="email"&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},r.default.createElement(L,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:I=>{q(I),te("")},onBlur:Ke,value:ae,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),Te!==""&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},Te)))),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},r.default.createElement(d,{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)},r.default.createElement(a,null,"Cancel")),r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{ge(),Ke()}},r.default.createElement(a,null,"Add")))),!g&&!F&&b?.length<4&&r.default.createElement(d,{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)},r.default.createElement(l,{source:{uri:N.addIcon},style:{width:20,height:20}}),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!g&&!F&&b?.length===4&&r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},r.default.createElement(l,{source:{uri:N.addDisableIcon},style:{width:20,height:20}}),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!F&&r.default.createElement(d,{className:b?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&b?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&b?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&b?.length>0&&!g&&b?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&b?.length===0&&!g&&b?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!g&&b?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{b?.length>0&&(Ve(2),J(!0),u(!1))}},r.default.createElement(a,{style:n.buttonText},"Proceed")))),p&&r.default.createElement(r.default.Fragment,null,y==="1"&&r.default.createElement(r.default.Fragment,null,r.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon2},alt:""}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.default.createElement(a,{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.")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},r.default.createElement(a,null,"Back")),r.default.createElement(d,{onPress:()=>k("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.default.createElement(a,null,"Next")))),y==="2"&&r.default.createElement(r.default.Fragment,null,r.default.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:N.addCoSignerIcon3},alt:""}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),r.default.createElement(a,{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")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(d,{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:()=>k("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.default.createElement(a,null,"Back")),r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k("3"),className:"verified-custd-mdl-add-cosigner-button-action"},r.default.createElement(a,null,"Next")))),y==="3"&&r.default.createElement(r.default.Fragment,null,r.default.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon4},alt:""}),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),r.default.createElement(a,{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."),r.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),r.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.default.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.default.createElement(a,null,"Back")),r.default.createElement(d,{onPress:()=>{f("2"),u(!1),v(!1),k("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.default.createElement(a,null,"Start")))))),!o&&r.default.createElement(a,null,"Loading Module Fonts..."))},et=Rn;var c=fe(require("react"));var pn=require("ethers"),Un=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n,rnPasskey:o}=e.platform,[x,p]=(0,c.useState)(e.fontsLoaded||!1),[v,y]=(0,c.useState)(!1),[k,h]=(0,c.useState)(!0),[f,g]=(0,c.useState)(!1),[u,P]=(0,c.useState)(!1),[G,Z]=(0,c.useState)(null),[se,z]=(0,c.useState)(null),[j,ae]=(0,c.useState)(e.newChainId||8453),[q,R]=(0,c.useState)(!1),[ie,oe]=(0,c.useState)(!1),[ce,V]=(0,c.useState)(!1),[D,B]=(0,c.useState)(!1),[pe,b]=(0,c.useState)(!1),[Ce,F]=(0,c.useState)(""),[J,O]=(0,c.useState)(!1),[Ve,Te]=(0,c.useState)({}),[te,de]=(0,c.useState)(["","","",""]),le=(0,c.useRef)([]),[W,Ke]=(0,c.useState)(!1),{setChainId:ge,setAddress:U,setPk:I,setProvider:M,setSigner:Be,setVaultContract:ke,setVaultData:Se}=Xe();(0,c.useEffect)(()=>{let X=async()=>{if(t)m&&await ve(m),p(!0);else{let E=ye(document);p(E)}};e.fontsLoaded||X()},[]);let tt=(X,E)=>{if(X.length>1){let _=X.replace(/\D/g,""),ue=[...te],Re=0;for(let yt=E;yt<te.length&&Re<_.length;yt++)ue[yt]=_[Re],Re++;de(ue);let Ue=E+_.length;Ue<te.length&&le.current[Ue]&&le.current[Ue].focus(),y(!1)}else{let _=X.replace(/\D/g,""),ue=[...te];ue[E]=_,de(ue),_&&le.current[E+1]&&le.current[E+1].focus(),y(!1)}},ot=(X,E,_)=>{_.nativeEvent.key==="Backspace"&&!te[E]&&E>0&&le.current[E-1]&&le.current[E-1].focus()},T=te.every(X=>X.length>0),S=async X=>{if(!e.helperFunctions)F("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(F(""),y(!1),W&&T&&e.hashedVaultId&&e.encrptedPk||!W&&e.hashedVaultId&&e.encrptedPk&&X){e.setIsLoading(!0);let E=X?.pinString?X?.pinString:te.join("");await cn(e.vaultId,e.hashedVaultId,E,X?.hashed?X?.hashed:ne(E),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(j),Dt?.includes(e.origin?.toLowerCase()),null,X?.rawId).then(async _=>{if(_&&!_?.inCompleteVault)e.setIsLoading(!1),Z(_),z(_?.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 fn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,X?.hashed?X?.hashed:ne(E),e.vaultId,E,e.encrptedPk,e.vaultChannel,Number(j),X?.rawId).then(async ue=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),ue?P(!0):(F("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 gn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,X?.hashed?X?.hashed:ne(E),e.vaultId,E,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(j),X?.rawId).then(async ue=>{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&&C&&await C.removeItem("myVault"),ue?P(!0):(F("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 mn(t,C,e.hashedVaultId,X?.hashed?X?.hashed:ne(E),e.vaultId,E,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(j),X?.rawId).then(async ue=>{e.setIsLoading(!1),ue?P(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),F("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?(Te({chainId:j,ky:W?pn.ethers.encodeBytes32String(_?.pin):"",rawId:W?"":X?.rawId,...e.txToSign}),oe(!1),O(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(F(""),y(!1),oe(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(F(`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()?(F(`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&&C&&await C.removeItem("myVault"),F(`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&&C&&await C.removeItem("myVault"),F(`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?(F("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?(F("Incomplete account login detected. Logout and try again later"),y(!0)):(F(""),y(!1),P(!0));else if(_&&_?.inCompleteVault&&_?.pk){let ue=await qe(Number(j),_?.pk);if(ge(ue.chainId),U(ue.address),I(ue.pk),M(ue.provider),Be(ue.signer),ke(ue.vaultContract),Se({vaultId:_?.vaultId,hashedVaultId:_?.hashedVaultId,vaultPin:_?.pin,hashedVaultPin:W?ne(_?.pin):De(_?.rawId),vaultContract:ue.vaultContract,rawId:_?.rawId}),_?.channel?.toLowerCase()==="sms"){let Re=_?.vaultId?.replace(_?.vaultId?.slice(-10),""),Ue=_?.vaultId?.slice(-10)?.slice(0,5)+" "+_?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Re?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ue),e.setUserEmail("")}else e.setUserEmail(_?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else F(W?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!W&&!X&&(F("Unexpected error with selected passkey. Try again later"),y(!0)),W&&!T&&(F("Input your 4-Digits PIN to login."),y(!0))},Q=async X=>{let E=e.vaultId;if(G?.pin?.length>0&&G?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&E&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let _=G.pin,ue=ne(E),Re=W?ne(_):De(G.rawId);await kt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ue,Re,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,E,X,null,G.pk,Number(j)).then(Ue=>{e.setIsLoading(!1),Ue&&(b(X),V(!0))})}},Ae=async()=>{F(""),y(!1);try{let X=await navigator.credentials.get({publicKey:Qe()}),E=De(X?.rawId);return{pinString:X?.id,hashed:E,rawId:X?.rawId}}catch(X){F(`Passkey authentication failed: ${X?.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,x&&!ie&&!J&&c.default.createElement(c.default.Fragment,null,!u&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px"}:{padding:"20px"},className:"verified-custd-mdl-startup-language"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(_e,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},W?"Enter PIN":"Sign-in with Existing Passkey")),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",c.default.createElement(a,{style:{color:"#0C0C0E"}},W?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",c.default.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),W&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},te.map((X,E)=>c.default.createElement(L,{key:E,ref:_=>le.current[E]=_,className:v?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&v?{...n.verifiedCustdMdlOtpInputRed}:t&&!v?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:k,maxLength:1,value:te[E],onChangeText:_=>tt(_,E),onKeyPress:_=>ot(_,E,_),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${E}`}))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},v&&!Ce&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),v&&Ce&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},Ce),!v&&c.default.createElement(a,null),k?c.default.createElement(d,{onPress:()=>h(!1),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:N.pinHide}})):c.default.createElement(d,{onPress:()=>h(!0),style:{backgroundColor:"transparent"}},c.default.createElement(l,{style:{width:24,height:24},source:{uri:N.pinShow}})))),!W&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:re(t,"14px")}:{fontSize:re(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:re(t,"12px")}:{fontSize:re(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(d,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!f&&c.default.createElement(i,{style:{height:20}}),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},c.default.createElement(on,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),W&&c.default.createElement(d,{onPress:async()=>await S(),style:t&&T&&!v?{...n.verifiedCustdMdlStartupButtonActive}:t&&T&&v?{...n.verifiedCustdMdlStartupButton}:t&&!T&&!v?{...n.verifiedCustdMdlStartupButton}:t&&!T&&v?{...n.verifiedCustdMdlStartupButton}:{},className:T&&!v?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},c.default.createElement(a,null,"Proceed")),!W&&c.default.createElement(c.default.Fragment,null,v&&Ce?.length>0&&c.default.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},Ce),c.default.createElement(d,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let X=await Ae();X&&await S(X)},className:"verified-custd-mdl-startup-button-active"},c.default.createElement(a,null,"Login With Passkey")))))),u&&c.default.createElement(Ee,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:se},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",buttonText:e.action==="completeRecovery"?"Go To Dashboard":"",setShowDasboard:e.setShowDashboard,actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),x&&ie&&!J&&c.default.createElement(c.default.Fragment,null,!ce&&c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},c.default.createElement(_e,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},c.default.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),c.default.createElement(d,{style:{backgroundColor:"transparent",width:"100%"}},c.default.createElement(l,{style:{height:250,width:"90%"},source:{uri:N.addCoSignerIcon1}})),D?c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},c.default.createElement(a,{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(a,{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(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(d,{onPress:async()=>await Q(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(a,null,"Yes")),c.default.createElement(d,{onPress:()=>B(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(a,null,"No")))))):c.default.createElement(c.default.Fragment,null,c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),c.default.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:N.pkicon}})),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},c.default.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},c.default.createElement(l,{source:{uri:N.encryptedIcon}})),c.default.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",c.default.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},c.default.createElement(d,{onPress:()=>B(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut}:{},className:"verified-custd-mdl-add-cosigner-button-neut"},c.default.createElement(a,null,"Reject")),c.default.createElement(d,{onPress:async()=>await Q(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},c.default.createElement(a,null,"Accept"))))),ce&&c.default.createElement(Ee,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:G},customTextHeader:"Successful",customTextFooter:pe?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),x&&!ie&&J&&c.default.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:Ve}),!x&&c.default.createElement(a,null,"Loading Module Fonts..."))},We=Un;var Qn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:K,StyleSheet:L,Font:d,AsyncStorage:A}=e?.platform,[m,C]=(0,$.useState)(e.fontsLoaded||!1),[n,o]=(0,$.useState)(e.showLogoPage||!1),[x,p]=(0,$.useState)([]),[v,y]=(0,$.useState)("2"),[k,h]=(0,$.useState)(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[f,g]=(0,$.useState)(""),[u,P]=(0,$.useState)(""),[G,Z]=(0,$.useState)(!1),[se,z]=(0,$.useState)(""),[j,ae]=(0,$.useState)(""),[q,R]=(0,$.useState)(""),[ie,oe]=(0,$.useState)(""),[ce,V]=(0,$.useState)(null),[D,B]=(0,$.useState)(null),[pe,b]=(0,$.useState)(!1),{setChainId:Ce,setAddress:F,setPk:J,setProvider:O,setSigner:Ve,setVaultContract:Te,setVaultData:te,vaultData:de,chainId:le,vaultContract:W}=Xe();return(0,$.useEffect)(()=>{let Ke=async()=>{if(t)d&&await ve(d),C(!0);else{let ge=ye(document);C(ge)}};e.fontsLoaded||Ke()},[]),(0,$.useEffect)(()=>{let Ke=async()=>{let ge;!t&&chrome?.storage?.local?ge=await new Promise(I=>{chrome.storage.local.get(["lastPk"],M=>{I(M.lastPk)})}):!t&&localStorage?ge=localStorage.getItem("lastPk"):t&&A&&(ge=A.getItem("lastPk"));let U=await qe(e.chainId,ge&&ge?.length>0?ge:void 0);Ce(U.chainId),F(U.address),J(U.pk),O(U.provider),Ve(U.signer),te(U.vaultData),U.vaultContract?.contractAddress?Te(U.vaultContract):Te(void 0)};W?.contractAddress||Ke()},[W]),(0,$.useEffect)(()=>{(0,Cn.debounce)(()=>{o(!1)},e.logoTimeoutTime??3e3)()},[]),(0,$.useEffect)(()=>{(()=>{let ge=st.map(U=>{if(U)return{name:U.name,countryName:U.name,officialName:U.name,currencySymbol:U.currency,currencyName:U.currency,officialCurrencySymbol:U.currency,countryCode:U.code,flag:U.flag,continent:U.continent,phone_code:U.phone_code,code:U.code}}).filter(Boolean);p(ge)})()},[]),$.default.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},m&&n&&e.logoPageElement&&$.default.createElement(i,null,e.logoPageElement),m&&!n&&$.default.createElement(i,{style:{width:"100%",heigth:"100%"}},v==="2"&&$.default.createElement(pt,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:g,userNumberFmt:f,setUserEmail:P,userEmail:u,setSelectedCountry:h,selectedCountry:k,allCountries:x,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),v==="3"&&$.default.createElement(ht,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,setUserNumberFmt:g,setUserEmail:P,userEmail:u,selectedCountry:k,helperFunctions:e.helperFunctions,setIsExistingUser:b}),v==="4"&&$.default.createElement(ze,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:Z,setSuccessBtnText:z,setSuccessBtnNeutText:ae,setSuccessBtnFunc:V,setSuccessBtnNeutFunc:B,userNumberFmt:f,userEmail:u,selectedCountry:k,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:R,setActionFooterText:oe,helperFunctions:e.helperFunctions,isExistingUser:pe}),v==="5"&&$.default.createElement(Ee,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:G,buttonText:se,buttonNeutText:j,buttonFunc:ce,buttonNeutFunc:D,actionHeaderText:q,actionFooterText:ie}),v==="6"&&$.default.createElement(et,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,userEmail:u,selectedCountry:k,allCountries:x,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),v==="7"&&e.action===""&&$.default.createElement(Ee,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),v==="7"&&e.action!==""&&$.default.createElement(Ee,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:le}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),v==="8"&&e.dashbordElement&&$.default.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),v==="8"&&!e.dashbordElement&&$.default.createElement($.default.Fragment,null),v==="0"&&$.default.createElement(We,{platform:e.platform,fontsLoaded:m,vaultId:de?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:de?.hashedVaultId,encrptedPk:de?.pk,vaultAddress:de?.address,vaultChannel:de?.channel,actionText:it.getPk,setIsLoading:e.setIsLoading,newChainId:Number(le||e.chainId),action:"getPk",reqVaultData:de,reqTxData:e.txData?Object.keys(e.txData)?.map(Ke=>(e.txData[Ke]=decodeURIComponent(e.txData[Ke]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:P,setUserNumberFmt:g,setSelectedCountry:h,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard})),!m&&$.default.createElement(i,{style:{padding:20,width:"100%",heigth:"100%"}},$.default.createElement(a,null,"Loading Module Fonts...")))},Kt=Qn;var Wn=e=>{let[t,i]=(0,w.useState)(!1),[a,l]=(0,w.useState)({}),[K,L]=(0,w.useState)(!1),[d,A]=(0,w.useState)(null),[m,C]=(0,w.useState)({}),[n,o]=(0,w.useState)({}),[x,p]=(0,w.useState)(!1),[v,y]=(0,w.useState)(!1),[k,h]=(0,w.useState)(!1),[f,g]=(0,w.useState)(!1),[u,P]=(0,w.useState)(""),[G,Z]=(0,w.useState)([]),[se,z]=(0,w.useState)(""),[j,ae]=(0,w.useState)(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[q,R]=(0,w.useState)(""),[ie,oe]=(0,w.useState)("");(0,w.useEffect)(()=>{(async()=>{await lt();let J=ct();J&&(l(J),i(!0))})()},[]);let{isReactNative:ce,View:V,Text:D,Font:B,AsyncStorage:pe,ActivityIndicator:b,styles:Ce}=a;return(0,w.useEffect)(()=>{!K&&t&&(async()=>{if(ce)B&&await ve(B),L(!0);else{let J=ye(document);L(J)}})()},[t,K]),(0,w.useEffect)(()=>{t&&(async()=>{if(ce){if(pe)try{let J=await pe.getItem("myVault");if(J){let O=JSON.parse(J);if(O?.vaultId){C(O),A(!0);return}}A(!1)}catch(J){console.error("Error reading vault data on react:",J),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",J=>{J.myVault&&JSON.parse(J.myVault)?.vaultId?(C(JSON.parse(J.myVault)),A(!0)):A(!1)});else if(localStorage){let J=JSON.parse(localStorage.getItem("myVault"));J&&J?.vaultId?(C(J),A(!0)):A(!1)}else A(!1)})()},[t]),(0,w.useEffect)(()=>{(()=>{let J=st.map(O=>O?{name:O?.name,countryName:O?.name,officialName:O?.name,currencySymbol:O?.currency,currencyName:O?.currency,officialCurrencySymbol:O?.currency,countryCode:O?.code,flag:O?.flag,continent:O?.continent,phone_code:O?.phone_code,code:O?.code}:null).filter(O=>O!=null);Z(J)})()},[]),w.default.createElement(w.default.Fragment,null,t&&w.default.createElement(w.default.Fragment,null,K&&w.default.createElement(ut,null,x&&w.default.createElement(V,{style:ce?{...Ce.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},w.default.createElement(b,{size:"large",color:"blue"})),w.default.createElement(V,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:ce?{...Ce.verifiedCustdMdlContainer}:{}},d===null&&e.delayPageElement&&w.default.createElement(w.default.Fragment,null,e.delayPageElement),d===null&&!e.delayPageElement&&w.default.createElement(V,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),d!==null&&w.default.createElement(w.default.Fragment,null,!d&&w.default.createElement(Kt,{platform:a,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:ne(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.values(e.txData)[Object.keys(e.txData).length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:p,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y}),d&&!v&&!k&&w.default.createElement(We,{platform:a,fontsLoaded:K,setisOnboard:A,vaultId:m?.vaultId,hashedVaultId:m?.hashedVaultId,encrptedPk:m?.pk,vaultAddress:m?.address,vaultChannel:m?.channel,regAddress:m?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||it[e.action],setIsLoading:p,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:ne(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.values(e.txData)[Object.keys(e.txData).length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowCompleteVault:h,setUserEmail:oe,setUserNumberFmt:R,setSelectedCountry:ae,enablePhone:e.enablePhone}),d&&v&&k&&w.default.createElement(We,{platform:a,fontsLoaded:K,setisOnboard:A,vaultId:m?.vaultId,hashedVaultId:m?.hashedVaultId,encrptedPk:m?.pk,vaultAddress:m?.address,regAddress:m?.regAddress,vaultChannel:m?.channel,origin:e.origin,title:e.title,actionText:e.actionText||it[e.action],setIsLoading:p,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:ne(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.values(e.txData)[Object.keys(e.txData).length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowCompleteVault:h,setUserEmail:oe,setUserNumberFmt:R,setSelectedCountry:ae,enablePhone:e.enablePhone}),d&&!v&&k&&se===""&&w.default.createElement(V,{style:{width:"100%",heigth:"100%",padding:"20px"}},w.default.createElement(et,{platform:a,fontsLoaded:K,setStep:z,setIsLoading:p,userNumberFmt:q,userEmail:ie,selectedCountry:j,allCountries:G,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone})),d&&!v&&k&&se==="7"&&w.default.createElement(Ee,{platform:a,action:e.action,setStep:z,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),d&&!v&&k&&se==="8"&&e.dashbordElement&&w.default.createElement(e.dashbordElement,{setIsLoading:p}),d&&!v&&k&&se==="8"&&!e.dashbordElement&&w.default.createElement(w.default.Fragment,null),d&&!k&&v&&!f&&e.dashbordElement&&w.default.createElement(e.dashbordElement,{setIsLoading:p,setShowResetPin:g,setAction:P,setUserNumberFmt:R,setUserEmail:oe,setSelectedCountry:ae,setVaultData:o,initWalletAndContract:qe}),d&&!k&&v&&!f&&!e.dashbordElement&&w.default.createElement(w.default.Fragment,null),d&&!k&&v&&f&&w.default.createElement(V,{style:{width:"100%",heigth:"100%",padding:"20px"}},w.default.createElement(ze,{platform:a,fontsLoaded:K,action:"reset-pin",setStep:z,setIsLoading:p,userNumberFmt:q,userEmail:ie,vaultData:m,selectedCountry:j,helperFunctions:e.helperFunctions}))))),!K&&w.default.createElement(D,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&w.default.createElement(w.default.Fragment,null,"Preparing Module..."))},kn=Wn;0&&(module.exports={AddCoSignersPage,ContactPage,CreatePinPage,EnterPinPage,FTUPage,OTPPage,VaultContextProvider,VerifiedCustody,decryptString,decryptWithPasskey,encryptString,encryptWithPasskey,getPlatformComponents,hashTheString,initPlatform,loadAllGoogleFonts,loadAllGoogleFontsRN,publicKeyCredentialRequestOptions});
3
3
  //# sourceMappingURL=index.js.map