@verified-network/verified-custody 0.5.0 → 0.5.2

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.mjs CHANGED
@@ -1,3 +1,3 @@
1
- var ti=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sn=$t((Ma,Pi)=>{Pi.exports="./Roboto-Regular-UUBD26YO.ttf"});var Nn=$t((Fa,Ai)=>{Ai.exports="./Manrope-Regular-33576HBZ.ttf"});var Xn=$t((Ba,Li)=>{Li.exports="./Hind-Regular-R5KOYWFC.ttf"});function ni(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}ni(`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{ti("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import ze,{forwardRef as ii}from"react";var ya=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",hn="https://wallet.verified.network/create-passkey",Et="https://wallet.verified.network/get-passkey",kn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],yn=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],It="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ht={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"},Pt={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"},E={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"},Tt=[{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 Kn={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 Ot=!1,Jt=!1,Rt,Ut,Wt,Qt,jt,qt,Zt,zt,vn,Pn,An,en,Ln,tn=async()=>{if(Jt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");vn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");Ln=await(await import("react-native-passkey")).Passkey,Pn=l.default,An=a.EventEmitter;let b=({className:A,id:u,...k})=>k,s=A=>u=>ze.createElement(A,{...b(u)});Rt=s(t.View),Ut=s(t.Text),Wt=s(t.Image),Qt=s(t.ScrollView),jt=t.StyleSheet,qt=s(t.TextInput),Zt=s(t.TouchableOpacity),zt=s(t.ActivityIndicator),en=t.StyleSheet.create(Kn),Ot=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Rt=({onPress:a,...i})=>ze.createElement("div",{onClick:a,...i}),Ut=({onPress:a,...i})=>ze.createElement("span",{onClick:a,...i}),Wt=({onPress:a,source:i,...l})=>ze.createElement("img",{onClick:a,...l,src:i?.uri}),Qt=a=>ze.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),jt={create:a=>a},en={},qt=ii(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:K,value:b,keyboardType:s,secureTextEntry:A,onSubmitEditing:u,blurOnSubmit:k,placeholderTextColor:n,...r},_)=>ze.createElement("input",{...r,ref:_,value:b,onInput:g=>{i?.(g),a?.(g.target.value)},onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),u?.(g)),l?.(g),K?.(g)},type:A?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),Zt=({onPress:a,style:i,...l})=>ze.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),zt=({color:a,size:i,...l})=>ze.createElement(t.img,{height:"50px",width:"50px",src:E.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Ot=!1,console.log("Web platform initialized.")}Jt=!0},nn=()=>{if(!Jt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Ot,View:Rt,Text:Ut,Image:Wt,ScrollView:Qt,StyleSheet:jt,TextInput:qt,TouchableOpacity:Zt,ActivityIndicator:zt,Font:vn,AsyncStorage:Pn,EventEmitter:An,styles:en,rnPasskey:Ln}};import z,{useEffect as Vt,useState as Le}from"react";import ai,{createContext as oi,useContext as ri,useState as ot}from"react";var bn=oi(void 0),an=({children:e})=>{let[t,a]=ot(null),[i,l]=ot(null),[K,b]=ot(null),[s,A]=ot(null),[u,k]=ot(null),[n,r]=ot(null),[_,g]=ot(null);return ai.createElement(bn.Provider,{value:{chainId:t,pk:i,address:K,signer:s,provider:u,vaultContract:n,vaultData:_,setChainId:a,setPk:l,setAddress:b,setSigner:A,setProvider:k,setVaultContract:r,setVaultData:g}},e)},Ge=()=>{let e=ri(bn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import xe,{useEffect as Dt,useState as Ee}from"react";import{debounce as ga}from"lodash";import{contractAddress as bi,Custody as xi,Provider as wi,VerifiedWallet as on}from"@verified-network/verified-sdk";var pe={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:E.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:E.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:E.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:E.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:E.baseIcon}};import{pbkdf2 as Tn}from"@noble/hashes/pbkdf2";import{sha256 as Mt}from"@noble/hashes/sha256";import{randomBytes as Gt,utf8ToBytes as sn,bytesToUtf8 as _i}from"@noble/hashes/utils";import{gcm as Yn}from"@noble/ciphers/aes";import ln from"crypto-js";import{toast as En}from"react-toastify";import bt from"react";import{base as Si,baseSepolia as Ni,gnosis as Xi,mainnet as Ei,polygon as Ti,sepolia as Yi}from"viem/chains";import{http as Gi}from"viem";import{createPublicClient as li,encodeAbiParameters as ci,encodeFunctionData as ui,pad as fi,toHex as gi,zeroAddress as Lt,zeroHash as mi}from"viem";var xn={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 wn={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 Ci="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",pi="0x00000000D3254452a909E4eeD47455Af7E27C289",_n="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",hi=0n,At=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},ki=e=>ci([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,ui({abi:xn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),yi=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:K,...b}=e;return{deInitData:t,data:l,module:K,address:K,signer:i,type:a,getStubSignature:async()=>_n,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),...b}},Ki=e=>yi({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:Lt,module:Lt,type:"validator",getStubSignature:async()=>_n}),vi=()=>({module:Lt,data:mi}),Yt=async(e,t,a)=>{let i=li({chain:e,transport:t}),l=Ki({signer:a}),K=[],b=[],s=vi(),A=[],u=Lt,k=Ci,n=pi,r=[],_=ki({defaultValidator:At(l),validators:K.map(At),executors:b.map(At),hook:At(s),fallbacks:A.map(At),registryAddress:u,bootStrapAddress:n,prevalidationHooks:r}),g=fi(gi(hi),{size:32}),L=await i.readContract({address:k,abi:wn.abi,functionName:"computeAccountAddress",args:[_,g],authorizationList:void 0});if(L?.toLowerCase()!==Lt?.toLowerCase())return L};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return yn.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=i,e.head.appendChild(K)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:Sn(),Manrope:Nn(),Hind:Xn()}),!0),et=async(e,t)=>{try{let a;if(t)a=new on(t);else{let r=on.generateMnemonic();a=on.importWallet(r)}let i=bi,l=e&&i[e]?.Custody&&pe[e]?.rpcUrls?.length>0?e:8453,K=pe[l]?.rpcUrls[0],b=a.setProvider(new wi(K)),s=a.privateKey,A=new xi(b,i[l]?.Custody),u=b,k=[Si,Ei,Xi,Ti,Yi,Ni].find(r=>Number(r?.id)===Number(l)),n=await Yt(k,Gi(),u);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:b,provider:K,vaultContract:A,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},j=e=>{let t=e.toLowerCase(),a=Mt(sn(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},De=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=Mt(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},tt=(e,t)=>ln.AES.encrypt(e,t).toString(),rt=(e,t)=>{var a=ln.AES.decrypt(e,t),i=a.toString(ln.enc.Utf8);return i},Mi=(e,t)=>bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},bt.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Xe=(e,t)=>(En.dismiss(),En.error(Mi(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 cn=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Gn=e=>{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=e.length%4===0?0:4-e.length%4;return e+="=".repeat(t),new Uint8Array(Buffer.from(e,"base64"))},U=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},Fi=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let K=t.substr(l*2,2);i[l]=parseInt(K,16)}return i},un=(e,t,a)=>{let i=Fi(a);return{challenge:Gt(32),rp:{name:e},user:{id:i,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"required"},timeout:6e4,attestation:"none"}},xt=e=>{let t=atob(e),a=new ArrayBuffer(t.length),i=new Uint8Array(a);for(let l=0;l<t.length;l++)i[l]=t.charCodeAt(l);return a},dt=()=>({challenge:Gt(32),timeout:6e4,userVerification:"preferred"}),rn=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),dn=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},nt=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=Gt(8),K=Array.from(l).map(r=>r.toString(16).padStart(2,"0")).join(""),b=j(`${a}:${K}`),s=sn(b),A=Gt(12),u=Tn(Mt,i,s,{c:3e5,dkLen:32}),n=Yn(u,A).encrypt(sn(e));return[rn(s),rn(A),rn(n)].join(".")},st=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),b=dn(a),s=dn(i),A=dn(l),u=Tn(Mt,K,b,{c:3e5,dkLen:32}),k=Yn(u,s);try{let n=k.decrypt(A);return _i(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import te,{useEffect as $i,useState as ut}from"react";import Mn from"react";var Bi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=Number(e.currentSlider),_=e.sliderCount?.length||0,g=_>0?100/_:0;return Mn.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((L,y)=>{let v=y<=r;return Mn.createElement(a,{key:y,className:v?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&v?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${g}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${g}%`}:!t&&v?{width:`${g}%`}:{width:`${g}%`}})}))},Me=Bi;import be,{useState as Di}from"react";var Vi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=Di(null),g=P=>{if(P===""){_(null);return}let m=e.searchContent.filter(C=>{let c=C?.name?.toLowerCase(),p=P.toLowerCase();if(c?.includes(p))return C.searched=p,C.nameArray=C.name.split(""),C});_(m),e.handleButtonDisplay()},L=(P,m)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(P,m)=>P.map((C,c)=>{let p=m.includes(C.toLowerCase());return be.createElement(i,{key:c,style:p?n.boldText:n.fadedText},C)}),v=(P,m=!1)=>P.map((C,c)=>{let p=t?!1:window?.location?.search===`?${c}`,N=e.selected&&e.selected.length>0,X=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return be.createElement(s,{key:c,className:X,style:n.resultItem,onPress:()=>L(C,c)},be.createElement(a,{style:n.resultInner},be.createElement(l,{source:{uri:e.type==="language"?C.icon:C.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),be.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},C.nameArray&&C.searched?y(C.nameArray,C.searched):C.name,e.type==="language"&&C.label&&be.createElement(i,{style:C.searched?.includes(C.label.toLowerCase())?{}:n.fadedText},` (${C.label})`))),e.type==="language"&&N&&p&&be.createElement(l,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return be.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},be.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&be.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),be.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},be.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},be.createElement(l,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),be.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:g,onFocus:()=>e.type==="language"&&e.setSelected("")})),be.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},be.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&v(r||e.searchContent))))))},Ft=Vi;import wt from"react";var Fn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform;return wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Bn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&k&&(await k.removeItem("myVault"),await k.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:U(t,"0.7rem")}:{fontSize:U(t,"0.7rem")}},"Want to access a different account? Click"," ",wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:r},"Logout")," ","to logout and login/create another account")};var Ii=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=ut(e.fontsLoaded||!1),[g,L]=ut(""),[y,v]=ut(""),[P,m]=ut(!1),[C,c]=ut(""),[p,N]=ut(!1),{pk:X,vaultContract:q,address:R}=Ge();$i(()=>{let V=async()=>{if(t)u&&await Ne(u),_(!0);else{let J=Se(document);_(J)}};e.fontsLoaded||V()},[]);let O=()=>{e.selectedCountry.area&&g.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),N(!0)):(c(""),N(!1))},Z=async()=>{if(e.userEmail===""&&g===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let V=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${g}`,J=e.userEmail?.length>0?"email":"sms";if(V&&J&&X&&q||V&&J&&e.noContract){e.setIsLoading(!0);try{let ee=await e.helperFunctions.sendOTPVerification(R,J,V);e.setIsLoading(!1),ee?(c(""),e.setStep("3")):(c(J==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Xe("OTP Error",J==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return te.createElement(K,{style:{width:"100%",height:"100%"}},r&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},te.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},te.createElement(s,{onPress:()=>m(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},te.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),te.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:E.arrowUp}:{uri:E.arrowDown}})),te.createElement(b,{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:V=>{let J=V.replace(/\D/g,"");v(V),L(J);let ee="";for(let ie=0;ie<J?.length;ie++)ee+=J[ie],(ie+1)%5===0&&ie+1<J?.length&&(ee+=" ");e.setUserNumberFmt(ee),O()}})),P&&te.createElement(Ft,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:O,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:m,contentMaxHeight:"300",contentbottomMargin:"300"}),g.length!==10&&y.length>10&&!C&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&te.createElement(te.Fragment,null,e.enablePhone&&te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),te.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:V=>{e.setUserEmail(V),e.setUserNumberFmt(""),L(""),v(""),O()}}),C&&e.userEmail.length>0&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},C)))),!P&&te.createElement(a,{style:{height:"80px"}}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},te.createElement(Fn,{platform:e.platform}),te.createElement(s,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:Z},te.createElement(i,null,"Get OTP"))))),!r&&te.createElement(i,null,"Loading Module Fonts..."))},fn=Ii;import H,{useEffect as Wn,useRef as zi,useState as ft}from"react";import{AbiCoder as Hi,encodeBytes32String as He,getBytes as Dn,hexlify as Oi}from"ethers";import{combine as Ji,split as Vn}from"shamir-secret-sharing";import{contractAddress as _t,Custody as St,Provider as lt,VerifiedWallet as qe}from"@verified-network/verified-sdk";import{base as Ri,baseSepolia as Ui,gnosis as Wi,mainnet as Qi,polygon as ji,sepolia as qi}from"viem/chains";import{http as Zi}from"viem";var $n=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},In=async(e,t,a,i,l,K,b,s,A,u,k,n,r,_,g,L,y)=>{try{let v={vaultId:i,hashedVaultId:l,vaultPin:K,hashedVaultPin:b,vaultContract:k,rawId:g};return await k.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let m;if(g)m=await nt(A,g,K);else{let c=He(K);m=tt(A,c)}let C;if(chrome?.storage?.local?C=await new Promise(c=>{chrome.storage.local.get(["lastPk"],p=>{c(p.lastPk)})}):!chrome?.storage?.local&&localStorage&&(C=localStorage.getItem("lastPk")),n==="reset-pin"&&r?.vaultContract&&L?.length>1&&y>1&&A?.length>0){let c=Number(L.length),N=(await Vn(Dn(A),Number(c),Number(y))).map(V=>cn(V)),X=g?"":He(K),q=[],R=[];for(let V=0;V<L.length;V++){let J=L[V],ee=g?await nt(N[V],g,K):tt(N[V],X);await k.addParticipant(l,J,ee).then(async ie=>{let se={creatorVaultId:i,vaultPin:K,creatorHashedVaultId:l,creatorHashedVaultPin:b,cosigner:J,hashedCosigner:J,cosignerVaultIdType:"",cosignerVaultId:J,share:ee};ie?.status===0?R.push(se):q.push(se)}),await new Promise(ie=>setTimeout(ie,1e3))}if(q?.length>0||R?.length!==L?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),null;let Z=await new qe(A).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:m,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:m,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:m,channel:s})),{}}if(C&&C?.length>0)return await k.confirmParticipant(l,l,!0).then(async c=>{if(c?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let N=await new qe(A).getAddress(),X;if(g)X=await nt(A,g,K);else{let q=He(K);X=tt(A,q)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})),v}catch(p){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return Xe("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: ",c),!1});if(n==="invitation")return{isExisting:!0,...v};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:m,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:m,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:m,channel:s}));let c=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"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_}});else if(!e&&!chrome?.runtime?.sendMessage){let p=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_}}});c?.dispatchEvent(p)}else if(e&&a){let p=new a,N=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",X={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_};p.emit(N,X)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:m,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(m){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",m),Xe("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await k.createVault(l).then(async m=>m?.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 k.confirmParticipant(l,l,!0).then(async C=>{if(C?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let p=await new qe(A).getAddress(),N;if(g)N=await nt(A,g,K);else{let X=He(K);N=tt(A,X)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})),v}catch(c){return Xe("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 Xe("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",C),!1})):(Xe("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",m),!1))})}catch(v){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",v),Xe("Oops something went wrong","Error while creating pin. Try again later"),!1}},Hn=async(e,t,a,i,l,K,b,s,A,u,k)=>{try{let n;if(k)n=await st(l,k);else{let r=He(a);n=rt(l,r)}if(n){let r=_t,_=new qe(n),g=s&&r[s]?.Custody&&pe[s]?.rpcUrls?.length>0?s:8453,L=pe[g]?.rpcUrls[0],y=_.setProvider(new lt(L)),v=new St(y,r[g].Custody);return v?await v.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let m=await v.getQuorum(t);return m?.status===0&&m?.response?.result?.length>0?A&&Number(m?.response?.result[0])>0?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n}:Number(m?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k}:A?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Bt=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let _;if(k)_=k;else{let g=_t,L=new qe(n),y=r&&g[r]?.Custody&&pe[r]?.rpcUrls?.length>0?r:8453,v=pe[y]?.rpcUrls[0],P=L.setProvider(new lt(v));_=new St(P,g[y].Custody)}return _?await _.confirmParticipant(K,i,u).then(async g=>g?.status===0?(u?await e(a,s,A,l):await t(a,s,A,l),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",g),!1)):!1},On=async(e,t,a,i,l,K,b,s,A,u,k,n,r,_)=>{let g=Number(a.length),y=(await Vn(Dn(n),Number(g),K)).map(C=>cn(C)),v=r?"":He(A),P=[],m=[];for(let C=0;C<a.length;C++){let c=a[C],p=r?await nt(y[C],r,A):tt(y[C],v);await k.addParticipant(s,_==="remove-cosigner"?c:j(c.vaultId),p).then(async N=>{let X=_==="remove-cosigner"?{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c,hashedCosigner:c,cosignerVaultIdType:"",cosignerVaultId:c,share:p}:{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c.vaultId,hashedCosigner:j(c.vaultId),cosignerVaultIdType:c.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:c.vaultId,share:p,...c};N?.status===0?(m.push(X),_!=="remove-cosigner"&&c.vaultId!==b&&await e(c.otpChannel,c.vaultId,b,u).then(q=>{q||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(X)}),await new Promise(N=>setTimeout(N,1e3))}return P?.length>0||m?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(s,K.toString()).then(async C=>{if(C?.status===0&&_!=="remove-cosigner"){let c=i?.map(p=>({name:p?.name,email:p?.email,phoneNumber:p?.phoneNumber,contactType:String(p?.otpChannel)?.toUpperCase(),position:`${Ht[Number(p?.position)]} Co-Signer`}));return await t(l,b,c,Number(K),u).then(p=>{p||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(C?.status===0&&_==="remove-cosigner"){let c=i?.map(async X=>(await k.removeParticipant(s,j(X?.vaultId)))?.status===0?"true":"false");if((await Promise.all(c))?.find(X=>X==="false")?.length>0)return!1;let N=i?.map(X=>({email:X?.email,phoneNumber:X?.phoneNumber,contactType:String(X?.otpChannel)?.toUpperCase(),position:`${Ht[Number(X?.position)]} Co-Signer`}));return await t(l,b,N,Number(K),u,!0).then(X=>{X||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),Xe("Oops somethin went wrong","error while saving vault keys"),!1})},Jn=async(e,t,a,i,l,K,b,s,A)=>{let u;if(A)u=await st(K,A);else{let k=He(l);u=rt(K,k)}if(u){let k=_t,n=new qe(u),r=s&&k[s]?.Custody&&pe[s]?.rpcUrls?.length>0?s:8453,_=pe[r]?.rpcUrls[0],g=n.setProvider(new lt(_)),L=new St(g,k[r].Custody);if(L)return await L.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.hash){let v=new Hi,P,m;if(y?.response?.result?.logs?.length>0){let C=y?.response?.result?.logs?.filter(N=>N?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&N?.topics?.map(X=>X?.toLowerCase())?.includes(It?.toLowerCase()));m=C?.length;let c=C[0]?.data,p=v.decode(["bytes32","bytes32","uint256"],c)?.map((N,X)=>X<2?N:Number(N)).flat();P=p[p?.length-1]}else{let N=(await new lt(_).getTransactionReceipt(y?.response?.hash)).logs?.filter(R=>R?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&R?.topics?.map(O=>O?.toLowerCase())?.includes(It?.toLowerCase()));m=N?.length;let X=N[0]?.data,q=v.decode(["bytes32","bytes32","uint256"],X)?.map((R,O)=>O<2?R:Number(R)).flat();P=q[q?.length-1]}return await e(b,i,a,Number(P),Number(m)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",y),!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},Rn=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let _;if(r)_=await st(b,r);else{let g=He(K);_=rt(b,g)}if(_){let g=_t,L=new qe(_),y=n&&g[n]?.Custody&&pe[n]?.rpcUrls?.length>0?n:8453,v=pe[y]?.rpcUrls[0],P=L.setProvider(new lt(v)),m=new St(P,g[y].Custody);if(m)return await m.signTransaction(A,a,String(k)).then(async C=>C?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,i),await m.checkQuorum(A,k).then(async c=>c?.status===0&&c?.response?.result?(c?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,i,Number(k)),!0):!1)):!1).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",C),!1))}},Un=async(e,t,a,i,l,K,b,s,A,u,k)=>{let n;if(k)n=await st(b,k);else{let r=He(K);n=rt(b,r)}if(n){let r=_t,_=new qe(n),g=u&&r[u]?.Custody&&pe[u]?.rpcUrls?.length>0?u:8453,L=pe[g]?.rpcUrls[0],y=_.setProvider(new lt(L)),v=new St(y,r[g].Custody);return v?await v.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await v.getShards(a,s).then(async m=>{if(m?.status===0&&m?.response?.result){let C=m?.response?.result.filter(c=>c!=="");if(C.length>1){let c=k?"":He(K),N=(await Promise.all(C.map(R=>k?st(R,k):rt(R,c)))).map(R=>Gn(R)),X=await Ji(N),q=Oi(X);if(q){let R=k?"":He(K),O=k?await nt(q,k,K):tt(q,R),Z=new qe(q),V=await Z.getAddress(),ee=Z.setProvider(new lt(L)),ie=[Ri,Qi,Wi,ji,qi,Ui].find(W=>Number(W?.id)===Number(g)),se=await Yt(ie,Zi(),ee);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})):e&&t&&await t.setItem("myVault",JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})),!0}}else return!1}else return!1}).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",m),!1)):!1).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var ea=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=ft(e.fontsLoaded||!1),g=zi([]),[L,y]=ft(!1),[v,P]=ft(60),[m,C]=ft(["","","",""]),[c,p]=ft(!1),[N,X]=ft(""),{pk:q,vaultContract:R,address:O}=Ge();Wn(()=>{let W=async()=>{if(t)u&&await Ne(u),_(!0);else{let $=Se(document);_($)}};e.fontsLoaded||W()},[]),Wn(()=>{if(v===0)return;let W=setInterval(()=>P($=>$-1),1e3);return()=>clearInterval(W)},[v]);let Z=(W,$)=>{if(W?.length>1){let G=W.replace(/\D/g,""),Pe=[...m],w=0;for(let Q=$;Q<m.length&&w<G.length;Q++)Pe[Q]=G[w],w++;C(Pe);let ke=$+G.length;ke<m.length&&g.current[ke]&&g.current[ke].focus(),p(!1)}else{let G=W.replace(/\D/g,""),Pe=[...m];Pe[$]=G,C(Pe),G&&g.current[$+1]&&g.current[$+1].focus(),p(!1)}},V=(W,$,G)=>{G.nativeEvent.key==="Backspace"&&!m[$]&&$>0&&g.current[$-1]&&g.current[$-1].focus()},J=m.every(W=>W.length>0),ee=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ie=async()=>{if(!J||!e.helperFunctions){p(!0),X("Please enter the complete OTP.");return}let W=ee(),$=m.join("");if(!(!e.noContract&&!q||!e.noContract&&!R)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(O,W,$)){e.setIsLoading(!1),p(!0);return}let Pe=j(W),w=!1;if(!e.noContract&&R&&(w=await $n(R,Pe),w===null)){e.setIsLoading(!1),X("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(w),e.setIsLoading(!1),e.setStep("4")}catch(G){e.setIsLoading(!1),X("Error verifying OTP. Try again."),p(!0),console.error("error: ",G)}}},se=async()=>{if(!e.helperFunctions){X("Helper functions missing."),p(!0);return}let W=ee(),$=e.userEmail?"email":"sms";e.setIsLoading(!0);let G=await e.helperFunctions.sendOTPVerification(O,$,W);e.setIsLoading(!1),G?(C(["","","",""]),P(60),p(!1),X("")):Xe("OTP resend failed","Please try again later.")};return H.createElement(K,null,r&&H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},H.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&H.createElement(H.Fragment,null,H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&H.createElement(i,null,e.userEmail)),H.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},H.createElement(l,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},m.map((W,$)=>H.createElement(b,{key:$,ref:G=>g.current[$]=G,value:m[$],onChangeText:G=>Z(G,$),onKeyPress:G=>V(G,$,G),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&v>5&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},H.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),v),!c&&v<=5&&v>0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},H.createElement(i,{style:{fontWeight:"400"}},"00:"),v),!c&&v===0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&N?.length>0&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},N),!c&&v>0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&v===0&&N===""||c&&N===""?H.createElement(s,{style:{background:"transparent"},onPress:async()=>{C(["","","",""]),await se()}},H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!L&&H.createElement(a,{style:{height:"100px"}}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},H.createElement(s,{className:J&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ie,disabled:!J||c,style:J&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},H.createElement(i,null,"Proceed"))))),!r&&H.createElement(i,null,"Loading Module Fonts..."))},gn=ea;import d,{useEffect as Qn,useRef as jn,useState as ge}from"react";import Re,{useEffect as ta}from"react";var na=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,EventEmitter:r}=e.platform;ta(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let v=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&v?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});v?.dispatchEvent(P)}else t&&r&&new r().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(v){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",v)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let _=()=>{e.setStep?.("6")},g=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},L=()=>{e.handleShowDashboard()};return Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Re.createElement(l,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Re.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?_():e.action==="completeRecovery"?L():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Re.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Re.createElement(s,{onPress:()=>{e.action==="invitation"?g():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Re.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Fe=na;import{contractAddress as ia,Provider as aa}from"@verified-network/verified-sdk";import{ethers as qn}from"ethers";var oa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,EventEmitter:n,styles:r,rnPasskey:_}=e.platform,[g,L]=ge(e.fontsLoaded||!1),[y,v]=ge(!0),[P,m]=ge(!1),[C,c]=ge(""),[p,N]=ge(!1),[X,q]=ge(!1),[R,O]=ge(!1),[Z,V]=ge(!1),[J,ee]=ge(""),[ie,se]=ge(""),[W,$]=ge(null),[G,Pe]=ge(!1),[w,ke]=ge(!1),[Q,Be]=ge(!1),[ce,ae]=ge(""),[F,ye]=ge(""),[Ke,we]=ge([]),[de,Te]=ge(0),[le,B]=ge(null),{address:Ve,pk:Oe,chainId:Je,vaultContract:ue,signer:Ue,setVaultData:Ze,setChainId:it,setAddress:We,setPk:Ct,setProvider:$e,setSigner:I,setVaultContract:Y,vaultData:Ye}=Ge(),[x,M]=ge(["","","",""]),[S,ne]=ge(["","","",""]),Ae=jn([]),Ce=jn([]);Qn(()=>{let T=async()=>{if(t)u&&await Ne(u),L(!0);else{let h=Se(document);L(h)}};e.fontsLoaded||T()},[]),Qn(()=>{let T=async()=>{e.setIsLoading&&e.setIsLoading(!0);let h=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(h?.status===0&&h?.response?.result?.length>0){let Kt=Number(h?.response?.result[0]);Te(Kt)}if(e.vaultData?.existingCosignersHashed?.length>0){we([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let oe=ia[Je]?.Custody;if(!oe)return;let fe=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new qn.Contract(oe,fe,e.vaultData?.signer))return;let re=new qn.Interface(fe),yt=re.getEvent("NewParticipant").topicHash,ei=(await new aa(pe[Je]?.rpcUrls[0])?.getLogs({address:oe,fromBlock:pe[Je]?.custodyContractBlock||0,toBlock:"latest",topics:[yt]}))?.map(Kt=>{let Xt=re.parseLog(Kt);return Xt?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Xt?.args?.creator!==Xt?.args?.participant?Xt?.args?.participant:null})?.filter(Kt=>Kt!==null);we([...new Set(ei)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&T()},[e.isExistingUser,e.action,e.vaultData]);let Ie=(T,h,D)=>{m(!1),c("");let oe=T.replace(/\D/g,""),fe=D?[...S]:[...x];fe[h]=oe,D?(ne(fe),oe&&Ce.current[h+1]&&Ce.current[h+1].focus(),h<3&&fe.every(ve=>ve!=="")&&x.every(ve=>ve!=="")&&fe.join("")!==x.join("")&&(m(!0),c("Confirm Pin must match New Pin.")),h===3&&x.join("")!==fe.join("")&&(m(!0),c("Confirm Pin must match New Pin."))):(M(fe),oe&&Ae.current[h+1]&&Ae.current[h+1].focus(),S.every(ve=>ve!=="")&&fe.join("")!==S.join("")&&(m(!0),c("New Pin must match Confirm Pin.")))},ct=async()=>{c(""),m(!1);try{let T=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let h=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:hn,D=async(oe,fe,ve)=>{if(oe.type==="VW:Passkey_Credential")if(oe?.origin&&h?.toLowerCase()?.startsWith(oe?.origin?.toLowerCase())){le&&chrome.windows.remove(le),fe?.tab&&fe?.tab?.windowId&&chrome.windows.remove(fe.tab.windowId);let re=oe.data;if(re?.id&&re?.rawId){let kt=xt(re?.rawId),yt=De(kt),pn={pinString:re?.id,hashed:yt,rawId:kt,listener:D};await at(pn)}else c(`Passkey creation failed: ${re?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),m(!0)}else c("Passkey creation failed: invalid passkey origin. Try again later"),m(!0)};chrome.runtime.onMessage.addListener(D),await chrome.windows.create({url:`${h}?id=${T}`,type:"popup",width:500,height:600}).then(oe=>{B(oe.id)})}else{let h=t?_.create(un("Verified Wallet",T,j(T))):await navigator?.credentials?.create({publicKey:un("Verified Wallet",T,j(T))});if(h){let D=De(h?.rawId);return{pinString:h?.id,hashed:D,rawId:h?.rawId}}}return null}catch(T){return c(`Passkey creation failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),m(!0),null}},pt=async()=>{if(c(""),m(!1),chrome?.windows?.create&&window){let T=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Et,h=async(D,oe,fe)=>{if(D.type==="VW:Passkey_Credential")if(D?.origin&&T?.toLowerCase()?.startsWith(D?.origin?.toLowerCase())){le&&chrome.windows.remove(le),oe?.tab&&oe?.tab?.windowId&&chrome.windows.remove(oe.tab.windowId);let ve=D.data;if(ve?.id&&ve?.rawId){let re=xt(ve?.rawId),kt=De(re),yt={pinString:ve?.id,hashed:kt,rawId:re,listener:h};await at(yt)}else c(`Passkey authentication failed: ${ve?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),m(!0)}else c("Passkey authentication failed: invalid passkey origin. Try again later"),m(!0)};chrome.runtime.onMessage.addListener(h),await chrome.windows.create({url:`${T}`,type:"popup",width:500,height:600}).then(D=>{B(D.id)})}else try{let T=t?await _.get(dt()):await navigator?.credentials?.get({publicKey:dt()}),h=De(T?.rawId);return{pinString:T?.id,hashed:h,rawId:T?.rawId}}catch(T){c(`Passkey authentication failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),m(!0)}},ht=(T,h,D,oe)=>{let fe=D.nativeEvent.key;!oe&&fe==="Backspace"&&!x[h]&&h>0&&Ae.current[h-1]&&Ae.current[h-1].focus(),oe&&fe==="Backspace"&&!S[h]&&h>0&&Ce.current[h-1]&&Ce.current[h-1].focus()},_e=()=>w?e.isExistingUser?x.every(T=>T!==""):x.every(T=>T!=="")&&S.every(T=>T!==""&&x.join("")===S.join("")):!0,Qe=()=>!!(Q&&F?.length===66&&F?.toLowerCase()?.startsWith("0x")),at=async T=>{if(T?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(T?.listener),!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),m(!0);else{c(""),m(!1);let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&_e()&&h&&D&&Oe&&Ve&&ue||!e.isExistingUser&&_e()&&h&&D&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&_e()&&h&&D&&Oe&&Ve&&ue||e.isExistingUser&&_e()&&h&&D&&e.vaultData?.vaultContract){e.setIsLoading(!0);let oe=T?.pinString||x.join(""),fe=j(h),ve=T?.hashed||j(oe);await In(t,k,n,h,fe,oe,ve,D,T?.pk?T?.pk:Oe||e.vaultData?.pk,T?.address?T?.address:Ve||e.vaultData?.address,T?.vaultContract?T?.vaultContract:ue||e.vaultData?.vaultContract,e.action,T?.vaultData?T?.vaultData:e.vaultData,e.txData,T?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ke]:void 0,de).then(async re=>{e.setIsLoading(!1),re?(Ze(re?.shouldStop&&re?.vaultId?{vaultId:re?.vaultId,hashedVaultId:re?.hashedVaultId,hashedVaultPin:re?.hashedVaultPin,pk:re?.pk,rawId:re?.rawId,channel:re?.channel}:re?.shouldStop?{}:re),c(""),m(!1),e.action==="invitation"?(se(oe),$(T?.rawId),q(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&w?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&w?localStorage.removeItem("myVault"):t&&k&&w&&await k.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(D,h,T?.hashed,e.vaultData.hashedVaultPin,Date.now()),ee(`You have successfully reset your account ${w?"4-Digits PIN":"Passkey"}. ${w?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),N(!0)):re?.shouldStop?re?.shouldStop&&e.action!=="getPk"?(ee(""),N(!0)):re?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):re===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),m(!0)):(c(`You are an existing user. Please use the right ${w?"existing 4-Digits PIN":"existing Passkey for "+h} to recover your account login access on this device/browser`),m(!0)):(c("Unexpected error while creating account. Please try again later."),m(!0))})}else _e()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),m(!0))}},Cn=async T=>{let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(ie?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h||W&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h){e.setIsLoading(!0);let oe=j(h),fe=w?j(ie):De(W);await Bt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,D,oe,fe,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,h,T,ue).then(ve=>{e.setIsLoading(!1),ve&&!Ye?.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")):ve&&Ye?.isExisting&&O(!0)})}};return d.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},g&&d.createElement(d.Fragment,null,!p&&!X&&d.createElement(d.Fragment,null,!Q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Change Pin":"Change Passkey"),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",w?"PIN":"Passkey",". This"," ",w?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(i,{style:{color:"#0C0C0E"}},w?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(i,{style:{color:"#0C0C0E"}},w?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!w&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),w&&d.createElement(d.Fragment,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((T,h)=>d.createElement(b,{key:`pin-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>Ae.current[h]=D,value:x[h],onChangeText:D=>Ie(D,h,!1),onKeyPress:D=>ht(D,h,D,!1)}))),e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},S.map((T,h)=>d.createElement(b,{key:`confirm-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&!P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>Ce.current[h]=D,value:S[h],onChangeText:D=>Ie(D,h,!0),onKeyPress:D=>ht(D,h,D,!0)}))),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!w&&d.createElement(d.Fragment,null,P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!w&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{if(e.action==="reset-pin"){let h=await ct();h&&await at(h)}else{let h=await pt();h&&await at(h)}}},e.action==="reset-pin"&&d.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{if(!e.helperFunctions){c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),m(!0);return}let h=await ct();h&&await at(h)}},d.createElement(i,null,"Create New Account")),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async T=>{Be(!0)}},d.createElement(i,null,"Import An Existing account")))),w&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&_e()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!_e()?{...r.verifiedCustdMdlStartupButton}:{},className:_e()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async T=>{await at()}},d.createElement(i,null,"Proceed"))))),Q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(b,{style:t?{...r.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:F,onChangeText:T=>{ye(T)}}),ce?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce)),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Qe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Qe()?{...r.verifiedCustdMdlStartupButton}:{},className:Qe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async T=>{try{if(!Qe()){m(!0),c("Invalid private key entered. Please scroll up, check private key and try again.");return}let h=await et(Je,F);if(!h?.chainId||!h?.address||!h?.pk||!h?.provider||!h?.signer||!h?.vaultContract){m(!0),c("Invalid private key entered. Please check private key starts with 0x and try again.");return}it(h.chainId),We(h.address),Ct(h.pk),$e(h.provider),I(h.signer),Ze(h.vaultData),Y(h.vaultContract);let D=await ct();D&&await at({...D,pk:h.pk,vaultContract:h.vaultContract,signer:h.signer,address:h.address,vaultData:h.vaultData})}catch{m(!0),c("Error while importing account.try again later.");return}}},d.createElement(i,null,"Proceed With Passkey")))))),!p&&X&&d.createElement(d.Fragment,null,!R&&d.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(l,{style:t?{...r.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1}}),!Z&&d.createElement(K,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...r.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."),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.pkicon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.encryptedIcon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>V(!0)},d.createElement(i,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await Cn(!0)}},d.createElement(i,null,"Accept")))),Z&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(i,{style:t?{...r.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"," ",d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await Cn(!1)}},d.createElement(i,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>V(!1)},d.createElement(i,null,"No"))))))),R&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:Z?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),p&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:J?.length>0?J:"You have successfully logged in your account."})),!g&&d.createElement(i,null,"Loading Module Fonts..."))},Nt=oa;import o,{useEffect as Zn,useState as me}from"react";import{ethers as zn}from"ethers";import{contractAddress as ra,Provider as da}from"@verified-network/verified-sdk";var sa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=me(e.fontsLoaded||!1),[g,L]=me(!1),[y,v]=me("1"),[P,m]=me("1"),[C,c]=me(!1),[p,N]=me("email"),[X,q]=me(""),[R,O]=me(""),[Z,V]=me(""),[J,ee]=me(""),[ie,se]=me(""),[W,$]=me(!1),[G,Pe]=me(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[w,ke]=me([]),[Q,Be]=me(0),[ce,ae]=me([]),[F,ye]=me([]),[Ke,we]=me(!1),[de,Te]=me(2),[le,B]=me(""),[Ve,Oe]=me(!1),{pk:Je,vaultData:ue,vaultContract:Ue,chainId:Ze,signer:it}=Ge();Zn(()=>{let I=async()=>{if(t)try{let Y=await Ne(u);_(!0)}catch{_(!1)}else{let Y=Se(document);_(Y)}};e.fontsLoaded||I()},[]),Zn(()=>{let I=async()=>{e.setIsLoading&&e.setIsLoading(!0);let Y=j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ye=await Ue.getQuorum(Y);if(Ye?.status===0&&Ye?.response?.result?.length>0){let _e=Number(Ye?.response?.result[0]);Be(_e),ye(new Array(_e).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),ue?.existingCosignersHashed?.length>0){ae([...new Set(ue?.existingCosignersHashed)]),ye([...new Set(ue?.existingCosignersHashed)]);return}let M=ra[Ze]?.Custody;if(!M)return;let S=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new zn.Contract(M,S,it))return;let Ae=new zn.Interface(S),Ie=Ae.getEvent("NewParticipant").topicHash,ht=(await new da(pe[Ze]?.rpcUrls[0])?.getLogs({address:M,fromBlock:pe[Ze]?.custodyContractBlock||0,toBlock:"latest",topics:[Ie]}))?.map(_e=>{let Qe=Ae.parseLog(_e);return Qe?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Qe?.args?.creator!==Qe?.args?.participant?Qe?.args?.participant:null})?.filter(_e=>_e!==null);ae([...new Set(ht)]),ye([...new Set(ht)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&it&&Ue||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&it&&Ue)&&I()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let We=()=>{},Ct=()=>{let I=w?.length;if(p==="sms"&&X?.length===0){B("Invalid input, please check the phone number");return}else if(p==="sms"&&X?.length!==10){B("Invalid input, please check the phone number");return}else if(p==="email"&&Z?.length===0){B("Invalid input, please check the email");return}else if(p==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Z)){B("Invalid input, please check the email");return}else if(w?.find(Y=>Y?.otpChannel==="sms"?Y?.phoneArea?.toLowerCase()+Y?.number?.toLowerCase()===G.area?.toLowerCase()+R?.toLowerCase():Y?.email?.toLowerCase()===Z?.toLowerCase())){e.action!=="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(p==="sms"&&G?.area?.toLowerCase()+R?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){B("Invalid input, phone number is creator's phone number");return}else if(p==="email"&&Z?.toLowerCase()===e.userEmail?.toLowerCase()){B("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&ce?.length===0){B("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!ce?.includes(j(p==="sms"?`+${G?.area}${X}`:Z))){B(p==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&F?.length===1){B("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(I+1===5){B("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}B(""),ke(Y=>[{name:J,email:Z,number:R,phoneNumber:`+${G?.area}${X}`,otpChannel:p,phoneArea:G?.area,position:Y?.length+1,vaultId:p==="sms"?`+${G?.area}${X}`:Z},...Y]),V(""),ee(""),q(""),O(""),se(""),I+1===4&&c(!1),e.action==="remove-cosigner"&&F?.length>1&&ye(F?.filter(Y=>Y!==j(p==="sms"?`+${G?.area}${X}`:Z)))},$e=async()=>{let I=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:ue?.vaultId},...w]:[ue?.hashedVaultId,...F];(e.action!=="remove-cosigner"&&I?.length>0&&w?.length>0&&de&&ue?.vaultId&&ue?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&I?.length>1&&de&&ue?.vaultId&&ue?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await On(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,I,w,e?.userEmail?.length>0?"email":"sms",de,ue.vaultId,ue.hashedVaultId,ue.vaultPin,ue.hashedVaultPin,Ue,Je,ue?.rawId,e.action).then(Y=>{e.setIsLoading(!1),Y&&(e.action==="remove-cosigner"?Oe(!0):e.setStep("7"))}))};return o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Ve&&o.createElement(o.Fragment,null,!g&&o.createElement(o.Fragment,null,P==="1"&&o.createElement(o.Fragment,null,o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.pkicon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.encryptedIcon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{v("1"),L(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Learn More")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{m("2"),c(!1),L(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.createElement(o.Fragment,null," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ke&&o.createElement(o.Fragment,null,o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},Q," required signers"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",w?.length+1<5?w?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",w?.length,"/5)")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&F?.includes(" ")&&o.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ke&&w.sort((I,Y)=>I?.position-Y?.position).map((I,Y)=>o.createElement(a,{key:Y,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},vt[I?.position]?.split(" ")[0],o.createElement(i,null,o.createElement(i,{style:{fontSize:10}},vt[I?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},I?.name),I.otpChannel==="email"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},I.email),I.otpChannel==="sms"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",I?.phoneArea,") ",I.number))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{ke(Ye=>Ye?.filter(x=>x?.otpChannel==="sms"?x?.phoneArea?.toLowerCase()+x?.number?.toLowerCase()!==I?.phoneArea?.toLowerCase()+I?.number?.toLowerCase():x?.email?.toLowerCase()!==I?.email?.toLowerCase())?.map((x,M)=>(x.position=M+1,x))),We()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ke&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:w?.length+1).fill("1").map((I,Y)=>o.createElement(a,{key:Y,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:Y+1===de&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:Y+1===de&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(Y+1))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:E.pointer}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&w?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/w?.length}%`}:!t&&w?.length===1?{width:`${100/w?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/w?.length+5}%`}:{width:`calc(${100/w?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&F?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length}%`}:!t&&F?.length===1?{width:`${100/F?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length+5}%`}:{width:`calc(${100/F?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:w?.length+1).fill("1").map((I,Y)=>o.createElement(s,{style:{background:"transparent"},key:Y,onPress:()=>{Y+1>1&&Te(Y+1)}},e.action!=="remove-cosigner"&&o.createElement(i,{style:t&&Y===w?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===w?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1)),e.action==="remove-cosigner"&&o.createElement(i,{style:t&&Y===F?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===F?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1))))))),o.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await $e()}},o.createElement(i,null,"Confirm"))))),C&&w?.length<4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},vt[w?.length+1]?.split(" ")[0],o.createElement(i,{style:{fontSize:10}},vt[w?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(b,{onChangeText:ee,value:J,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("sms"),B(""),V("")}},o.createElement(l,{source:{uri:p==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("email"),B(""),q(""),O(""),se("")}},o.createElement(l,{source:{uri:p==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},p==="sms"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>$(!W),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.createElement(l,{source:{uri:G.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",G.area),W?o.createElement(l,{source:{uri:E.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.createElement(l,{source:{uri:E.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.createElement(b,{onChangeText:I=>{se(I===""?ie+" ":I);let Y=I.replace(/\D/g,"");q(Y);let Ye="";for(let x=0;x<Y.length;x++)Ye+=Y[x],(x+1)%5===0&&x+1<Y.length&&(Ye+=" ");O(Ye),B("")},onBlur:We,value:R,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),W&&o.createElement(Ft,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:We,setSelected:Pe,selected:G,searchActive:W,setSearchActive:$,contentMaxHeight:300,contentbottomMargin:300}),le===""&&X.length!==10&&ie.length>10&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),le!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le))),p==="email"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:I=>{V(I),B("")},onBlur:We,value:Z,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),le!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le)))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>c(!1)},o.createElement(i,null,"Cancel")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{Ct(),We()}},o.createElement(i,null,"Add")))),!C&&!Ke&&w?.length<4&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},o.createElement(l,{source:{uri:E.addIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!C&&!Ke&&w?.length===4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.createElement(l,{source:{uri:E.addDisableIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ke&&o.createElement(s,{className:w?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&w?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&w?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&w?.length>0&&!C&&w?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&w?.length===0&&!C&&w?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!C&&w?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{w?.length>0&&(Te(2),we(!0),c(!1))}},o.createElement(i,{style:n.buttonText},"Proceed")))),g&&o.createElement(o.Fragment,null,y==="1"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon2},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>L(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>v("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="2"&&o.createElement(o.Fragment,null,o.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:E.addCoSignerIcon3},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="3"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon4},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>{m("2"),c(!1),L(!1),v("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Start")))))),r&&Ve&&o.createElement(Fe,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!r&&o.createElement(i,null,"Loading Module Fonts..."))},gt=sa;import f,{useEffect as la,useRef as ca,useState as he}from"react";import{ethers as ua}from"ethers";var fa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,rnPasskey:r}=e.platform,[_,g]=he(e.fontsLoaded||!1),[L,y]=he(!1),[v,P]=he(!0),[m,C]=he(!1),[c,p]=he(!1),[N,X]=he(null),[q,R]=he(null),[O,Z]=he(e.newChainId||8453),[V,J]=he(!1),[ee,ie]=he(!1),[se,W]=he(!1),[$,G]=he(!1),[Pe,w]=he(!1),[ke,Q]=he(""),[Be,ce]=he(!1),[ae,F]=he({}),[ye,Ke]=he(["","","",""]),we=ca([]),[de,Te]=he(!1),[le,B]=he(null),{setChainId:Ve,setAddress:Oe,setPk:Je,setProvider:ue,setSigner:Ue,setVaultContract:Ze,setVaultData:it}=Ge();la(()=>{let x=async()=>{if(t)u&&await Ne(u),g(!0);else{let M=Se(document);g(M)}};e.fontsLoaded||x()},[]);let We=(x,M)=>{if(x.length>1){let S=x.replace(/\D/g,""),ne=[...ye],Ae=0;for(let Ie=M;Ie<ye.length&&Ae<S.length;Ie++)ne[Ie]=S[Ae],Ae++;Ke(ne);let Ce=M+S.length;Ce<ye.length&&we.current[Ce]&&we.current[Ce].focus(),y(!1)}else{let S=x.replace(/\D/g,""),ne=[...ye];ne[M]=S,Ke(ne),S&&we.current[M+1]&&we.current[M+1].focus(),y(!1)}},Ct=(x,M,S)=>{S.nativeEvent.key==="Backspace"&&!ye[M]&&M>0&&we.current[M-1]&&we.current[M-1].focus()},$e=ye.every(x=>x.length>0),I=async x=>{if(x?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(x?.listener),!e.helperFunctions)Q("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(Q(""),y(!1),de&&$e&&e.hashedVaultId&&e.encrptedPk||!de&&e.hashedVaultId&&e.encrptedPk&&x){e.setIsLoading(!0);let M=x?.pinString?x?.pinString:ye.join("");await Hn(e.vaultId,e.hashedVaultId,M,x?.hashed?x?.hashed:j(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(O),kn?.includes(e.origin?.toLowerCase()),null,x?.rawId).then(async S=>{if(S&&!S?.inCompleteVault)e.setIsLoading(!1),X(S),R(S?.pk&&e.action!=="eth_requestAccounts"?{address:S.address,channel:S.channel,chainId:S.chainId,pk:S?.pk}:{address:e.regAddress,channel:S.channel,chainId:S.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Jn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ne?p(!0):(Q("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 Rn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&k&&!e.reqTxData?.newUser&&!e.vaultAddress&&await k.removeItem("myVault"),ne?p(!0):(Q("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 Un(t,k,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),ne?p(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q("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&&S?.pin?.length>0&&e.signTxElement?(F({chainId:O,ky:de?ua.encodeBytes32String(S?.pin):"",rawId:de?"":x?.rawId,...e.txToSign}),ie(!1),ce(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(Q(""),y(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(Q(`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()?(Q(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q(`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?(Q("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?(Q("Incomplete account login detected. Logout and try again later"),y(!0)):(Q(""),y(!1),p(!0));else if(S&&S?.inCompleteVault&&S?.pk){let ne=await et(Number(O),S?.pk);if(Ve(ne.chainId),Oe(ne.address),Je(ne.pk),ue(ne.provider),Ue(ne.signer),Ze(ne.vaultContract),it({vaultId:S?.vaultId,hashedVaultId:S?.hashedVaultId,vaultPin:S?.pin,hashedVaultPin:de?j(S?.pin):De(S?.rawId),vaultContract:ne.vaultContract,rawId:S?.rawId}),S?.channel?.toLowerCase()==="sms"){let Ae=S?.vaultId?.replace(S?.vaultId?.slice(-10),""),Ce=S?.vaultId?.slice(-10)?.slice(0,5)+" "+S?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Ae?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ce),e.setUserEmail("")}else e.setUserEmail(S?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else Q(de?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!de&&!x&&(Q("Unexpected error with selected passkey. Try again later"),y(!0)),de&&!$e&&(Q("Input your 4-Digits PIN to login."),y(!0))},Y=async x=>{let M=e.vaultId;if(N?.pin?.length>0&&N?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&M&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let S=N.pin,ne=j(M),Ae=de?j(S):De(N.rawId);await Bt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ne,Ae,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,M,x,null,N.pk,Number(O)).then(Ce=>{e.setIsLoading(!1),Ce&&(w(x),W(!0))})}},Ye=async()=>{if(Q(""),y(!1),chrome?.windows?.create){let x=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Et,M=async(S,ne,Ae)=>{if(S.type==="VW:Passkey_Credential")if(S?.origin&&x?.toLowerCase()?.startsWith(S?.origin?.toLowerCase())){le&&chrome.windows.remove(le),ne?.tab&&ne?.tab?.windowId&&chrome.windows.remove(ne.tab.windowId);let Ce=S.data;if(Ce?.id&&Ce?.rawId){let Ie=xt(Ce?.rawId),ct=De(Ie),pt={pinString:Ce?.id,hashed:ct,rawId:Ie,listener:M};pt&&await I(pt)}else Q(`Passkey authentication failed: ${Ce?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}else Q("Passkey authentication failed: invalid passkey origin. Try again later"),y(!0)};chrome.runtime.onMessage.addListener(M),await chrome.windows.create({url:`${x}`,type:"popup",width:500,height:600}).then(S=>{B(S.id)})}else try{let x=t?await r.get(dt()):await navigator?.credentials?.get({publicKey:dt()}),M=De(x?.rawId);return{pinString:x?.id,hashed:M,rawId:x?.rawId}}catch(x){Q(`Passkey authentication failed: ${x?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}};return f.createElement(f.Fragment,null,_&&!ee&&!Be&&f.createElement(f.Fragment,null,!c&&f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},f.createElement(Me,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},de?"Enter PIN":"Sign-in with Existing Passkey")),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",f.createElement(i,{style:{color:"#0C0C0E"}},de?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",f.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),de&&f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ye.map((x,M)=>f.createElement(b,{key:M,ref:S=>we.current[M]=S,className:L?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&L?{...n.verifiedCustdMdlOtpInputRed}:t&&!L?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:v,maxLength:1,value:ye[M],onChangeText:S=>We(S,M),onKeyPress:S=>Ct(S,M,S),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${M}`}))),f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},L&&!ke&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),L&&ke&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},ke),!L&&f.createElement(i,null),v?f.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},f.createElement(l,{style:{width:24,height:24},source:{uri:E.pinHide}})):f.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},f.createElement(l,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!de&&f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},f.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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."),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(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.'),f.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!m&&f.createElement(a,{style:{height:20}}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},f.createElement(Bn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),de&&f.createElement(s,{onPress:async()=>await I(),style:t&&$e&&!L?{...n.verifiedCustdMdlStartupButtonActive}:t&&$e&&L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&!L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&L?{...n.verifiedCustdMdlStartupButton}:{},className:$e&&!L?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},f.createElement(i,null,"Proceed")),!de&&f.createElement(f.Fragment,null,L&&ke?.length>0&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},ke),f.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let x=await Ye();x&&await I(x)},className:"verified-custd-mdl-startup-button-active"},f.createElement(i,null,"Login With Passkey")))))),c&&f.createElement(Fe,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:q},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),_&&ee&&!Be&&f.createElement(f.Fragment,null,!se&&f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},f.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},f.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),f.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},f.createElement(l,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),$?f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",f.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.createElement(s,{onPress:async()=>await Y(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"Yes")),f.createElement(s,{onPress:()=>G(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"No")))))):f.createElement(f.Fragment,null,f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.createElement(l,{source:{uri:E.pkicon}})),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.createElement(l,{source:{uri:E.encryptedIcon}})),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.createElement(s,{onPress:()=>G(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},f.createElement(i,null,"Reject")),f.createElement(s,{onPress:async()=>await Y(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"Accept"))))),se&&f.createElement(Fe,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:N},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}`})),_&&!ee&&Be&&f.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ae}),!_&&f.createElement(i,null,"Loading Module Fonts..."))},mt=fa;var ma=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,StyleSheet:b,Font:s,AsyncStorage:A}=e?.platform,[u,k]=Ee(e.fontsLoaded||!1),[n,r]=Ee(e.showLogoPage||!1),[_,g]=Ee([]),[L,y]=Ee("2"),[v,P]=Ee(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[m,C]=Ee(""),[c,p]=Ee(""),[N,X]=Ee(!1),[q,R]=Ee(""),[O,Z]=Ee(""),[V,J]=Ee(""),[ee,ie]=Ee(""),[se,W]=Ee(null),[$,G]=Ee(null),[Pe,w]=Ee(!1),{setChainId:ke,setAddress:Q,setPk:Be,setProvider:ce,setSigner:ae,setVaultContract:F,setVaultData:ye,vaultData:Ke,chainId:we,vaultContract:de}=Ge();return Dt(()=>{let Te=async()=>{if(t)s&&await Ne(s),k(!0);else{let le=Se(document);k(le)}};e.fontsLoaded||Te()},[]),Dt(()=>{let Te=async()=>{let le;!t&&chrome?.storage?.local?le=await new Promise(Ve=>{chrome.storage.local.get(["lastPk"],Oe=>{Ve(Oe.lastPk)})}):!t&&localStorage?le=localStorage.getItem("lastPk"):t&&A&&(le=A.getItem("lastPk"));let B=await et(e.chainId,le&&le?.length>0?le:void 0);ke(B.chainId),Q(B.address),Be(B.pk),ce(B.provider),ae(B.signer),ye(B.vaultData),B.vaultContract?.contractAddress?F(B.vaultContract):F(void 0)};de?.contractAddress||Te()},[de]),Dt(()=>{ga(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Dt(()=>{(()=>{let le=Tt.map(B=>{if(B)return{name:B.name,countryName:B.name,officialName:B.name,currencySymbol:B.currency,currencyName:B.currency,officialCurrencySymbol:B.currency,countryCode:B.code,flag:B.flag,continent:B.continent,phone_code:B.phone_code,code:B.code}}).filter(Boolean);g(le)})()},[]),xe.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},u&&n&&e.logoPageElement&&xe.createElement(a,null,e.logoPageElement),u&&!n&&xe.createElement(a,{style:{width:"100%",heigth:"100%"}},L==="2"&&xe.createElement(fn,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:C,userNumberFmt:m,setUserEmail:p,userEmail:c,setSelectedCountry:P,selectedCountry:v,allCountries:_,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),L==="3"&&xe.createElement(gn,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:m,setUserNumberFmt:C,setUserEmail:p,userEmail:c,selectedCountry:v,helperFunctions:e.helperFunctions,setIsExistingUser:w}),L==="4"&&xe.createElement(Nt,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:X,setSuccessBtnText:R,setSuccessBtnNeutText:Z,setSuccessBtnFunc:W,setSuccessBtnNeutFunc:G,userNumberFmt:m,userEmail:c,selectedCountry:v,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:J,setActionFooterText:ie,helperFunctions:e.helperFunctions,isExistingUser:Pe,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),L==="5"&&xe.createElement(Fe,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:N,buttonText:q,buttonNeutText:O,buttonFunc:se,buttonNeutFunc:$,actionHeaderText:V,actionFooterText:ee}),L==="6"&&xe.createElement(gt,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:m,userEmail:c,selectedCountry:v,allCountries:_,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),L==="7"&&e.action===""&&xe.createElement(Fe,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="7"&&e.action!==""&&xe.createElement(Fe,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:we}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="8"&&e.dashbordElement&&xe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),L==="8"&&!e.dashbordElement&&xe.createElement(xe.Fragment,null),L==="0"&&xe.createElement(mt,{platform:e.platform,fontsLoaded:u,vaultId:Ke?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:Ke?.hashedVaultId,encrptedPk:Ke?.pk,vaultAddress:Ke?.address,vaultChannel:Ke?.channel,actionText:Pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(we||e.chainId),action:"getPk",reqVaultData:Ke,reqTxData:e.txData?Object.keys(e.txData)?.map(Te=>(e.txData[Te]=decodeURIComponent(e.txData[Te]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:C,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain})),!u&&xe.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},xe.createElement(i,null,"Loading Module Fonts...")))},mn=ma;var Ca=e=>{let[t,a]=Le(!1),[i,l]=Le({}),[K,b]=Le(!1),[s,A]=Le(null),[u,k]=Le({}),[n,r]=Le({}),[_,g]=Le(!1),[L,y]=Le(!1),[v,P]=Le(!1),[m,C]=Le(!1),[c,p]=Le(!1),[N,X]=Le(""),[q,R]=Le([]),[O,Z]=Le(""),[V,J]=Le(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[ee,ie]=Le(""),[se,W]=Le("");Vt(()=>{(async()=>{await tn();let ae=nn();ae&&(l(ae),a(!0))})()},[]);let{isReactNative:$,View:G,Text:Pe,Font:w,AsyncStorage:ke,ActivityIndicator:Q,styles:Be}=i;return Vt(()=>{!K&&t&&(async()=>{if($)w&&await Ne(w),b(!0);else{let ae=Se(document);b(ae)}})()},[t,K]),Vt(()=>{t&&(async()=>{if($){if(ke)try{let ae=await ke.getItem("myVault");if(ae){let F=JSON.parse(ae);if(F?.vaultId){k(F),A(!0);return}}A(!1)}catch(ae){console.error("Error reading vault data on react:",ae),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ae=>{ae.myVault&&JSON.parse(ae.myVault)?.vaultId?(k(JSON.parse(ae.myVault)),A(!0)):A(!1)});else if(localStorage){let ae=JSON.parse(localStorage.getItem("myVault"));ae&&ae?.vaultId?(k(ae),A(!0)):A(!1)}else A(!1)})()},[t]),Vt(()=>{(()=>{let ae=Tt.map(F=>F?{name:F?.name,countryName:F?.name,officialName:F?.name,currencySymbol:F?.currency,currencyName:F?.currency,officialCurrencySymbol:F?.currency,countryCode:F?.code,flag:F?.flag,continent:F?.continent,phone_code:F?.phone_code,code:F?.code}:null).filter(F=>F!=null);R(ae)})()},[]),z.createElement(z.Fragment,null,t&&z.createElement(z.Fragment,null,K&&z.createElement(an,null,_&&z.createElement(G,{style:$?{...Be.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},z.createElement(Q,{size:"large",color:"blue"})),z.createElement(G,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:$?{...Be.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&z.createElement(z.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&z.createElement(G,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&z.createElement(z.Fragment,null,!s&&!L&&z.createElement(mn,{platform:i,fontsLoaded:K,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:g,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&!L&&!v&&z.createElement(mt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,vaultChannel:u?.channel,regAddress:u?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:g,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:W,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&L&&v&&z.createElement(mt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,regAddress:u?.regAddress,vaultChannel:u?.channel,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:g,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:W,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&!L&&v&&O===""&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(gt,{platform:i,fontsLoaded:K,setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p})),s&&!L&&v&&O==="7"&&z.createElement(Fe,{platform:i,action:e.action,setStep:Z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{C(!1),p(!1),y(!0)},buttonFunc:()=>{C(!1),p(!1),y(!0)}}),s&&!L&&v&&O==="8"&&e.dashbordElement&&z.createElement(e.dashbordElement,{setIsLoading:g}),s&&!L&&v&&O==="8"&&!e.dashbordElement&&z.createElement(z.Fragment,null),!v&&L&&!m&&!c&&e.dashbordElement&&z.createElement(e.dashbordElement,{setIsLoading:g,setShowResetPin:C,setShowRemoveCosigner:p,setAction:X,setUserNumberFmt:ie,setUserEmail:W,setSelectedCountry:J,setVaultData:r,initWalletAndContract:et,useVaultStore:Ge}),s&&!v&&L&&!m&&!c&&!e.dashbordElement&&z.createElement(z.Fragment,null),s&&!v&&!c&&L&&m&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(Nt,{platform:i,fontsLoaded:K,action:"reset-pin",setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,vaultData:n,selectedCountry:V,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain})),s&&!v&&L&&!m&&c&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(gt,{platform:i,fontsLoaded:K,action:"remove-cosigner",setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:p}))))),!K&&z.createElement(Pe,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&z.createElement(z.Fragment,null,"Preparing Module..."))},pa=Ca;export{gt as AddCoSignersPage,fn as ContactPage,Nt as CreatePinPage,mt as EnterPinPage,mn as FTUPage,gn as OTPPage,an as VaultContextProvider,pa as VerifiedCustody,rt as decryptString,st as decryptWithPasskey,tt as encryptString,nt as encryptWithPasskey,nn as getPlatformComponents,De as hashTheBuffer,j as hashTheString,tn as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,dt as publicKeyCredentialRequestOptions};
1
+ var ni=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Nn=$t((Ma,Ai)=>{Ai.exports="./Roboto-Regular-UUBD26YO.ttf"});var Xn=$t((Fa,Li)=>{Li.exports="./Manrope-Regular-33576HBZ.ttf"});var En=$t((Ba,bi)=>{bi.exports="./Hind-Regular-R5KOYWFC.ttf"});function ii(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}ii(`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{ni("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import tt,{forwardRef as ai}from"react";var ya=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",kn="https://wallet.verified.network/create-passkey",Yt="https://wallet.verified.network/get-passkey",yn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Kn=["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"},vt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Pt={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"},E={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"},Gt=[{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 vn={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 Jt=!1,Rt=!1,Ut,Wt,Qt,jt,qt,Zt,zt,en,Pn,An,Ln,tn,bn,nn=async()=>{if(Rt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");Pn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");bn=await import("react-native-passkeys"),An=l.default,Ln=a.EventEmitter;let b=({className:A,id:u,...k})=>k,s=A=>u=>tt.createElement(A,{...b(u)});Ut=s(t.View),Wt=s(t.Text),Qt=s(t.Image),jt=s(t.ScrollView),qt=t.StyleSheet,Zt=s(t.TextInput),zt=s(t.TouchableOpacity),en=s(t.ActivityIndicator),tn=t.StyleSheet.create(vn),Jt=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Ut=({onPress:a,...i})=>tt.createElement("div",{onClick:a,...i}),Wt=({onPress:a,...i})=>tt.createElement("span",{onClick:a,...i}),Qt=({onPress:a,source:i,...l})=>tt.createElement("img",{onClick:a,...l,src:i?.uri}),jt=a=>tt.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),qt={create:a=>a},tn={},Zt=ai(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:K,value:b,keyboardType:s,secureTextEntry:A,onSubmitEditing:u,blurOnSubmit:k,placeholderTextColor:n,...r},w)=>tt.createElement("input",{...r,ref:w,value:b,onInput:m=>{i?.(m),a?.(m.target.value)},onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),u?.(m)),l?.(m),K?.(m)},type:A?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),zt=({onPress:a,style:i,...l})=>tt.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),en=({color:a,size:i,...l})=>tt.createElement(t.img,{height:"50px",width:"50px",src:E.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Jt=!1,console.log("Web platform initialized.")}Rt=!0},an=()=>{if(!Rt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Jt,View:Ut,Text:Wt,Image:Qt,ScrollView:jt,StyleSheet:qt,TextInput:Zt,TouchableOpacity:zt,ActivityIndicator:en,Font:Pn,AsyncStorage:An,EventEmitter:Ln,styles:tn,rnPasskey:bn}};import ee,{useEffect as It,useState as Pe}from"react";import oi,{createContext as ri,useContext as di,useState as st}from"react";var xn=ri(void 0),on=({children:e})=>{let[t,a]=st(null),[i,l]=st(null),[K,b]=st(null),[s,A]=st(null),[u,k]=st(null),[n,r]=st(null),[w,m]=st(null);return oi.createElement(xn.Provider,{value:{chainId:t,pk:i,address:K,signer:s,provider:u,vaultContract:n,vaultData:w,setChainId:a,setPk:l,setAddress:b,setSigner:A,setProvider:k,setVaultContract:r,setVaultData:m}},e)},Me=()=>{let e=di(xn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import be,{useEffect as Vt,useState as Ee}from"react";import{debounce as ma}from"lodash";import{contractAddress as xi,Custody as wi,Provider as _i,VerifiedWallet as rn}from"@verified-network/verified-sdk";var Ce={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:E.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:E.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:E.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:E.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:E.baseIcon}};import{pbkdf2 as Yn}from"@noble/hashes/pbkdf2";import{sha256 as Ft}from"@noble/hashes/sha256";import{randomBytes as mt,utf8ToBytes as ln,bytesToUtf8 as Si}from"@noble/hashes/utils";import{gcm as Gn}from"@noble/ciphers/aes";import cn from"crypto-js";import{toast as Tn}from"react-toastify";import bt from"react";import{base as Ni,baseSepolia as Xi,gnosis as Ei,mainnet as Ti,polygon as Yi,sepolia as Gi}from"viem/chains";import{http as Mi}from"viem";import{createPublicClient as ci,encodeAbiParameters as ui,encodeFunctionData as fi,pad as gi,toHex as mi,zeroAddress as Lt,zeroHash as pi}from"viem";var wn={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 _n={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 Ci="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",hi="0x00000000D3254452a909E4eeD47455Af7E27C289",Sn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",ki=0n,At=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},yi=e=>ui([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,fi({abi:wn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),Ki=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:K,...b}=e;return{deInitData:t,data:l,module:K,address:K,signer:i,type:a,getStubSignature:async()=>Sn,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),...b}},vi=e=>Ki({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:Lt,module:Lt,type:"validator",getStubSignature:async()=>Sn}),Pi=()=>({module:Lt,data:pi}),Mt=async(e,t,a)=>{let i=ci({chain:e,transport:t}),l=vi({signer:a}),K=[],b=[],s=Pi(),A=[],u=Lt,k=Ci,n=hi,r=[],w=yi({defaultValidator:At(l),validators:K.map(At),executors:b.map(At),hook:At(s),fallbacks:A.map(At),registryAddress:u,bootStrapAddress:n,prevalidationHooks:r}),m=gi(mi(ki),{size:32}),L=await i.readContract({address:k,abi:_n.abi,functionName:"computeAccountAddress",args:[w,m],authorizationList:void 0});if(L?.toLowerCase()!==Lt?.toLowerCase())return L};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return Kn.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=i,e.head.appendChild(K)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:Nn(),Manrope:Xn(),Hind:En()}),!0),nt=async(e,t)=>{try{let a;if(t)a=new rn(t);else{let r=rn.generateMnemonic();a=rn.importWallet(r)}let i=xi,l=e&&i[e]?.Custody&&Ce[e]?.rpcUrls?.length>0?e:8453,K=Ce[l]?.rpcUrls[0],b=a.setProvider(new _i(K)),s=a.privateKey,A=new wi(b,i[l]?.Custody),u=b,k=[Ni,Ti,Ei,Yi,Gi,Xi].find(r=>Number(r?.id)===Number(l)),n=await Mt(k,Mi(),u);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:b,provider:K,vaultContract:A,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},j=e=>{let t=e.toLowerCase(),a=Ft(ln(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},Ve=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=Ft(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},it=(e,t)=>cn.AES.encrypt(e,t).toString(),lt=(e,t)=>{var a=cn.AES.decrypt(e,t),i=a.toString(cn.enc.Utf8);return i},Fi=(e,t)=>bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},bt.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Xe=(e,t)=>(Tn.dismiss(),Tn.error(Fi(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 un=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Mn=e=>{e=e.replace(/-/g,"+").replace(/_/g,"/");let t=e.length%4===0?0:4-e.length%4;return e+="=".repeat(t),new Uint8Array(Buffer.from(e,"base64"))},W=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},Bi=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let K=t.substr(l*2,2);i[l]=parseInt(K,16)}return i},fn=(e,t,a,i)=>{let l=Bi(a);return i?{challenge:mt(32),rp:{name:e,id:i},user:{id:l,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}:{challenge:mt(32),rp:{name:e},user:{id:l,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}},xt=e=>{let t=atob(e),a=new ArrayBuffer(t.length),i=new Uint8Array(a);for(let l=0;l<t.length;l++)i[l]=t.charCodeAt(l);return a},ct=e=>e?{challenge:mt(32),timeout:6e4,userVerification:"required",rpId:e}:{challenge:mt(32),timeout:6e4,userVerification:"required"},dn=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),sn=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},at=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=mt(8),K=Array.from(l).map(r=>r.toString(16).padStart(2,"0")).join(""),b=j(`${a}:${K}`),s=ln(b),A=mt(12),u=Yn(Ft,i,s,{c:3e5,dkLen:32}),n=Gn(u,A).encrypt(ln(e));return[dn(s),dn(A),dn(n)].join(".")},ut=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),b=sn(a),s=sn(i),A=sn(l),u=Yn(Ft,K,b,{c:3e5,dkLen:32}),k=Gn(u,s);try{let n=k.decrypt(A);return Si(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import ne,{useEffect as $i,useState as pt}from"react";import Fn from"react";var Di=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=Number(e.currentSlider),w=e.sliderCount?.length||0,m=w>0?100/w:0;return Fn.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((L,y)=>{let v=y<=r;return Fn.createElement(a,{key:y,className:v?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&v?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${m}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${m}%`}:!t&&v?{width:`${m}%`}:{width:`${m}%`}})}))},Fe=Di;import Le,{useState as Vi}from"react";var Ii=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,w]=Vi(null),m=P=>{if(P===""){w(null);return}let f=e.searchContent.filter(C=>{let c=C?.name?.toLowerCase(),h=P.toLowerCase();if(c?.includes(h))return C.searched=h,C.nameArray=C.name.split(""),C});w(f),e.handleButtonDisplay()},L=(P,f)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(P,f)=>P.map((C,c)=>{let h=f.includes(C.toLowerCase());return Le.createElement(i,{key:c,style:h?n.boldText:n.fadedText},C)}),v=(P,f=!1)=>P.map((C,c)=>{let h=t?!1:window?.location?.search===`?${c}`,S=e.selected&&e.selected.length>0,X=e.type==="language"&&h?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return Le.createElement(s,{key:c,className:X,style:n.resultItem,onPress:()=>L(C,c)},Le.createElement(a,{style:n.resultInner},Le.createElement(l,{source:{uri:e.type==="language"?C.icon:C.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),Le.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},C.nameArray&&C.searched?y(C.nameArray,C.searched):C.name,e.type==="language"&&C.label&&Le.createElement(i,{style:C.searched?.includes(C.label.toLowerCase())?{}:n.fadedText},` (${C.label})`))),e.type==="language"&&S&&h&&Le.createElement(l,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return Le.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},Le.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&Le.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),Le.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},Le.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},Le.createElement(l,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),Le.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:m,onFocus:()=>e.type==="language"&&e.setSelected("")})),Le.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},Le.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&v(r||e.searchContent))))))},Bt=Ii;import wt from"react";var Bn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform;return wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Dn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&k&&(await k.removeItem("myVault"),await k.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:W(t,"0.7rem")}:{fontSize:W(t,"0.7rem")}},"Want to access a different account? Click"," ",wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:r},"Logout")," ","to logout and login/create another account")};var Hi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,w]=pt(e.fontsLoaded||!1),[m,L]=pt(""),[y,v]=pt(""),[P,f]=pt(!1),[C,c]=pt(""),[h,S]=pt(!1),{pk:X,vaultContract:q,address:R}=Me();$i(()=>{let V=async()=>{if(t)u&&await Ne(u),w(!0);else{let J=Se(document);w(J)}};e.fontsLoaded||V()},[]);let O=()=>{e.selectedCountry.area&&m.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),S(!0)):(c(""),S(!1))},Z=async()=>{if(e.userEmail===""&&m===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let V=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${m}`,J=e.userEmail?.length>0?"email":"sms";if(V&&J&&X&&q||V&&J&&e.noContract){e.setIsLoading(!0);try{let te=await e.helperFunctions.sendOTPVerification(R,J,V);e.setIsLoading(!1),te?(c(""),e.setStep("3")):(c(J==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Xe("OTP Error",J==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return ne.createElement(K,{style:{width:"100%",height:"100%"}},r&&ne.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},ne.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},ne.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),ne.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},ne.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&ne.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ne.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},ne.createElement(s,{onPress:()=>f(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},ne.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),ne.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),ne.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:E.arrowUp}:{uri:E.arrowDown}})),ne.createElement(b,{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:V=>{let J=V.replace(/\D/g,"");v(V),L(J);let te="";for(let ie=0;ie<J?.length;ie++)te+=J[ie],(ie+1)%5===0&&ie+1<J?.length&&(te+=" ");e.setUserNumberFmt(te),O()}})),P&&ne.createElement(Bt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:O,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:f,contentMaxHeight:"300",contentbottomMargin:"300"}),m.length!==10&&y.length>10&&!C&&ne.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&ne.createElement(ne.Fragment,null,e.enablePhone&&ne.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},ne.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),ne.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),ne.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),ne.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ne.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:V=>{e.setUserEmail(V),e.setUserNumberFmt(""),L(""),v(""),O()}}),C&&e.userEmail.length>0&&ne.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},C)))),!P&&ne.createElement(a,{style:{height:"80px"}}),ne.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},ne.createElement(Bn,{platform:e.platform}),ne.createElement(s,{style:t&&h?{...n.verifiedCustdMdlStartupButtonActive}:t&&!h?{...n.verifiedCustdMdlStartupButton}:{},className:h?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:Z},ne.createElement(i,null,"Get OTP"))))),!r&&ne.createElement(i,null,"Loading Module Fonts..."))},gn=Hi;import H,{useEffect as Qn,useRef as ea,useState as Ct}from"react";import{AbiCoder as Oi,encodeBytes32String as He,getBytes as Vn,hexlify as Ji}from"ethers";import{combine as Ri,split as In}from"shamir-secret-sharing";import{contractAddress as _t,Custody as St,Provider as ft,VerifiedWallet as Ze}from"@verified-network/verified-sdk";import{base as Ui,baseSepolia as Wi,gnosis as Qi,mainnet as ji,polygon as qi,sepolia as Zi}from"viem/chains";import{http as zi}from"viem";var $n=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},Hn=async(e,t,a,i,l,K,b,s,A,u,k,n,r,w,m,L,y)=>{try{let v={vaultId:i,hashedVaultId:l,vaultPin:K,hashedVaultPin:b,vaultContract:k,rawId:m};return await k.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let f;if(m)f=await at(A,m,K);else{let c=He(K);f=it(A,c)}let C;if(chrome?.storage?.local?C=await new Promise(c=>{chrome.storage.local.get(["lastPk"],h=>{c(h.lastPk)})}):!chrome?.storage?.local&&localStorage&&(C=localStorage.getItem("lastPk")),n==="reset-pin"&&r?.vaultContract&&L?.length>1&&y>1&&A?.length>0){let c=Number(L.length),S=(await In(Vn(A),Number(c),Number(y))).map(V=>un(V)),X=m?"":He(K),q=[],R=[];for(let V=0;V<L.length;V++){let J=L[V],te=m?await at(S[V],m,K):it(S[V],X);await k.addParticipant(l,J,te).then(async ie=>{let le={creatorVaultId:i,vaultPin:K,creatorHashedVaultId:l,creatorHashedVaultPin:b,cosigner:J,hashedCosigner:J,cosignerVaultIdType:"",cosignerVaultId:J,share:te};ie?.status===0?R.push(le):q.push(le)}),await new Promise(ie=>setTimeout(ie,1e3))}if(q?.length>0||R?.length!==L?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),null;let Z=await new Ze(A).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:f,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:f,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:f,channel:s})),{}}if(C&&C?.length>0)return await k.confirmParticipant(l,l,!0).then(async c=>{if(c?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let S=await new Ze(A).getAddress(),X;if(m)X=await at(A,m,K);else{let q=He(K);X=it(A,q)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:S,vaultId:i,hashedVaultId:l,pk:X,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:S,vaultId:i,hashedVaultId:l,pk:X,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:S,vaultId:i,hashedVaultId:l,pk:X,channel:s})),v}catch(h){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",h),!1}}else return Xe("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: ",c),!1});if(n==="invitation")return{isExisting:!0,...v};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:f,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:f,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:f,channel:s}));let c=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"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:w}});else if(!e&&!chrome?.runtime?.sendMessage){let h=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"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:w}}});c?.dispatchEvent(h)}else if(e&&a){let h=new a,S=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",X={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:w};h.emit(S,X)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:f,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(f){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",f),Xe("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await k.createVault(l).then(async f=>f?.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 k.confirmParticipant(l,l,!0).then(async C=>{if(C?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let h=await new Ze(A).getAddress(),S;if(m)S=await at(A,m,K);else{let X=He(K);S=it(A,X)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:h,vaultId:i,hashedVaultId:l,pk:S,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:h,vaultId:i,hashedVaultId:l,pk:S,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:h,vaultId:i,hashedVaultId:l,pk:S,channel:s})),v}catch(c){return Xe("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 Xe("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",C),!1})):(Xe("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",f),!1))})}catch(v){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",v),Xe("Oops something went wrong","Error while creating pin. Try again later"),!1}},On=async(e,t,a,i,l,K,b,s,A,u,k)=>{try{let n;if(k)n=await ut(l,k);else{let r=He(a);n=lt(l,r)}if(n){let r=_t,w=new Ze(n),m=s&&r[s]?.Custody&&Ce[s]?.rpcUrls?.length>0?s:8453,L=Ce[m]?.rpcUrls[0],y=w.setProvider(new ft(L)),v=new St(y,r[m].Custody);return v?await v.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let f=await v.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:b,chainId:u||m,pin:a,rawId:k,pk:n}:Number(f?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||m,pin:a,rawId:k,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||m,pin:a,rawId:k}:A?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||m,pin:a,rawId:k,pk:n}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||m,pin:a,rawId:k}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Dt=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let w;if(k)w=k;else{let m=_t,L=new Ze(n),y=r&&m[r]?.Custody&&Ce[r]?.rpcUrls?.length>0?r:8453,v=Ce[y]?.rpcUrls[0],P=L.setProvider(new ft(v));w=new St(P,m[y].Custody)}return w?await w.confirmParticipant(K,i,u).then(async m=>m?.status===0?(u?await e(a,s,A,l):await t(a,s,A,l),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",m),!1)):!1},Jn=async(e,t,a,i,l,K,b,s,A,u,k,n,r,w)=>{let m=Number(a.length),y=(await In(Vn(n),Number(m),K)).map(C=>un(C)),v=r?"":He(A),P=[],f=[];for(let C=0;C<a.length;C++){let c=a[C],h=r?await at(y[C],r,A):it(y[C],v);await k.addParticipant(s,w==="remove-cosigner"?c:j(c.vaultId),h).then(async S=>{let X=w==="remove-cosigner"?{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c,hashedCosigner:c,cosignerVaultIdType:"",cosignerVaultId:c,share:h}:{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c.vaultId,hashedCosigner:j(c.vaultId),cosignerVaultIdType:c.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:c.vaultId,share:h,...c};S?.status===0?(f.push(X),w!=="remove-cosigner"&&c.vaultId!==b&&await e(c.otpChannel,c.vaultId,b,u).then(q=>{q||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(X)}),await new Promise(S=>setTimeout(S,1e3))}return P?.length>0||f?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(s,K.toString()).then(async C=>{if(C?.status===0&&w!=="remove-cosigner"){let c=i?.map(h=>({name:h?.name,email:h?.email,phoneNumber:h?.phoneNumber,contactType:String(h?.otpChannel)?.toUpperCase(),position:`${Ot[Number(h?.position)]} Co-Signer`}));return await t(l,b,c,Number(K),u).then(h=>{h||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(C?.status===0&&w==="remove-cosigner"){let c=i?.map(async X=>(await k.removeParticipant(s,j(X?.vaultId)))?.status===0?"true":"false");if((await Promise.all(c))?.find(X=>X==="false")?.length>0)return!1;let S=i?.map(X=>({email:X?.email,phoneNumber:X?.phoneNumber,contactType:String(X?.otpChannel)?.toUpperCase(),position:`${Ot[Number(X?.position)]} Co-Signer`}));return await t(l,b,S,Number(K),u,!0).then(X=>{X||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),Xe("Oops somethin went wrong","error while saving vault keys"),!1})},Rn=async(e,t,a,i,l,K,b,s,A)=>{let u;if(A)u=await ut(K,A);else{let k=He(l);u=lt(K,k)}if(u){let k=_t,n=new Ze(u),r=s&&k[s]?.Custody&&Ce[s]?.rpcUrls?.length>0?s:8453,w=Ce[r]?.rpcUrls[0],m=n.setProvider(new ft(w)),L=new St(m,k[r].Custody);if(L)return await L.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.hash){let v=new Oi,P,f;if(y?.response?.result?.logs?.length>0){let C=y?.response?.result?.logs?.filter(S=>S?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&S?.topics?.map(X=>X?.toLowerCase())?.includes(Ht?.toLowerCase()));f=C?.length;let c=C[0]?.data,h=v.decode(["bytes32","bytes32","uint256"],c)?.map((S,X)=>X<2?S:Number(S)).flat();P=h[h?.length-1]}else{let S=(await new ft(w).getTransactionReceipt(y?.response?.hash)).logs?.filter(R=>R?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&R?.topics?.map(O=>O?.toLowerCase())?.includes(Ht?.toLowerCase()));f=S?.length;let X=S[0]?.data,q=v.decode(["bytes32","bytes32","uint256"],X)?.map((R,O)=>O<2?R:Number(R)).flat();P=q[q?.length-1]}return await e(b,i,a,Number(P),Number(f)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",y),!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},Un=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let w;if(r)w=await ut(b,r);else{let m=He(K);w=lt(b,m)}if(w){let m=_t,L=new Ze(w),y=n&&m[n]?.Custody&&Ce[n]?.rpcUrls?.length>0?n:8453,v=Ce[y]?.rpcUrls[0],P=L.setProvider(new ft(v)),f=new St(P,m[y].Custody);if(f)return await f.signTransaction(A,a,String(k)).then(async C=>C?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,i),await f.checkQuorum(A,k).then(async c=>c?.status===0&&c?.response?.result?(c?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,i,Number(k)),!0):!1)):!1).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",C),!1))}},Wn=async(e,t,a,i,l,K,b,s,A,u,k)=>{let n;if(k)n=await ut(b,k);else{let r=He(K);n=lt(b,r)}if(n){let r=_t,w=new Ze(n),m=u&&r[u]?.Custody&&Ce[u]?.rpcUrls?.length>0?u:8453,L=Ce[m]?.rpcUrls[0],y=w.setProvider(new ft(L)),v=new St(y,r[m].Custody);return v?await v.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await v.getShards(a,s).then(async f=>{if(f?.status===0&&f?.response?.result){let C=f?.response?.result.filter(c=>c!=="");if(C.length>1){let c=k?"":He(K),S=(await Promise.all(C.map(R=>k?ut(R,k):lt(R,c)))).map(R=>Mn(R)),X=await Ri(S),q=Ji(X);if(q){let R=k?"":He(K),O=k?await at(q,k,K):it(q,R),Z=new Ze(q),V=await Z.getAddress(),te=Z.setProvider(new ft(L)),ie=[Ui,ji,Qi,qi,Zi,Wi].find(Q=>Number(Q?.id)===Number(m)),le=await Mt(ie,zi(),te);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:le,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:le,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})):e&&t&&await t.setItem("myVault",JSON.stringify({address:le,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,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(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var ta=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,w]=Ct(e.fontsLoaded||!1),m=ea([]),[L,y]=Ct(!1),[v,P]=Ct(60),[f,C]=Ct(["","","",""]),[c,h]=Ct(!1),[S,X]=Ct(""),{pk:q,vaultContract:R,address:O}=Me();Qn(()=>{let Q=async()=>{if(t)u&&await Ne(u),w(!0);else{let I=Se(document);w(I)}};e.fontsLoaded||Q()},[]),Qn(()=>{if(v===0)return;let Q=setInterval(()=>P(I=>I-1),1e3);return()=>clearInterval(Q)},[v]);let Z=(Q,I)=>{if(Q?.length>1){let G=Q.replace(/\D/g,""),ve=[...f],x=0;for(let U=I;U<f.length&&x<G.length;U++)ve[U]=G[x],x++;C(ve);let ke=I+G.length;ke<f.length&&m.current[ke]&&m.current[ke].focus(),h(!1)}else{let G=Q.replace(/\D/g,""),ve=[...f];ve[I]=G,C(ve),G&&m.current[I+1]&&m.current[I+1].focus(),h(!1)}},V=(Q,I,G)=>{G.nativeEvent.key==="Backspace"&&!f[I]&&I>0&&m.current[I-1]&&m.current[I-1].focus()},J=f.every(Q=>Q.length>0),te=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ie=async()=>{if(!J||!e.helperFunctions){h(!0),X("Please enter the complete OTP.");return}let Q=te(),I=f.join("");if(!(!e.noContract&&!q||!e.noContract&&!R)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(O,Q,I)){e.setIsLoading(!1),h(!0);return}let ve=j(Q),x=!1;if(!e.noContract&&R&&(x=await $n(R,ve),x===null)){e.setIsLoading(!1),X("Unexpected error. Try again later."),h(!0);return}e.setIsExistingUser?.(x),e.setIsLoading(!1),e.setStep("4")}catch(G){e.setIsLoading(!1),X("Error verifying OTP. Try again."),h(!0),console.error("error: ",G)}}},le=async()=>{if(!e.helperFunctions){X("Helper functions missing."),h(!0);return}let Q=te(),I=e.userEmail?"email":"sms";e.setIsLoading(!0);let G=await e.helperFunctions.sendOTPVerification(O,I,Q);e.setIsLoading(!1),G?(C(["","","",""]),P(60),h(!1),X("")):Xe("OTP resend failed","Please try again later.")};return H.createElement(K,null,r&&H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},H.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&H.createElement(H.Fragment,null,H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&H.createElement(i,null,e.userEmail)),H.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},H.createElement(l,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},f.map((Q,I)=>H.createElement(b,{key:I,ref:G=>m.current[I]=G,value:f[I],onChangeText:G=>Z(G,I),onKeyPress:G=>V(G,I,G),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&v>5&&S===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},H.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),v),!c&&v<=5&&v>0&&S===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},H.createElement(i,{style:{fontWeight:"400"}},"00:"),v),!c&&v===0&&S===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&S===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&S?.length>0&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},S),!c&&v>0&&S===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&v===0&&S===""||c&&S===""?H.createElement(s,{style:{background:"transparent"},onPress:async()=>{C(["","","",""]),await le()}},H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!L&&H.createElement(a,{style:{height:"100px"}}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},H.createElement(s,{className:J&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ie,disabled:!J||c,style:J&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},H.createElement(i,null,"Proceed"))))),!r&&H.createElement(i,null,"Loading Module Fonts..."))},mn=ta;import d,{useEffect as jn,useRef as qn,useState as ge}from"react";import Re,{useEffect as na}from"react";var ia=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,EventEmitter:r}=e.platform;na(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let v=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&v?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});v?.dispatchEvent(P)}else t&&r&&new r().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(v){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",v)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let w=()=>{e.setStep?.("6")},m=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},L=()=>{e.handleShowDashboard()};return Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Re.createElement(l,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Re.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?w():e.action==="completeRecovery"?L():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Re.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Re.createElement(s,{onPress:()=>{e.action==="invitation"?m():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Re.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Be=ia;import{contractAddress as aa,Provider as oa}from"@verified-network/verified-sdk";import{ethers as Zn}from"ethers";var ra=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,EventEmitter:n,styles:r,rnPasskey:w}=e.platform,[m,L]=ge(e.fontsLoaded||!1),[y,v]=ge(!0),[P,f]=ge(!1),[C,c]=ge(""),[h,S]=ge(!1),[X,q]=ge(!1),[R,O]=ge(!1),[Z,V]=ge(!1),[J,te]=ge(""),[ie,le]=ge(""),[Q,I]=ge(null),[G,ve]=ge(!1),[x,ke]=ge(!1),[U,De]=ge(!1),[ue,re]=ge(""),[M,ye]=ge(""),[Ke,xe]=ge([]),[de,Te]=ge(0),[ce,F]=ge(null),{address:Ie,pk:Oe,chainId:Je,vaultContract:fe,signer:Ue,setVaultData:ze,setChainId:ot,setAddress:We,setPk:yt,setProvider:$e,setSigner:$,setVaultContract:T,vaultData:Ye}=Me(),[_,Y]=ge(["","","",""]),[N,z]=ge(["","","",""]),pe=qn([]),we=qn([]);jn(()=>{let B=async()=>{if(t)u&&await Ne(u),L(!0);else{let p=Se(document);L(p)}};e.fontsLoaded||B()},[]),jn(()=>{let B=async()=>{e.setIsLoading&&e.setIsLoading(!0);let p=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(p?.status===0&&p?.response?.result?.length>0){let Kt=Number(p?.response?.result[0]);Te(Kt)}if(e.vaultData?.existingCosignersHashed?.length>0){xe([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let ae=aa[Je]?.Custody;if(!ae)return;let oe=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Zn.Contract(ae,oe,e.vaultData?.signer))return;let se=new Zn.Interface(oe),gt=se.getEvent("NewParticipant").topicHash,ti=(await new oa(Ce[Je]?.rpcUrls[0])?.getLogs({address:ae,fromBlock:Ce[Je]?.custodyContractBlock||0,toBlock:"latest",topics:[gt]}))?.map(Kt=>{let Tt=se.parseLog(Kt);return Tt?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Tt?.args?.creator!==Tt?.args?.participant?Tt?.args?.participant:null})?.filter(Kt=>Kt!==null);xe([...new Set(ti)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&B()},[e.isExistingUser,e.action,e.vaultData]);let Ge=(B,p,D)=>{f(!1),c("");let ae=B.replace(/\D/g,""),oe=D?[...N]:[..._];oe[p]=ae,D?(z(oe),ae&&we.current[p+1]&&we.current[p+1].focus(),p<3&&oe.every(Ae=>Ae!=="")&&_.every(Ae=>Ae!=="")&&oe.join("")!==_.join("")&&(f(!0),c("Confirm Pin must match New Pin.")),p===3&&_.join("")!==oe.join("")&&(f(!0),c("Confirm Pin must match New Pin."))):(Y(oe),ae&&pe.current[p+1]&&pe.current[p+1].focus(),N.every(Ae=>Ae!=="")&&oe.join("")!==N.join("")&&(f(!0),c("New Pin must match Confirm Pin.")))},rt=async B=>{c(""),f(!1);try{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let D=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:kn,ae=async(oe,Ae,se)=>{if(oe.type==="VW:Passkey_Credential")if(oe?.origin&&D?.toLowerCase()?.startsWith(oe?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),Ae?.tab&&Ae?.tab?.windowId&&chrome.windows.remove(Ae.tab.windowId);let je=oe.data;if(je?.id&&je?.rawId){let gt=xt(je?.rawId),Et=Ve(gt),hn={pinString:je?.id,hashed:Et,rawId:gt,listener:ae};await dt(hn)}else c(`Passkey creation failed: ${je?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0)}else c("Passkey creation failed: invalid passkey origin. Try again later"),f(!0)};chrome.runtime.onMessage.addListener(ae),await chrome.windows.create({url:`${D}?id=${p}`,type:"popup",width:500,height:600}).then(oe=>{F(oe.id)})}else{if(t&&!w.isSupported())return c("Your device does not support Passkeys. Change device and try again later"),f(!0),null;let D=t?await w.create(fn("Verified Wallet",p,j(p),B)):await navigator?.credentials?.create({publicKey:fn("Verified Wallet",p,j(p))});if(D){let ae=Ve(D?.rawId);return{pinString:D?.id,hashed:ae,rawId:D?.rawId}}}return null}catch(p){return c(`Passkey creation failed: ${p?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0),null}},Xt=async B=>{if(c(""),f(!1),chrome?.windows?.create&&window){let p=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Yt,D=async(ae,oe,Ae)=>{if(ae.type==="VW:Passkey_Credential")if(ae?.origin&&p?.toLowerCase()?.startsWith(ae?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),oe?.tab&&oe?.tab?.windowId&&chrome.windows.remove(oe.tab.windowId);let se=ae.data;if(se?.id&&se?.rawId){let je=xt(se?.rawId),gt=Ve(je),Et={pinString:se?.id,hashed:gt,rawId:je,listener:D};await dt(Et)}else c(`Passkey authentication failed: ${se?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0)}else c("Passkey authentication failed: invalid passkey origin. Try again later"),f(!0)};chrome.runtime.onMessage.addListener(D),await chrome.windows.create({url:`${p}`,type:"popup",width:500,height:600}).then(ae=>{F(ae.id)})}else try{if(t&&!w.isSupported()){c("Your device does not support Passkeys. Change device and try again later"),f(!0);return}let p=t?await w.get(ct(B)):await navigator?.credentials?.get({publicKey:ct()}),D=Ve(p?.rawId);return{pinString:p?.id,hashed:D,rawId:p?.rawId}}catch(p){c(`Passkey authentication failed: ${p?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0)}},et=(B,p,D,ae)=>{let oe=D.nativeEvent.key;!ae&&oe==="Backspace"&&!_[p]&&p>0&&pe.current[p-1]&&pe.current[p-1].focus(),ae&&oe==="Backspace"&&!N[p]&&p>0&&we.current[p-1]&&we.current[p-1].focus()},_e=()=>x?e.isExistingUser?_.every(B=>B!==""):_.every(B=>B!=="")&&N.every(B=>B!==""&&_.join("")===N.join("")):!0,Qe=()=>!!(U&&M?.length===66&&M?.toLowerCase()?.startsWith("0x")),dt=async B=>{if(B?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(B?.listener),!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),f(!0);else{c(""),f(!1);let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&_e()&&p&&D&&Oe&&Ie&&fe||!e.isExistingUser&&_e()&&p&&D&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&_e()&&p&&D&&Oe&&Ie&&fe||e.isExistingUser&&_e()&&p&&D&&e.vaultData?.vaultContract){e.setIsLoading(!0);let ae=B?.pinString||_.join(""),oe=j(p),Ae=B?.hashed||j(ae);await Hn(t,k,n,p,oe,ae,Ae,D,B?.pk?B?.pk:Oe||e.vaultData?.pk,B?.address?B?.address:Ie||e.vaultData?.address,B?.vaultContract?B?.vaultContract:fe||e.vaultData?.vaultContract,e.action,B?.vaultData?B?.vaultData:e.vaultData,e.txData,B?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ke]:void 0,de).then(async se=>{e.setIsLoading(!1),se?(ze(se?.shouldStop&&se?.vaultId?{vaultId:se?.vaultId,hashedVaultId:se?.hashedVaultId,hashedVaultPin:se?.hashedVaultPin,pk:se?.pk,rawId:se?.rawId,channel:se?.channel}:se?.shouldStop?{}:se),c(""),f(!1),e.action==="invitation"?(le(ae),I(B?.rawId),q(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&x?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&x?localStorage.removeItem("myVault"):t&&k&&x&&await k.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(D,p,B?.hashed,e.vaultData.hashedVaultPin,Date.now()),te(`You have successfully reset your account ${x?"4-Digits PIN":"Passkey"}. ${x?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),S(!0)):se?.shouldStop?se?.shouldStop&&e.action!=="getPk"?(te(""),S(!0)):se?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):se===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),f(!0)):(c(`You are an existing user. Please use the right ${x?"existing 4-Digits PIN":"existing Passkey for "+p} to recover your account login access on this device/browser`),f(!0)):(c("Unexpected error while creating account. Please try again later."),f(!0))})}else _e()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),f(!0))}},Cn=async B=>{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(ie?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p||Q&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p){e.setIsLoading(!0);let ae=j(p),oe=x?j(ie):Ve(Q);await Dt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,D,ae,oe,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,p,B,fe).then(Ae=>{e.setIsLoading(!1),Ae&&!Ye?.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(B?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):Ae&&Ye?.isExisting&&O(!0)})}};return d.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},m&&d.createElement(d.Fragment,null,!h&&!X&&d.createElement(d.Fragment,null,!U&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},x?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},x?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},x?"Change Pin":"Change Passkey"),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",x?"PIN":"Passkey",". This"," ",x?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(i,{style:{color:"#0C0C0E"}},x?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(i,{style:{color:"#0C0C0E"}},x?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!x&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),x&&d.createElement(d.Fragment,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},_.map((B,p)=>d.createElement(b,{key:`pin-${p}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>pe.current[p]=D,value:_[p],onChangeText:D=>Ge(D,p,!1),onKeyPress:D=>et(D,p,D,!1)}))),e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},N.map((B,p)=>d.createElement(b,{key:`confirm-${p}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&!P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>we.current[p]=D,value:N[p],onChangeText:D=>Ge(D,p,!0),onKeyPress:D=>et(D,p,D,!0)}))),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!x&&d.createElement(d.Fragment,null,P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!x&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async B=>{if(e.action==="reset-pin"){let p=await rt(e?.passKeyRpId);p&&await dt(p)}else{let p=await Xt(e?.passKeyRpId);p&&await dt(p)}}},e.action==="reset-pin"&&d.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async B=>{if(!e.helperFunctions){c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),f(!0);return}let p=await rt(e?.passKeyRpId);p&&await dt(p)}},d.createElement(i,null,"Create New Account")),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async B=>{De(!0)}},d.createElement(i,null,"Import An Existing account")))),x&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&_e()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!_e()?{...r.verifiedCustdMdlStartupButton}:{},className:_e()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async B=>{await dt()}},d.createElement(i,null,"Proceed"))))),U&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(b,{style:t?{...r.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:M,onChangeText:B=>{ye(B)}}),ue?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ue)),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Qe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Qe()?{...r.verifiedCustdMdlStartupButton}:{},className:Qe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async B=>{try{if(!Qe()){f(!0),c("Invalid private key entered. Please scroll up, check private key and try again.");return}let p=await nt(Je,M);if(!p?.chainId||!p?.address||!p?.pk||!p?.provider||!p?.signer||!p?.vaultContract){f(!0),c("Invalid private key entered. Please check private key starts with 0x and try again.");return}ot(p.chainId),We(p.address),yt(p.pk),$e(p.provider),$(p.signer),ze(p.vaultData),T(p.vaultContract);let D=await rt(e?.passKeyRpId);D&&await dt({...D,pk:p.pk,vaultContract:p.vaultContract,signer:p.signer,address:p.address,vaultData:p.vaultData})}catch{f(!0),c("Error while importing account.try again later.");return}}},d.createElement(i,null,"Proceed With Passkey")))))),!h&&X&&d.createElement(d.Fragment,null,!R&&d.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(l,{style:t?{...r.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1}}),!Z&&d.createElement(K,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...r.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."),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.pkicon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.encryptedIcon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>V(!0)},d.createElement(i,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await Cn(!0)}},d.createElement(i,null,"Accept")))),Z&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(i,{style:t?{...r.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"," ",d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await Cn(!1)}},d.createElement(i,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>V(!1)},d.createElement(i,null,"No"))))))),R&&d.createElement(Be,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:Z?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),h&&d.createElement(Be,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:J?.length>0?J:"You have successfully logged in your account."})),!m&&d.createElement(i,null,"Loading Module Fonts..."))},Nt=ra;import o,{useEffect as zn,useState as me}from"react";import{ethers as ei}from"ethers";import{contractAddress as da,Provider as sa}from"@verified-network/verified-sdk";var la=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,w]=me(e.fontsLoaded||!1),[m,L]=me(!1),[y,v]=me("1"),[P,f]=me("1"),[C,c]=me(!1),[h,S]=me("email"),[X,q]=me(""),[R,O]=me(""),[Z,V]=me(""),[J,te]=me(""),[ie,le]=me(""),[Q,I]=me(!1),[G,ve]=me(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[x,ke]=me([]),[U,De]=me(0),[ue,re]=me([]),[M,ye]=me([]),[Ke,xe]=me(!1),[de,Te]=me(2),[ce,F]=me(""),[Ie,Oe]=me(!1),{pk:Je,vaultData:fe,vaultContract:Ue,chainId:ze,signer:ot}=Me();zn(()=>{let $=async()=>{if(t)try{let T=await Ne(u);w(!0)}catch{w(!1)}else{let T=Se(document);w(T)}};e.fontsLoaded||$()},[]),zn(()=>{let $=async()=>{e.setIsLoading&&e.setIsLoading(!0);let T=j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ye=await Ue.getQuorum(T);if(Ye?.status===0&&Ye?.response?.result?.length>0){let _e=Number(Ye?.response?.result[0]);De(_e),ye(new Array(_e).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),fe?.existingCosignersHashed?.length>0){re([...new Set(fe?.existingCosignersHashed)]),ye([...new Set(fe?.existingCosignersHashed)]);return}let Y=da[ze]?.Custody;if(!Y)return;let N=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new ei.Contract(Y,N,ot))return;let pe=new ei.Interface(N),Ge=pe.getEvent("NewParticipant").topicHash,et=(await new sa(Ce[ze]?.rpcUrls[0])?.getLogs({address:Y,fromBlock:Ce[ze]?.custodyContractBlock||0,toBlock:"latest",topics:[Ge]}))?.map(_e=>{let Qe=pe.parseLog(_e);return Qe?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Qe?.args?.creator!==Qe?.args?.participant?Qe?.args?.participant:null})?.filter(_e=>_e!==null);re([...new Set(et)]),ye([...new Set(et)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&ot&&Ue||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&ot&&Ue)&&$()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let We=()=>{},yt=()=>{let $=x?.length;if(h==="sms"&&X?.length===0){F("Invalid input, please check the phone number");return}else if(h==="sms"&&X?.length!==10){F("Invalid input, please check the phone number");return}else if(h==="email"&&Z?.length===0){F("Invalid input, please check the email");return}else if(h==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Z)){F("Invalid input, please check the email");return}else if(x?.find(T=>T?.otpChannel==="sms"?T?.phoneArea?.toLowerCase()+T?.number?.toLowerCase()===G.area?.toLowerCase()+R?.toLowerCase():T?.email?.toLowerCase()===Z?.toLowerCase())){e.action!=="remove-cosigner"&&F(h==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&F(h==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(h==="sms"&&G?.area?.toLowerCase()+R?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){F("Invalid input, phone number is creator's phone number");return}else if(h==="email"&&Z?.toLowerCase()===e.userEmail?.toLowerCase()){F("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&ue?.length===0){F("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!ue?.includes(j(h==="sms"?`+${G?.area}${X}`:Z))){F(h==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&M?.length===1){F("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if($+1===5){F("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}F(""),ke(T=>[{name:J,email:Z,number:R,phoneNumber:`+${G?.area}${X}`,otpChannel:h,phoneArea:G?.area,position:T?.length+1,vaultId:h==="sms"?`+${G?.area}${X}`:Z},...T]),V(""),te(""),q(""),O(""),le(""),$+1===4&&c(!1),e.action==="remove-cosigner"&&M?.length>1&&ye(M?.filter(T=>T!==j(h==="sms"?`+${G?.area}${X}`:Z)))},$e=async()=>{let $=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:fe?.vaultId},...x]:[fe?.hashedVaultId,...M];(e.action!=="remove-cosigner"&&$?.length>0&&x?.length>0&&de&&fe?.vaultId&&fe?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&$?.length>1&&de&&fe?.vaultId&&fe?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Jn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,$,x,e?.userEmail?.length>0?"email":"sms",de,fe.vaultId,fe.hashedVaultId,fe.vaultPin,fe.hashedVaultPin,Ue,Je,fe?.rawId,e.action).then(T=>{e.setIsLoading(!1),T&&(e.action==="remove-cosigner"?Oe(!0):e.setStep("7"))}))};return o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Ie&&o.createElement(o.Fragment,null,!m&&o.createElement(o.Fragment,null,P==="1"&&o.createElement(o.Fragment,null,o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.pkicon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.encryptedIcon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{v("1"),L(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Learn More")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{f("2"),c(!1),L(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.createElement(o.Fragment,null," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ke&&o.createElement(o.Fragment,null,o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},U," required signers"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",x?.length+1<5?x?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",x?.length,"/5)")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&M?.includes(" ")&&o.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ke&&x.sort(($,T)=>$?.position-T?.position).map(($,T)=>o.createElement(a,{key:T,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},vt[$?.position]?.split(" ")[0],o.createElement(i,null,o.createElement(i,{style:{fontSize:10}},vt[$?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},$?.name),$.otpChannel==="email"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},$.email),$.otpChannel==="sms"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",$?.phoneArea,") ",$.number))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{ke(Ye=>Ye?.filter(_=>_?.otpChannel==="sms"?_?.phoneArea?.toLowerCase()+_?.number?.toLowerCase()!==$?.phoneArea?.toLowerCase()+$?.number?.toLowerCase():_?.email?.toLowerCase()!==$?.email?.toLowerCase())?.map((_,Y)=>(_.position=Y+1,_))),We()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ke&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?M?.length+1:x?.length+1).fill("1").map(($,T)=>o.createElement(a,{key:T,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:T+1===de&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:T+1===de&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(T+1))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:E.pointer}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&x?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/x?.length}%`}:!t&&x?.length===1?{width:`${100/x?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/x?.length+5}%`}:{width:`calc(${100/x?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&M?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/M?.length}%`}:!t&&M?.length===1?{width:`${100/M?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/M?.length+5}%`}:{width:`calc(${100/M?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?M?.length+1:x?.length+1).fill("1").map(($,T)=>o.createElement(s,{style:{background:"transparent"},key:T,onPress:()=>{T+1>1&&Te(T+1)}},e.action!=="remove-cosigner"&&o.createElement(i,{style:t&&T===x?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&T===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&T===0?{paddingLeft:12}:!t&&T===x?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(T+1)),e.action==="remove-cosigner"&&o.createElement(i,{style:t&&T===M?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&T===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&T===0?{paddingLeft:12}:!t&&T===M?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(T+1))))))),o.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await $e()}},o.createElement(i,null,"Confirm"))))),C&&x?.length<4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},vt[x?.length+1]?.split(" ")[0],o.createElement(i,{style:{fontSize:10}},vt[x?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(b,{onChangeText:te,value:J,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{S("sms"),F(""),V("")}},o.createElement(l,{source:{uri:h==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{S("email"),F(""),q(""),O(""),le("")}},o.createElement(l,{source:{uri:h==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},h==="sms"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>I(!Q),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.createElement(l,{source:{uri:G.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",G.area),Q?o.createElement(l,{source:{uri:E.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.createElement(l,{source:{uri:E.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.createElement(b,{onChangeText:$=>{le($===""?ie+" ":$);let T=$.replace(/\D/g,"");q(T);let Ye="";for(let _=0;_<T.length;_++)Ye+=T[_],(_+1)%5===0&&_+1<T.length&&(Ye+=" ");O(Ye),F("")},onBlur:We,value:R,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),Q&&o.createElement(Bt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:We,setSelected:ve,selected:G,searchActive:Q,setSearchActive:I,contentMaxHeight:300,contentbottomMargin:300}),ce===""&&X.length!==10&&ie.length>10&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ce!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce))),h==="email"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:$=>{V($),F("")},onBlur:We,value:Z,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),ce!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce)))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>c(!1)},o.createElement(i,null,"Cancel")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{yt(),We()}},o.createElement(i,null,"Add")))),!C&&!Ke&&x?.length<4&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},o.createElement(l,{source:{uri:E.addIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!C&&!Ke&&x?.length===4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.createElement(l,{source:{uri:E.addDisableIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ke&&o.createElement(s,{className:x?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&x?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&x?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&x?.length>0&&!C&&x?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&x?.length===0&&!C&&x?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!C&&x?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{x?.length>0&&(Te(2),xe(!0),c(!1))}},o.createElement(i,{style:n.buttonText},"Proceed")))),m&&o.createElement(o.Fragment,null,y==="1"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon2},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>L(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>v("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="2"&&o.createElement(o.Fragment,null,o.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:E.addCoSignerIcon3},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="3"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon4},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>{f("2"),c(!1),L(!1),v("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Start")))))),r&&Ie&&o.createElement(Be,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!r&&o.createElement(i,null,"Loading Module Fonts..."))},ht=la;import g,{useEffect as ca,useRef as ua,useState as he}from"react";import{ethers as fa}from"ethers";var ga=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,rnPasskey:r}=e.platform,[w,m]=he(e.fontsLoaded||!1),[L,y]=he(!1),[v,P]=he(!0),[f,C]=he(!1),[c,h]=he(!1),[S,X]=he(null),[q,R]=he(null),[O,Z]=he(e.newChainId||8453),[V,J]=he(!1),[te,ie]=he(!1),[le,Q]=he(!1),[I,G]=he(!1),[ve,x]=he(!1),[ke,U]=he(""),[De,ue]=he(!1),[re,M]=he({}),[ye,Ke]=he(["","","",""]),xe=ua([]),[de,Te]=he(!1),[ce,F]=he(null),{setChainId:Ie,setAddress:Oe,setPk:Je,setProvider:fe,setSigner:Ue,setVaultContract:ze,setVaultData:ot}=Me();ca(()=>{let _=async()=>{if(t)u&&await Ne(u),m(!0);else{let Y=Se(document);m(Y)}};e.fontsLoaded||_()},[]);let We=(_,Y)=>{if(_.length>1){let N=_.replace(/\D/g,""),z=[...ye],pe=0;for(let Ge=Y;Ge<ye.length&&pe<N.length;Ge++)z[Ge]=N[pe],pe++;Ke(z);let we=Y+N.length;we<ye.length&&xe.current[we]&&xe.current[we].focus(),y(!1)}else{let N=_.replace(/\D/g,""),z=[...ye];z[Y]=N,Ke(z),N&&xe.current[Y+1]&&xe.current[Y+1].focus(),y(!1)}},yt=(_,Y,N)=>{N.nativeEvent.key==="Backspace"&&!ye[Y]&&Y>0&&xe.current[Y-1]&&xe.current[Y-1].focus()},$e=ye.every(_=>_.length>0),$=async _=>{if(_?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(_?.listener),!e.helperFunctions)U("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(U(""),y(!1),de&&$e&&e.hashedVaultId&&e.encrptedPk||!de&&e.hashedVaultId&&e.encrptedPk&&_){e.setIsLoading(!0);let Y=_?.pinString?_?.pinString:ye.join("");await On(e.vaultId,e.hashedVaultId,Y,_?.hashed?_?.hashed:j(Y),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(O),yn?.includes(e.origin?.toLowerCase()),null,_?.rawId).then(async N=>{if(N&&!N?.inCompleteVault)e.setIsLoading(!1),X(N),R(N?.pk&&e.action!=="eth_requestAccounts"?{address:N.address,channel:N.channel,chainId:N.chainId,pk:N?.pk}:{address:e.regAddress,channel:N.channel,chainId:N.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Rn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,_?.hashed?_?.hashed:j(Y),e.vaultId,Y,e.encrptedPk,e.vaultChannel,Number(O),_?.rawId).then(async z=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),z?h(!0):(U("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 Un(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,_?.hashed?_?.hashed:j(Y),e.vaultId,Y,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(O),_?.rawId).then(async z=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&k&&!e.reqTxData?.newUser&&!e.vaultAddress&&await k.removeItem("myVault"),z?h(!0):(U("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 Wn(t,k,e.hashedVaultId,_?.hashed?_?.hashed:j(Y),e.vaultId,Y,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(O),_?.rawId).then(async z=>{e.setIsLoading(!1),z?h(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),U("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&&N?.pin?.length>0&&e.signTxElement?(M({chainId:O,ky:de?fa.encodeBytes32String(N?.pin):"",rawId:de?"":_?.rawId,...e.txToSign}),ie(!1),ue(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(U(""),y(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(U(`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()?(U(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),U(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),U(`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?(U("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?(U("Incomplete account login detected. Logout and try again later"),y(!0)):(U(""),y(!1),h(!0));else if(N&&N?.inCompleteVault&&N?.pk){let z=await nt(Number(O),N?.pk);if(Ie(z.chainId),Oe(z.address),Je(z.pk),fe(z.provider),Ue(z.signer),ze(z.vaultContract),ot({vaultId:N?.vaultId,hashedVaultId:N?.hashedVaultId,vaultPin:N?.pin,hashedVaultPin:de?j(N?.pin):Ve(N?.rawId),vaultContract:z.vaultContract,rawId:N?.rawId}),N?.channel?.toLowerCase()==="sms"){let pe=N?.vaultId?.replace(N?.vaultId?.slice(-10),""),we=N?.vaultId?.slice(-10)?.slice(0,5)+" "+N?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:pe?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(we),e.setUserEmail("")}else e.setUserEmail(N?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else U(de?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!de&&!_&&(U("Unexpected error with selected passkey. Try again later"),y(!0)),de&&!$e&&(U("Input your 4-Digits PIN to login."),y(!0))},T=async _=>{let Y=e.vaultId;if(S?.pin?.length>0&&S?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&Y&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let N=S.pin,z=j(Y),pe=de?j(N):Ve(S.rawId);await Dt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,z,pe,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,Y,_,null,S.pk,Number(O)).then(we=>{e.setIsLoading(!1),we&&(x(_),Q(!0))})}},Ye=async _=>{if(U(""),y(!1),chrome?.windows?.create){let Y=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Yt,N=async(z,pe,we)=>{if(z.type==="VW:Passkey_Credential")if(z?.origin&&Y?.toLowerCase()?.startsWith(z?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),pe?.tab&&pe?.tab?.windowId&&chrome.windows.remove(pe.tab.windowId);let Ge=z.data;if(Ge?.id&&Ge?.rawId){let rt=xt(Ge?.rawId),Xt=Ve(rt),et={pinString:Ge?.id,hashed:Xt,rawId:rt,listener:N};et&&await $(et)}else U(`Passkey authentication failed: ${Ge?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}else U("Passkey authentication failed: invalid passkey origin. Try again later"),y(!0)};chrome.runtime.onMessage.addListener(N),await chrome.windows.create({url:`${Y}`,type:"popup",width:500,height:600}).then(z=>{F(z.id)})}else try{if(t&&!r.isSupported()){U("Your device does not support Passkeys. Change device and try again later"),y(!0);return}let Y=t?await r.get(ct(_)):await navigator?.credentials?.get({publicKey:ct()}),N=Ve(Y?.rawId);return{pinString:Y?.id,hashed:N,rawId:Y?.rawId}}catch(Y){U(`Passkey authentication failed: ${Y?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}};return g.createElement(g.Fragment,null,w&&!te&&!De&&g.createElement(g.Fragment,null,!c&&g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},g.createElement(Fe,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},de?"Enter PIN":"Sign-in with Existing Passkey")),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",g.createElement(i,{style:{color:"#0C0C0E"}},de?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",g.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),de&&g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ye.map((_,Y)=>g.createElement(b,{key:Y,ref:N=>xe.current[Y]=N,className:L?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&L?{...n.verifiedCustdMdlOtpInputRed}:t&&!L?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:v,maxLength:1,value:ye[Y],onChangeText:N=>We(N,Y),onKeyPress:N=>yt(N,Y,N),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${Y}`}))),g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},L&&!ke&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),L&&ke&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},ke),!L&&g.createElement(i,null),v?g.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},g.createElement(l,{style:{width:24,height:24},source:{uri:E.pinHide}})):g.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},g.createElement(l,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!de&&g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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."),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(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.'),g.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!f&&g.createElement(a,{style:{height:20}}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},g.createElement(Dn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),de&&g.createElement(s,{onPress:async()=>await $(),style:t&&$e&&!L?{...n.verifiedCustdMdlStartupButtonActive}:t&&$e&&L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&!L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&L?{...n.verifiedCustdMdlStartupButton}:{},className:$e&&!L?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},g.createElement(i,null,"Proceed")),!de&&g.createElement(g.Fragment,null,L&&ke?.length>0&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},ke),g.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let _=await Ye(e?.passKeyRpId);_&&await $(_)},className:"verified-custd-mdl-startup-button-active"},g.createElement(i,null,"Login With Passkey")))))),c&&g.createElement(Be,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:q},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),w&&te&&!De&&g.createElement(g.Fragment,null,!le&&g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},g.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},g.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),g.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},g.createElement(l,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),I?g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",g.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement(s,{onPress:async()=>await T(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"Yes")),g.createElement(s,{onPress:()=>G(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"No")))))):g.createElement(g.Fragment,null,g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement(l,{source:{uri:E.pkicon}})),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement(l,{source:{uri:E.encryptedIcon}})),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement(s,{onPress:()=>G(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},g.createElement(i,null,"Reject")),g.createElement(s,{onPress:async()=>await T(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"Accept"))))),le&&g.createElement(Be,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:S},customTextHeader:"Successful",customTextFooter:ve?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),w&&!te&&De&&g.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:re}),!w&&g.createElement(i,null,"Loading Module Fonts..."))},kt=ga;var pa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,StyleSheet:b,Font:s,AsyncStorage:A}=e?.platform,[u,k]=Ee(e.fontsLoaded||!1),[n,r]=Ee(e.showLogoPage||!1),[w,m]=Ee([]),[L,y]=Ee("2"),[v,P]=Ee(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[f,C]=Ee(""),[c,h]=Ee(""),[S,X]=Ee(!1),[q,R]=Ee(""),[O,Z]=Ee(""),[V,J]=Ee(""),[te,ie]=Ee(""),[le,Q]=Ee(null),[I,G]=Ee(null),[ve,x]=Ee(!1),{setChainId:ke,setAddress:U,setPk:De,setProvider:ue,setSigner:re,setVaultContract:M,setVaultData:ye,vaultData:Ke,chainId:xe,vaultContract:de}=Me();return Vt(()=>{let Te=async()=>{if(t)s&&await Ne(s),k(!0);else{let ce=Se(document);k(ce)}};e.fontsLoaded||Te()},[]),Vt(()=>{let Te=async()=>{let ce;!t&&chrome?.storage?.local?ce=await new Promise(Ie=>{chrome.storage.local.get(["lastPk"],Oe=>{Ie(Oe.lastPk)})}):!t&&localStorage?ce=localStorage.getItem("lastPk"):t&&A&&(ce=A.getItem("lastPk"));let F=await nt(e.chainId,ce&&ce?.length>0?ce:void 0);ke(F.chainId),U(F.address),De(F.pk),ue(F.provider),re(F.signer),ye(F.vaultData),F.vaultContract?.contractAddress?M(F.vaultContract):M(void 0)};de?.contractAddress||Te()},[de]),Vt(()=>{ma(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Vt(()=>{(()=>{let ce=Gt.map(F=>{if(F)return{name:F.name,countryName:F.name,officialName:F.name,currencySymbol:F.currency,currencyName:F.currency,officialCurrencySymbol:F.currency,countryCode:F.code,flag:F.flag,continent:F.continent,phone_code:F.phone_code,code:F.code}}).filter(Boolean);m(ce)})()},[]),be.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},u&&n&&e.logoPageElement&&be.createElement(a,null,e.logoPageElement),u&&!n&&be.createElement(a,{style:{width:"100%",heigth:"100%"}},L==="2"&&be.createElement(gn,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:C,userNumberFmt:f,setUserEmail:h,userEmail:c,setSelectedCountry:P,selectedCountry:v,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),L==="3"&&be.createElement(mn,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,setUserNumberFmt:C,setUserEmail:h,userEmail:c,selectedCountry:v,helperFunctions:e.helperFunctions,setIsExistingUser:x}),L==="4"&&be.createElement(Nt,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:X,setSuccessBtnText:R,setSuccessBtnNeutText:Z,setSuccessBtnFunc:Q,setSuccessBtnNeutFunc:G,userNumberFmt:f,userEmail:c,selectedCountry:v,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:J,setActionFooterText:ie,helperFunctions:e.helperFunctions,isExistingUser:ve,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),L==="5"&&be.createElement(Be,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:S,buttonText:q,buttonNeutText:O,buttonFunc:le,buttonNeutFunc:I,actionHeaderText:V,actionFooterText:te}),L==="6"&&be.createElement(ht,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,userEmail:c,selectedCountry:v,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),L==="7"&&e.action===""&&be.createElement(Be,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="7"&&e.action!==""&&be.createElement(Be,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:xe}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="8"&&e.dashbordElement&&be.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),L==="8"&&!e.dashbordElement&&be.createElement(be.Fragment,null),L==="0"&&be.createElement(kt,{platform:e.platform,fontsLoaded:u,vaultId:Ke?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:Ke?.hashedVaultId,encrptedPk:Ke?.pk,vaultAddress:Ke?.address,vaultChannel:Ke?.channel,actionText:Pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(xe||e.chainId),action:"getPk",reqVaultData:Ke,reqTxData:e.txData?Object.keys(e.txData)?.map(Te=>(e.txData[Te]=decodeURIComponent(e.txData[Te]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:h,setUserNumberFmt:C,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId})),!u&&be.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},be.createElement(i,null,"Loading Module Fonts...")))},pn=pa;var Ca=e=>{let[t,a]=Pe(!1),[i,l]=Pe({}),[K,b]=Pe(!1),[s,A]=Pe(null),[u,k]=Pe({}),[n,r]=Pe({}),[w,m]=Pe(!1),[L,y]=Pe(!1),[v,P]=Pe(!1),[f,C]=Pe(!1),[c,h]=Pe(!1),[S,X]=Pe(""),[q,R]=Pe([]),[O,Z]=Pe(""),[V,J]=Pe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[te,ie]=Pe(""),[le,Q]=Pe("");It(()=>{(async()=>{await nn();let re=an();re&&(l(re),a(!0))})()},[]);let{isReactNative:I,View:G,Text:ve,Font:x,AsyncStorage:ke,ActivityIndicator:U,styles:De}=i;return It(()=>{!K&&t&&(async()=>{if(I)x&&await Ne(x),b(!0);else{let re=Se(document);b(re)}})()},[t,K]),It(()=>{t&&(async()=>{if(I){if(ke)try{let re=await ke.getItem("myVault");if(re){let M=JSON.parse(re);if(M?.vaultId){k(M),A(!0);return}}A(!1)}catch(re){console.error("Error reading vault data on react:",re),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",re=>{re.myVault&&JSON.parse(re.myVault)?.vaultId?(k(JSON.parse(re.myVault)),A(!0)):A(!1)});else if(localStorage){let re=JSON.parse(localStorage.getItem("myVault"));re&&re?.vaultId?(k(re),A(!0)):A(!1)}else A(!1)})()},[t]),It(()=>{(()=>{let re=Gt.map(M=>M?{name:M?.name,countryName:M?.name,officialName:M?.name,currencySymbol:M?.currency,currencyName:M?.currency,officialCurrencySymbol:M?.currency,countryCode:M?.code,flag:M?.flag,continent:M?.continent,phone_code:M?.phone_code,code:M?.code}:null).filter(M=>M!=null);R(re)})()},[]),ee.createElement(ee.Fragment,null,t&&ee.createElement(ee.Fragment,null,K&&ee.createElement(on,null,w&&ee.createElement(G,{style:I?{...De.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},ee.createElement(U,{size:"large",color:"blue"})),ee.createElement(G,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:I?{...De.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&ee.createElement(ee.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&ee.createElement(G,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&ee.createElement(ee.Fragment,null,!s&&!L&&ee.createElement(pn,{platform:i,fontsLoaded:K,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(ue=>(e.txData[ue]=decodeURIComponent(e.txData[ue]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:m,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:h,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),s&&!L&&!v&&ee.createElement(kt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,vaultChannel:u?.channel,regAddress:u?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ue=>(e.txData[ue]=decodeURIComponent(e.txData[ue]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:h,setShowCompleteVault:P,setUserEmail:Q,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),s&&L&&v&&ee.createElement(kt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,regAddress:u?.regAddress,vaultChannel:u?.channel,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ue=>(e.txData[ue]=decodeURIComponent(e.txData[ue]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:h,setShowCompleteVault:P,setUserEmail:Q,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),s&&!L&&v&&O===""&&ee.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},ee.createElement(ht,{platform:i,fontsLoaded:K,setStep:Z,setIsLoading:m,userNumberFmt:te,userEmail:le,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:h})),s&&!L&&v&&O==="7"&&ee.createElement(Be,{platform:i,action:e.action,setStep:Z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{C(!1),h(!1),y(!0)},buttonFunc:()=>{C(!1),h(!1),y(!0)}}),s&&!L&&v&&O==="8"&&e.dashbordElement&&ee.createElement(e.dashbordElement,{setIsLoading:m}),s&&!L&&v&&O==="8"&&!e.dashbordElement&&ee.createElement(ee.Fragment,null),!v&&L&&!f&&!c&&e.dashbordElement&&ee.createElement(e.dashbordElement,{setIsLoading:m,setShowResetPin:C,setShowRemoveCosigner:h,setAction:X,setUserNumberFmt:ie,setUserEmail:Q,setSelectedCountry:J,setVaultData:r,initWalletAndContract:nt,useVaultStore:Me}),s&&!v&&L&&!f&&!c&&!e.dashbordElement&&ee.createElement(ee.Fragment,null),s&&!v&&!c&&L&&f&&ee.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},ee.createElement(Nt,{platform:i,fontsLoaded:K,action:"reset-pin",setStep:Z,setIsLoading:m,userNumberFmt:te,userEmail:le,vaultData:n,selectedCountry:V,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId})),s&&!v&&L&&!f&&c&&ee.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},ee.createElement(ht,{platform:i,fontsLoaded:K,action:"remove-cosigner",setStep:Z,setIsLoading:m,userNumberFmt:te,userEmail:le,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:C,setShowRemoveCosigner:h}))))),!K&&ee.createElement(ve,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&ee.createElement(ee.Fragment,null,"Preparing Module..."))},ha=Ca;export{ht as AddCoSignersPage,gn as ContactPage,Nt as CreatePinPage,kt as EnterPinPage,pn as FTUPage,mn as OTPPage,on as VaultContextProvider,ha as VerifiedCustody,lt as decryptString,ut as decryptWithPasskey,it as encryptString,at as encryptWithPasskey,an as getPlatformComponents,Ve as hashTheBuffer,j as hashTheString,nn as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,ct as publicKeyCredentialRequestOptions};
3
3
  //# sourceMappingURL=index.mjs.map