@verified-network/verified-custody 0.5.9 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as ei,b as Ot}from"./chunk-WCXX5QYV.mjs";var Nn=Ot((Ta,vi)=>{vi.exports="./Roboto-Regular-UUBD26YO.ttf"});var En=Ot((Ya,Pi)=>{Pi.exports="./Manrope-Regular-33576HBZ.ttf"});var Xn=Ot((Ga,Ai)=>{Ai.exports="./Hind-Regular-R5KOYWFC.ttf"});function ti(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}ti(`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{ei("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import Re,{forwardRef as ni}from"react";var pa=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",kn="https://wallet.verified.network/create-passkey",Mt="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"],Jt="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Rt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},At={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Lt={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"},Ft=[{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",flexDirection:"row",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 Ut=!1,Wt=!1,Qt,jt,qt,Zt,zt,en,tn,nn,Pn,An,Ln,an,bn,on=async()=>{if(Wt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),i=await import("events");Pn=(await import("expo-font")).default;let s=await import("@react-native-async-storage/async-storage"),g=await import("react-native-passkeys"),l=(await import("./svg-G2CCATII.mjs")).default;bn=g,An=s.default,Ln=i.EventEmitter;let K=({className:n,id:o,...A})=>A,f=n=>o=>Re.createElement(n,{...K(o)}),h=n=>typeof n=="string"&&n.endsWith(".svg");Qt=f(t.View),jt=f(t.Text),qt=n=>{let o=n.source?.uri;if(l&&h(o))return Re.createElement(l,{uri:o,style:n.style});let A=f(t.Image);return Re.createElement(A,{...n})},Zt=f(t.ScrollView),zt=t.StyleSheet,en=f(t.TextInput),tn=f(t.TouchableOpacity),nn=f(t.ActivityIndicator),an=t.StyleSheet.create(vn),Ut=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Qt=({onPress:i,...a})=>Re.createElement("div",{onClick:i,...a}),jt=({onPress:i,...a})=>Re.createElement("span",{onClick:i,...a}),qt=({onPress:i,source:a,...s})=>Re.createElement("img",{onClick:i,...s,src:a?.uri}),Zt=i=>Re.createElement("div",{style:{overflowY:"auto",...i.style}},i.children),zt={create:i=>i},an={},en=ni(({onChangeText:i,onInput:a,onKeyDown:s,onKeyPress:g,value:x,keyboardType:l,secureTextEntry:K,onSubmitEditing:f,blurOnSubmit:h,placeholderTextColor:n,...o},A)=>Re.createElement("input",{...o,ref:A,value:x,onInput:y=>{a?.(y),i?.(y.target.value)},onKeyDown:y=>{y.key==="Enter"&&(y.preventDefault(),f?.(y)),s?.(y),g?.(y)},type:K?"password":l==="numeric"||l==="number-pad"?"tel":"text",onChange:()=>{}})),tn=({onPress:i,style:a,...s})=>Re.createElement("button",{style:{outline:"none",border:"none",...a},onClick:i,...s},s.children),nn=({color:i,size:a,...s})=>Re.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"},...s}),Ut=!1,console.log("Web platform initialized.")}Wt=!0},rn=()=>{if(!Wt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Ut,View:Qt,Text:jt,Image:qt,ScrollView:Zt,StyleSheet:zt,TextInput:en,TouchableOpacity:tn,ActivityIndicator:nn,Font:Pn,AsyncStorage:An,EventEmitter:Ln,styles:an,rnPasskey:bn}};import te,{useEffect as Ht,useState as Pe}from"react";import ii,{createContext as ai,useContext as oi,useState as st}from"react";var xn=ai(void 0),dn=({children:e})=>{let[t,i]=st(null),[a,s]=st(null),[g,x]=st(null),[l,K]=st(null),[f,h]=st(null),[n,o]=st(null),[A,y]=st(null);return ii.createElement(xn.Provider,{value:{chainId:t,pk:a,address:g,signer:l,provider:f,vaultContract:n,vaultData:A,setChainId:i,setPk:s,setAddress:x,setSigner:K,setProvider:h,setVaultContract:o,setVaultData:y}},e)},Me=()=>{let e=oi(xn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import be,{useEffect as $t,useState as Xe}from"react";import{debounce as fa}from"lodash";import{contractAddress as Li,Custody as bi,Provider as xi,VerifiedWallet as sn}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 Dt}from"@noble/hashes/pbkdf2";import{sha256 as Ct}from"@noble/hashes/sha256";import{randomBytes as pt,utf8ToBytes as cn,bytesToUtf8 as wi}from"@noble/hashes/utils";import{gcm as Yn}from"@noble/ciphers/aes";import un from"crypto-js";import{toast as Tn}from"react-toastify";import wt from"react";import{base as _i,baseSepolia as Si,gnosis as Ni,mainnet as Ei,polygon as Xi,sepolia as Ti}from"viem/chains";import{http as Yi}from"viem";import{createPublicClient as si,encodeAbiParameters as li,encodeFunctionData as ci,pad as ui,toHex as fi,zeroAddress as xt,zeroHash as gi}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 mi="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",Ci="0x00000000D3254452a909E4eeD47455Af7E27C289",Sn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",pi=0n,bt=e=>{let t=e.module||e.address,i=e.initData||e.data;if(!t||!i)throw new Error("Module or data is missing");return{module:t,data:i}},hi=e=>li([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,ci({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:i="validator",signer:a,data:s="0x",module:g,...x}=e;return{deInitData:t,data:s,module:g,address:g,signer:a,type:i,getStubSignature:async()=>Sn,signUserOpHash:async l=>await a.signMessage({message:{raw:l}}),signMessage:async l=>await a.signMessage({message:l}),...x}},yi=e=>ki({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:xt,module:xt,type:"validator",getStubSignature:async()=>Sn}),Ki=()=>({module:xt,data:gi}),Bt=async(e,t,i)=>{let a=si({chain:e,transport:t}),s=yi({signer:i}),g=[],x=[],l=Ki(),K=[],f=xt,h=mi,n=Ci,o=[],A=hi({defaultValidator:bt(s),validators:g.map(bt),executors:x.map(bt),hook:bt(l),fallbacks:K.map(bt),registryAddress:f,bootStrapAddress:n,prevalidationHooks:o}),y=ui(fi(pi),{size:32}),k=await a.readContract({address:h,abi:_n.abi,functionName:"computeAccountAddress",args:[A,y],authorizationList:void 0});if(k?.toLowerCase()!==xt?.toLowerCase())return k};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return Kn.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let g=e.createElement("link");g.rel="stylesheet",g.href=a,e.head.appendChild(g)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:Nn(),Manrope:En(),Hind:Xn()}),!0),nt=async(e,t)=>{try{let i;if(t)i=new sn(t);else{let o=sn.generateMnemonic();i=sn.importWallet(o)}let a=Li,s=e&&a[e]?.Custody&&pe[e]?.rpcUrls?.length>0?e:8453,g=pe[s]?.rpcUrls[0],x=i.setProvider(new xi(g)),l=i.privateKey,K=new bi(x,a[s]?.Custody),f=x,h=[_i,Ei,Ni,Xi,Ti,Si].find(o=>Number(o?.id)===Number(s)),n=await Bt(h,Yi(),f);return s===11155111&&console.log("address to send test ETH to: ",i.address),{chainId:s,address:n,pk:l,signer:x,provider:g,vaultContract:K,vaultData:null}}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",i),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},Z=e=>{let t=e.toLowerCase(),i=Ct(cn(t));return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},Ve=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),i=Ct(t);return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},it=(e,t)=>un.AES.encrypt(e,t).toString(),lt=(e,t)=>{var i=un.AES.decrypt(e,t),a=i.toString(un.enc.Utf8);return a},Gi=(e,t)=>wt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},wt.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),wt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},wt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),wt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Ee=(e,t)=>(Tn.dismiss(),Tn.error(Gi(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 Gn=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var Q=(e,t,i=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*i:(t.endsWith("px"),a)},Mi=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let i=t.length/2,a=new Uint8Array(i);for(let s=0;s<i;s++){let g=t.substr(s*2,2);a[s]=parseInt(g,16)}return a},fn=(e,t,i,a)=>{let s=Mi(i);return a?{challenge:mt(pt(32)),rp:{name:e,id:a},user:{id:mt(s),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:pt(32),rp:{name:e},user:{id:s,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"}},_t=e=>{let t=atob(e),i=new ArrayBuffer(t.length),a=new Uint8Array(i);for(let s=0;s<t.length;s++)a[s]=t.charCodeAt(s);return i},ct=e=>e?{challenge:mt(pt(32)),timeout:6e4,userVerification:"required",rpId:e}:{challenge:pt(32),timeout:6e4,userVerification:"required"},mt=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),ln=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),i=atob(t);return new Uint8Array([...i].map(a=>a.charCodeAt(0)))},at=async(e,t,i,a)=>{let s=t instanceof Uint8Array?t:new Uint8Array(t),g=pt(8),x=Array.from(g).map(A=>A.toString(16).padStart(2,"0")).join(""),l=Z(`${i}:${x}`),K=cn(l),f=pt(12),h=a?Dt(Ct,s,K,{c:2e4,dkLen:32}):Dt(Ct,s,K,{c:3e5,dkLen:32}),o=Yn(h,f).encrypt(cn(e));return[mt(K),mt(f),mt(o)].join(".")},ut=async(e,t,i)=>{let[a,s,g]=e.split(".");if(!a||!s||!g)throw new Error("Invalid encrypted data format");let x=t instanceof Uint8Array?t:new Uint8Array(t),l=ln(a),K=ln(s),f=ln(g),n=i?Dt(Ct,x,l,{c:2e4,dkLen:32}):Dt(Ct,x,l,{c:3e5,dkLen:32}),o=Yn(n,K);try{let A=o.decrypt(f);return wi(A)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import ne,{useEffect as Vi,useState as ht}from"react";import Mn from"react";var Fi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,o=Number(e.currentSlider),A=e.sliderCount?.length||0,y=A>0?100/A:0;return Mn.createElement(i,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((k,L)=>{let P=L<=o;return Mn.createElement(i,{key:L,className:P?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&P?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${y}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${y}%`}:!t&&P?{width:`${y}%`}:{width:`${y}%`}})}))},Fe=Fi;import Le,{useState as Bi}from"react";var Di=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,[o,A]=Bi(null),y=b=>{if(b===""){A(null);return}let v=e.searchContent.filter(m=>{let c=m?.name?.toLowerCase(),u=b.toLowerCase();if(c?.includes(u))return m.searched=u,m.nameArray=m.name.split(""),m});A(v),e.handleButtonDisplay()},k=(b,v)=>{e.type==="area-code"?e.setSelected({area:b.phone_code,flag:b.flag,name:b.name}):e.type==="language"&&e.setSelected(b.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},L=(b,v)=>b.map((m,c)=>{let u=v.includes(m.toLowerCase());return Le.createElement(a,{key:c,style:u?n.boldText:n.fadedText},m)}),P=(b,v=!1)=>b.map((m,c)=>{let u=t?!1:window?.location?.search===`?${c}`,_=e.selected&&e.selected.length>0,X=e.type==="language"&&u?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return Le.createElement(l,{key:c,className:X,style:n.resultItem,onPress:()=>k(m,c)},Le.createElement(i,{style:n.resultInner},Le.createElement(s,{source:{uri:e.type==="language"?m.icon:m.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),Le.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},m.nameArray&&m.searched?L(m.nameArray,m.searched):m.name,e.type==="language"&&m.label&&Le.createElement(a,{style:m.searched?.includes(m.label.toLowerCase())?{}:n.fadedText},` (${m.label})`))),e.type==="language"&&_&&u&&Le.createElement(s,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return Le.createElement(i,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},Le.createElement(i,{className:"verified-custd-mdl-st-language-content"},e.headerText&&Le.createElement(a,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),Le.createElement(i,{className:"verified-custd-mdl-mobille-startup-search-box-container"},Le.createElement(i,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},Le.createElement(s,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),Le.createElement(x,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:y,onFocus:()=>e.type==="language"&&e.setSelected("")})),Le.createElement(g,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},Le.createElement(i,{className:"verified-custd-mdl-ms-search-content-container"},(o||e.searchContent)?.length>0&&P(o||e.searchContent))))))},Vt=Di;import St from"react";var Fn=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform;return St.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",St.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",St.createElement(a,{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:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,o=async()=>{e.setIsLoading(!0);try{t?t&&h&&(await h.removeItem("myVault"),await h.removeItem("lastPk")):!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")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return St.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:Q(t,"0.7rem")}:{fontSize:Q(t,"0.7rem")}},"Want to access a different account? Click"," ",St.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:o},"Logout")," ","to logout and login/create another account")};var Ii=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,[o,A]=ht(e.fontsLoaded||!1),[y,k]=ht(""),[L,P]=ht(""),[b,v]=ht(!1),[m,c]=ht(""),[u,_]=ht(!1),{pk:X,vaultContract:T,address:R}=Me();Vi(()=>{let j=async()=>{if(t)f&&await Ne(f),A(!0);else{let H=Se(document);A(H)}};e.fontsLoaded||j()},[]);let $=()=>{e.selectedCountry.area&&y.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),_(!0)):(c(""),_(!1))},q=async()=>{if(e.userEmail===""&&y===""){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 j=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${y}`,H=e.userEmail?.length>0?"email":"sms";if(j&&H&&X&&T||j&&H&&e.noContract){e.setIsLoading(!0);try{let z=await e.helperFunctions.sendOTPVerification(R,H,j);e.setIsLoading(!1),z?(c(""),e.setStep("3")):(c(H==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Ee("OTP Error",H==="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(g,{style:{width:"100%",height:"100%"}},o&&ne.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},ne.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},ne.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),ne.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},ne.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&ne.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ne.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},ne.createElement(l,{onPress:()=>v(!b),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},ne.createElement(s,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),ne.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),ne.createElement(s,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:b?{uri:E.arrowUp}:{uri:E.arrowDown}})),ne.createElement(x,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:j=>{let H=j.replace(/\D/g,"");P(j),k(H);let z="";for(let oe=0;oe<H?.length;oe++)z+=H[oe],(oe+1)%5===0&&oe+1<H?.length&&(z+=" ");e.setUserNumberFmt(z),$()}})),b&&ne.createElement(Vt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:$,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:b,setSearchActive:v,contentMaxHeight:"300",contentbottomMargin:"300"}),y.length!==10&&L.length>10&&!m&&ne.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!b&&ne.createElement(ne.Fragment,null,e.enablePhone&&ne.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},ne.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),ne.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),ne.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),ne.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ne.createElement(x,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:j=>{e.setUserEmail(j),e.setUserNumberFmt(""),k(""),P(""),$()}}),m&&e.userEmail.length>0&&ne.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},m)))),!b&&ne.createElement(i,{style:{height:"80px"}}),ne.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},ne.createElement(Fn,{platform:e.platform}),ne.createElement(l,{style:t&&u?{...n.verifiedCustdMdlStartupButtonActive}:t&&!u?{...n.verifiedCustdMdlStartupButton}:{},className:u?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:q},ne.createElement(a,null,"Get OTP"))))),!o&&ne.createElement(a,null,"Loading Module Fonts..."))},gn=Ii;import J,{useEffect as Un,useRef as Zi,useState as kt}from"react";import{AbiCoder as $i,encodeBytes32String as He,getBytes as Hi}from"ethers";import{combine as Oi,split as Dn}from"shamir-secret-sharing";import{contractAddress as Nt,Custody as Et,Provider as ft,VerifiedWallet as ze}from"@verified-network/verified-sdk";import{base as Ji,baseSepolia as Ri,gnosis as Ui,mainnet as Wi,polygon as Qi,sepolia as ji}from"viem/chains";import{http as qi}from"viem";var Vn=async(e,t)=>{try{return await e.getCreator(t).then(async i=>i?.status===0&&i?.response?.result[0]===!0)}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",i),null}},In=async(e,t,i,a,s,g,x,l,K,f,h,n,o,A,y,k,L,P)=>{try{let b={vaultId:s,hashedVaultId:g,vaultPin:x,hashedVaultPin:l,vaultContract:n,rawId:k};return await n.getCreator(g).then(async v=>{if(v?.status===0&&v?.response?.result[0]===!0)try{let m;if(k)m=await at(f,k,x,t);else{let u=He(x);m=it(f,u)}let c;if(t?t&&i&&(c=await i.getItem("lastPk")):chrome?.storage?.local?c=await new Promise(u=>{chrome.storage.local.get(["lastPk"],_=>{u(_.lastPk)})}):!chrome?.storage?.local&&localStorage&&(c=localStorage.getItem("lastPk")),o==="reset-pin"&&A?.vaultContract&&L?.length>1&&P>1&&f?.length>0){let u=Number(L.length),X=(await Dn(Hi(f),Number(u),Number(P))).map(H=>Gn(H)),T=k?"":He(x),R=[],$=[];for(let H=0;H<L.length;H++){let z=L[H],oe=k?await at(X[H],k,x,t):it(X[H],T);await n.addParticipant(g,z,oe).then(async se=>{let U={creatorVaultId:s,vaultPin:x,creatorHashedVaultId:g,creatorHashedVaultPin:l,cosigner:z,hashedCosigner:z,cosignerVaultIdType:"",cosignerVaultId:z,share:oe};se?.status===0?$.push(U):R.push(U)}),await new Promise(se=>setTimeout(se,1e3))}if(R?.length>0||$?.length!==L?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),null;let j=await new ze(f).getAddress();return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:j,vaultId:s,hashedVaultId:g,pk:m,channel:K})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:j,vaultId:s,hashedVaultId:g,pk:m,channel:K})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:j,vaultId:s,hashedVaultId:g,pk:m,channel:K})),{}}if(c&&c?.length>0)return await n.confirmParticipant(g,g,!0).then(async u=>{if(u?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let X=await new ze(f).getAddress(),T;if(k)T=await at(f,k,x,t);else{let R=He(x);T=it(f,R)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:X,vaultId:s,hashedVaultId:g,pk:T,channel:K})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:X,vaultId:s,hashedVaultId:g,pk:T,channel:K})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:X,vaultId:s,hashedVaultId:g,pk:T,channel:K})),b}catch(_){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",_),!1}}else return Ee("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",u),!1});if(o==="invitation")return{isExisting:!0,...b};{t?t&&i&&await i.setItem("myVault",JSON.stringify({vaultId:s,hashedVaultId:g,pk:m,channel:K})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:s,hashedVaultId:g,pk:m,channel:K})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:s,hashedVaultId:g,pk:m,channel:K}));let u=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",value:{vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:y}});else if(!t&&!chrome?.runtime?.sendMessage){let _=new CustomEvent(o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",{detail:{value:{vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:y}}});u?.dispatchEvent(_)}else if(t&&e){let _=o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",X={vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:y};e.emit(_,X)}}return o==="getPk"?{vaultId:s,hashedVaultId:g,pk:m,channel:K,shouldStop:!0}:{shouldStop:!0}}catch(m){return console.log("error......: ",m),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",m),Ee("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(v?.status===0&&v?.response?.result[0]!==!0)return await n.createVault(g).then(async m=>m?.status===0?(t?t&&i&&await i.setItem("lastPk",f):!t&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:f}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("lastPk",f),await n.confirmParticipant(g,g,!0).then(async c=>{if(c?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let _=await new ze(f).getAddress(),X;if(k)X=await at(f,k,x,t);else{let T=He(x);X=it(f,T)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:_,vaultId:s,hashedVaultId:g,pk:X,channel:K})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:_,vaultId:s,hashedVaultId:g,pk:X,channel:K})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:_,vaultId:s,hashedVaultId:g,pk:X,channel:K})),b}catch(u){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",u),!1}}else return Ee("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})):(Ee("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(b){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",b),Ee("Oops something went wrong","Error while creating pin. Try again later"),!1}},$n=async(e,t,i,a,s,g,x,l,K,f,h,n)=>{try{let o;if(n)o=await ut(g,n,e);else{let A=He(a);o=lt(g,A)}if(o){let A=Nt,y=new ze(o),k=K&&A[K]?.Custody&&pe[K]?.rpcUrls?.length>0?K:8453,L=pe[k]?.rpcUrls[0],P=y.setProvider(new ft(L)),b=new Et(P,A[k].Custody);return b?await b.getCreator(i).then(async v=>{if(v?.status===0&&v?.response?.result[0]===!0){let m=await b.getQuorum(i);return m?.status===0&&m?.response?.result?.length>0?f&&Number(m?.response?.result[0])>0?{address:x,vaultId:t,hashedVaultId:i,channel:l,chainId:h||k,pin:a,rawId:n,pk:o}:Number(m?.response?.result[0])===0?{address:x,vaultId:t,hashedVaultId:i,channel:l,chainId:h||k,pin:a,rawId:n,pk:o,inCompleteVault:!0}:{address:x,vaultId:t,hashedVaultId:i,channel:l,chainId:h||k,pin:a,rawId:n}:f?{address:x,vaultId:t,hashedVaultId:i,channel:l,chainId:h||k,pin:a,rawId:n,pk:o}:{address:x,vaultId:t,hashedVaultId:i,channel:l,chainId:h||k,pin:a,rawId:n}}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(o){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",o),null}},It=async(e,t,i,a,s,g,x,l,K,f,h,n,o)=>{let A;if(h)A=h;else{let y=Nt,k=new ze(n),L=o&&y[o]?.Custody&&pe[o]?.rpcUrls?.length>0?o:8453,P=pe[L]?.rpcUrls[0],b=k.setProvider(new ft(P));A=new Et(b,y[L].Custody)}return A?await A.confirmParticipant(g,a,f).then(async y=>y?.status===0?(f?await e(i,l,K,s):await t(i,l,K,s),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",y),!1)):!1},Hn=async(e,t,i,a,s,g,x,l,K,f,h,n,o,A,y)=>{let k=Number(a.length);console.log("[VW]: will split private key.........");let P=(await Dn(Uint8Array.from(o.split("").map(c=>c.charCodeAt(0))),Number(k),x)).map(c=>c.join(","));console.log("[VW]: private key split done....");let b=A?"":He(f),v=[],m=[];for(let c=0;c<a.length;c++){console.log("[VW]: will encrypt private key shard....");let u=a[c],_=A?await at(P[c],A,f,e):it(P[c],b);console.log("[VW]: private key shard encryption done..."),console.log("[VW]: will handle addParticipant..."),await n.addParticipant(K,y==="remove-cosigner"?u:Z(u.vaultId),_).then(async X=>{console.log("[VW]: addParticipant done...");let T=y==="remove-cosigner"?{creatorVaultId:l,vaultPin:f,creatorHashedVaultId:K,creatorHashedVaultPin:h,cosigner:u,hashedCosigner:u,cosignerVaultIdType:"",cosignerVaultId:u,share:_}:{creatorVaultId:l,vaultPin:f,creatorHashedVaultId:K,creatorHashedVaultPin:h,cosigner:u.vaultId,hashedCosigner:Z(u.vaultId),cosignerVaultIdType:u.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:u.vaultId,share:_,...u};X?.status===0?(m.push(T),y!=="remove-cosigner"&&u.vaultId!==l&&await t(u.otpChannel,u.vaultId,l,h).then(R=>{R||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):v.push(T)}),await new Promise(X=>setTimeout(X,1e3))}return v?.length>0||m?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),!1):await n.defineQuorum(K,x.toString()).then(async c=>{if(c?.status===0&&y!=="remove-cosigner"){let u=s?.map(_=>({name:_?.name,email:_?.email,phoneNumber:_?.phoneNumber,contactType:String(_?.otpChannel)?.toUpperCase(),position:`${Rt[Number(_?.position)]} Co-Signer`}));return await i(g,l,u,Number(x),h).then(_=>{_||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(c?.status===0&&y==="remove-cosigner"){let u=s?.map(async T=>(await n.removeParticipant(K,Z(T?.vaultId)))?.status===0?"true":"false");if((await Promise.all(u))?.find(T=>T==="false")?.length>0)return!1;let X=s?.map(T=>({email:T?.email,phoneNumber:T?.phoneNumber,contactType:String(T?.otpChannel)?.toUpperCase(),position:`${Rt[Number(T?.position)]} Co-Signer`}));return await i(g,l,X,Number(x),h,!0).then(T=>{T||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"),Ee("Oops somethin went wrong","error while saving vault keys"),!1})},On=async(e,t,i,a,s,g,x,l,K,f)=>{let h;if(f)h=await ut(x,f,e);else{let n=He(g);h=lt(x,n)}if(h){let n=Nt,o=new ze(h),A=K&&n[K]?.Custody&&pe[K]?.rpcUrls?.length>0?K:8453,y=pe[A]?.rpcUrls[0],k=o.setProvider(new ft(y)),L=new Et(k,n[A].Custody);if(L)return await L.promptSignatures(i).then(async P=>{if(P?.status===0&&P?.response?.hash){let b=new $i,v,m;if(P?.response?.result?.logs?.length>0){let c=P?.response?.result?.logs?.filter(X=>X?.address?.toLowerCase()===n[A].Custody?.toLowerCase()&&X?.topics?.map(T=>T?.toLowerCase())?.includes(Jt?.toLowerCase()));m=c?.length;let u=c[0]?.data,_=b.decode(["bytes32","bytes32","uint256"],u)?.map((X,T)=>T<2?X:Number(X)).flat();v=_[_?.length-1]}else{let X=(await new ft(y).getTransactionReceipt(P?.response?.hash)).logs?.filter($=>$?.address?.toLowerCase()===n[A].Custody?.toLowerCase()&&$?.topics?.map(q=>q?.toLowerCase())?.includes(Jt?.toLowerCase()));m=X?.length;let T=X[0]?.data,R=b.decode(["bytes32","bytes32","uint256"],T)?.map(($,q)=>q<2?$:Number($)).flat();v=R[R?.length-1]}return await t(l,s,a,Number(v),Number(m)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",P),!1}).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",P),!1))}},Jn=async(e,t,i,a,s,g,x,l,K,f,h,n,o,A)=>{let y;if(A)y=await ut(l,A,e);else{let k=He(x);y=lt(l,k)}if(y){let k=Nt,L=new ze(y),P=o&&k[o]?.Custody&&pe[o]?.rpcUrls?.length>0?o:8453,b=pe[P]?.rpcUrls[0],v=L.setProvider(new ft(b)),m=new Et(v,k[P].Custody);if(m)return await m.signTransaction(f,a,String(n)).then(async c=>c?.status===0?(await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K)?"email":"sms",K,g,s),await m.checkQuorum(f,n).then(async u=>u?.status===0&&u?.response?.result?(u?.response?.result[0]===!0&&await i(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K)?"email":"sms",K,g,s,Number(n)),!0):!1)):!1).catch(c=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",c),!1))}},Rn=async(e,t,i,a,s,g,x,l,K,f,h)=>{let n;if(h)n=await ut(x,h,e);else{let o=He(g);n=lt(x,o)}if(n){let o=Nt,A=new ze(n),y=f&&o[f]?.Custody&&pe[f]?.rpcUrls?.length>0?f:8453,k=pe[y]?.rpcUrls[0],L=A.setProvider(new ft(k)),P=new Et(L,o[y].Custody);return P?await P.checkQuorum(i,l).then(async b=>b?.status===0&&b?.response?.result&&b?.response?.result[0]===!0?await P.getShards(i,l).then(async v=>{if(v?.status===0&&v?.response?.result){let m=v?.response?.result.filter(c=>c!=="");if(m.length>1){let c=h?"":He(g),_=(await Promise.all(m.map(R=>h?ut(R,h):lt(R,c)))).map(R=>new Uint8Array(R.split(",").map(Number))),X=await Oi(_),T=new TextDecoder().decode(X);if(T){let R=h?"":He(g),$=h?await at(T,h,g,e):it(T,R),q=new ze(T),j=await q.getAddress(),z=q.setProvider(new ft(k)),oe=[Ji,Wi,Ui,Qi,ji,Ri].find(U=>Number(U?.id)===Number(y)),se=await Bt(oe,qi(),z);return e?e&&t&&await t.setItem("myVault",JSON.stringify({address:se,regAddress:j,vaultId:s,hashedVaultId:i,pk:$,channel:K})):!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:se,regAddress:j,vaultId:s,hashedVaultId:i,pk:$,channel:K})}):!e&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:se,regAddress:j,vaultId:s,hashedVaultId:i,pk:$,channel:K})),!0}}else return!1}else return!1}).catch(v=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",v),!1)):!1).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",b),!1)):!1}};var zi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,[o,A]=kt(e.fontsLoaded||!1),y=Zi([]),[k,L]=kt(!1),[P,b]=kt(60),[v,m]=kt(["","","",""]),[c,u]=kt(!1),[_,X]=kt(""),{pk:T,vaultContract:R,address:$}=Me();Un(()=>{let U=async()=>{if(t)f&&await Ne(f),A(!0);else{let I=Se(document);A(I)}};e.fontsLoaded||U()},[]),Un(()=>{if(P===0)return;let U=setInterval(()=>b(I=>I-1),1e3);return()=>clearInterval(U)},[P]);let q=(U,I)=>{if(U?.length>1){let M=U.replace(/\D/g,""),ve=[...v],w=0;for(let W=I;W<v.length&&w<M.length;W++)ve[W]=M[w],w++;m(ve);let ke=I+M.length;ke<v.length&&y.current[ke]&&y.current[ke].focus(),u(!1)}else{let M=U.replace(/\D/g,""),ve=[...v];ve[I]=M,m(ve),M&&y.current[I+1]&&y.current[I+1].focus(),u(!1)}},j=(U,I,M)=>{M.nativeEvent.key==="Backspace"&&!v[I]&&I>0&&y.current[I-1]&&y.current[I-1].focus()},H=v.every(U=>U.length>0),z=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,oe=async()=>{if(!H||!e.helperFunctions){u(!0),X("Please enter the complete OTP.");return}let U=z(),I=v.join("");if(!(!e.noContract&&!T||!e.noContract&&!R)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification($,U,I)){e.setIsLoading(!1),u(!0);return}let ve=Z(U),w=!1;if(!e.noContract&&R&&(w=await Vn(R,ve),w===null)){e.setIsLoading(!1),X("Unexpected error. Try again later."),u(!0);return}e.setIsExistingUser?.(w),e.setIsLoading(!1),e.setStep("4")}catch(M){e.setIsLoading(!1),X("Error verifying OTP. Try again."),u(!0),console.error("error: ",M)}}},se=async()=>{if(!e.helperFunctions){X("Helper functions missing."),u(!0);return}let U=z(),I=e.userEmail?"email":"sms";e.setIsLoading(!0);let M=await e.helperFunctions.sendOTPVerification($,I,U);e.setIsLoading(!1),M?(m(["","","",""]),b(60),u(!1),X("")):Ee("OTP resend failed","Please try again later.")};return J.createElement(g,null,o&&J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},J.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&J.createElement(J.Fragment,null,J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&J.createElement(a,null,e.userEmail)),J.createElement(l,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},J.createElement(s,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},v.map((U,I)=>J.createElement(x,{key:I,ref:M=>y.current[I]=M,value:v[I],onChangeText:M=>q(M,I),onKeyPress:M=>j(M,I,M),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"}))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&P>5&&_===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},J.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),P),!c&&P<=5&&P>0&&_===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},J.createElement(a,{style:{fontWeight:"400"}},"00:"),P),!c&&P===0&&_===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&_===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&_?.length>0&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},_),!c&&P>0&&_===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&P===0&&_===""||c&&_===""?J.createElement(l,{style:{background:"transparent"},onPress:async()=>{m(["","","",""]),await se()}},J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!k&&J.createElement(i,{style:{height:"100px"}}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},J.createElement(l,{className:H&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:oe,disabled:!H||c,style:H&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},J.createElement(a,null,"Proceed"))))),!o&&J.createElement(a,null,"Loading Module Fonts..."))},mn=zi;import d,{useEffect as Wn,useRef as Qn,useState as ge}from"react";import Ue,{useEffect as ea}from"react";var ta=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n,EventEmitter:o}=e.platform;ea(()=>{let L;return e.showButton||(L=setTimeout(()=>{if(e.messageTosend)try{let P=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,b=>{b&&e.action!=="signRecovery"&&P?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let b=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});P?.dispatchEvent(b)}else t&&e.eventEmitter&&e.eventEmitter.emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(P){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",P)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{L&&clearTimeout(L)}},[]);let A=()=>{e.setStep?.("6")},y=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},k=()=>{e.handleShowDashboard()};return Ue.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Ue.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Ue.createElement(s,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Ue.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Ue.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Ue.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Ue.createElement(l,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?A():e.action==="completeRecovery"?k():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Ue.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Ue.createElement(l,{onPress:()=>{e.action==="invitation"?y():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Ue.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},Be=ta;import{contractAddress as na,Provider as ia}from"@verified-network/verified-sdk";import{ethers as jn}from"ethers";var aa=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,EventEmitter:n,styles:o,rnPasskey:A}=e.platform,[y,k]=ge(e.fontsLoaded||!1),[L,P]=ge(!0),[b,v]=ge(!1),[m,c]=ge(""),[u,_]=ge(!1),[X,T]=ge(!1),[R,$]=ge(!1),[q,j]=ge(!1),[H,z]=ge(""),[oe,se]=ge(""),[U,I]=ge(null),[M,ve]=ge(!1),[w,ke]=ge(!1),[W,De]=ge(!1),[ue,re]=ge(""),[F,ye]=ge(""),[Ke,xe]=ge([]),[de,Te]=ge(0),[ce,B]=ge(null),{address:Ie,pk:Oe,chainId:Je,vaultContract:fe,signer:We,setVaultData:et,setChainId:ot,setAddress:Qe,setPk:vt,setProvider:$e,setSigner:O,setVaultContract:Y,vaultData:Ye}=Me(),[S,G]=ge(["","","",""]),[N,ee]=ge(["","","",""]),Ce=Qn([]),we=Qn([]);Wn(()=>{let D=async()=>{if(t)f&&await Ne(f),k(!0);else{let p=Se(document);k(p)}};e.fontsLoaded||D()},[]),Wn(()=>{let D=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 Pt=Number(p?.response?.result[0]);Te(Pt)}if(e.vaultData?.existingCosignersHashed?.length>0){xe([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let ie=na[Je]?.Custody;if(!ie)return;let ae=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new jn.Contract(ie,ae,e.vaultData?.signer))return;let le=new jn.Interface(ae),gt=le.getEvent("NewParticipant").topicHash,zn=(await new ia(pe[Je]?.rpcUrls[0])?.getLogs({address:ie,fromBlock:pe[Je]?.custodyContractBlock||0,toBlock:"latest",topics:[gt]}))?.map(Pt=>{let Gt=le.parseLog(Pt);return Gt?.args?.creator?.toLowerCase()===Z(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Gt?.args?.creator!==Gt?.args?.participant?Gt?.args?.participant:null})?.filter(Pt=>Pt!==null);xe([...new Set(zn)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&D()},[e.isExistingUser,e.action,e.vaultData]);let Ge=(D,p,V)=>{v(!1),c("");let ie=D.replace(/\D/g,""),ae=V?[...N]:[...S];ae[p]=ie,V?(ee(ae),ie&&we.current[p+1]&&we.current[p+1].focus(),p<3&&ae.every(Ae=>Ae!=="")&&S.every(Ae=>Ae!=="")&&ae.join("")!==S.join("")&&(v(!0),c("Confirm Pin must match New Pin.")),p===3&&S.join("")!==ae.join("")&&(v(!0),c("Confirm Pin must match New Pin."))):(G(ae),ie&&Ce.current[p+1]&&Ce.current[p+1].focus(),N.every(Ae=>Ae!=="")&&ae.join("")!==N.join("")&&(v(!0),c("New Pin must match Confirm Pin.")))},rt=async D=>{c(""),v(!1);try{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let V=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:kn,ie=async(ae,Ae,le)=>{if(ae.type==="VW:Passkey_Credential")if(ae?.origin&&V?.toLowerCase()?.startsWith(ae?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),Ae?.tab&&Ae?.tab?.windowId&&chrome.windows.remove(Ae.tab.windowId);let qe=ae.data;if(qe?.id&&qe?.rawId){let gt=_t(qe?.rawId),Yt=Ve(gt),hn={pinString:qe?.id,hashed:Yt,rawId:gt,listener:ie};await dt(hn)}else c(`Passkey creation failed: ${qe?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),v(!0)}else c("Passkey creation failed: invalid passkey origin. Try again later"),v(!0)};chrome.runtime.onMessage.addListener(ie),await chrome.windows.create({url:`${V}?id=${p}`,type:"popup",width:500,height:600}).then(ae=>{B(ae.id)})}else{if(t&&!A.isSupported())return c("Your device does not support Passkeys. Change device and try again later"),v(!0),null;let V=t?await A.create(fn("Verified Wallet",p,Z(p),D)):await navigator?.credentials?.create({publicKey:fn("Verified Wallet",p,Z(p))});if(V){let ie=Ve(V?.rawId);return{pinString:V?.id,hashed:ie,rawId:V?.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`),v(!0),null}},Tt=async D=>{if(c(""),v(!1),chrome?.windows?.create&&window){let p=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Mt,V=async(ie,ae,Ae)=>{if(ie.type==="VW:Passkey_Credential")if(ie?.origin&&p?.toLowerCase()?.startsWith(ie?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),ae?.tab&&ae?.tab?.windowId&&chrome.windows.remove(ae.tab.windowId);let le=ie.data;if(le?.id&&le?.rawId){let qe=_t(le?.rawId),gt=Ve(qe),Yt={pinString:le?.id,hashed:gt,rawId:qe,listener:V};await dt(Yt)}else c(`Passkey authentication failed: ${le?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),v(!0)}else c("Passkey authentication failed: invalid passkey origin. Try again later"),v(!0)};chrome.runtime.onMessage.addListener(V),await chrome.windows.create({url:`${p}`,type:"popup",width:500,height:600}).then(ie=>{B(ie.id)})}else try{if(t&&!A.isSupported()){c("Your device does not support Passkeys. Change device and try again later"),v(!0);return}let p=t?await A.get(ct(D)):await navigator?.credentials?.get({publicKey:ct()}),V=Ve(p?.rawId);return{pinString:p?.id,hashed:V,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`),v(!0)}},tt=(D,p,V,ie)=>{let ae=V.nativeEvent.key;!ie&&ae==="Backspace"&&!S[p]&&p>0&&Ce.current[p-1]&&Ce.current[p-1].focus(),ie&&ae==="Backspace"&&!N[p]&&p>0&&we.current[p-1]&&we.current[p-1].focus()},_e=()=>w?e.isExistingUser?S.every(D=>D!==""):S.every(D=>D!=="")&&N.every(D=>D!==""&&S.join("")===N.join("")):!0,je=()=>!!(W&&F?.length===66&&F?.toLowerCase()?.startsWith("0x")),dt=async D=>{if(D?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(D?.listener),!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),v(!0);else{c(""),v(!1);let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&_e()&&p&&V&&Oe&&Ie&&fe||!e.isExistingUser&&_e()&&p&&V&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&_e()&&p&&V&&Oe&&Ie&&fe||e.isExistingUser&&_e()&&p&&V&&e.vaultData?.vaultContract){e.setIsLoading(!0);let ie=D?.pinString||S.join(""),ae=Z(p),Ae=D?.hashed||Z(ie);await In(e.eventEmitter,t,h,n,p,ae,ie,Ae,V,D?.pk?D?.pk:Oe||e.vaultData?.pk,D?.address?D?.address:Ie||e.vaultData?.address,D?.vaultContract?D?.vaultContract:fe||e.vaultData?.vaultContract,e.action,D?.vaultData?D?.vaultData:e.vaultData,e.txData,D?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ke]:void 0,de).then(async le=>{e.setIsLoading(!1),le?(et(le?.shouldStop&&le?.vaultId?{vaultId:le?.vaultId,hashedVaultId:le?.hashedVaultId,hashedVaultPin:le?.hashedVaultPin,pk:le?.pk,rawId:le?.rawId,channel:le?.channel}:le?.shouldStop?{}:le),c(""),v(!1),e.action==="invitation"?(se(ie),I(D?.rawId),T(!0)):e.action==="reset-pin"?(t?t&&h&&w&&await h.removeItem("myVault"):!t&&chrome?.storage?.local&&w?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&w&&localStorage.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(V,p,D?.hashed,e.vaultData.hashedVaultPin,Date.now()),z(`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."}`),_(!0)):le?.shouldStop?le?.shouldStop&&e.action!=="getPk"?(z(""),_(!0)):le?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):le===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),v(!0)):(c(`You are an existing user. Please use the right ${w?"existing 4-Digits PIN":"existing Passkey for "+p} to recover your account login access on this device/browser`),v(!0)):(c("Unexpected error while handling account. Please try again later."),v(!0))})}else _e()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),v(!0))}},pn=async D=>{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(oe?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p||U&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p){e.setIsLoading(!0);let ie=Z(p),ae=w?Z(oe):Ve(U);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,V,ie,ae,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,p,D,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(D?`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&&$(!0)})}};return d.createElement(g,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},y&&d.createElement(d.Fragment,null,!u&&!X&&d.createElement(d.Fragment,null,!W&&d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.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(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Change Pin":"Change Passkey"),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.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(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(a,{style:{color:"#0C0C0E"}},w?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(a,{style:{color:"#0C0C0E"}},w?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!w&&d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),w&&d.createElement(d.Fragment,null,d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},S.map((D,p)=>d.createElement(x,{key:`pin-${p}`,style:t&&b?{...o.verifiedCustdMdlOtpInputRed}:t&&b?{...o.verifiedCustdMdlOtpInput}:{},className:b?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:L,keyboardType:"number-pad",maxLength:1,ref:V=>Ce.current[p]=V,value:S[p],onChangeText:V=>Ge(V,p,!1),onKeyPress:V=>tt(V,p,V,!1)}))),e.isExistingUser&&d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!b&&d.createElement(a,null),b&&m===""&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),b&&m?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!L&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>P(!0)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),L&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>P(!1)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},N.map((D,p)=>d.createElement(x,{key:`confirm-${p}`,style:t&&b?{...o.verifiedCustdMdlOtpInputRed}:t&&!b?{...o.verifiedCustdMdlOtpInput}:{},className:b?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:L,keyboardType:"number-pad",maxLength:1,ref:V=>we.current[p]=V,value:N[p],onChangeText:V=>Ge(V,p,!0),onKeyPress:V=>tt(V,p,V,!0)}))),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!b&&d.createElement(a,null),b&&m===""&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),b&&m?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!L&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>P(!0)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),L&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>P(!1)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!M&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!w&&d.createElement(d.Fragment,null,b&&m?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!w&&d.createElement(a,{style:t?{...o.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(l,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async D=>{if(e.action==="reset-pin"){let p=await rt(e?.passKeyRpId);p&&await dt(p)}else{let p=await Tt(e?.passKeyRpId);p&&await dt(p)}}},e.action==="reset-pin"&&d.createElement(a,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(a,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async D=>{if(!e.helperFunctions){c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),v(!0);return}let p=await rt(e?.passKeyRpId);p&&await dt(p)}},d.createElement(a,null,"Create New Account")),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...o.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...o.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...o.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...o.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(l,{style:t?{...o.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async D=>{De(!0)}},d.createElement(a,null,"Import An Existing account")))),w&&d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t&&_e()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!_e()?{...o.verifiedCustdMdlStartupButton}:{},className:_e()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async D=>{await dt()}},d.createElement(a,null,"Proceed"))))),W&&d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(x,{style:t?{...o.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:F,onChangeText:D=>{ye(D)}}),ue?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ue)),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!M&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},b&&m?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t&&je()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!je()?{...o.verifiedCustdMdlStartupButton}:{},className:je()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async D=>{try{if(!je()){v(!0),c("Invalid private key entered. Please scroll up, check private key and try again.");return}let p=await nt(Je,F);if(!p?.chainId||!p?.address||!p?.pk||!p?.provider||!p?.signer||!p?.vaultContract){v(!0),c("Invalid private key entered. Please check private key starts with 0x and try again.");return}ot(p.chainId),Qe(p.address),vt(p.pk),$e(p.provider),O(p.signer),et(p.vaultData),Y(p.vaultContract);let V=await rt(e?.passKeyRpId);V&&await dt({...V,pk:p.pk,vaultContract:p.vaultContract,signer:p.signer,address:p.address,vaultData:p.vaultData})}catch{v(!0),c("Error while importing account.try again later.");return}}},d.createElement(a,null,"Proceed With Passkey")))))),!u&&X&&d.createElement(d.Fragment,null,!R&&d.createElement(i,{className:"verified-custd-mdl-startup-language",style:t?{...o.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(s,{style:t?{...o.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1}}),!q&&d.createElement(g,null,d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(s,{source:{uri:E.pkicon}})),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(s,{source:{uri:E.encryptedIcon}})),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>j(!0)},d.createElement(a,null,"Reject")),d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await pn(!0)}},d.createElement(a,null,"Accept")))),q&&d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await pn(!1)}},d.createElement(a,null,"Yes")),d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>j(!1)},d.createElement(a,null,"No"))))))),R&&d.createElement(Be,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:q?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`,eventEmitter:e.eventEmitter})),u&&d.createElement(Be,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:H?.length>0?H:"You have successfully logged in your account.",eventEmitter:e.eventEmitter})),!y&&d.createElement(a,null,"Loading Module Fonts..."))},Xt=aa;import r,{useEffect as qn,useState as me}from"react";import{ethers as Zn}from"ethers";import{contractAddress as oa,Provider as ra}from"@verified-network/verified-sdk";var da=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n}=e.platform,[o,A]=me(e.fontsLoaded||!1),[y,k]=me(!1),[L,P]=me("1"),[b,v]=me("1"),[m,c]=me(!1),[u,_]=me("email"),[X,T]=me(""),[R,$]=me(""),[q,j]=me(""),[H,z]=me(""),[oe,se]=me(""),[U,I]=me(!1),[M,ve]=me(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[w,ke]=me([]),[W,De]=me(0),[ue,re]=me([]),[F,ye]=me([]),[Ke,xe]=me(!1),[de,Te]=me(2),[ce,B]=me(""),[Ie,Oe]=me(!1),{pk:Je,vaultData:fe,vaultContract:We,chainId:et,signer:ot}=Me();qn(()=>{let O=async()=>{if(t)try{let Y=await Ne(f);A(!0)}catch{A(!1)}else{let Y=Se(document);A(Y)}};e.fontsLoaded||O()},[]),qn(()=>{let O=async()=>{e.setIsLoading&&e.setIsLoading(!0);let Y=Z(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ye=await We.getQuorum(Y);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 G=oa[et]?.Custody;if(!G)return;let N=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Zn.Contract(G,N,ot))return;let Ce=new Zn.Interface(N),Ge=Ce.getEvent("NewParticipant").topicHash,tt=(await new ra(pe[et]?.rpcUrls[0])?.getLogs({address:G,fromBlock:pe[et]?.custodyContractBlock||0,toBlock:"latest",topics:[Ge]}))?.map(_e=>{let je=Ce.parseLog(_e);return je?.args?.creator?.toLowerCase()===Z(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&je?.args?.creator!==je?.args?.participant?je?.args?.participant:null})?.filter(_e=>_e!==null);re([...new Set(tt)]),ye([...new Set(tt)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&ot&&We||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&ot&&We)&&O()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let Qe=()=>{},vt=()=>{let O=w?.length;if(u==="sms"&&X?.length===0){B("Invalid input, please check the phone number");return}else if(u==="sms"&&X?.length!==10){B("Invalid input, please check the phone number");return}else if(u==="email"&&q?.length===0){B("Invalid input, please check the email");return}else if(u==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(q)){B("Invalid input, please check the email");return}else if(w?.find(Y=>Y?.otpChannel==="sms"?Y?.phoneArea?.toLowerCase()+Y?.number?.toLowerCase()===M.area?.toLowerCase()+R?.toLowerCase():Y?.email?.toLowerCase()===q?.toLowerCase())){e.action!=="remove-cosigner"&&B(u==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&B(u==="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(u==="sms"&&M?.area?.toLowerCase()+R?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){B("Invalid input, phone number is creator's phone number");return}else if(u==="email"&&q?.toLowerCase()===e.userEmail?.toLowerCase()){B("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&ue?.length===0){B("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!ue?.includes(Z(u==="sms"?`+${M?.area}${X}`:q))){B(u==="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(O+1===5){B("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}B(""),ke(Y=>[{name:H,email:q,number:R,phoneNumber:`+${M?.area}${X}`,otpChannel:u,phoneArea:M?.area,position:Y?.length+1,vaultId:u==="sms"?`+${M?.area}${X}`:q},...Y]),j(""),z(""),T(""),$(""),se(""),O+1===4&&c(!1),e.action==="remove-cosigner"&&F?.length>1&&ye(F?.filter(Y=>Y!==Z(u==="sms"?`+${M?.area}${X}`:q)))},$e=async()=>{e.setIsLoading(!0);let O=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:fe?.vaultId},...w]:[fe?.hashedVaultId,...F];e.action!=="remove-cosigner"&&O?.length>0&&w?.length>0&&de&&fe?.vaultId&&fe?.hashedVaultId&&We&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&O?.length>1&&de&&fe?.vaultId&&fe?.hashedVaultId&&We&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation?(e.setIsLoading(!0),await Hn(t,e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,O,w,e?.userEmail?.length>0?"email":"sms",de,fe.vaultId,fe.hashedVaultId,fe.vaultPin,fe.hashedVaultPin,We,Je,fe?.rawId,e.action).then(Y=>{e.setIsLoading(!1),Y&&(e.action==="remove-cosigner"?Oe(!0):e.setStep("7"))})):e.setIsLoading(!1)};return r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},o&&!Ie&&r.createElement(r.Fragment,null,!y&&r.createElement(r.Fragment,null,b==="1"&&r.createElement(r.Fragment,null,r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{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."))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.pkicon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.encryptedIcon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",r.createElement(a,{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."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{P("1"),k(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Learn More")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{v("2"),c(!1),k(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),b==="2"&&r.createElement(r.Fragment,null," ",r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ke&&r.createElement(r.Fragment,null,r.createElement(a,{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"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},W," required signers"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},r.createElement(a,{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."))))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},r.createElement(a,{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"&&r.createElement(a,{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"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",w?.length,"/5)")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&F?.includes(" ")&&r.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ke&&w.sort((O,Y)=>O?.position-Y?.position).map((O,Y)=>r.createElement(i,{key:Y,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},At[O?.position]?.split(" ")[0],r.createElement(a,null,r.createElement(a,{style:{fontSize:10}},At[O?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},O?.name),O.otpChannel==="email"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},O.email),O.otpChannel==="sms"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",O?.phoneArea,") ",O.number))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},r.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>{ke(Ye=>Ye?.filter(S=>S?.otpChannel==="sms"?S?.phoneArea?.toLowerCase()+S?.number?.toLowerCase()!==O?.phoneArea?.toLowerCase()+O?.number?.toLowerCase():S?.email?.toLowerCase()!==O?.email?.toLowerCase())?.map((S,G)=>(S.position=G+1,S))),Qe()}},r.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ke&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},r.createElement(i,{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((O,Y)=>r.createElement(i,{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"}},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(Y+1))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:E.pointer}})))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&r.createElement(i,{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"},r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})),e.action==="remove-cosigner"&&r.createElement(i,{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"},r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})))),r.createElement(i,{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((O,Y)=>r.createElement(l,{style:{background:"transparent"},key:Y,onPress:()=>{Y+1>1&&Te(Y+1)}},e.action!=="remove-cosigner"&&r.createElement(a,{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"&&r.createElement(a,{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))))))),r.createElement(l,{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()}},r.createElement(a,null,"Confirm"))))),m&&w?.length<4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},At[w?.length+1]?.split(" ")[0],r.createElement(a,{style:{fontSize:10}},At[w?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},r.createElement(x,{onChangeText:z,value:H,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{_("sms"),B(""),j("")}},r.createElement(s,{source:{uri:u==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{_("email"),B(""),T(""),$(""),se("")}},r.createElement(s,{source:{uri:u==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},u==="sms"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},r.createElement(l,{onPress:()=>I(!U),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},r.createElement(s,{source:{uri:M.flag},style:{width:24,height:16},alt:"Country Flag"}),r.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",M.area),U?r.createElement(s,{source:{uri:E.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):r.createElement(s,{source:{uri:E.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),r.createElement(x,{onChangeText:O=>{se(O===""?oe+" ":O);let Y=O.replace(/\D/g,"");T(Y);let Ye="";for(let S=0;S<Y.length;S++)Ye+=Y[S],(S+1)%5===0&&S+1<Y.length&&(Ye+=" ");$(Ye),B("")},onBlur:Qe,value:R,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),U&&r.createElement(Vt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Qe,setSelected:ve,selected:M,searchActive:U,setSearchActive:I,contentMaxHeight:300,contentbottomMargin:300}),ce===""&&X.length!==10&&oe.length>10&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ce!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce))),u==="email"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},r.createElement(x,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:O=>{j(O),B("")},onBlur:Qe,value:q,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),ce!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce)))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},r.createElement(l,{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)},r.createElement(a,null,"Cancel")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{vt(),Qe()}},r.createElement(a,null,"Add")))),!m&&!Ke&&w?.length<4&&r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},r.createElement(s,{source:{uri:E.addIcon},style:{width:20,height:20}}),r.createElement(a,{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")),!m&&!Ke&&w?.length===4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},r.createElement(s,{source:{uri:E.addDisableIcon},style:{width:20,height:20}}),r.createElement(a,{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&&r.createElement(l,{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&&!m&&w?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&w?.length===0&&!m&&w?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!m&&w?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{w?.length>0&&(Te(2),xe(!0),c(!1))}},r.createElement(a,{style:n.buttonText},"Proceed")))),y&&r.createElement(r.Fragment,null,L==="1"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon2},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{onPress:()=>P("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),L==="2"&&r.createElement(r.Fragment,null,r.createElement(s,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:E.addCoSignerIcon3},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{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:()=>P("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>P("3"),className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),L==="3"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon4},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>P("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{onPress:()=>{v("2"),c(!1),k(!1),P("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Start")))))),o&&Ie&&r.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)},eventEmitter:e.eventEmitter}),!o&&r.createElement(a,null,"Loading Module Fonts..."))},yt=da;import C,{useEffect as sa,useRef as la,useState as he}from"react";import{ethers as ca}from"ethers";var ua=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:x,TouchableOpacity:l,StyleSheet:K,Font:f,AsyncStorage:h,styles:n,rnPasskey:o}=e.platform,[A,y]=he(e.fontsLoaded||!1),[k,L]=he(!1),[P,b]=he(!0),[v,m]=he(!1),[c,u]=he(!1),[_,X]=he(null),[T,R]=he(null),[$,q]=he(e.newChainId||8453),[j,H]=he(!1),[z,oe]=he(!1),[se,U]=he(!1),[I,M]=he(!1),[ve,w]=he(!1),[ke,W]=he(""),[De,ue]=he(!1),[re,F]=he({}),[ye,Ke]=he(["","","",""]),xe=la([]),[de,Te]=he(!1),[ce,B]=he(null),{setChainId:Ie,setAddress:Oe,setPk:Je,setProvider:fe,setSigner:We,setVaultContract:et,setVaultData:ot}=Me();sa(()=>{let S=async()=>{if(t)f&&await Ne(f),y(!0);else{let G=Se(document);y(G)}};e.fontsLoaded||S()},[]);let Qe=(S,G)=>{if(S.length>1){let N=S.replace(/\D/g,""),ee=[...ye],Ce=0;for(let Ge=G;Ge<ye.length&&Ce<N.length;Ge++)ee[Ge]=N[Ce],Ce++;Ke(ee);let we=G+N.length;we<ye.length&&xe.current[we]&&xe.current[we].focus(),L(!1)}else{let N=S.replace(/\D/g,""),ee=[...ye];ee[G]=N,Ke(ee),N&&xe.current[G+1]&&xe.current[G+1].focus(),L(!1)}},vt=(S,G,N)=>{N.nativeEvent.key==="Backspace"&&!ye[G]&&G>0&&xe.current[G-1]&&xe.current[G-1].focus()},$e=ye.every(S=>S.length>0),O=async S=>{if(S?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(S?.listener),!e.helperFunctions)W("No Helper Functions. Please include all helper functions in the EnterPinPage props."),L(!0);else if(W(""),L(!1),de&&$e&&e.hashedVaultId&&e.encrptedPk||!de&&e.hashedVaultId&&e.encrptedPk&&S){e.setIsLoading(!0);let G=S?.pinString?S?.pinString:ye.join("");await $n(t,e.vaultId,e.hashedVaultId,G,S?.hashed?S?.hashed:Z(G),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number($),yn?.includes(e.origin?.toLowerCase())?!0:!!t,null,S?.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 On(t,e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,S?.hashed?S?.hashed:Z(G),e.vaultId,G,e.encrptedPk,e.vaultChannel,Number($),S?.rawId).then(async ee=>{e.setIsLoading(!1),t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),ee?u(!0):(W("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),L(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Jn(t,e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,S?.hashed?S?.hashed:Z(G),e.vaultId,G,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number($),S?.rawId).then(async ee=>{e.setIsLoading(!1),t?t&&h&&!e.reqTxData?.newUser&&!e.vaultAddress&&await h.removeItem("myVault"):!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"),ee?u(!0):(W("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."),L(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Rn(t,h,e.hashedVaultId,S?.hashed?S?.hashed:Z(G),e.vaultId,G,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number($),S?.rawId).then(async ee=>{e.setIsLoading(!1),ee?u(!0):(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),W("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),L(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement?(F({chainId:$,ky:de?ca.encodeBytes32String(N?.pin):"",rawId:de?"":S?.rawId,...e.txToSign}),oe(!1),ue(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(W(""),L(!1),oe(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(W(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),L(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(W(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),L(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),W(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),L(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),W(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),L(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(W("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),L(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(W("Incomplete account login detected. Logout and try again later"),L(!0)):(W(""),L(!1),u(!0));else if(N&&N?.inCompleteVault&&N?.pk){let ee=await nt(Number($),N?.pk);if(Ie(ee.chainId),Oe(ee.address),Je(ee.pk),fe(ee.provider),We(ee.signer),et(ee.vaultContract),ot({vaultId:N?.vaultId,hashedVaultId:N?.hashedVaultId,vaultPin:N?.pin,hashedVaultPin:de?Z(N?.pin):Ve(N?.rawId),vaultContract:ee.vaultContract,rawId:N?.rawId}),N?.channel?.toLowerCase()==="sms"){let Ce=N?.vaultId?.replace(N?.vaultId?.slice(-10),""),we=N?.vaultId?.slice(-10)?.slice(0,5)+" "+N?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Ce?.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 W(de?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),L(!0),e.setIsLoading(!1)})}else!de&&!S&&(W("Unexpected error with selected passkey. Try again later"),L(!0)),de&&!$e&&(W("Input your 4-Digits PIN to login."),L(!0))},Y=async S=>{let G=e.vaultId;if(_?.pin?.length>0&&_?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&G&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let N=_.pin,ee=Z(G),Ce=de?Z(N):Ve(_.rawId);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ee,Ce,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,G,S,null,_.pk,Number($)).then(we=>{e.setIsLoading(!1),we&&(w(S),U(!0))})}},Ye=async S=>{if(W(""),L(!1),chrome?.windows?.create){let G=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Mt,N=async(ee,Ce,we)=>{if(ee.type==="VW:Passkey_Credential")if(ee?.origin&&G?.toLowerCase()?.startsWith(ee?.origin?.toLowerCase())){ce&&chrome.windows.remove(ce),Ce?.tab&&Ce?.tab?.windowId&&chrome.windows.remove(Ce.tab.windowId);let Ge=ee.data;if(Ge?.id&&Ge?.rawId){let rt=_t(Ge?.rawId),Tt=Ve(rt),tt={pinString:Ge?.id,hashed:Tt,rawId:rt,listener:N};tt&&await O(tt)}else W(`Passkey authentication failed: ${Ge?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),L(!0)}else W("Passkey authentication failed: invalid passkey origin. Try again later"),L(!0)};chrome.runtime.onMessage.addListener(N),await chrome.windows.create({url:`${G}`,type:"popup",width:500,height:600}).then(ee=>{B(ee.id)})}else try{if(t&&!o.isSupported()){W("Your device does not support Passkeys. Change device and try again later"),L(!0);return}let G=t?await o.get(ct(S)):await navigator?.credentials?.get({publicKey:ct()}),N=Ve(G?.rawId);return{pinString:G?.id,hashed:N,rawId:G?.rawId}}catch(G){W(`Passkey authentication failed: ${G?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),L(!0)}};return C.createElement(C.Fragment,null,A&&!z&&!De&&C.createElement(C.Fragment,null,!c&&C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},C.createElement(Fe,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},de?"Enter PIN":"Sign-in with Existing Passkey")),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",C.createElement(a,{style:{color:"#0C0C0E"}},de?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",C.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),de&&C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ye.map((S,G)=>C.createElement(x,{key:G,ref:N=>xe.current[G]=N,className:k?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&k?{...n.verifiedCustdMdlOtpInputRed}:t&&!k?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:P,maxLength:1,value:ye[G],onChangeText:N=>Qe(N,G),onKeyPress:N=>vt(N,G,N),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${G}`}))),C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},k&&!ke&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),k&&ke&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},ke),!k&&C.createElement(a,null),P?C.createElement(l,{onPress:()=>b(!1),style:{backgroundColor:"transparent"}},C.createElement(s,{style:{width:24,height:24},source:{uri:E.pinHide}})):C.createElement(l,{onPress:()=>b(!0),style:{backgroundColor:"transparent"}},C.createElement(s,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!de&&C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},C.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:Q(t,"14px")}:{fontSize:Q(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:Q(t,"12px")}:{fontSize:Q(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),C.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!v&&C.createElement(i,{style:{height:20}}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},C.createElement(Bn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),de&&C.createElement(l,{onPress:async()=>await O(),style:t&&$e&&!k?{...n.verifiedCustdMdlStartupButtonActive}:t&&$e&&k?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&!k?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&k?{...n.verifiedCustdMdlStartupButton}:{},className:$e&&!k?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},C.createElement(a,null,"Proceed")),!de&&C.createElement(C.Fragment,null,k&&ke?.length>0&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},ke),C.createElement(l,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let S=await Ye(e?.passKeyRpId);S&&await O(S)},className:"verified-custd-mdl-startup-button-active"},C.createElement(a,null,"Login With Passkey")))))),c&&C.createElement(Be,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:T},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`:"",eventEmitter:e.eventEmitter})),A&&z&&!De&&C.createElement(C.Fragment,null,!se&&C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},C.createElement(Fe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},C.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),C.createElement(l,{style:{backgroundColor:"transparent",width:"100%"}},C.createElement(s,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),I?C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",C.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},C.createElement(l,{onPress:async()=>await Y(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"Yes")),C.createElement(l,{onPress:()=>M(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"No")))))):C.createElement(C.Fragment,null,C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},C.createElement(s,{source:{uri:E.pkicon}})),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},C.createElement(s,{source:{uri:E.encryptedIcon}})),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},C.createElement(l,{onPress:()=>M(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},C.createElement(a,null,"Reject")),C.createElement(l,{onPress:async()=>await Y(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"Accept"))))),se&&C.createElement(Be,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:_},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}`,eventEmitter:e.eventEmitter})),A&&!z&&De&&C.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:re}),!A&&C.createElement(a,null,"Loading Module Fonts..."))},Kt=ua;var ga=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,StyleSheet:x,Font:l,AsyncStorage:K}=e?.platform,[f,h]=Xe(e.fontsLoaded||!1),[n,o]=Xe(e.showLogoPage||!1),[A,y]=Xe([]),[k,L]=Xe("2"),[P,b]=Xe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[v,m]=Xe(""),[c,u]=Xe(""),[_,X]=Xe(!1),[T,R]=Xe(""),[$,q]=Xe(""),[j,H]=Xe(""),[z,oe]=Xe(""),[se,U]=Xe(null),[I,M]=Xe(null),[ve,w]=Xe(!1),{setChainId:ke,setAddress:W,setPk:De,setProvider:ue,setSigner:re,setVaultContract:F,setVaultData:ye,vaultData:Ke,chainId:xe,vaultContract:de}=Me();return $t(()=>{let Te=async()=>{if(t)l&&await Ne(l),h(!0);else{let ce=Se(document);h(ce)}};e.fontsLoaded||Te()},[]),$t(()=>{let Te=async()=>{let ce;t?t&&K&&(ce=K.getItem("lastPk")):!t&&chrome?.storage?.local?ce=await new Promise(Ie=>{chrome.storage.local.get(["lastPk"],Oe=>{Ie(Oe.lastPk)})}):!t&&localStorage&&(ce=localStorage.getItem("lastPk"));let B=await nt(e.chainId,ce&&ce?.length>0?ce:void 0);ke(B.chainId),W(B.address),De(B.pk),ue(B.provider),re(B.signer),ye(B.vaultData),B.vaultContract?.contractAddress?F(B.vaultContract):F(void 0)};de?.contractAddress||Te()},[de]),$t(()=>{fa(()=>{o(!1)},e.logoTimeoutTime??3e3)()},[]),$t(()=>{(()=>{let ce=Ft.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);y(ce)})()},[]),be.createElement(g,{style:{padding:20,width:"100%",heigth:"100%"}},f&&n&&e.logoPageElement&&be.createElement(i,null,e.logoPageElement),f&&!n&&be.createElement(i,{style:{width:"100%",heigth:"100%"}},k==="2"&&be.createElement(gn,{platform:e.platform,fontsLoaded:f,setStep:L,setIsLoading:e.setIsLoading,setUserNumberFmt:m,userNumberFmt:v,setUserEmail:u,userEmail:c,setSelectedCountry:b,selectedCountry:P,allCountries:A,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),k==="3"&&be.createElement(mn,{platform:e.platform,fontsLoaded:f,setStep:L,setIsLoading:e.setIsLoading,userNumberFmt:v,setUserNumberFmt:m,setUserEmail:u,userEmail:c,selectedCountry:P,helperFunctions:e.helperFunctions,setIsExistingUser:w}),k==="4"&&be.createElement(Xt,{platform:e.platform,fontsLoaded:f,setStep:L,setIsLoading:e.setIsLoading,setShowSuccessBtn:X,setSuccessBtnText:R,setSuccessBtnNeutText:q,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:M,userNumberFmt:v,userEmail:c,selectedCountry:P,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:H,setActionFooterText:oe,helperFunctions:e.helperFunctions,isExistingUser:ve,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter}),k==="5"&&be.createElement(Be,{platform:e.platform,setStep:L,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:_,buttonText:T,buttonNeutText:$,buttonFunc:se,buttonNeutFunc:I,actionHeaderText:j,actionFooterText:z,eventEmitter:e.eventEmitter}),k==="6"&&be.createElement(yt,{platform:e.platform,fontsLoaded:f,setStep:L,setIsLoading:e.setIsLoading,userNumberFmt:v,userEmail:c,selectedCountry:P,allCountries:A,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner,eventEmitter:e.eventEmitter}),k==="7"&&e.action===""&&be.createElement(Be,{platform:e.platform,action:e.action,setStep:L,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)},eventEmitter:e.eventEmitter}),k==="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:e.action?e.action:"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)},eventEmitter:e.eventEmitter}),k==="8"&&e.dashbordElement&&be.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),k==="8"&&!e.dashbordElement&&be.createElement(be.Fragment,null),k==="0"&&be.createElement(Kt,{platform:e.platform,fontsLoaded:f,vaultId:Ke?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:Ke?.hashedVaultId,encrptedPk:Ke?.pk,vaultAddress:Ke?.address,vaultChannel:Ke?.channel,actionText:Lt.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:u,setUserNumberFmt:m,setSelectedCountry:b,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter})),!f&&be.createElement(i,{style:{padding:20,width:"100%",heigth:"100%"}},be.createElement(a,null,"Loading Module Fonts...")))},Cn=ga;var ma=e=>{let[t,i]=Pe(!1),[a,s]=Pe({}),[g,x]=Pe(!1),[l,K]=Pe(null),[f,h]=Pe({}),[n,o]=Pe({}),[A,y]=Pe(!1),[k,L]=Pe(!1),[P,b]=Pe(!1),[v,m]=Pe(!1),[c,u]=Pe(!1),[_,X]=Pe(""),[T,R]=Pe([]),[$,q]=Pe(""),[j,H]=Pe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[z,oe]=Pe(""),[se,U]=Pe("");Ht(()=>{(async()=>{await on();let re=rn();re&&(s(re),i(!0))})()},[]);let{isReactNative:I,View:M,Text:ve,Font:w,AsyncStorage:ke,ActivityIndicator:W,styles:De}=a;return Ht(()=>{!g&&t&&(async()=>{if(I)w&&await Ne(w),x(!0);else{let re=Se(document);x(re)}})()},[t,g]),Ht(()=>{t&&(async()=>{if(I){if(I&&ke)try{let re=await ke.getItem("myVault");if(re){let F=JSON.parse(re);if(F?.vaultId){h(F),K(!0);return}}K(!1)}catch(re){console.error("Error reading vault data on react:",re),K(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",re=>{re.myVault&&JSON.parse(re.myVault)?.vaultId?(h(JSON.parse(re.myVault)),K(!0)):K(!1)});else if(localStorage){let re=JSON.parse(localStorage.getItem("myVault"));re&&re?.vaultId?(h(re),K(!0)):K(!1)}else K(!1)})()},[t]),Ht(()=>{(()=>{let re=Ft.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(re)})()},[]),te.createElement(te.Fragment,null,t&&te.createElement(te.Fragment,null,g&&te.createElement(dn,null,A&&te.createElement(M,{style:I?{...De.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},te.createElement(W,{size:"large",color:"blue"})),te.createElement(M,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:I?{...De.verifiedCustdMdlContainer}:{}},l===null&&e.delayPageElement&&te.createElement(te.Fragment,null,e.delayPageElement),l===null&&!e.delayPageElement&&te.createElement(M,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),l!==null&&te.createElement(te.Fragment,null,!l&&!k&&te.createElement(Cn,{platform:a,fontsLoaded:g,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:Z(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:K,setIsLoading:y,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:L,setShowResetPin:m,setShowRemoveCosigner:u,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter}),l&&!k&&!P&&te.createElement(Kt,{platform:a,fontsLoaded:g,setisOnboard:K,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,vaultChannel:f?.channel,regAddress:f?.regAddress,origin:I?e.origin:window.location?.origin,title:e.title,actionText:e.actionText||Lt[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:Z(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:L,setShowResetPin:m,setShowRemoveCosigner:u,setShowCompleteVault:b,setUserEmail:U,setUserNumberFmt:oe,setSelectedCountry:H,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),l&&k&&P&&te.createElement(Kt,{platform:a,fontsLoaded:g,setisOnboard:K,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,regAddress:f?.regAddress,vaultChannel:f?.channel,origin:I?e.origin:window.location?.origin,title:e.title,actionText:e.actionText||Lt[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:Z(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:L,setShowResetPin:m,setShowRemoveCosigner:u,setShowCompleteVault:b,setUserEmail:U,setUserNumberFmt:oe,setSelectedCountry:H,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),l&&!k&&P&&$===""&&te.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},te.createElement(yt,{platform:a,fontsLoaded:g,setStep:q,setIsLoading:y,userNumberFmt:z,userEmail:se,selectedCountry:j,allCountries:T,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:L,setShowResetPin:m,setShowRemoveCosigner:u,eventEmitter:e.eventEmitter})),l&&!k&&P&&$==="7"&&te.createElement(Be,{platform:a,action:e.action,setStep:q,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:()=>{m(!1),u(!1),L(!0)},buttonFunc:()=>{m(!1),u(!1),L(!0)},eventEmitter:e.eventEmitter}),l&&!k&&P&&$==="8"&&e.dashbordElement&&te.createElement(e.dashbordElement,{setIsLoading:y}),l&&!k&&P&&$==="8"&&!e.dashbordElement&&te.createElement(te.Fragment,null),!P&&k&&!v&&!c&&e.dashbordElement&&te.createElement(e.dashbordElement,{setIsLoading:y,setShowResetPin:m,setShowRemoveCosigner:u,setAction:X,setUserNumberFmt:oe,setUserEmail:U,setSelectedCountry:H,setVaultData:o,initWalletAndContract:nt,useVaultStore:Me}),l&&!P&&k&&!v&&!c&&!e.dashbordElement&&te.createElement(te.Fragment,null),l&&!P&&!c&&k&&v&&te.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},te.createElement(Xt,{platform:a,fontsLoaded:g,action:"reset-pin",setStep:q,setIsLoading:y,userNumberFmt:z,userEmail:se,vaultData:n,selectedCountry:j,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter})),l&&!P&&k&&!v&&c&&te.createElement(M,{style:{width:"100%",heigth:"100%",padding:"20px"}},te.createElement(yt,{platform:a,fontsLoaded:g,action:"remove-cosigner",setStep:q,setIsLoading:y,userNumberFmt:z,userEmail:se,selectedCountry:j,allCountries:T,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:L,setShowResetPin:m,setShowRemoveCosigner:u,eventEmitter:e.eventEmitter}))))),!g&&te.createElement(ve,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&te.createElement(te.Fragment,null,"Preparing Module..."))},Ca=ma;export{yt as AddCoSignersPage,gn as ContactPage,Xt as CreatePinPage,Kt as EnterPinPage,Cn as FTUPage,mn as OTPPage,dn as VaultContextProvider,Ca as VerifiedCustody,lt as decryptString,ut as decryptWithPasskey,it as encryptString,at as encryptWithPasskey,rn as getPlatformComponents,Ve as hashTheBuffer,Z as hashTheString,on as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,ct as publicKeyCredentialRequestOptions};
|
|
1
|
+
import{a as ii,b as Rt}from"./chunk-WCXX5QYV.mjs";var Xn=Rt((Ya,Li)=>{Li.exports="./Roboto-Regular-UUBD26YO.ttf"});var Tn=Rt((Ga,bi)=>{bi.exports="./Manrope-Regular-33576HBZ.ttf"});var Yn=Rt((Ma,xi)=>{xi.exports="./Hind-Regular-R5KOYWFC.ttf"});function ai(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}ai(`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:100vw;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;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{ii("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import We,{forwardRef as oi}from"react";var Kn="https://wallet.verified.network/create-passkey",Bt="https://wallet.verified.network/get-passkey",vn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Pn=["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"],Ut="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Wt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},xt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},wt={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"},Dt=[{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 An={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",flexDirection:"row",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",flexDirection:"row"},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 Qt=!1,jt=!1,qt,Zt,zt,en,tn,nn,an,on,Ln,bn,xn,rn,wn,dn=async()=>{if(jt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("[VCM]: Initializing React Native platform...");let t=await import("react-native"),i=await import("events");Ln=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage"),u=await import("react-native-passkeys"),s=(await import("./svg-G2CCATII.mjs")).default;wn=u,bn=l.default,xn=i.EventEmitter;let A=({className:n,id:r,...k})=>k,f=n=>r=>We.createElement(n,{...A(r)}),L=n=>typeof n=="string"&&n.endsWith(".svg");qt=f(t.View),Zt=f(t.Text),zt=n=>{let r=n.source?.uri;if(s&&L(r))return We.createElement(s,{uri:r,style:n.style});let k=f(t.Image);return We.createElement(k,{...n})},en=f(t.ScrollView),tn=t.StyleSheet,nn=f(t.TextInput),an=f(t.TouchableOpacity),on=f(t.ActivityIndicator),rn=t.StyleSheet.create(An),Qt=!0,console.log("[VCM]: React Native platform initialized.")}else{console.log("[VCM]: Initializing Web platform...");let{motion:t}=await import("framer-motion");qt=({onPress:i,...a})=>We.createElement("div",{onClick:i,...a}),Zt=({onPress:i,...a})=>We.createElement("span",{onClick:i,...a}),zt=({onPress:i,source:a,...l})=>We.createElement("img",{onClick:i,...l,src:a?.uri}),en=i=>We.createElement("div",{style:{overflowY:"auto",...i.style}},i.children),tn={create:i=>i},rn={},nn=oi(({onChangeText:i,onInput:a,onKeyDown:l,onKeyPress:u,value:b,keyboardType:s,secureTextEntry:A,onSubmitEditing:f,blurOnSubmit:L,placeholderTextColor:n,...r},k)=>We.createElement("input",{...r,ref:k,value:b,onInput:K=>{a?.(K),i?.(K.target.value)},onKeyDown:K=>{K.key==="Enter"&&(K.preventDefault(),f?.(K)),l?.(K),u?.(K)},type:A?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),an=({onPress:i,style:a,...l})=>We.createElement("button",{style:{outline:"none",border:"none",...a},onClick:i,...l},l.children),on=({color:i,size:a,...l})=>We.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}),Qt=!1,console.log("[VCM]: Web platform initialized.")}jt=!0},sn=()=>{if(!jt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Qt,View:qt,Text:Zt,Image:zt,ScrollView:en,StyleSheet:tn,TextInput:nn,TouchableOpacity:an,ActivityIndicator:on,Font:Ln,AsyncStorage:bn,EventEmitter:xn,styles:rn,rnPasskey:wn}};import Z,{useEffect as Jt,useState as Ae}from"react";import ri,{createContext as di,useContext as si,useState as ct}from"react";var _n=di(void 0),ln=({children:e})=>{let[t,i]=ct(null),[a,l]=ct(null),[u,b]=ct(null),[s,A]=ct(null),[f,L]=ct(null),[n,r]=ct(null),[k,K]=ct(null);return ri.createElement(_n.Provider,{value:{chainId:t,pk:a,address:u,signer:s,provider:f,vaultContract:n,vaultData:k,setChainId:i,setPk:l,setAddress:b,setSigner:A,setProvider:L,setVaultContract:r,setVaultData:K}},e)},Ge=()=>{let e=si(_n);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import _e,{useEffect as Ot,useState as Xe}from"react";import{debounce as ma}from"lodash";import{contractAddress as wi,Custody as _i,Provider as Si,VerifiedWallet as cn}from"@verified-network/verified-sdk";var Ke={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth.drpc.org"],blockExplorerUrls:["https://etherscan.io/"],icon:E.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.base.org/"],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://sepolia.drpc.org"],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 It}from"@noble/hashes/pbkdf2";import{sha256 as pt}from"@noble/hashes/sha256";import{randomBytes as kt,utf8ToBytes as fn,bytesToUtf8 as Ni}from"@noble/hashes/utils";import{gcm as Mn}from"@noble/ciphers/aes";import gn from"crypto-js";import{toast as Gn}from"react-toastify";import Nt from"react";import{base as Ei,baseSepolia as Xi,gnosis as Ti,mainnet as Yi,polygon as Gi,sepolia as Mi}from"viem/chains";import{http as Fi}from"viem";import{createPublicClient as ui,encodeAbiParameters as fi,encodeFunctionData as gi,pad as mi,toHex as Ci,zeroAddress as St,zeroHash as hi}from"viem";var Sn={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 Nn={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 pi="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",ki="0x00000000D3254452a909E4eeD47455Af7E27C289",En="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",yi=0n,_t=e=>{let t=e.module||e.address,i=e.initData||e.data;if(!t||!i)throw new Error("Module or data is missing");return{module:t,data:i}},Ki=e=>fi([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,gi({abi:Sn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),vi=e=>{let{deInitData:t="0x",type:i="validator",signer:a,data:l="0x",module:u,...b}=e;return{deInitData:t,data:l,module:u,address:u,signer:a,type:i,getStubSignature:async()=>En,signUserOpHash:async s=>await a.signMessage({message:{raw:s}}),signMessage:async s=>await a.signMessage({message:s}),...b}},Pi=e=>vi({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:St,module:St,type:"validator",getStubSignature:async()=>En}),Ai=()=>({module:St,data:hi}),Vt=async(e,t,i)=>{let a=ui({chain:e,transport:t}),l=Pi({signer:i}),u=[],b=[],s=Ai(),A=[],f=St,L=pi,n=ki,r=[],k=Ki({defaultValidator:_t(l),validators:u.map(_t),executors:b.map(_t),hook:_t(s),fallbacks:A.map(_t),registryAddress:f,bootStrapAddress:n,prevalidationHooks:r}),K=mi(Ci(yi),{size:32}),P=await a.readContract({address:L,abi:Nn.abi,functionName:"computeAccountAddress",args:[k,K],authorizationList:void 0});if(P?.toLowerCase()!==St?.toLowerCase())return P};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return Pn.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let u=e.createElement("link");u.rel="stylesheet",u.href=a,e.head.appendChild(u)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:Xn(),Manrope:Tn(),Hind:Yn()}),!0),ot=async(e,t,i)=>{try{let a;if(i)a=new cn(i);else{let k=cn.generateMnemonic();a=cn.importWallet(k)}let l=wi,u=t&&l[t]?.Custody&&Ke[t]?.rpcUrls?.length>0?t:8453,b=e[u]?.rpcUrls[0]||Ke[u]?.rpcUrls[0],s=a.setProvider(new Si(b)),A=a.privateKey,f=new _i(s,l[u]?.Custody),L=s,n=[Ei,Yi,Ti,Gi,Mi,Xi].find(k=>Number(k?.id)===Number(u)),r=await Vt(n,Fi(),L);return u===11155111&&console.log("address to send test ETH to if MEE transaction fails: ",a.address),{chainId:u,address:r,pk:A,signer:s,provider:b,vaultContract:f,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}}},q=e=>{let t=e.toLowerCase(),i=pt(fn(t));return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},He=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),i=pt(t);return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},rt=(e,t)=>gn.AES.encrypt(e,t).toString(),ut=(e,t)=>{var i=gn.AES.decrypt(e,t),a=i.toString(gn.enc.Utf8);return a},Bi=(e,t)=>Nt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},Nt.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),Nt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},Nt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),Nt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Ee=(e,t)=>(Gn.dismiss(),Gn.error(Bi(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 Fn=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var W=(e,t,i=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*i:(t.endsWith("px"),a)},Di=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let i=t.length/2,a=new Uint8Array(i);for(let l=0;l<i;l++){let u=t.substr(l*2,2);a[l]=parseInt(u,16)}return a},mn=(e,t,i,a)=>{let l=Di(i);return a?{challenge:ht(kt(32)),rp:{name:e,id:a},user:{id:ht(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:kt(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"}},Et=e=>{let t=atob(e),i=new ArrayBuffer(t.length),a=new Uint8Array(i);for(let l=0;l<t.length;l++)a[l]=t.charCodeAt(l);return i},ft=e=>e?{challenge:ht(kt(32)),timeout:6e4,userVerification:"required",rpId:e}:{challenge:kt(32),timeout:6e4,userVerification:"required"},ht=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),un=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),i=atob(t);return new Uint8Array([...i].map(a=>a.charCodeAt(0)))},dt=async(e,t,i,a)=>{let l=t instanceof Uint8Array?t:new Uint8Array(t),u=kt(8),b=Array.from(u).map(k=>k.toString(16).padStart(2,"0")).join(""),s=q(`${i}:${b}`),A=fn(s),f=kt(12),L=a?It(pt,l,A,{c:2e4,dkLen:32}):It(pt,l,A,{c:3e5,dkLen:32}),r=Mn(L,f).encrypt(fn(e));return[ht(A),ht(f),ht(r)].join(".")},gt=async(e,t,i)=>{let[a,l,u]=e.split(".");if(!a||!l||!u)throw new Error("Invalid encrypted data format");let b=t instanceof Uint8Array?t:new Uint8Array(t),s=un(a),A=un(l),f=un(u),n=i?It(pt,b,s,{c:2e4,dkLen:32}):It(pt,b,s,{c:3e5,dkLen:32}),r=Mn(n,A);try{let k=r.decrypt(f);return Ni(k)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import ae,{useEffect as Hi,useState as yt}from"react";import Bn from"react";var Vi=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,r=Number(e.currentSlider),k=e.sliderCount?.length||0,K=k>0?100/k:0;return Bn.createElement(i,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden",gap:12}},e.sliderCount?.map((P,_)=>{let v=_<=r;return Bn.createElement(i,{key:_,className:v?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&v?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${K}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${K}%`}:!t&&v?{width:`${K}%`}:{width:`${K}%`}})}))},Me=Vi;import we,{useState as Ii}from"react";var $i=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,[r,k]=Ii(null),K=h=>{if(h===""){k(null);return}let x=e.searchContent.filter(g=>{let c=g?.name?.toLowerCase(),m=h.toLowerCase();if(c?.includes(m))return g.searched=m,g.nameArray=g.name.split(""),g});k(x),e.handleButtonDisplay()},P=(h,x)=>{e.type==="area-code"?e.setSelected({area:h.phone_code,flag:h.flag,name:h.name}):e.type==="language"&&e.setSelected(h.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},_=(h,x)=>h.map((g,c)=>{let m=x.includes(g.toLowerCase());return we.createElement(a,{key:c,style:m?n.boldText:n.fadedText},g)}),v=(h,x=!1)=>h.map((g,c)=>{let m=t?!1:window?.location?.search===`?${c}`,y=e.selected&&e.selected.length>0,w=e.type==="language"&&m?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return we.createElement(s,{key:c,className:w,style:n.resultItem,onPress:()=>P(g,c)},we.createElement(i,{style:n.resultInner},we.createElement(l,{source:{uri:e.type==="language"?g.icon:g.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),we.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},g.nameArray&&g.searched?_(g.nameArray,g.searched):g.name,e.type==="language"&&g.label&&we.createElement(a,{style:g.searched?.includes(g.label.toLowerCase())?{}:n.fadedText},` (${g.label})`))),e.type==="language"&&y&&m&&we.createElement(l,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return we.createElement(i,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},we.createElement(i,{className:"verified-custd-mdl-st-language-content"},e.headerText&&we.createElement(a,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),we.createElement(i,{className:"verified-custd-mdl-mobille-startup-search-box-container"},we.createElement(i,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},we.createElement(l,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),we.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:K,onFocus:()=>e.type==="language"&&e.setSelected("")})),we.createElement(u,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},we.createElement(i,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&v(r||e.searchContent))))))},$t=$i;import Xt from"react";var Dn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform;return Xt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Xt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",Xt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Vn=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,r=async()=>{e.setIsLoading(!0);try{t?t&&L&&(await L.removeItem("myVault"),await L.removeItem("lastPk")):!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")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return Xt.createElement(a,{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"," ",Xt.createElement(a,{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 Oi=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,[r,k]=yt(e.fontsLoaded||!1),[K,P]=yt(""),[_,v]=yt(""),[h,x]=yt(!1),[g,c]=yt(""),[m,y]=yt(!1),{pk:w,vaultContract:X,address:$}=Ge();Hi(()=>{let M=async()=>{if(t)f&&await Ne(f),k(!0);else{let Y=Se(document);k(Y)}};e.fontsLoaded||M()},[]);let Q=()=>{e.selectedCountry.area&&K.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),y(!0)):(c(""),y(!1))},z=async()=>{if(e.userEmail===""&&K===""){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 M=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${K}`,Y=e.userEmail?.length>0?"email":"sms";if(M&&Y&&w&&X||M&&Y&&e.noContract){e.setIsLoading(!0);try{let oe=await e.helperFunctions.sendOTPVerification($,Y,M);e.setIsLoading(!1),oe?(c(""),e.setStep("3")):(c(Y==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Ee("OTP Error",Y==="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 ae.createElement(u,{style:{width:"100%",height:"100%"}},r&&ae.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},ae.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},ae.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),ae.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},ae.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&ae.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ae.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},ae.createElement(s,{onPress:()=>x(!h),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},ae.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),ae.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),ae.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:h?{uri:E.arrowUp}:{uri:E.arrowDown}})),ae.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:M=>{let Y=M.replace(/\D/g,"");v(M),P(Y);let oe="";for(let ce=0;ce<Y?.length;ce++)oe+=Y[ce],(ce+1)%5===0&&ce+1<Y?.length&&(oe+=" ");e.setUserNumberFmt(oe),Q()}})),h&&ae.createElement($t,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:h,setSearchActive:x,contentMaxHeight:"300",contentbottomMargin:"300"}),K.length!==10&&_.length>10&&!g&&ae.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!h&&ae.createElement(ae.Fragment,null,e.enablePhone&&ae.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},ae.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),ae.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),ae.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),ae.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ae.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:M=>{e.setUserEmail(M),e.setUserNumberFmt(""),P(""),v(""),Q()}}),g&&e.userEmail.length>0&&ae.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},g)))),!h&&ae.createElement(i,{style:{height:"80px"}}),ae.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},ae.createElement(Dn,{platform:e.platform}),ae.createElement(s,{style:t&&m?{...n.verifiedCustdMdlStartupButtonActive}:t&&!m?{...n.verifiedCustdMdlStartupButton}:{},className:m?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:z},ae.createElement(a,null,"Get OTP"))))),!r&&ae.createElement(a,null,"Loading Module Fonts..."))},Cn=Oi;import J,{useEffect as Qn,useRef as ta,useState as Kt}from"react";import{AbiCoder as Ji,encodeBytes32String as Je,getBytes as Ri}from"ethers";import{combine as Ui,split as In}from"shamir-secret-sharing";import{contractAddress as Tt,Custody as Yt,Provider as mt,VerifiedWallet as nt}from"@verified-network/verified-sdk";import{base as Wi,baseSepolia as Qi,gnosis as ji,mainnet as qi,polygon as Zi,sepolia as zi}from"viem/chains";import{http as ea}from"viem";var $n=async(e,t)=>{try{return await e.getCreator(t).then(async i=>i?.status===0&&i?.response?.result[0]===!0)}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",i),null}},Hn=async(e,t,i,a,l,u,b,s,A,f,L,n,r,k,K,P,_,v)=>{try{let h={vaultId:l,hashedVaultId:u,vaultPin:b,hashedVaultPin:s,vaultContract:n,rawId:P};return await n.getCreator(u).then(async x=>{if(x?.status===0&&x?.response?.result[0]===!0)try{let g;if(P)g=await dt(f,P,b,t);else{let m=Je(b);g=rt(f,m)}let c;if(t?t&&i&&(c=await i.getItem("lastPk")):chrome?.storage?.local?c=await new Promise(m=>{chrome.storage.local.get(["lastPk"],y=>{m(y.lastPk)})}):!chrome?.storage?.local&&localStorage&&(c=localStorage.getItem("lastPk")),r==="reset-pin"&&k?.vaultContract&&_?.length>1&&v>1&&f?.length>0){let m=Number(_.length),w=(await In(Ri(f),Number(m),Number(v))).map(Y=>Fn(Y)),X=P?"":Je(b),$=[],Q=[];for(let Y=0;Y<_.length;Y++){let oe=_[Y],ce=P?await dt(w[Y],P,b,t):rt(w[Y],X);await n.addParticipant(u,oe,ce).then(async fe=>{let H={creatorVaultId:l,vaultPin:b,creatorHashedVaultId:u,creatorHashedVaultPin:s,cosigner:oe,hashedCosigner:oe,cosignerVaultIdType:"",cosignerVaultId:oe,share:ce};fe?.status===0?Q.push(H):$.push(H)}),await new Promise(fe=>setTimeout(fe,1e3))}if($?.length>0||Q?.length!==_?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),null;let M=await new nt(f).getAddress();return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:L,regAddress:M,vaultId:l,hashedVaultId:u,pk:g,channel:A})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:L,regAddress:M,vaultId:l,hashedVaultId:u,pk:g,channel:A})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:L,regAddress:M,vaultId:l,hashedVaultId:u,pk:g,channel:A})),{}}if(c&&c?.length>0)return await n.confirmParticipant(u,u,!0).then(async m=>{if(m?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let w=await new nt(f).getAddress(),X;if(P)X=await dt(f,P,b,t);else{let $=Je(b);X=rt(f,$)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:L,regAddress:w,vaultId:l,hashedVaultId:u,pk:X,channel:A})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:L,regAddress:w,vaultId:l,hashedVaultId:u,pk:X,channel:A})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:L,regAddress:w,vaultId:l,hashedVaultId:u,pk:X,channel:A})),h}catch(y){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",y),!1}}else return Ee("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: ",m),!1});if(r==="invitation")return{isExisting:!0,...h};{t?t&&i&&await i.setItem("myVault",JSON.stringify({vaultId:l,hashedVaultId:u,pk:g,channel:A})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:l,hashedVaultId:u,pk:g,channel:A})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:l,hashedVaultId:u,pk:g,channel:A}));let m=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?k:{vaultId:l,hashedVaultId:u,hashedVaultPin:s},txData:K}});else if(!t&&!chrome?.runtime?.sendMessage){let y=new CustomEvent(r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",{detail:{value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?k:{vaultId:l,hashedVaultId:u,hashedVaultPin:s},txData:K}}});m?.dispatchEvent(y)}else if(t&&e){let y=r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",w={vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?k:{vaultId:l,hashedVaultId:u,hashedVaultPin:s},txData:K};e.emit(y,w)}}return r==="getPk"?{vaultId:l,hashedVaultId:u,pk:g,channel:A,shouldStop:!0}:{shouldStop:!0}}catch(g){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",g),Ee("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(x?.status===0&&x?.response?.result[0]!==!0)return await n.createVault(u).then(async g=>g?.status===0?(t?t&&i&&await i.setItem("lastPk",f):!t&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:f}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("lastPk",f),await n.confirmParticipant(u,u,!0).then(async c=>{if(c?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let y=await new nt(f).getAddress(),w;if(P)w=await dt(f,P,b,t);else{let X=Je(b);w=rt(f,X)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:L,regAddress:y,vaultId:l,hashedVaultId:u,pk:w,channel:A})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:L,regAddress:y,vaultId:l,hashedVaultId:u,pk:w,channel:A})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:L,regAddress:y,vaultId:l,hashedVaultId:u,pk:w,channel:A})),h}catch(m){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",m),!1}}else return Ee("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})):(Ee("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",g),!1))})}catch(h){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",h),Ee("Oops something went wrong","Error while creating pin. Try again later"),!1}},On=async(e,t,i,a,l,u,b,s,A,f,L,n,r)=>{try{let k;if(r)k=await gt(u,r,e);else{let K=Je(a);k=ut(u,K)}if(k){let K=Tt,P=new nt(k),_=f&&K[f]?.Custody&&Ke[f]?.rpcUrls?.length>0?f:8453,v=A[_]?.rpcUrls[0]||Ke[_]?.rpcUrls[0],h=P.setProvider(new mt(v)),x=new Yt(h,K[_].Custody);return x?await x.getCreator(i).then(async g=>{if(g?.status===0&&g?.response?.result[0]===!0){let c=await x.getQuorum(i);return c?.status===0&&c?.response?.result?.length>0?L&&Number(c?.response?.result[0])>0?{address:b,vaultId:t,hashedVaultId:i,channel:s,chainId:n||_,pin:a,rawId:r,pk:k}:Number(c?.response?.result[0])===0?{address:b,vaultId:t,hashedVaultId:i,channel:s,chainId:n||_,pin:a,rawId:r,pk:k,inCompleteVault:!0}:{address:b,vaultId:t,hashedVaultId:i,channel:s,chainId:n||_,pin:a,rawId:r}:L?{address:b,vaultId:t,hashedVaultId:i,channel:s,chainId:n||_,pin:a,rawId:r,pk:k}:{address:b,vaultId:t,hashedVaultId:i,channel:s,chainId:n||_,pin:a,rawId:r}}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(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",k),null}},Ht=async(e,t,i,a,l,u,b,s,A,f,L,n,r,k)=>{let K;if(n)K=n;else{let P=Tt,_=new nt(r),v=k&&P[k]?.Custody&&Ke[k]?.rpcUrls?.length>0?k:8453,h=L[v]?.rpcUrls[0]||Ke[v]?.rpcUrls[0],x=_.setProvider(new mt(h));K=new Yt(x,P[v].Custody)}return K?await K.confirmParticipant(u,a,f).then(async P=>P?.status===0?(f?await e(i,s,A,l):await t(i,s,A,l),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",P),!1)):!1},Jn=async(e,t,i,a,l,u,b,s,A,f,L,n,r,k,K)=>{let P=Number(a.length),v=(await In(Uint8Array.from(r.split("").map(c=>c.charCodeAt(0))),Number(P),b)).map(c=>c.join(",")),h=k?"":Je(f),x=[],g=[];for(let c=0;c<a.length;c++){let m=a[c],y=k?await dt(v[c],k,f,e):rt(v[c],h);await n.addParticipant(A,K==="remove-cosigner"?m:q(m.vaultId),y).then(async w=>{let X=K==="remove-cosigner"?{creatorVaultId:s,vaultPin:f,creatorHashedVaultId:A,creatorHashedVaultPin:L,cosigner:m,hashedCosigner:m,cosignerVaultIdType:"",cosignerVaultId:m,share:y}:{creatorVaultId:s,vaultPin:f,creatorHashedVaultId:A,creatorHashedVaultPin:L,cosigner:m.vaultId,hashedCosigner:q(m.vaultId),cosignerVaultIdType:m.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:m.vaultId,share:y,...m};w?.status===0?(g.push(X),K!=="remove-cosigner"&&m.vaultId!==s&&await t(m.otpChannel,m.vaultId,s,L).then($=>{$||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):x.push(X)}),await new Promise(w=>setTimeout(w,1e3))}return x?.length>0||g?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),!1):await n.defineQuorum(A,b.toString()).then(async c=>{if(c?.status===0&&K!=="remove-cosigner"){let m=l?.map(y=>({name:y?.name,email:y?.email,phoneNumber:y?.phoneNumber,contactType:String(y?.otpChannel)?.toUpperCase(),position:`${Wt[Number(y?.position)]} Co-Signer`}));return await i(u,s,m,Number(b),L).then(y=>{y||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(c?.status===0&&K==="remove-cosigner"){let m=l?.map(async X=>(await n.removeParticipant(A,q(X?.vaultId)))?.status===0?"true":"false");if((await Promise.all(m))?.find(X=>X==="false")?.length>0)return!1;let w=l?.map(X=>({email:X?.email,phoneNumber:X?.phoneNumber,contactType:String(X?.otpChannel)?.toUpperCase(),position:`${Wt[Number(X?.position)]} Co-Signer`}));return await i(u,s,w,Number(b),L,!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"),Ee("Oops somethin went wrong","error while saving vault keys"),!1})},Rn=async(e,t,i,a,l,u,b,s,A,f,L)=>{let n;if(L)n=await gt(b,L,e);else{let r=Je(u);n=ut(b,r)}if(n){let r=Tt,k=new nt(n),K=f&&r[f]?.Custody&&Ke[f]?.rpcUrls?.length>0?f:8453,P=A[K]?.rpcUrls[0]||Ke[K]?.rpcUrls[0],_=k.setProvider(new mt(P)),v=new Yt(_,r[K].Custody);if(v)return await v.promptSignatures(i).then(async h=>{if(h?.status===0&&h?.response?.hash){let x=new Ji,g,c;if(h?.response?.result?.logs?.length>0){let m=h?.response?.result?.logs?.filter(X=>X?.address?.toLowerCase()===r[K].Custody?.toLowerCase()&&X?.topics?.map($=>$?.toLowerCase())?.includes(Ut?.toLowerCase()));c=m?.length;let y=m[0]?.data,w=x.decode(["bytes32","bytes32","uint256"],y)?.map((X,$)=>$<2?X:Number(X)).flat();g=w[w?.length-1]}else{let X=(await new mt(P).getTransactionReceipt(h?.response?.hash)).logs?.filter(z=>z?.address?.toLowerCase()===r[K].Custody?.toLowerCase()&&z?.topics?.map(M=>M?.toLowerCase())?.includes(Ut?.toLowerCase()));c=X?.length;let $=X[0]?.data,Q=x.decode(["bytes32","bytes32","uint256"],$)?.map((z,M)=>M<2?z:Number(z)).flat();g=Q[Q?.length-1]}return await t(s,l,a,Number(g),Number(c)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",h),!1}).catch(h=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",h),!1))}},Un=async(e,t,i,a,l,u,b,s,A,f,L,n,r,k,K)=>{let P;if(K)P=await gt(s,K,e);else{let _=Je(b);P=ut(s,_)}if(P){let _=Tt,v=new nt(P),h=k&&_[k]?.Custody&&Ke[k]?.rpcUrls?.length>0?k:8453,x=r[h]?.rpcUrls[0]||Ke[h]?.rpcUrls[0],g=v.setProvider(new mt(x)),c=new Yt(g,_[h].Custody);if(c)return await c.signTransaction(f,a,String(n)).then(async m=>m?.status===0?(await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(A)?"email":"sms",A,u,l),await c.checkQuorum(f,n).then(async y=>y?.status===0&&y?.response?.result?(y?.response?.result[0]===!0&&await i(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(A)?"email":"sms",A,u,l,Number(n)),!0):!1)):!1).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",m),!1))}},Wn=async(e,t,i,a,l,u,b,s,A,f,L,n)=>{let r;if(n)r=await gt(b,n,e);else{let k=Je(u);r=ut(b,k)}if(r){let k=Tt,K=new nt(r),P=L&&k[L]?.Custody&&Ke[L]?.rpcUrls?.length>0?L:8453,_=f[P]?.rpcUrls[0]||Ke[P]?.rpcUrls[0],v=K.setProvider(new mt(_)),h=new Yt(v,k[P].Custody);return h?await h.checkQuorum(i,s).then(async x=>x?.status===0&&x?.response?.result&&x?.response?.result[0]===!0?await h.getShards(i,s).then(async g=>{if(g?.status===0&&g?.response?.result){let c=g?.response?.result.filter(m=>m!=="");if(c.length>1){let m=n?"":Je(u),w=(await Promise.all(c.map(Q=>n?gt(Q,n):ut(Q,m)))).map(Q=>new Uint8Array(Q.split(",").map(Number))),X=await Ui(w),$=new TextDecoder().decode(X);if($){let Q=n?"":Je(u),z=n?await dt($,n,u,e):rt($,Q),M=new nt($),Y=await M.getAddress(),ce=M.setProvider(new mt(_)),fe=[Wi,qi,ji,Zi,zi,Qi].find(F=>Number(F?.id)===Number(P)),H=await Vt(fe,ea(),ce);return e?e&&t&&await t.setItem("myVault",JSON.stringify({address:H,regAddress:Y,vaultId:l,hashedVaultId:i,pk:z,channel:A})):!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:H,regAddress:Y,vaultId:l,hashedVaultId:i,pk:z,channel:A})}):!e&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:H,regAddress:Y,vaultId:l,hashedVaultId:i,pk:z,channel:A})),!0}}else return!1}else return!1}).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",g),!1)):!1).catch(x=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",x),!1)):!1}};var na=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,[r,k]=Kt(e.fontsLoaded||!1),K=ta([]),[P,_]=Kt(!1),[v,h]=Kt(60),[x,g]=Kt(["","","",""]),[c,m]=Kt(!1),[y,w]=Kt(""),{pk:X,vaultContract:$,address:Q}=Ge();Qn(()=>{let H=async()=>{if(t)f&&await Ne(f),k(!0);else{let F=Se(document);k(F)}};e.fontsLoaded||H()},[]),Qn(()=>{if(v===0)return;let H=setInterval(()=>h(F=>F-1),1e3);return()=>clearInterval(H)},[v]);let z=(H,F)=>{if(H?.length>1){let O=H.replace(/\D/g,""),ve=[...x],re=0;for(let S=F;S<x.length&&re<O.length;S++)ve[S]=O[re],re++;g(ve);let Be=F+O.length;Be<x.length&&K.current[Be]&&K.current[Be].focus(),m(!1)}else{let O=H.replace(/\D/g,""),ve=[...x];ve[F]=O,g(ve),O&&K.current[F+1]&&K.current[F+1].focus(),m(!1)}},M=(H,F,O)=>{O.nativeEvent.key==="Backspace"&&!x[F]&&F>0&&K.current[F-1]&&K.current[F-1].focus()},Y=x.every(H=>H.length>0),oe=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ce=async()=>{if(!Y||!e.helperFunctions){m(!0),w("Please enter the complete OTP.");return}let H=oe(),F=x.join("");if(!(!e.noContract&&!X||!e.noContract&&!$)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(Q,H,F)){e.setIsLoading(!1),m(!0);return}let ve=q(H),re=!1;if(!e.noContract&&$&&(re=await $n($,ve),re===null)){e.setIsLoading(!1),w("Unexpected error. Try again later."),m(!0);return}e.setIsExistingUser?.(re),e.setIsLoading(!1),e.setStep("4")}catch(O){e.setIsLoading(!1),w("Error verifying OTP. Try again."),m(!0),console.error("error: ",O)}}},fe=async()=>{if(!e.helperFunctions){w("Helper functions missing."),m(!0);return}let H=oe(),F=e.userEmail?"email":"sms";e.setIsLoading(!0);let O=await e.helperFunctions.sendOTPVerification(Q,F,H);e.setIsLoading(!1),O?(g(["","","",""]),h(60),m(!1),w("")):Ee("OTP resend failed","Please try again later.")};return J.createElement(u,null,r&&J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},J.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&J.createElement(J.Fragment,null,J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&J.createElement(a,null,e.userEmail)),J.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},J.createElement(l,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((H,F)=>J.createElement(b,{key:F,ref:O=>K.current[F]=O,value:x[F],onChangeText:O=>z(O,F),onKeyPress:O=>M(O,F,O),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"}))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&v>5&&y===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},J.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),v),!c&&v<=5&&v>0&&y===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},J.createElement(a,{style:{fontWeight:"400"}},"00:"),v),!c&&v===0&&y===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&y===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&y?.length>0&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},y),!c&&v>0&&y===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&v===0&&y===""||c&&y===""?J.createElement(s,{style:{background:"transparent"},onPress:async()=>{g(["","","",""]),await fe()}},J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!P&&J.createElement(i,{style:{height:"100px"}}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},J.createElement(s,{className:Y&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ce,disabled:!Y||c,style:Y&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},J.createElement(a,null,"Proceed"))))),!r&&J.createElement(a,null,"Loading Module Fonts..."))},hn=na;import d,{useEffect as jn,useRef as qn,useState as he}from"react";import Qe,{useEffect as ia}from"react";var aa=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n,EventEmitter:r}=e.platform;ia(()=>{let _;return e.showButton||(_=setTimeout(()=>{if(e.messageTosend)try{let v=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,h=>{h&&e.action!=="signRecovery"&&v?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let h=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});v?.dispatchEvent(h)}else t&&e.eventEmitter&&e.eventEmitter.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)),()=>{_&&clearTimeout(_)}},[]);let k=()=>{e.setStep?.("6")},K=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},P=()=>{e.handleShowDashboard()};return Qe.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Qe.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Qe.createElement(l,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Qe.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Qe.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Qe.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Qe.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?k():e.action==="completeRecovery"?P():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Qe.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Qe.createElement(s,{onPress:()=>{e.action==="invitation"?K():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Qe.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},Fe=aa;import{contractAddress as oa,Provider as ra}from"@verified-network/verified-sdk";import{ethers as Zn}from"ethers";var da=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,EventEmitter:n,styles:r,rnPasskey:k}=e.platform,[K,P]=he(e.fontsLoaded||!1),[_,v]=he(!1),[h,x]=he(!0),[g,c]=he(!1),[m,y]=he(""),[w,X]=he(!1),[$,Q]=he(!1),[z,M]=he(!1),[Y,oe]=he(!1),[ce,fe]=he(""),[H,F]=he(""),[O,ve]=he(null),[re,Be]=he(!1),[S,Te]=he(!1),[I,ee]=he(!1),[te,Re]=he(""),[ne,Ve]=he(""),[Ye,ge]=he([]),[ke,j]=he(0),[ie,me]=he(null),{address:Ue,pk:it,chainId:Oe,vaultContract:Ce,signer:je,setVaultData:qe,setChainId:st,setAddress:Ze,setPk:At,setProvider:Lt,setSigner:R,setVaultContract:T,vaultData:Le}=Ge(),[de,ze]=he(["","","",""]),[G,B]=he(["","","",""]),N=qn([]),U=qn([]);jn(()=>{let D=async()=>{if(t)f&&await Ne(f),P(!0);else{let p=Se(document);P(p)}};e.fontsLoaded||D()},[]),jn(()=>{let D=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 bt=Number(p?.response?.result[0]);j(bt)}if(e.vaultData?.existingCosignersHashed?.length>0){ge([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let se=oa[Oe]?.Custody;if(!se)return;let le=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Zn.Contract(se,le,e.vaultData?.signer))return;let ue=new Zn.Interface(le),Ct=ue.getEvent("NewParticipant").topicHash,ni=(await new ra(e.externalchainConfig[Oe]?.rpcUrls[0]||Ke[Oe]?.rpcUrls[0])?.getLogs({address:se,fromBlock:Ke[Oe]?.custodyContractBlock||0,toBlock:"latest",topics:[Ct]}))?.map(bt=>{let Ft=ue.parseLog(bt);return Ft?.args?.creator?.toLowerCase()===q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Ft?.args?.creator!==Ft?.args?.participant?Ft?.args?.participant:null})?.filter(bt=>bt!==null);ge([...new Set(ni)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&D()},[e.isExistingUser,e.action,e.vaultData]);let be=(D,p,V)=>{c(!1),y("");let se=D.replace(/\D/g,""),le=V?[...G]:[...de];le[p]=se,V?(B(le),se&&U.current[p+1]&&U.current[p+1].focus(),p<3&&le.every(xe=>xe!=="")&&de.every(xe=>xe!=="")&&le.join("")!==de.join("")&&(c(!0),y("Confirm Pin must match New Pin.")),p===3&&de.join("")!==le.join("")&&(c(!0),y("Confirm Pin must match New Pin."))):(ze(le),se&&N.current[p+1]&&N.current[p+1].focus(),G.every(xe=>xe!=="")&&le.join("")!==G.join("")&&(c(!0),y("New Pin must match Confirm Pin.")))},De=async D=>{y(""),c(!1);try{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let V=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:Kn,se=async(le,xe,ue)=>{if(le.type==="VW:Passkey_Credential")if(le?.origin&&V?.toLowerCase()?.startsWith(le?.origin?.toLowerCase())){ie&&chrome.windows.remove(ie),xe?.tab&&xe?.tab?.windowId&&chrome.windows.remove(xe.tab.windowId);let et=le.data;if(et?.id&&et?.rawId){let Ct=Et(et?.rawId),Mt=He(Ct),yn={pinString:et?.id,hashed:Mt,rawId:Ct,listener:se};await lt(yn)}else y(`Passkey creation failed: ${et?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else y("Passkey creation failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(se),await chrome.windows.create({url:`${V}?id=${p}`,type:"popup",width:500,height:600}).then(le=>{me(le.id)})}else{if(t&&!k.isSupported())return y("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0),null;let V=t?await k.create(mn("Verified Wallet",p,q(p),D)):await navigator?.credentials?.create({publicKey:mn("Verified Wallet",p,q(p))});if(V){let se=He(V?.rawId);return{pinString:V?.id,hashed:se,rawId:V?.rawId}}}return null}catch(p){return y(`Passkey creation failed: ${p?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0),null}},Ie=async D=>{if(y(""),c(!1),chrome?.windows?.create&&window){let p=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Bt,V=async(se,le,xe)=>{if(se.type==="VW:Passkey_Credential")if(se?.origin&&p?.toLowerCase()?.startsWith(se?.origin?.toLowerCase())){ie&&chrome.windows.remove(ie),le?.tab&&le?.tab?.windowId&&chrome.windows.remove(le.tab.windowId);let ue=se.data;if(ue?.id&&ue?.rawId){let et=Et(ue?.rawId),Ct=He(et),Mt={pinString:ue?.id,hashed:Ct,rawId:et,listener:V};await lt(Mt)}else y(`Passkey authentication failed: ${ue?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else y("Passkey authentication failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(V),await chrome.windows.create({url:`${p}`,type:"popup",width:500,height:600}).then(se=>{me(se.id)})}else try{if(t&&!k.isSupported()){y("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0);return}let p=t?await k.get(ft(D)):await navigator?.credentials?.get({publicKey:ft()}),V=He(p?.rawId);return{pinString:p?.id,hashed:V,rawId:p?.rawId}}catch(p){y(`Passkey authentication failed: ${p?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}},at=(D,p,V,se)=>{let le=V.nativeEvent.key;!se&&le==="Backspace"&&!de[p]&&p>0&&N.current[p-1]&&N.current[p-1].focus(),se&&le==="Backspace"&&!G[p]&&p>0&&U.current[p-1]&&U.current[p-1].focus()},Pe=()=>S?e.isExistingUser?de.every(D=>D!==""):de.every(D=>D!=="")&&G.every(D=>D!==""&&de.join("")===G.join("")):!0,$e=()=>!!(I&&ne?.length===66&&ne?.toLowerCase()?.startsWith("0x")),lt=async D=>{if(D?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(D?.listener),!e.helperFunctions)y("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);else{y(""),c(!1);let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Pe()&&p&&V&&it&&Ue&&Ce||!e.isExistingUser&&Pe()&&p&&V&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Pe()&&p&&V&&it&&Ue&&Ce||e.isExistingUser&&Pe()&&p&&V&&e.vaultData?.vaultContract){e.setIsLoading(!0);let se=D?.pinString||de.join(""),le=q(p),xe=D?.hashed||q(se);await Hn(e.eventEmitter,t,L,n,p,le,se,xe,V,D?.pk?D?.pk:it||e.vaultData?.pk,D?.address?D?.address:Ue||e.vaultData?.address,D?.vaultContract?D?.vaultContract:Ce||e.vaultData?.vaultContract,e.action,D?.vaultData?D?.vaultData:e.vaultData,e.txData,D?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ye]:void 0,ke).then(async ue=>{e.setIsLoading(!1),ue?(qe(ue?.shouldStop&&ue?.vaultId?{vaultId:ue?.vaultId,hashedVaultId:ue?.hashedVaultId,hashedVaultPin:ue?.hashedVaultPin,pk:ue?.pk,rawId:ue?.rawId,channel:ue?.channel}:ue?.shouldStop?{}:ue),y(""),c(!1),e.action==="invitation"?(F(se),ve(D?.rawId),Q(!0)):e.action==="reset-pin"?(t?t&&L&&S&&await L.removeItem("myVault"):!t&&chrome?.storage?.local&&S?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&S&&localStorage.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(V,p,D?.hashed,e.vaultData.hashedVaultPin,Date.now()),fe(`You have successfully reset your account ${S?"4-Digits PIN":"Passkey"}. ${S?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),X(!0)):ue?.shouldStop?ue?.shouldStop&&e.action!=="getPk"?(fe(""),X(!0)):ue?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):ue===null?e.action==="reset-pin"?(y("Reset pin failed. Try again later."),c(!0)):(y(`You are an existing user. Please use the right ${S?"existing 4-Digits PIN":"existing Passkey for "+p} to recover your account login access on this device/browser`),c(!0)):(y("Unexpected error while handling account. Please try again later."),c(!0))})}else Pe()||(y(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),c(!0))}},kn=async D=>{let p=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(H?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p||O&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&p){e.setIsLoading(!0);let se=q(p),le=S?q(H):He(O);await Ht(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,V,se,le,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,p,D,e.externalchainConfig,Ce).then(xe=>{e.setIsLoading(!1),xe&&!Le?.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(D?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):xe&&Le?.isExisting&&M(!0)})}};return d.createElement(u,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},K&&d.createElement(d.Fragment,null,!w&&!$&&d.createElement(d.Fragment,null,!I&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Change Pin":"Change Passkey"),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",S?"PIN":"Passkey",". This"," ",S?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(a,{style:{color:"#0C0C0E"}},S?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(a,{style:{color:"#0C0C0E"}},S?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!S&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{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(a,{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(a,{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(a,{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(a,{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(a,{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(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),S&&d.createElement(d.Fragment,null,d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},de.map((D,p)=>d.createElement(b,{key:`pin-${p}`,style:t&&g?{...r.verifiedCustdMdlOtpInputRed}:t&&g?{...r.verifiedCustdMdlOtpInput}:{},className:g?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:h,keyboardType:"number-pad",maxLength:1,ref:V=>N.current[p]=V,value:de[p],onChangeText:V=>be(V,p,!1),onKeyPress:V=>at(V,p,V,!1)}))),e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!g&&d.createElement(a,null),g&&m===""&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),g&&m?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(a,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},G.map((D,p)=>d.createElement(b,{key:`confirm-${p}`,style:t&&g?{...r.verifiedCustdMdlOtpInputRed}:t&&!g?{...r.verifiedCustdMdlOtpInput}:{},className:g?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:h,keyboardType:"number-pad",maxLength:1,ref:V=>U.current[p]=V,value:G[p],onChangeText:V=>be(V,p,!0),onKeyPress:V=>at(V,p,V,!0)}))),d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!g&&d.createElement(a,null),g&&m===""&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),g&&m?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!re&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!S&&d.createElement(d.Fragment,null,g&&m?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!S&&d.createElement(a,{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 D=>{if(e.action==="reset-pin"){let p=await De(e?.passKeyRpId);p&&await lt(p)}else{let p=await Ie(e?.passKeyRpId);p&&await lt(p)}}},e.action==="reset-pin"&&d.createElement(a,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(a,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",disabled:_,onPress:async D=>{if(!_){v(!0);try{if(!e.helperFunctions){y("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);return}let p=await De(e?.passKeyRpId);p&&await lt(p)}finally{v(!1)}}}},d.createElement(a,null,"Create New Account")),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonClick}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async D=>{ee(!0)}},d.createElement(a,null,"Import An Existing account")))),S&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Pe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Pe()?{...r.verifiedCustdMdlStartupButton}:{},className:Pe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async D=>{await lt()}},d.createElement(a,null,"Proceed"))))),I&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactContent,display:"flex",flexDirection:"row",overflow:"hidden"}:{display:"flex",flexDirection:"row",overflow:"hidden"},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText,width:"80%"}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"),d.createElement(s,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{y(""),c(!1),ee(!1)}},d.createElement(l,{source:{uri:E.closeIcon},alt:"Close",style:t?{...r.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"})))),d.createElement(i,{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,marginTop:10,marginBottom:10}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:ne,onChangeText:D=>{Ve(D)}}),te?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},te)),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{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(a,{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(a,{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(a,{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(a,{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(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!re&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},g&&m?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),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",disabled:_,onPress:async D=>{if(!_){v(!0);try{if(!$e()){c(!0),y("Invalid private key entered. Please scroll up, check private key and try again.");return}let p=await ot(e.externalchainConfig,Oe,ne);if(!p?.chainId||!p?.address||!p?.pk||!p?.provider||!p?.signer||!p?.vaultContract){c(!0),y("Invalid private key entered. Please check private key starts with 0x and try again.");return}st(p.chainId),Ze(p.address),At(p.pk),Lt(p.provider),R(p.signer),qe(p.vaultData),T(p.vaultContract);let V=await De(e?.passKeyRpId);V&&await lt({...V,pk:p.pk,vaultContract:p.vaultContract,signer:p.signer,address:p.address,vaultData:p.vaultData})}catch{c(!0),y("Error while importing account.try again later.");return}finally{v(!1)}}}},d.createElement(a,null,"Proceed With Passkey")))))),!w&&$&&d.createElement(d.Fragment,null,!z&&d.createElement(i,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(a,{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}}),!Y&&d.createElement(u,null,d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(a,{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(i,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.pkicon}})),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.encryptedIcon}})),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(a,{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(i,{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:()=>oe(!0)},d.createElement(a,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await kn(!0)}},d.createElement(a,null,"Accept")))),Y&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(a,{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(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(i,{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 kn(!1)}},d.createElement(a,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>oe(!1)},d.createElement(a,null,"No"))))))),z&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:Y?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`,eventEmitter:e.eventEmitter})),w&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:ce?.length>0?ce:"You have successfully logged in your account.",eventEmitter:e.eventEmitter})),!K&&d.createElement(a,null,"Loading Module Fonts..."))},Gt=da;import o,{useEffect as zn,useState as pe}from"react";import{ethers as ei}from"ethers";import{contractAddress as sa,Provider as la}from"@verified-network/verified-sdk";var ca=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n}=e.platform,[r,k]=pe(e.fontsLoaded||!1),[K,P]=pe(!1),[_,v]=pe(!1),[h,x]=pe("1"),[g,c]=pe("1"),[m,y]=pe(!1),[w,X]=pe("email"),[$,Q]=pe(""),[z,M]=pe(""),[Y,oe]=pe(""),[ce,fe]=pe(""),[H,F]=pe(""),[O,ve]=pe(!1),[re,Be]=pe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[S,Te]=pe([]),[I,ee]=pe(0),[te,Re]=pe([]),[ne,Ve]=pe([]),[Ye,ge]=pe(!1),[ke,j]=pe(2),[ie,me]=pe(""),[Ue,it]=pe(!1),{pk:Oe,vaultData:Ce,vaultContract:je,chainId:qe,signer:st}=Ge();zn(()=>{let R=async()=>{if(t)try{let T=await Ne(f);k(!0)}catch{k(!1)}else{let T=Se(document);k(T)}};e.fontsLoaded||R()},[]),zn(()=>{let R=async()=>{e.setIsLoading&&e.setIsLoading(!0);let T=q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Le=await je.getQuorum(T);if(Le?.status===0&&Le?.response?.result?.length>0){let Pe=Number(Le?.response?.result[0]);ee(Pe),Ve(new Array(Pe).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),Ce?.existingCosignersHashed?.length>0){Re([...new Set(Ce?.existingCosignersHashed)]),Ve([...new Set(Ce?.existingCosignersHashed)]);return}let ze=sa[qe]?.Custody;if(!ze)return;let G=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new ei.Contract(ze,G,st))return;let N=new ei.Interface(G),be=N.getEvent("NewParticipant").topicHash,at=(await new la(e.externalchainConfig[qe]?.rpcUrls[0]||Ke[qe]?.rpcUrls[0])?.getLogs({address:ze,fromBlock:Ke[qe]?.custodyContractBlock||0,toBlock:"latest",topics:[be]}))?.map(Pe=>{let $e=N.parseLog(Pe);return $e?.args?.creator?.toLowerCase()===q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&$e?.args?.creator!==$e?.args?.participant?$e?.args?.participant:null})?.filter(Pe=>Pe!==null);Re([...new Set(at)]),Ve([...new Set(at)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&st&&je||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&st&&je)&&R()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let Ze=()=>{},At=()=>{let R=S?.length;if(w==="sms"&&$?.length===0){me("Invalid input, please check the phone number");return}else if(w==="sms"&&$?.length!==10){me("Invalid input, please check the phone number");return}else if(w==="email"&&Y?.length===0){me("Invalid input, please check the email");return}else if(w==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Y)){me("Invalid input, please check the email");return}else if(S?.find(T=>T?.otpChannel==="sms"?T?.phoneArea?.toLowerCase()+T?.number?.toLowerCase()===re.area?.toLowerCase()+z?.toLowerCase():T?.email?.toLowerCase()===Y?.toLowerCase())){e.action!=="remove-cosigner"&&me(w==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&me(w==="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(w==="sms"&&re?.area?.toLowerCase()+z?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){me("Invalid input, phone number is creator's phone number");return}else if(w==="email"&&Y?.toLowerCase()===e.userEmail?.toLowerCase()){me("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&te?.length===0){me("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!te?.includes(q(w==="sms"?`+${re?.area}${$}`:Y))){me(w==="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"&&ne?.length===1){me("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(R+1===5){me("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}me(""),Te(T=>[{name:ce,email:Y,number:z,phoneNumber:`+${re?.area}${$}`,otpChannel:w,phoneArea:re?.area,position:T?.length+1,vaultId:w==="sms"?`+${re?.area}${$}`:Y},...T]),oe(""),fe(""),Q(""),M(""),F(""),R+1===4&&y(!1),e.action==="remove-cosigner"&&ne?.length>1&&Ve(ne?.filter(T=>T!==q(w==="sms"?`+${re?.area}${$}`:Y)))},Lt=async()=>{e.setIsLoading(!0);let R=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:Ce?.vaultId},...S]:[Ce?.hashedVaultId,...ne];e.action!=="remove-cosigner"&&R?.length>0&&S?.length>0&&ke&&Ce?.vaultId&&Ce?.hashedVaultId&&je&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&R?.length>1&&ke&&Ce?.vaultId&&Ce?.hashedVaultId&&je&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation?(e.setIsLoading(!0),await Jn(t,e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,R,S,e?.userEmail?.length>0?"email":"sms",ke,Ce.vaultId,Ce.hashedVaultId,Ce.vaultPin,Ce.hashedVaultPin,je,Oe,Ce?.rawId,e.action).then(T=>{e.setIsLoading(!1),T&&(e.action==="remove-cosigner"?it(!0):e.setStep("7"))})):e.setIsLoading(!1)};return o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Ue&&o.createElement(o.Fragment,null,!_&&o.createElement(o.Fragment,null,g==="1"&&o.createElement(o.Fragment,null,o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.pkicon},alt:"icon"})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.encryptedIcon},alt:"icon"})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(i,{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(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(a,{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(i,{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:()=>{x("1"),v(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Learn More")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{c("2"),y(!1),v(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),g==="2"&&o.createElement(o.Fragment,null," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ye&&o.createElement(o.Fragment,null,o.createElement(a,{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(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},I," required signers"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(a,{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(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length+1<5?S?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length,"/5)")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&ne?.includes(" ")&&o.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ye&&S.sort((R,T)=>R?.position-T?.position).map((R,T)=>o.createElement(i,{key:T,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},xt[R?.position]?.split(" ")[0],o.createElement(a,null,o.createElement(a,{style:{fontSize:10}},xt[R?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},R?.name),R.otpChannel==="email"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},R.email),R.otpChannel==="sms"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",R?.phoneArea,") ",R.number))),o.createElement(i,{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:()=>{Te(Le=>Le?.filter(de=>de?.otpChannel==="sms"?de?.phoneArea?.toLowerCase()+de?.number?.toLowerCase()!==R?.phoneArea?.toLowerCase()+R?.number?.toLowerCase():de?.email?.toLowerCase()!==R?.email?.toLowerCase())?.map((de,ze)=>(de.position=ze+1,de))),Ze()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ye&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(i,{style:{width:"100%",display:"flex",flexDirection:"row",overflow:"hidden"}},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(s,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{ge(!1)}},o.createElement(l,{source:{uri:E.closeIcon},alt:"Close",style:t?{...n.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"}))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?ne?.length+1:S?.length+1).fill("1").map((R,T)=>o.createElement(i,{key:T,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:T+1===ke&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:T+1===ke&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(a,{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(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(i,{style:t&&S?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length}%`}:!t&&S?.length===1?{width:`${100/S?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length+5}%`}:{width:`calc(${100/S?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.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(i,{style:t&&ne?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ne?.length}%`}:!t&&ne?.length===1?{width:`${100/ne?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ne?.length+5}%`}:{width:`calc(${100/ne?.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(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?ne?.length+1:S?.length+1).fill("1").map((R,T)=>o.createElement(s,{style:{background:"transparent"},key:T,onPress:()=>{T+1>1&&j(T+1)}},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&T===S?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&T===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&T===0?{paddingLeft:12}:!t&&T===S?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(T+1)),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&T===ne?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&T===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&T===0?{paddingLeft:12}:!t&&T===ne?.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",disabled:K,onPress:async()=>{if(!K){P(!0);try{await Lt()}finally{P(!1)}}}},o.createElement(a,null,"Confirm"))))),m&&S?.length<4&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},xt[S?.length+1]?.split(" ")[0],o.createElement(a,{style:{fontSize:10}},xt[S?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(b,{onChangeText:fe,value:ce,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(i,{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:()=>{X("sms"),me(""),oe("")}},o.createElement(l,{source:{uri:w==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(a,{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",height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{X("email"),me(""),Q(""),M(""),F("")}},o.createElement(l,{source:{uri:w==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},w==="sms"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>ve(!O),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:re.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",re.area),O?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:R=>{F(R===""?H+" ":R);let T=R.replace(/\D/g,"");Q(T);let Le="";for(let de=0;de<T.length;de++)Le+=T[de],(de+1)%5===0&&de+1<T.length&&(Le+=" ");M(Le),me("")},onBlur:Ze,value:z,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),O&&o.createElement($t,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Ze,setSelected:Be,selected:re,searchActive:O,setSearchActive:ve,contentMaxHeight:300,contentbottomMargin:300}),ie===""&&$.length!==10&&H.length>10&&o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ie!==""&&o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ie))),w==="email"&&o.createElement(i,{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:R=>{oe(R),me("")},onBlur:Ze,value:Y,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),ie!==""&&o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ie)))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},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:()=>y(!1)},o.createElement(a,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:()=>{At(),Ze()}},o.createElement(a,null,"Add")))),!m&&!Ye&&S?.length<4&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",height:20,marginBottom:10}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>y(!0)},o.createElement(l,{source:{uri:E.addIcon},style:{width:20,height:20}}),o.createElement(a,{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")),!m&&!Ye&&S?.length===4&&o.createElement(i,{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(a,{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":"")))),!Ye&&o.createElement(s,{className:S?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&S?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&S?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&S?.length>0&&!m&&S?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&S?.length===0&&!m&&S?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!m&&S?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{S?.length>0&&(j(2),ge(!0),y(!1))}},o.createElement(a,{style:n.buttonText},"Proceed")))),_&&o.createElement(o.Fragment,null,h==="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(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.createElement(i,{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(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Back")),o.createElement(s,{onPress:()=>x("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Next")))),h==="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(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.createElement(i,{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:()=>x("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,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:()=>x("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Next")))),h==="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(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(i,{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:()=>x("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Back")),o.createElement(s,{onPress:()=>{c("2"),y(!1),v(!1),x("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Start")))))),r&&Ue&&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)},eventEmitter:e.eventEmitter}),!r&&o.createElement(a,null,"Loading Module Fonts..."))},vt=ca;import C,{useEffect as ua,useRef as fa,useState as ye}from"react";import{ethers as ti}from"ethers";var ga=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:f,AsyncStorage:L,styles:n,rnPasskey:r}=e.platform,[k,K]=ye(e.fontsLoaded||!1),[P,_]=ye(!1),[v,h]=ye(!1),[x,g]=ye(!0),[c,m]=ye(!1),[y,w]=ye(!1),[X,$]=ye(null),[Q,z]=ye(null),[M,Y]=ye(e.newChainId||8453),[oe,ce]=ye(!1),[fe,H]=ye(!1),[F,O]=ye(!1),[ve,re]=ye(!1),[Be,S]=ye(!1),[Te,I]=ye(""),[ee,te]=ye(!1),[Re,ne]=ye(!1),[Ve,Ye]=ye({}),[ge,ke]=ye(["","","",""]),j=fa([]),[ie,me]=ye(!1),[Ue,it]=ye(null),{setChainId:Oe,setAddress:Ce,setPk:je,setProvider:qe,setSigner:st,setVaultContract:Ze,setVaultData:At}=Ge();ua(()=>{let G=async()=>{if(t)f&&await Ne(f),K(!0);else{let B=Se(document);K(B)}};e.fontsLoaded||G()},[]);let Lt=(G,B)=>{if(G.length>1){let N=G.replace(/\D/g,""),U=[...ge],be=0;for(let Ie=B;Ie<ge.length&&be<N.length;Ie++)U[Ie]=N[be],be++;ke(U);let De=B+N.length;De<ge.length&&j.current[De]&&j.current[De].focus(),h(!1)}else{let N=G.replace(/\D/g,""),U=[...ge];U[B]=N,ke(U),N&&j.current[B+1]&&j.current[B+1].focus(),h(!1)}},R=(G,B,N)=>{N.nativeEvent.key==="Backspace"&&!ge[B]&&B>0&&j.current[B-1]&&j.current[B-1].focus()},T=ge.every(G=>G.length>0),Le=async G=>{if(e.setIsLoading(!0),G?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(G?.listener),!e.helperFunctions)I("No Helper Functions. Please include all helper functions in the EnterPinPage props."),h(!0),e.setIsLoading(!1);else if(I(""),h(!1),ie&&T&&e.hashedVaultId&&e.encrptedPk||!ie&&e.hashedVaultId&&e.encrptedPk&&G){e.setIsLoading(!0);let B=G?.pinString?G?.pinString:ge.join("");await On(t,e.vaultId,e.hashedVaultId,B,G?.hashed?G?.hashed:q(B),e.encrptedPk,e.vaultAddress,e.vaultChannel,e.externalchainConfig,Number(M),vn?.includes(e.origin?.toLowerCase())?!0:!!t,null,G?.rawId).then(async N=>{if(N&&!N?.inCompleteVault)e.setIsLoading(!1),$(N),z(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(t,e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,G?.hashed?G?.hashed:q(B),e.vaultId,B,e.encrptedPk,e.vaultChannel,e.externalchainConfig,Number(M),G?.rawId).then(async U=>{e.setIsLoading(!1),t?t&&L&&await L.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),U?w(!0):(I("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),h(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Un(t,e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,G?.hashed?G?.hashed:q(B),e.vaultId,B,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,e.externalchainConfig,Number(M),G?.rawId).then(async U=>{e.setIsLoading(!1),t?t&&L&&!e.reqTxData?.newUser&&!e.vaultAddress&&await L.removeItem("myVault"):!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"),U?w(!0):(I("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."),h(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Wn(t,L,e.hashedVaultId,G?.hashed?G?.hashed:q(B),e.vaultId,B,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,e.externalchainConfig,Number(M),G?.rawId).then(async U=>{e.setIsLoading(!1),U?w(!0):(t?t&&L&&await L.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),h(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement?(Ye({chainId:M,ky:ie?ti.encodeBytes32String(N?.pin):"",rawId:ie?"":G?.rawId,...e.txToSign}),H(!1),ne(!1),te(!0)):e.action==="personal_sign"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement||e.action==="eth_signTypedData_v4"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signMsgElement?(Ye({chainId:M,ky:ie?ti.encodeBytes32String(N?.pin):"",rawId:ie?"":G?.rawId,personal_sign_params:e.action==="personal_sign"?e.txToSign:null,eth_signTypedData_v4_params:e.action==="eth_signTypedData_v4"?e.txToSign:null}),H(!1),te(!1),ne(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(I(""),h(!1),H(!0),ne(!1),te(!1)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(I(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),h(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(I(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),h(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&L&&await L.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),h(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&L&&await L.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),h(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(I("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),h(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(I("Incomplete account login detected. Logout and try again later"),h(!0)):(I(""),h(!1),w(!0));else if(N&&N?.inCompleteVault&&N?.pk){let U=await ot(e.externalchainConfig,Number(M),N?.pk);if(Oe(U.chainId),Ce(U.address),je(U.pk),qe(U.provider),st(U.signer),Ze(U.vaultContract),At({vaultId:N?.vaultId,hashedVaultId:N?.hashedVaultId,vaultPin:N?.pin,hashedVaultPin:ie?q(N?.pin):He(N?.rawId),vaultContract:U.vaultContract,rawId:N?.rawId}),N?.channel?.toLowerCase()==="sms"){let be=N?.vaultId?.replace(N?.vaultId?.slice(-10),""),De=N?.vaultId?.slice(-10)?.slice(0,5)+" "+N?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:be?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(De),e.setUserEmail("")}else e.setUserEmail(N?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else I(ie?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),h(!0),e.setIsLoading(!1)})}else!ie&&!G&&(I("Unexpected error with selected passkey. Try again later"),h(!0),e.setIsLoading(!1)),ie&&!T&&(I("Input your 4-Digits PIN to login."),h(!0),e.setIsLoading(!1))},de=async G=>{let B=e.vaultId;if(X?.pin?.length>0&&X?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&B&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let N=X.pin,U=q(B),be=ie?q(N):He(X.rawId);await Ht(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,U,be,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,B,G,e.externalchainConfig,null,X.pk,Number(M)).then(De=>{e.setIsLoading(!1),De&&(S(G),O(!0))})}},ze=async G=>{if(I(""),h(!1),chrome?.windows?.create){let B=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Bt,N=async(U,be,De)=>{if(U.type==="VW:Passkey_Credential")if(U?.origin&&B?.toLowerCase()?.startsWith(U?.origin?.toLowerCase())){Ue&&chrome.windows.remove(Ue),be?.tab&&be?.tab?.windowId&&chrome.windows.remove(be.tab.windowId);let Ie=U.data;if(Ie?.id&&Ie?.rawId){let at=Et(Ie?.rawId),Pe=He(at),$e={pinString:Ie?.id,hashed:Pe,rawId:at,listener:N};$e&&await Le($e)}else I(`Passkey authentication failed: ${Ie?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0)}else I("Passkey authentication failed: invalid passkey origin. Try again later"),h(!0)};chrome.runtime.onMessage.addListener(N),await chrome.windows.create({url:`${B}`,type:"popup",width:500,height:600}).then(U=>{it(U.id)})}else try{if(t&&!r.isSupported()){I("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),h(!0);return}let B=t?await r.get(ft(G)):await navigator?.credentials?.get({publicKey:ft()}),N=He(B?.rawId);return{pinString:B?.id,hashed:N,rawId:B?.rawId}}catch(B){I(`Passkey authentication failed: ${B?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0)}};return C.createElement(C.Fragment,null,k&&!fe&&!ee&&!Re&&C.createElement(C.Fragment,null,!y&&C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},C.createElement(Me,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},ie?"Enter PIN":"Sign-in with Existing Passkey")),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",C.createElement(a,{style:{color:"#0C0C0E"}},ie?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",C.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),ie&&C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ge.map((G,B)=>C.createElement(b,{key:B,ref:N=>j.current[B]=N,className:v?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&v?{...n.verifiedCustdMdlOtpInputRed}:t&&!v?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:x,maxLength:1,value:ge[B],onChangeText:N=>Lt(N,B),onKeyPress:N=>R(N,B,N),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${B}`}))),C.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},v&&!Te&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),v&&Te&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},Te),!v&&C.createElement(a,null),x?C.createElement(s,{onPress:()=>g(!1),style:{backgroundColor:"transparent"}},C.createElement(l,{style:{width:24,height:24},source:{uri:E.pinHide}})):C.createElement(s,{onPress:()=>g(!0),style:{backgroundColor:"transparent"}},C.createElement(l,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!ie&&C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},C.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),C.createElement(a,{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."),C.createElement(a,{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."),C.createElement(a,{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.'),C.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!c&&C.createElement(i,{style:{height:20}}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},C.createElement(Vn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),ie&&C.createElement(s,{onPress:async()=>await Le(),style:t&&T&&!v?{...n.verifiedCustdMdlStartupButtonActive}:t&&T&&v?{...n.verifiedCustdMdlStartupButton}:t&&!T&&!v?{...n.verifiedCustdMdlStartupButton}:t&&!T&&v?{...n.verifiedCustdMdlStartupButton}:{},className:T&&!v?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},C.createElement(a,null,"Proceed")),!ie&&C.createElement(C.Fragment,null,v&&Te?.length>0&&C.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},Te),C.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},disabled:P,onPress:async()=>{if(!P){_(!0);try{let G=await ze(e?.passKeyRpId);G&&await Le(G)}finally{_(!1)}}},className:"verified-custd-mdl-startup-button-active"},C.createElement(a,null,"Login With Passkey")))))),y&&C.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`:"",eventEmitter:e.eventEmitter})),k&&fe&&!ee&&!Re&&C.createElement(C.Fragment,null,!F&&C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},C.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),C.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},C.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},C.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),C.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},C.createElement(l,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),ve?C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",C.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},C.createElement(s,{onPress:async()=>await de(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"Yes")),C.createElement(s,{onPress:()=>re(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"No")))))):C.createElement(C.Fragment,null,C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},C.createElement(l,{source:{uri:E.pkicon}})),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},C.createElement(l,{source:{uri:E.encryptedIcon}})),C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",C.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),C.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},C.createElement(s,{onPress:()=>re(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},C.createElement(a,null,"Reject")),C.createElement(s,{onPress:async()=>await de(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},C.createElement(a,null,"Accept"))))),F&&C.createElement(Fe,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:X},customTextHeader:"Successful",customTextFooter:Be?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`,eventEmitter:e.eventEmitter})),k&&!fe&&ee&&!Re&&C.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:Ve}),k&&!fe&&!ee&&Re&&C.createElement(e.signMsgElement,{setIsLoading:e.setIsLoading,msgToSign:Ve}),!k&&C.createElement(a,null,"Loading Module Fonts..."))},Pt=ga;var Ca=e=>{let{isReactNative:t,View:i,Text:a,Image:l,ScrollView:u,StyleSheet:b,Font:s,AsyncStorage:A}=e?.platform,[f,L]=Xe(e.fontsLoaded||!1),[n,r]=Xe(e.showLogoPage||!1),[k,K]=Xe([]),[P,_]=Xe("2"),[v,h]=Xe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[x,g]=Xe(""),[c,m]=Xe(""),[y,w]=Xe(!1),[X,$]=Xe(""),[Q,z]=Xe(""),[M,Y]=Xe(""),[oe,ce]=Xe(""),[fe,H]=Xe(null),[F,O]=Xe(null),[ve,re]=Xe(!1),{setChainId:Be,setAddress:S,setPk:Te,setProvider:I,setSigner:ee,setVaultContract:te,setVaultData:Re,vaultData:ne,chainId:Ve,vaultContract:Ye}=Ge();return Ot(()=>{let ge=async()=>{if(t)s&&await Ne(s),L(!0);else{let ke=Se(document);L(ke)}};e.fontsLoaded||ge()},[]),Ot(()=>{let ge=async()=>{let ke;t?t&&A&&(ke=A.getItem("lastPk")):!t&&chrome?.storage?.local?ke=await new Promise(ie=>{chrome.storage.local.get(["lastPk"],me=>{ie(me.lastPk)})}):!t&&localStorage&&(ke=localStorage.getItem("lastPk"));let j=await ot(e.externalchainConfig,e.chainId,ke&&ke?.length>0?ke:void 0);Be(j.chainId),S(j.address),Te(j.pk),I(j.provider),ee(j.signer),Re(j.vaultData),j.vaultContract?.contractAddress?te(j.vaultContract):te(void 0)};Ye?.contractAddress||ge()},[Ye]),Ot(()=>{ma(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Ot(()=>{(()=>{let ke=Dt.map(j=>{if(j)return{name:j.name,countryName:j.name,officialName:j.name,currencySymbol:j.currency,currencyName:j.currency,officialCurrencySymbol:j.currency,countryCode:j.code,flag:j.flag,continent:j.continent,phone_code:j.phone_code,code:j.code}}).filter(Boolean);K(ke)})()},[]),_e.createElement(u,{style:{padding:20,width:"100%",heigth:"100%"}},f&&n&&e.logoPageElement&&_e.createElement(i,null,e.logoPageElement),f&&!n&&_e.createElement(i,{style:{width:"100%",heigth:"100%"}},P==="2"&&_e.createElement(Cn,{platform:e.platform,fontsLoaded:f,setStep:_,setIsLoading:e.setIsLoading,setUserNumberFmt:g,userNumberFmt:x,setUserEmail:m,userEmail:c,setSelectedCountry:h,selectedCountry:v,allCountries:k,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),P==="3"&&_e.createElement(hn,{platform:e.platform,fontsLoaded:f,setStep:_,setIsLoading:e.setIsLoading,userNumberFmt:x,setUserNumberFmt:g,setUserEmail:m,userEmail:c,selectedCountry:v,helperFunctions:e.helperFunctions,setIsExistingUser:re}),P==="4"&&_e.createElement(Gt,{platform:e.platform,fontsLoaded:f,setStep:_,setIsLoading:e.setIsLoading,setShowSuccessBtn:w,setSuccessBtnText:$,setSuccessBtnNeutText:z,setSuccessBtnFunc:H,setSuccessBtnNeutFunc:O,userNumberFmt:x,userEmail:c,selectedCountry:v,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:Y,setActionFooterText:ce,helperFunctions:e.helperFunctions,isExistingUser:ve,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]}),P==="5"&&_e.createElement(Fe,{platform:e.platform,setStep:_,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:y,buttonText:X,buttonNeutText:Q,buttonFunc:fe,buttonNeutFunc:F,actionHeaderText:M,actionFooterText:oe,eventEmitter:e.eventEmitter}),P==="6"&&_e.createElement(vt,{platform:e.platform,fontsLoaded:f,setStep:_,setIsLoading:e.setIsLoading,userNumberFmt:x,userEmail:c,selectedCountry:v,allCountries:k,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]}),P==="7"&&e.action===""&&_e.createElement(Fe,{platform:e.platform,action:e.action,setStep:_,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)},eventEmitter:e.eventEmitter}),P==="7"&&e.action!==""&&_e.createElement(Fe,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:Ve}}:{type:e.action?e.action:"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)},eventEmitter:e.eventEmitter}),P==="8"&&e.dashbordElement&&_e.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),P==="8"&&!e.dashbordElement&&_e.createElement(_e.Fragment,null),P==="0"&&_e.createElement(Pt,{platform:e.platform,fontsLoaded:f,vaultId:ne?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:ne?.hashedVaultId,encrptedPk:ne?.pk,vaultAddress:ne?.address,vaultChannel:ne?.channel,actionText:wt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(Ve||e.chainId),action:"getPk",reqVaultData:ne,reqTxData:e.txData?Object.keys(e.txData)?.map(ge=>(e.txData[ge]=decodeURIComponent(e.txData[ge]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:m,setUserNumberFmt:g,setSelectedCountry:h,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]})),!f&&_e.createElement(i,{style:{padding:20,width:"100%",heigth:"100%"}},_e.createElement(a,null,"Loading Module Fonts...")))},pn=Ca;var ha=e=>{let[t,i]=Ae(!1),[a,l]=Ae({}),[u,b]=Ae(!1),[s,A]=Ae(null),[f,L]=Ae({}),[n,r]=Ae({}),[k,K]=Ae(!1),[P,_]=Ae(!1),[v,h]=Ae(!1),[x,g]=Ae(!1),[c,m]=Ae(!1),[y,w]=Ae(""),[X,$]=Ae([]),[Q,z]=Ae(""),[M,Y]=Ae(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[oe,ce]=Ae(""),[fe,H]=Ae("");Jt(()=>{(async()=>{await dn();let ee=sn();ee&&(l(ee),i(!0))})()},[]);let{isReactNative:F,View:O,Text:ve,Font:re,AsyncStorage:Be,ActivityIndicator:S,styles:Te}=a;return Jt(()=>{!u&&t&&(async()=>{if(F)re&&await Ne(re),b(!0);else{let ee=Se(document);b(ee)}})()},[t,u]),Jt(()=>{t&&(async()=>{if(F){if(F&&Be)try{let ee=await Be.getItem("myVault");if(ee){let te=JSON.parse(ee);if(te?.vaultId){L(te),A(!0);return}}A(!1)}catch(ee){console.error("Error reading vault data on react:",ee),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ee=>{ee.myVault&&JSON.parse(ee.myVault)?.vaultId?(L(JSON.parse(ee.myVault)),A(!0)):A(!1)});else if(localStorage){let ee=JSON.parse(localStorage.getItem("myVault"));ee&&ee?.vaultId?(L(ee),A(!0)):A(!1)}else A(!1)})()},[t]),Jt(()=>{(()=>{let ee=Dt.map(te=>te?{name:te?.name,countryName:te?.name,officialName:te?.name,currencySymbol:te?.currency,currencyName:te?.currency,officialCurrencySymbol:te?.currency,countryCode:te?.code,flag:te?.flag,continent:te?.continent,phone_code:te?.phone_code,code:te?.code}:null).filter(te=>te!=null);$(ee)})()},[]),Z.createElement(Z.Fragment,null,t&&Z.createElement(Z.Fragment,null,u&&Z.createElement(ln,null,k&&Z.createElement(O,{style:F?{...Te.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},Z.createElement(S,{size:"large",color:"blue"})),Z.createElement(O,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:F?{...Te.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&Z.createElement(Z.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&Z.createElement(O,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&Z.createElement(Z.Fragment,null,!s&&!P&&Z.createElement(pn,{platform:a,fontsLoaded:u,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(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(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:K,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:_,setShowResetPin:g,setShowRemoveCosigner:m,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]}),s&&!P&&!v&&Z.createElement(Pt,{platform:a,fontsLoaded:u,setisOnboard:A,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,vaultChannel:f?.channel,regAddress:f?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||wt[e.action],setIsLoading:K,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(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(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,signMsgElement:e.signMsgElement,helperFunctions:e.helperFunctions,setShowDashboard:_,setShowResetPin:g,setShowRemoveCosigner:m,setShowCompleteVault:h,setUserEmail:H,setUserNumberFmt:ce,setSelectedCountry:Y,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,externalchainConfig:e.chainConfig||[]}),s&&P&&v&&Z.createElement(Pt,{platform:a,fontsLoaded:u,setisOnboard:A,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,regAddress:f?.regAddress,vaultChannel:f?.channel,origin:e.origin,title:e.title,actionText:e.actionText||wt[e.action],setIsLoading:K,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(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(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,signMsgElement:e.signMsgElement,helperFunctions:e.helperFunctions,setShowDashboard:_,setShowResetPin:g,setShowRemoveCosigner:m,setShowCompleteVault:h,setUserEmail:H,setUserNumberFmt:ce,setSelectedCountry:Y,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,externalchainConfig:e.chainConfig||[]}),s&&!P&&v&&Q===""&&Z.createElement(O,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:u,setStep:z,setIsLoading:K,userNumberFmt:oe,userEmail:fe,selectedCountry:M,allCountries:X,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:_,setShowResetPin:g,setShowRemoveCosigner:m,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]})),s&&!P&&v&&Q==="7"&&Z.createElement(Fe,{platform:a,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:()=>{g(!1),m(!1),_(!0)},buttonFunc:()=>{g(!1),m(!1),_(!0)},eventEmitter:e.eventEmitter}),s&&!P&&v&&Q==="8"&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:K}),s&&!P&&v&&Q==="8"&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),!v&&P&&!x&&!c&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:K,setShowResetPin:g,setShowRemoveCosigner:m,setAction:w,setUserNumberFmt:ce,setUserEmail:H,setSelectedCountry:Y,setVaultData:r,initWalletAndContract:ot,useVaultStore:Ge}),s&&!v&&P&&!x&&!c&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),s&&!v&&!c&&P&&x&&Z.createElement(O,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(Gt,{platform:a,fontsLoaded:u,action:"reset-pin",setStep:z,setIsLoading:K,userNumberFmt:oe,userEmail:fe,vaultData:n,selectedCountry:M,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]})),s&&!v&&P&&!x&&c&&Z.createElement(O,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:u,action:"remove-cosigner",setStep:z,setIsLoading:K,userNumberFmt:oe,userEmail:fe,selectedCountry:M,allCountries:X,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:_,setShowResetPin:g,setShowRemoveCosigner:m,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]}))))),!u&&Z.createElement(ve,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&Z.createElement(Z.Fragment,null,"Preparing Module..."))},pa=ha;export{vt as AddCoSignersPage,Cn as ContactPage,Gt as CreatePinPage,Pt as EnterPinPage,pn as FTUPage,hn as OTPPage,ln as VaultContextProvider,pa as VerifiedCustody,ut as decryptString,gt as decryptWithPasskey,rt as encryptString,dt as encryptWithPasskey,sn as getPlatformComponents,He as hashTheBuffer,q as hashTheString,dn as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,ft as publicKeyCredentialRequestOptions};
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|