@verified-network/verified-custody 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- var Jn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Mt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yn=Mt((_a,fi)=>{fi.exports="./Roboto-Regular-UUBD26YO.ttf"});var vn=Mt((Sa,gi)=>{gi.exports="./Manrope-Regular-33576HBZ.ttf"});var An=Mt((wa,mi)=>{mi.exports="./Hind-Regular-R5KOYWFC.ttf"});function Rn(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}Rn(`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{Jn("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import We,{forwardRef as Un}from"react";var ca=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",ln=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],cn=["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"],Ft="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Bt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},Ct={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},pt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},T={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},xt=[{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 un={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var Vt=!1,It=!1,$t,Dt,Ht,Ot,Jt,Rt,Ut,Wt,fn,gn,mn,Qt,Cn,jt=async()=>{if(It)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");fn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");Cn=await(await import("react-native-passkey")).Passkey,gn=l.default,mn=a.EventEmitter;let _=({className:L,id:f,...K})=>K,s=L=>f=>We.createElement(L,{..._(f)});$t=s(t.View),Dt=s(t.Text),Ht=s(t.Image),Ot=s(t.ScrollView),Jt=t.StyleSheet,Rt=s(t.TextInput),Ut=s(t.TouchableOpacity),Wt=s(t.ActivityIndicator),Qt=t.StyleSheet.create(un),Vt=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");$t=({onPress:a,...i})=>We.createElement("div",{onClick:a,...i}),Dt=({onPress:a,...i})=>We.createElement("span",{onClick:a,...i}),Ht=({onPress:a,source:i,...l})=>We.createElement("img",{onClick:a,...l,src:i?.uri}),Ot=a=>We.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),Jt={create:a=>a},Qt={},Rt=Un(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:y,value:_,keyboardType:s,secureTextEntry:L,onSubmitEditing:f,blurOnSubmit:K,placeholderTextColor:n,...r},w)=>We.createElement("input",{...r,ref:w,value:_,onInput:m=>{i?.(m),a?.(m.target.value)},onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),f?.(m)),l?.(m),y?.(m)},type:L?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),Ut=({onPress:a,style:i,...l})=>We.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),Wt=({color:a,size:i,...l})=>We.createElement(t.img,{height:"50px",width:"50px",src:T.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Vt=!1,console.log("Web platform initialized.")}It=!0},qt=()=>{if(!It)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Vt,View:$t,Text:Dt,Image:Ht,ScrollView:Ot,StyleSheet:Jt,TextInput:Rt,TouchableOpacity:Ut,ActivityIndicator:Wt,Font:fn,AsyncStorage:gn,EventEmitter:mn,styles:Qt,rnPasskey:Cn}};import Z,{useEffect as Tt,useState as ye}from"react";import Wn,{createContext as Qn,useContext as jn,useState as nt}from"react";var pn=Qn(void 0),Zt=({children:e})=>{let[t,a]=nt(null),[i,l]=nt(null),[y,_]=nt(null),[s,L]=nt(null),[f,K]=nt(null),[n,r]=nt(null),[w,m]=nt(null);return Wn.createElement(pn.Provider,{value:{chainId:t,pk:i,address:y,signer:s,provider:f,vaultContract:n,vaultData:w,setChainId:a,setPk:l,setAddress:_,setSigner:L,setProvider:K,setVaultContract:r,setVaultData:m}},e)},Ee=()=>{let e=jn(pn);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import Pe,{useEffect as Et,useState as we}from"react";import{debounce as na}from"lodash";import{contractAddress as Ci,Custody as pi,Provider as hi,VerifiedWallet as zt}from"@verified-network/verified-sdk";var ce={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:T.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:T.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:T.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:T.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:T.baseIcon}};import{pbkdf2 as Ln}from"@noble/hashes/pbkdf2";import{sha256 as wt}from"@noble/hashes/sha256";import{randomBytes as St,utf8ToBytes as nn,bytesToUtf8 as ki}from"@noble/hashes/utils";import{gcm as bn}from"@noble/ciphers/aes";import an from"crypto-js";import{toast as Pn}from"react-toastify";import Kt from"react";import{base as Ki,baseSepolia as yi,gnosis as vi,mainnet as Ai,polygon as Pi,sepolia as Li}from"viem/chains";import{http as bi}from"viem";import{createPublicClient as zn,encodeAbiParameters as ei,encodeFunctionData as ti,pad as ni,toHex as ii,zeroAddress as kt,zeroHash as ai}from"viem";var hn={abi:[{type:"constructor",inputs:[{name:"defaultValidator",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],stateMutability:"nonpayable"},{type:"error",name:"CanNotRemoveLastValidator",inputs:[]},{type:"error",name:"DefaultValidatorAlreadyInstalled",inputs:[]},{type:"error",name:"EmergencyUninstallSigError",inputs:[]},{type:"error",name:"EnableModeSigError",inputs:[]},{type:"error",name:"FallbackAlreadyInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackCallTypeInvalid",inputs:[]},{type:"error",name:"FallbackHandlerUninstallFailed",inputs:[]},{type:"error",name:"FallbackNotInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackSelectorForbidden",inputs:[]},{type:"error",name:"HookAlreadyInstalled",inputs:[{name:"currentHook",type:"address",internalType:"address"}]},{type:"error",name:"HookPostCheckFailed",inputs:[]},{type:"error",name:"InvalidInput",inputs:[]},{type:"error",name:"InvalidModule",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"InvalidModuleTypeId",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidNonce",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"MismatchModuleTypeId",inputs:[]},{type:"error",name:"MissingFallbackHandler",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"ModuleAddressCanNotBeZero",inputs:[]},{type:"error",name:"ModuleAlreadyInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"ModuleNotInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"NoValidatorInstalled",inputs:[]},{type:"error",name:"PrevalidationHookAlreadyInstalled",inputs:[{name:"currentPreValidationHook",type:"address",internalType:"address"}]},{type:"error",name:"UnauthorizedOperation",inputs:[{name:"operator",type:"address",internalType:"address"}]},{type:"error",name:"UnsupportedCallType",inputs:[{name:"callType",type:"bytes1",internalType:"CallType"}]},{type:"error",name:"ValidatorNotInstalled",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"event",name:"ERC7484RegistryConfigured",inputs:[{name:"registry",type:"address",indexed:!0,internalType:"contract IERC7484"}],anonymous:!1},{type:"event",name:"ModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ModuleUninstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"fallback",stateMutability:"payable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getActiveHook",inputs:[],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getExecutorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getFallbackHandlerBySelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bytes1",internalType:"CallType"},{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getRegistry",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IERC7484"}],stateMutability:"view"},{type:"function",name:"getValidatorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"initNexus",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScoped",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScopedNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidator",inputs:[{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModules",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidator",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidatorNoRegistry",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"installModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"isModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"additionalContext",type:"bytes",internalType:"bytes"}],outputs:[{name:"installed",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"uninstallModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"deInitData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"receive",stateMutability:"payable"}]};var kn={abi:[{inputs:[{internalType:"address",name:"implementation_",type:"address"},{internalType:"address",name:"owner_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"AccountAlreadyDeployed",type:"error"},{inputs:[],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ImplementationAddressCanNotBeZero",type:"error"},{inputs:[],name:"InvalidEntryPointAddress",type:"error"},{inputs:[],name:"NewOwnerIsZeroAddress",type:"error"},{inputs:[],name:"NoHandoverRequest",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"ZeroAddressNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"bytes",name:"initData",type:"bytes"},{indexed:!0,internalType:"bytes32",name:"salt",type:"bytes32"}],name:"AccountCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"ACCOUNT_IMPLEMENTATION",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"cancelOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"completeOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"computeAccountAddress",outputs:[{internalType:"address payable",name:"expectedAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"createAccount",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"result",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"ownershipHandoverExpiresAt",outputs:[{internalType:"uint256",name:"result",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"requestOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"}],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"}]};var oi="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",ri="0x00000000D3254452a909E4eeD47455Af7E27C289",Kn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",di=0n,ht=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},si=e=>ei([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,ti({abi:hn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),li=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:y,..._}=e;return{deInitData:t,data:l,module:y,address:y,signer:i,type:a,getStubSignature:async()=>Kn,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),..._}},ci=e=>li({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:kt,module:kt,type:"validator",getStubSignature:async()=>Kn}),ui=()=>({module:kt,data:ai}),_t=async(e,t,a)=>{let i=zn({chain:e,transport:t}),l=ci({signer:a}),y=[],_=[],s=ui(),L=[],f=kt,K=oi,n=ri,r=[],w=si({defaultValidator:ht(l),validators:y.map(ht),executors:_.map(ht),hook:ht(s),fallbacks:L.map(ht),registryAddress:f,bootStrapAddress:n,prevalidationHooks:r}),m=ni(ii(di),{size:32}),b=await i.readContract({address:K,abi:kn.abi,functionName:"computeAccountAddress",args:[w,m]});if(b?.toLowerCase()!==kt?.toLowerCase())return b};var xe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return cn.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let y=e.createElement("link");y.rel="stylesheet",y.href=i,e.head.appendChild(y)}}),!0},_e=async e=>(await e?.loadAsync({Roboto:yn(),Manrope:vn(),Hind:An()}),!0),Qe=async(e,t)=>{try{let a;if(t)a=new zt(t);else{let r=zt.generateMnemonic();a=zt.importWallet(r)}let i=Ci,l=e&&i[e]?.Custody&&ce[e]?.rpcUrls?.length>0?e:8453,y=ce[l]?.rpcUrls[0],_=a.setProvider(new hi(y)),s=a.privateKey,L=new pi(_,i[l]?.Custody),f=_,K=[Ki,Ai,vi,Pi,Li,yi].find(r=>Number(r?.id)===Number(l)),n=await _t(K,bi(),f);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:_,provider:y,vaultContract:L,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},W=e=>{let t=e.toLowerCase(),a=wt(nn(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},Re=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=wt(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},je=(e,t)=>an.AES.encrypt(e,t).toString(),it=(e,t)=>{var a=an.AES.decrypt(e,t),i=a.toString(an.enc.Utf8);return i},xi=(e,t)=>Kt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},Kt.createElement("img",{style:{marginLeft:"5px"},src:T.errorAlert,alt:""}),Kt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},Kt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),Kt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Se=(e,t)=>(Pn.dismiss(),Pn.error(xi(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 R=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},_i=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let y=t.substr(l*2,2);i[l]=parseInt(y,16)}return i},on=(e,t,a)=>{let i=_i(a);return{challenge:St(32),rp:{name:e},user:{id:i,name:t,displayName:t},pubKeyCredParams:[{alg:-7,type:"public-key"},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"preferred"},timeout:6e4,attestation:"direct"}},lt=()=>({challenge:St(32),timeout:6e4,userVerification:"preferred"}),en=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),tn=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},qe=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=St(8),y=Array.from(l).map(r=>r.toString(16).padStart(2,"0")).join(""),_=W(`${a}:${y}`),s=nn(_),L=St(12),f=Ln(wt,i,s,{c:3e5,dkLen:32}),n=bn(f,L).encrypt(nn(e));return[en(s),en(L),en(n)].join(".")},at=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let y=t instanceof Uint8Array?t:new Uint8Array(t),_=tn(a),s=tn(i),L=tn(l),f=Ln(wt,y,_,{c:3e5,dkLen:32}),K=bn(f,s);try{let n=K.decrypt(L);return ki(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import te,{useEffect as Xi,useState as ct}from"react";import xn from"react";var Si=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,r=Number(e.currentSlider),w=e.sliderCount?.length||0,m=w>0?100/w:0;return xn.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((b,v)=>{let A=v<=r;return xn.createElement(a,{key:v,className:A?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&A?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${m}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${m}%`}:!t&&A?{width:`${m}%`}:{width:`${m}%`}})}))},Te=Si;import Ae,{useState as wi}from"react";var Ni=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,[r,w]=wi(null),m=P=>{if(P===""){w(null);return}let k=e.searchContent.filter(C=>{let c=C?.name?.toLowerCase(),p=P.toLowerCase();if(c?.includes(p))return C.searched=p,C.nameArray=C.name.split(""),C});w(k),e.handleButtonDisplay()},b=(P,k)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},v=(P,k)=>P.map((C,c)=>{let p=k.includes(C.toLowerCase());return Ae.createElement(i,{key:c,style:p?n.boldText:n.fadedText},C)}),A=(P,k=!1)=>P.map((C,c)=>{let p=t?!1:window?.location?.search===`?${c}`,N=e.selected&&e.selected.length>0,E=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return Ae.createElement(s,{key:c,className:E,style:n.resultItem,onPress:()=>b(C,c)},Ae.createElement(a,{style:n.resultInner},Ae.createElement(l,{source:{uri:e.type==="language"?C.icon:C.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),Ae.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},C.nameArray&&C.searched?v(C.nameArray,C.searched):C.name,e.type==="language"&&C.label&&Ae.createElement(i,{style:C.searched?.includes(C.label.toLowerCase())?{}:n.fadedText},` (${C.label})`))),e.type==="language"&&N&&p&&Ae.createElement(l,{source:{uri:T.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return Ae.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},Ae.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&Ae.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),Ae.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},Ae.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},Ae.createElement(l,{source:{uri:T.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),Ae.createElement(_,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:m,onFocus:()=>e.type==="language"&&e.setSelected("")})),Ae.createElement(y,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},Ae.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&A(r||e.searchContent))))))},Nt=Ni;import yt from"react";var _n=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform;return yt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",yt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",yt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Sn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,r=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&K&&(await K.removeItem("myVault"),await K.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return yt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:R(t,"0.7rem")}:{fontSize:R(t,"0.7rem")}},"Want to access a different account? Click"," ",yt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:r},"Logout")," ","to logout and login/create another account")};var Ei=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,[r,w]=ct(e.fontsLoaded||!1),[m,b]=ct(""),[v,A]=ct(""),[P,k]=ct(!1),[C,c]=ct(""),[p,N]=ct(!1),{pk:E,vaultContract:Q,address:J}=Ee();Xi(()=>{let B=async()=>{if(t)f&&await _e(f),w(!0);else{let O=xe(document);w(O)}};e.fontsLoaded||B()},[]);let H=()=>{e.selectedCountry.area&&m.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),N(!0)):(c(""),N(!1))},j=async()=>{if(e.userEmail===""&&m===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let B=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${m}`,O=e.userEmail?.length>0?"email":"sms";if(B&&O&&E&&Q||B&&O&&e.noContract){e.setIsLoading(!0);try{let z=await e.helperFunctions.sendOTPVerification(J,O,B);e.setIsLoading(!1),z?(c(""),e.setStep("3")):(c(O==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Se("OTP Error",O==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return te.createElement(y,{style:{width:"100%",height:"100%"}},r&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},te.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},te.createElement(s,{onPress:()=>k(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},te.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),te.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:T.arrowUp}:{uri:T.arrowDown}})),te.createElement(_,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:B=>{let O=B.replace(/\D/g,"");A(B),b(O);let z="";for(let ne=0;ne<O?.length;ne++)z+=O[ne],(ne+1)%5===0&&ne+1<O?.length&&(z+=" ");e.setUserNumberFmt(z),H()}})),P&&te.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:H,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:k,contentMaxHeight:"300",contentbottomMargin:"300"}),m.length!==10&&v.length>10&&!C&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&te.createElement(te.Fragment,null,e.enablePhone&&te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),te.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(_,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:B=>{e.setUserEmail(B),e.setUserNumberFmt(""),b(""),A(""),H()}}),C&&e.userEmail.length>0&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},C)))),!P&&te.createElement(a,{style:{height:"80px"}}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},te.createElement(_n,{platform:e.platform}),te.createElement(s,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:j},te.createElement(i,null,"Get OTP"))))),!r&&te.createElement(i,null,"Loading Module Fonts..."))},rn=Ei;import I,{useEffect as Fn,useRef as Di,useState as ut}from"react";import{AbiCoder as Ti,encodeBytes32String as Ie}from"ethers";import{combine as Yi,split as wn}from"shamir-secret-sharing";import{contractAddress as vt,Custody as At,Provider as ot,VerifiedWallet as Ue}from"@verified-network/verified-sdk";import{base as Gi,baseSepolia as Mi,gnosis as Fi,mainnet as Bi,polygon as Vi,sepolia as Ii}from"viem/chains";import{http as $i}from"viem";var Nn=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},Xn=async(e,t,a,i,l,y,_,s,L,f,K,n,r,w,m,b,v)=>{try{let A={vaultId:i,hashedVaultId:l,vaultPin:y,hashedVaultPin:_,vaultContract:K,rawId:m};return await K.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let k;if(m)k=await qe(L,m,y);else{let c=Ie(y);k=je(L,c)}let C;if(chrome?.storage?.local?C=await new Promise(c=>{chrome.storage.local.get(["lastPk"],p=>{c(p.lastPk)})}):!chrome?.storage?.local&&localStorage&&(C=localStorage.getItem("lastPk")),n==="reset-pin"&&r?.vaultContract&&b?.length>1&&v>1&&L?.length>0){let c=Number(b.length),N=(await wn(Uint8Array.from(L.split("").map(B=>B.charCodeAt(0))),Number(c),Number(v))).map(B=>B.join(",")),E=m?"":Ie(y),Q=[],J=[];for(let B=0;B<b.length;B++){let O=b[B],z=m?await qe(N[B],m,y):je(N[B],E);await K.addParticipant(l,O,z).then(async ne=>{let oe={creatorVaultId:i,vaultPin:y,creatorHashedVaultId:l,creatorHashedVaultPin:_,cosigner:O,hashedCosigner:O,cosignerVaultIdType:"",cosignerVaultId:O,share:z};ne?.status===0?J.push(oe):Q.push(oe)}),await new Promise(ne=>setTimeout(ne,1e3))}if(Q?.length>0||J?.length!==b?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Se("Oops somethin went wrong","error while adding co-signers"),null;let j=await new Ue(L).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:j,vaultId:i,hashedVaultId:l,pk:k,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:j,vaultId:i,hashedVaultId:l,pk:k,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:j,vaultId:i,hashedVaultId:l,pk:k,channel:s})),{}}if(C&&C?.length>0)return await K.confirmParticipant(l,l,!0).then(async c=>{if(c?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let N=await new Ue(L).getAddress(),E;if(m)E=await qe(L,m,y);else{let Q=Ie(y);E=je(L,Q)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:N,vaultId:i,hashedVaultId:l,pk:E,channel:s})),A}catch(p){return Se("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return Se("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",c),!1});if(n==="invitation")return{isExisting:!0,...A};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:k,channel:s}));let c=e?null:window;if(!e&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w}});else if(!e&&!chrome?.runtime?.sendMessage){let p=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w}}});c?.dispatchEvent(p)}else if(e&&a){let p=new a,N=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",E={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:_},txData:w};p.emit(N,E)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:k,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",k),Se("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await K.createVault(l).then(async k=>k?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:L}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",L):e&&t&&await t.setItem("lastPk",L),await K.confirmParticipant(l,l,!0).then(async C=>{if(C?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let p=await new Ue(L).getAddress(),N;if(m)N=await qe(L,m,y);else{let E=Ie(y);N=je(L,E)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:f,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})),A}catch(c){return Se("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",c),!1}}else return Se("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})):(Se("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",k),!1))})}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",A),Se("Oops something went wrong","Error while creating pin. Try again later"),!1}},En=async(e,t,a,i,l,y,_,s,L,f,K)=>{try{let n;if(K)n=await at(l,K);else{let r=Ie(a);n=it(l,r)}if(n){let r=vt,w=new Ue(n),m=s&&r[s]?.Custody&&ce[s]?.rpcUrls?.length>0?s:8453,b=ce[m]?.rpcUrls[0],v=w.setProvider(new ot(b)),A=new At(v,r[m].Custody);return A?await A.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let k=await A.getQuorum(t);return k?.status===0&&k?.response?.result?.length>0?L&&Number(k?.response?.result[0])>0?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:f||m,pin:a,rawId:K,pk:n}:Number(k?.response?.result[0])===0?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:f||m,pin:a,rawId:K,pk:n,inCompleteVault:!0}:{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:f||m,pin:a,rawId:K}:L?{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:f||m,pin:a,rawId:K,pk:n}:{address:y,vaultId:e,hashedVaultId:t,channel:_,chainId:f||m,pin:a,rawId:K}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Xt=async(e,t,a,i,l,y,_,s,L,f,K,n,r)=>{let w;if(K)w=K;else{let m=vt,b=new Ue(n),v=r&&m[r]?.Custody&&ce[r]?.rpcUrls?.length>0?r:8453,A=ce[v]?.rpcUrls[0],P=b.setProvider(new ot(A));w=new At(P,m[v].Custody)}return w?await w.confirmParticipant(y,i,f).then(async m=>m?.status===0?(f?await e(a,s,L,_):await t(a,s,L,_),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",m),!1)):!1},Tn=async(e,t,a,i,l,y,_,s,L,f,K,n,r,w)=>{let m=Number(a.length),v=(await wn(Uint8Array.from(n.split("").map(C=>C.charCodeAt(0))),Number(m),y)).map(C=>C.join(",")),A=r?"":Ie(L),P=[],k=[];for(let C=0;C<a.length;C++){let c=a[C],p=r?await qe(v[C],r,L):je(v[C],A);await K.addParticipant(s,w==="remove-cosigner"?c:W(c.vaultId),p).then(async N=>{let E=w==="remove-cosigner"?{creatorVaultId:_,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:f,cosigner:c,hashedCosigner:c,cosignerVaultIdType:"",cosignerVaultId:c,share:p}:{creatorVaultId:_,vaultPin:L,creatorHashedVaultId:s,creatorHashedVaultPin:f,cosigner:c.vaultId,hashedCosigner:W(c.vaultId),cosignerVaultIdType:c.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:c.vaultId,share:p,...c};N?.status===0?(k.push(E),w!=="remove-cosigner"&&c.vaultId!==_&&await e(c.otpChannel,c.vaultId,_,f).then(Q=>{Q||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(E)}),await new Promise(N=>setTimeout(N,1e3))}return P?.length>0||k?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Se("Oops somethin went wrong","error while adding co-signers"),!1):await K.defineQuorum(s,y.toString()).then(async C=>{if(C?.status===0&&w!=="remove-cosigner"){let c=i?.map(p=>({name:p?.name,email:p?.email,phoneNumber:p?.phoneNumber,contactType:String(p?.otpChannel)?.toUpperCase(),position:`${Bt[Number(p?.position)]} Co-Signer`}));return await t(l,_,c,Number(y),f).then(p=>{p||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(C?.status===0&&w==="remove-cosigner"){let c=i?.map(async E=>(await K.removeParticipant(s,W(E?.vaultId)))?.status===0?"true":"false");if((await Promise.all(c))?.find(E=>E==="false")?.length>0)return!1;let N=i?.map(E=>({email:E?.email,phoneNumber:E?.phoneNumber,contactType:String(E?.otpChannel)?.toUpperCase(),position:`${Bt[Number(E?.position)]} Co-Signer`}));return await t(l,_,N,Number(y),f,!0).then(E=>{E||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),Se("Oops somethin went wrong","error while saving vault keys"),!1})},Yn=async(e,t,a,i,l,y,_,s,L)=>{let f;if(L)f=await at(y,L);else{let K=Ie(l);f=it(y,K)}if(f){let K=vt,n=new Ue(f),r=s&&K[s]?.Custody&&ce[s]?.rpcUrls?.length>0?s:8453,w=ce[r]?.rpcUrls[0],m=n.setProvider(new ot(w)),b=new At(m,K[r].Custody);if(b)return await b.promptSignatures(t).then(async v=>{if(v?.status===0&&v?.response?.hash){let A=new Ti,P,k;if(v?.response?.result?.logs?.length>0){let C=v?.response?.result?.logs?.filter(N=>N?.address?.toLowerCase()===K[r].Custody?.toLowerCase()&&N?.topics?.map(E=>E?.toLowerCase())?.includes(Ft?.toLowerCase()));k=C?.length;let c=C[0]?.data,p=A.decode(["bytes32","bytes32","uint256"],c)?.map((N,E)=>E<2?N:Number(N)).flat();P=p[p?.length-1]}else{let N=(await new ot(w).getTransactionReceipt(v?.response?.hash)).logs?.filter(J=>J?.address?.toLowerCase()===K[r].Custody?.toLowerCase()&&J?.topics?.map(H=>H?.toLowerCase())?.includes(Ft?.toLowerCase()));k=N?.length;let E=N[0]?.data,Q=A.decode(["bytes32","bytes32","uint256"],E)?.map((J,H)=>H<2?J:Number(J)).flat();P=Q[Q?.length-1]}return await e(_,i,a,Number(P),Number(k)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",v),!1}).catch(v=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",v),!1))}},Gn=async(e,t,a,i,l,y,_,s,L,f,K,n,r)=>{let w;if(r)w=await at(_,r);else{let m=Ie(y);w=it(_,m)}if(w){let m=vt,b=new Ue(w),v=n&&m[n]?.Custody&&ce[n]?.rpcUrls?.length>0?n:8453,A=ce[v]?.rpcUrls[0],P=b.setProvider(new ot(A)),k=new At(P,m[v].Custody);if(k)return await k.signTransaction(L,a,String(K)).then(async C=>C?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,f),await k.checkQuorum(L,K).then(async c=>c?.status===0&&c?.response?.result?(c?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,Number(K)),!0):!1)):!1).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",C),!1))}},Mn=async(e,t,a,i,l,y,_,s,L,f,K)=>{let n;if(K)n=await at(_,K);else{let r=Ie(y);n=it(_,r)}if(n){let r=vt,w=new Ue(n),m=f&&r[f]?.Custody&&ce[f]?.rpcUrls?.length>0?f:8453,b=ce[m]?.rpcUrls[0],v=w.setProvider(new ot(b)),A=new At(v,r[m].Custody);return A?await A.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await A.getShards(a,s).then(async k=>{if(k?.status===0&&k?.response?.result){let C=k?.response?.result.filter(c=>c!=="");if(C.length>1){let c=K?"":Ie(y),N=(await Promise.all(C.map(J=>K?at(J,K):it(J,c)))).map(J=>new Uint8Array(J.split(",").map(Number))),E=await Yi(N),Q=new TextDecoder().decode(E);if(Q){let J=K?"":Ie(y),H=K?await qe(Q,K,y):je(Q,J),j=new Ue(Q),B=await j.getAddress(),z=j.setProvider(new ot(b)),ne=[Gi,Bi,Fi,Vi,Ii,Mi].find(U=>Number(U?.id)===Number(m)),oe=await _t(ne,$i(),z);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:oe,regAddress:B,vaultId:l,hashedVaultId:a,pk:H,channel:L})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:oe,regAddress:B,vaultId:l,hashedVaultId:a,pk:H,channel:L})):e&&t&&await t.setItem("myVault",JSON.stringify({address:oe,regAddress:B,vaultId:l,hashedVaultId:a,pk:H,channel:L})),!0}}else return!1}else return!1}).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var Hi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,[r,w]=ut(e.fontsLoaded||!1),m=Di([]),[b,v]=ut(!1),[A,P]=ut(60),[k,C]=ut(["","","",""]),[c,p]=ut(!1),[N,E]=ut(""),{pk:Q,vaultContract:J,address:H}=Ee();Fn(()=>{let U=async()=>{if(t)f&&await _e(f),w(!0);else{let V=xe(document);w(V)}};e.fontsLoaded||U()},[]),Fn(()=>{if(A===0)return;let U=setInterval(()=>P(V=>V-1),1e3);return()=>clearInterval(U)},[A]);let j=(U,V)=>{if(U?.length>1){let G=U.replace(/\D/g,""),ke=[...k],S=0;for(let q=V;q<k.length&&S<G.length;q++)ke[q]=G[S],S++;C(ke);let ge=V+G.length;ge<k.length&&m.current[ge]&&m.current[ge].focus(),p(!1)}else{let G=U.replace(/\D/g,""),ke=[...k];ke[V]=G,C(ke),G&&m.current[V+1]&&m.current[V+1].focus(),p(!1)}},B=(U,V,G)=>{G.nativeEvent.key==="Backspace"&&!k[V]&&V>0&&m.current[V-1]&&m.current[V-1].focus()},O=k.every(U=>U.length>0),z=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ne=async()=>{if(!O||!e.helperFunctions){p(!0),E("Please enter the complete OTP.");return}let U=z(),V=k.join("");if(!(!e.noContract&&!Q||!e.noContract&&!J)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(H,U,V)){e.setIsLoading(!1),p(!0);return}let ke=W(U),S=!1;if(!e.noContract&&J&&(S=await Nn(J,ke),S===null)){e.setIsLoading(!1),E("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(S),e.setIsLoading(!1),e.setStep("4")}catch(G){e.setIsLoading(!1),E("Error verifying OTP. Try again."),p(!0),console.error("error: ",G)}}},oe=async()=>{if(!e.helperFunctions){E("Helper functions missing."),p(!0);return}let U=z(),V=e.userEmail?"email":"sms";e.setIsLoading(!0);let G=await e.helperFunctions.sendOTPVerification(H,V,U);e.setIsLoading(!1),G?(C(["","","",""]),P(60),p(!1),E("")):Se("OTP resend failed","Please try again later.")};return I.createElement(y,null,r&&I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},I.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&I.createElement(I.Fragment,null,I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),I.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&I.createElement(i,null,e.userEmail)),I.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},I.createElement(l,{source:{uri:T.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),I.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},I.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},k.map((U,V)=>I.createElement(_,{key:V,ref:G=>m.current[V]=G,value:k[V],onChangeText:G=>j(G,V),onKeyPress:G=>B(G,V,G),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),I.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&A>5&&N===""&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},I.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),A),!c&&A<=5&&A>0&&N===""&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},I.createElement(i,{style:{fontWeight:"400"}},"00:"),A),!c&&A===0&&N===""&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&N===""&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&N?.length>0&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},N),!c&&A>0&&N===""&&I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&A===0&&N===""||c&&N===""?I.createElement(s,{style:{background:"transparent"},onPress:async()=>{C(["","","",""]),await oe()}},I.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!b&&I.createElement(a,{style:{height:"100px"}}),I.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},I.createElement(s,{className:O&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ne,disabled:!O||c,style:O&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},I.createElement(i,null,"Proceed"))))),!r&&I.createElement(i,null,"Loading Module Fonts..."))},dn=Hi;import d,{useEffect as Bn,useRef as Vn,useState as ue}from"react";import De,{useEffect as Oi}from"react";var Ji=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n,EventEmitter:r}=e.platform;Oi(()=>{let v;return e.showButton||(v=setTimeout(()=>{if(e.messageTosend)try{let A=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&A?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});A?.dispatchEvent(P)}else t&&r&&new r().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(A){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",A)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{v&&clearTimeout(v)}},[]);let w=()=>{e.setStep?.("6")},m=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},b=()=>{e.handleShowDashboard()};return De.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},De.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},De.createElement(l,{style:{width:"90%"},source:{uri:T.successIcon},alt:"Success Icon"}),De.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},De.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),De.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&De.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?w():e.action==="completeRecovery"?b():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},De.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&De.createElement(s,{onPress:()=>{e.action==="invitation"?m():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},De.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Ye=Ji;import{contractAddress as Ri,Provider as Ui}from"@verified-network/verified-sdk";import{ethers as In}from"ethers";var Wi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,EventEmitter:n,styles:r,rnPasskey:w}=e.platform,[m,b]=ue(e.fontsLoaded||!1),[v,A]=ue(!0),[P,k]=ue(!1),[C,c]=ue(""),[p,N]=ue(!1),[E,Q]=ue(!1),[J,H]=ue(!1),[j,B]=ue(!1),[O,z]=ue(""),[ne,oe]=ue(""),[U,V]=ue(null),[G,ke]=ue(!1),[S,ge]=ue(!1),[q,Ge]=ue(!1),[de,ie]=ue(""),[F,me]=ue(""),[Ce,Le]=ue([]),[ae,Ne]=ue(0),{address:re,pk:M,chainId:Fe,vaultContract:Be,signer:rt,setVaultData:fe,setChainId:$e,setAddress:Ze,setPk:ze,setProvider:be,setSigner:dt,setVaultContract:st,vaultData:$}=Ee(),[u,Y]=ue(["","","",""]),[x,ee]=ue(["","","",""]),ve=Vn([]),Xe=Vn([]);Bn(()=>{let X=async()=>{if(t)f&&await _e(f),b(!0);else{let h=xe(document);b(h)}};e.fontsLoaded||X()},[]),Bn(()=>{let X=async()=>{e.setIsLoading&&e.setIsLoading(!0);let h=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(h?.status===0&&h?.response?.result?.length>0){let mt=Number(h?.response?.result[0]);Ne(mt)}if(e.vaultData?.existingCosignersHashed?.length>0){Le([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let le=Ri[Fe]?.Custody;if(!le)return;let Ke=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new In.Contract(le,Ke,e.vaultData?.signer))return;let pe=new In.Interface(Ke),Hn=pe.getEvent("NewParticipant").topicHash,On=(await new Ui(ce[Fe]?.rpcUrls[0])?.getLogs({address:le,fromBlock:ce[Fe]?.custodyContractBlock||0,toBlock:"latest",topics:[Hn]}))?.map(mt=>{let bt=pe.parseLog(mt);return bt?.args?.creator?.toLowerCase()===W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&bt?.args?.creator!==bt?.args?.participant?bt?.args?.participant:null})?.filter(mt=>mt!==null);Le([...new Set(On)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&X()},[e.isExistingUser,e.action,e.vaultData]);let He=(X,h,D)=>{k(!1),c("");let le=X.replace(/\D/g,""),Ke=D?[...x]:[...u];Ke[h]=le,D?(ee(Ke),le&&Xe.current[h+1]&&Xe.current[h+1].focus(),h<3&&Ke.every(Ve=>Ve!=="")&&u.every(Ve=>Ve!=="")&&Ke.join("")!==u.join("")&&(k(!0),c("Confirm Pin must match New Pin.")),h===3&&u.join("")!==Ke.join("")&&(k(!0),c("Confirm Pin must match New Pin."))):(Y(Ke),le&&ve.current[h+1]&&ve.current[h+1].focus(),x.every(Ve=>Ve!=="")&&Ke.join("")!==x.join("")&&(k(!0),c("New Pin must match Confirm Pin.")))},Lt=async()=>{if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth=e?.rootExpandedWidth||"max-content",X.style.minHeight=e?.rootExpandedHeight||"100vh")}c(""),k(!1);try{let X=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,h=t?w.create(on("Verified Wallet",X,W(X))):await navigator?.credentials?.create({publicKey:on("Verified Wallet",X,W(X))}),D=Re(h?.rawId);if(!t&&e.rootTagId?.length>0){let le=document.getElementById(e.rootTagId);le&&(le.style.minWidth="unset",le.style.minHeight="unset")}return{pinString:h?.id,hashed:D,rawId:h?.rawId}}catch(X){if(!t&&e.rootTagId?.length>0){let h=document.getElementById(e.rootTagId);h&&(h.style.minWidth="unset",h.style.minHeight="unset")}return c(`Passkey creation failed: ${X?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0),null}},Yt=async()=>{if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth="max-content",X.style.minHeight="100vh")}if(!t&&e.rootTagId?.length>0){let X=document.getElementById(e.rootTagId);X&&(X.style.minWidth=e?.rootExpandedWidth||"max-content",X.style.minHeight=e?.rootExpandedHeight||"100vh")}c(""),k(!1);try{let X=t?await w.get(lt()):await navigator.credentials.get({publicKey:lt()}),h=Re(X?.rawId);if(!t&&e.rootTagId?.length>0){let D=document.getElementById(e.rootTagId);D&&(D.style.minWidth="unset",D.style.minHeight="unset")}return{pinString:X?.id,hashed:h,rawId:X?.rawId}}catch(X){if(!t&&e.rootTagId?.length>0){let h=document.getElementById(e.rootTagId);h&&(h.style.minWidth="unset",h.style.minHeight="unset")}c(`Passkey authentication failed: ${X?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0)}},Gt=(X,h,D,le)=>{let Ke=D.nativeEvent.key;!le&&Ke==="Backspace"&&!u[h]&&h>0&&ve.current[h-1]&&ve.current[h-1].focus(),le&&Ke==="Backspace"&&!x[h]&&h>0&&Xe.current[h-1]&&Xe.current[h-1].focus()},Oe=()=>S?e.isExistingUser?u.every(X=>X!==""):u.every(X=>X!=="")&&x.every(X=>X!==""&&u.join("")===x.join("")):!0,et=()=>!!(q&&F?.length===66&&F?.toLowerCase()?.startsWith("0x")),Me=async X=>{if(!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),k(!0);else{c(""),k(!1);let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Oe()&&h&&D&&M&&re&&Be||!e.isExistingUser&&Oe()&&h&&D&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Oe()&&h&&D&&M&&re&&Be||e.isExistingUser&&Oe()&&h&&D&&e.vaultData?.vaultContract){e.setIsLoading(!0);let le=X?.pinString||u.join(""),Ke=W(h),Ve=X?.hashed||W(le);await Xn(t,K,n,h,Ke,le,Ve,D,X?.pk?X?.pk:M||e.vaultData?.pk,X?.address?X?.address:re||e.vaultData?.address,X?.vaultContract?X?.vaultContract:Be||e.vaultData?.vaultContract,e.action,X?.vaultData?X?.vaultData:e.vaultData,e.txData,X?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ce]:void 0,ae).then(async pe=>{e.setIsLoading(!1),pe?(fe(pe?.shouldStop&&pe?.vaultId?{vaultId:pe?.vaultId,hashedVaultId:pe?.hashedVaultId,hashedVaultPin:pe?.hashedVaultPin,pk:pe?.pk,rawId:pe?.rawId,channel:pe?.channel}:pe?.shouldStop?{}:pe),c(""),k(!1),e.action==="invitation"?(oe(le),V(X?.rawId),Q(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&S?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&S?localStorage.removeItem("myVault"):t&&K&&S&&await K.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(D,h,X?.hashed,e.vaultData.hashedVaultPin,Date.now()),z(`You have successfully reset your account ${S?"4-Digits PIN":"Passkey"}. ${S?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),N(!0)):pe?.shouldStop?pe?.shouldStop&&e.action!=="getPk"?(z(""),N(!0)):pe?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):pe===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),k(!0)):(c(`You are an existing user. Please use the right ${S?"existing 4-Digits PIN":"existing Passkey for "+h} to recover your account login access on this device/browser`),k(!0)):(c("Unexpected error while creating account. Please try again later."),k(!0))})}else Oe()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),k(!0))}},tt=async X=>{let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(ne?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h){e.setIsLoading(!0);let le=W(h),Ke=S?W(ne):Re(U);await Xt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,D,le,Ke,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,h,X,Be).then(Ve=>{e.setIsLoading(!1),Ve&&!$?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(X?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):Ve&&$?.isExisting&&H(!0)})}};return d.createElement(y,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},m&&d.createElement(d.Fragment,null,!p&&!E&&d.createElement(d.Fragment,null,!q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Change Pin":"Change Passkey"),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",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(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(i,{style:{color:"#0C0C0E"}},S?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(i,{style:{color:"#0C0C0E"}},S?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!S&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:R(t,"14px")}:{fontSize:R(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),S&&d.createElement(d.Fragment,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},u.map((X,h)=>d.createElement(_,{key:`pin-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:v,keyboardType:"number-pad",maxLength:1,ref:D=>ve.current[h]=D,value:u[h],onChangeText:D=>He(D,h,!1),onKeyPress:D=>Gt(D,h,D,!1)}))),e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!v&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),v&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))),!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((X,h)=>d.createElement(_,{key:`confirm-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&!P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:v,keyboardType:"number-pad",maxLength:1,ref:D=>Xe.current[h]=D,value:x[h],onChangeText:D=>He(D,h,!0),onKeyPress:D=>Gt(D,h,D,!0)}))),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&C===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),!v&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinShow}})),v&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>A(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.pinHide}})))))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!S&&d.createElement(d.Fragment,null,P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!S&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async X=>{if(e.action==="reset-pin"){let h=await Lt();h&&await Me(h)}else{let h=await Yt();h&&await Me(h)}}},e.action==="reset-pin"&&d.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async X=>{let h=await Lt();h&&await Me(h)}},d.createElement(i,null,"Create New Account")),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async X=>{Ge(!0)}},d.createElement(i,null,"Import An Existing account")))),S&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Oe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Oe()?{...r.verifiedCustdMdlStartupButton}:{},className:Oe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async X=>{await Me()}},d.createElement(i,null,"Proceed"))))),q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(_,{style:t?{...r.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:F,onChangeText:X=>{me(X)}}),de?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},de)),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:R(t,"14px")}:{fontSize:R(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&C?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},C),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&et()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!et()?{...r.verifiedCustdMdlStartupButton}:{},className:et()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async X=>{try{if(!et()){k(!0),c("Invalid private key entered. Please scroll up, check private key and try again.");return}let h=await Qe(Fe,F);if(!h?.chainId||!h?.address||!h?.pk||!h?.provider||!h?.signer||!h?.vaultContract){k(!0),c("Invalid private key entered. Please check private key starts with 0x and try again.");return}$e(h.chainId),Ze(h.address),ze(h.pk),be(h.provider),dt(h.signer),fe(h.vaultData),st(h.vaultContract);let D=await Lt();D&&await Me({...D,pk:h.pk,vaultContract:h.vaultContract,signer:h.signer,address:h.address,vaultData:h.vaultData})}catch{k(!0),c("Error while importing account.try again later.");return}}},d.createElement(i,null,"Proceed With Passkey")))))),!p&&E&&d.createElement(d.Fragment,null,!J&&d.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(l,{style:t?{...r.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1}}),!j&&d.createElement(y,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:T.pkicon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:T.encryptedIcon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>B(!0)},d.createElement(i,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await tt(!0)}},d.createElement(i,null,"Accept")))),j&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await tt(!1)}},d.createElement(i,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>B(!1)},d.createElement(i,null,"No"))))))),J&&d.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:j?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),p&&d.createElement(Ye,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:O?.length>0?O:"You have successfully logged in your account."})),!m&&d.createElement(i,null,"Loading Module Fonts..."))},Pt=Wi;import o,{useEffect as $n,useState as se}from"react";import{ethers as Dn}from"ethers";import{contractAddress as Qi,Provider as ji}from"@verified-network/verified-sdk";var qi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n}=e.platform,[r,w]=se(e.fontsLoaded||!1),[m,b]=se(!1),[v,A]=se("1"),[P,k]=se("1"),[C,c]=se(!1),[p,N]=se("email"),[E,Q]=se(""),[J,H]=se(""),[j,B]=se(""),[O,z]=se(""),[ne,oe]=se(""),[U,V]=se(!1),[G,ke]=se(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[S,ge]=se([]),[q,Ge]=se(0),[de,ie]=se([]),[F,me]=se([]),[Ce,Le]=se(!1),[ae,Ne]=se(2),[re,M]=se(""),[Fe,Be]=se(!1),{pk:rt,vaultData:fe,vaultContract:$e,chainId:Ze,signer:ze}=Ee();$n(()=>{let $=async()=>{if(t)try{let u=await _e(f);w(!0)}catch{w(!1)}else{let u=xe(document);w(u)}};e.fontsLoaded||$()},[]),$n(()=>{let $=async()=>{e.setIsLoading&&e.setIsLoading(!0);let u=W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Y=await $e.getQuorum(u);if(Y?.status===0&&Y?.response?.result?.length>0){let Me=Number(Y?.response?.result[0]);Ge(Me),me(new Array(Me).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),fe?.existingCosignersHashed?.length>0){ie([...new Set(fe?.existingCosignersHashed)]),me([...new Set(fe?.existingCosignersHashed)]);return}let ee=Qi[Ze]?.Custody;if(!ee)return;let ve=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Dn.Contract(ee,ve,ze))return;let He=new Dn.Interface(ve),Yt=He.getEvent("NewParticipant").topicHash,et=(await new ji(ce[Ze]?.rpcUrls[0])?.getLogs({address:ee,fromBlock:ce[Ze]?.custodyContractBlock||0,toBlock:"latest",topics:[Yt]}))?.map(Me=>{let tt=He.parseLog(Me);return tt?.args?.creator?.toLowerCase()===W(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&tt?.args?.creator!==tt?.args?.participant?tt?.args?.participant:null})?.filter(Me=>Me!==null);ie([...new Set(et)]),me([...new Set(et)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&ze&&$e||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&ze&&$e)&&$()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let be=()=>{},dt=()=>{let $=S?.length;if(p==="sms"&&E?.length===0){M("Invalid input, please check the phone number");return}else if(p==="sms"&&E?.length!==10){M("Invalid input, please check the phone number");return}else if(p==="email"&&j?.length===0){M("Invalid input, please check the email");return}else if(p==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(j)){M("Invalid input, please check the email");return}else if(S?.find(u=>u?.otpChannel==="sms"?u?.phoneArea?.toLowerCase()+u?.number?.toLowerCase()===G.area?.toLowerCase()+J?.toLowerCase():u?.email?.toLowerCase()===j?.toLowerCase())){e.action!=="remove-cosigner"&&M(p==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&M(p==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(p==="sms"&&G?.area?.toLowerCase()+J?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){M("Invalid input, phone number is creator's phone number");return}else if(p==="email"&&j?.toLowerCase()===e.userEmail?.toLowerCase()){M("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&de?.length===0){M("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!de?.includes(W(p==="sms"?`+${G?.area}${E}`:j))){M(p==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&F?.length===1){M("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if($+1===5){M("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}M(""),ge(u=>[{name:O,email:j,number:J,phoneNumber:`+${G?.area}${E}`,otpChannel:p,phoneArea:G?.area,position:u?.length+1,vaultId:p==="sms"?`+${G?.area}${E}`:j},...u]),B(""),z(""),Q(""),H(""),oe(""),$+1===4&&c(!1),e.action==="remove-cosigner"&&F?.length>1&&me(F?.filter(u=>u!==W(p==="sms"?`+${G?.area}${E}`:j)))},st=async()=>{let $=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:fe?.vaultId},...S]:[fe?.hashedVaultId,...F];(e.action!=="remove-cosigner"&&$?.length>0&&S?.length>0&&ae&&fe?.vaultId&&fe?.hashedVaultId&&$e&&rt&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&$?.length>1&&ae&&fe?.vaultId&&fe?.hashedVaultId&&$e&&rt&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Tn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,$,S,e?.userEmail?.length>0?"email":"sms",ae,fe.vaultId,fe.hashedVaultId,fe.vaultPin,fe.hashedVaultPin,$e,rt,fe?.rawId,e.action).then(u=>{e.setIsLoading(!1),u&&(e.action==="remove-cosigner"?Be(!0):e.setStep("7"))}))};return o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Fe&&o.createElement(o.Fragment,null,!m&&o.createElement(o.Fragment,null,P==="1"&&o.createElement(o.Fragment,null,o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon1},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:T.pkicon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:T.encryptedIcon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:T.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{A("1"),b(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Learn More")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{k("2"),c(!1),b(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.createElement(o.Fragment,null," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ce&&o.createElement(o.Fragment,null,o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},q," required signers"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length+1<5?S?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length,"/5)")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&F?.includes(" ")&&o.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ce&&S.sort(($,u)=>$?.position-u?.position).map(($,u)=>o.createElement(a,{key:u,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},Ct[$?.position]?.split(" ")[0],o.createElement(i,null,o.createElement(i,{style:{fontSize:10}},Ct[$?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},$?.name),$.otpChannel==="email"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},$.email),$.otpChannel==="sms"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",$?.phoneArea,") ",$.number))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{ge(Y=>Y?.filter(x=>x?.otpChannel==="sms"?x?.phoneArea?.toLowerCase()+x?.number?.toLowerCase()!==$?.phoneArea?.toLowerCase()+$?.number?.toLowerCase():x?.email?.toLowerCase()!==$?.email?.toLowerCase())?.map((x,ee)=>(x.position=ee+1,x))),be()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:T.delete}}))))))),Ce&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:S?.length+1).fill("1").map(($,u)=>o.createElement(a,{key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:u+1===ae&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:u+1===ae&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(u+1))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:T.pointer}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&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:T.sliderDot}})),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&F?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length}%`}:!t&&F?.length===1?{width:`${100/F?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length+5}%`}:{width:`calc(${100/F?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:T.sliderDot}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:S?.length+1).fill("1").map(($,u)=>o.createElement(s,{style:{background:"transparent"},key:u,onPress:()=>{u+1>1&&Ne(u+1)}},e.action!=="remove-cosigner"&&o.createElement(i,{style:t&&u===S?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&u===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&u===0?{paddingLeft:12}:!t&&u===S?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1)),e.action==="remove-cosigner"&&o.createElement(i,{style:t&&u===F?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&u===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&u===0?{paddingLeft:12}:!t&&u===F?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1))))))),o.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await st()}},o.createElement(i,null,"Confirm"))))),C&&S?.length<4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},Ct[S?.length+1]?.split(" ")[0],o.createElement(i,{style:{fontSize:10}},Ct[S?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(_,{onChangeText:z,value:O,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("sms"),M(""),B("")}},o.createElement(l,{source:{uri:p==="sms"?T.selectClicked:T.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("email"),M(""),Q(""),H(""),oe("")}},o.createElement(l,{source:{uri:p==="email"?T.selectClicked:T.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},p==="sms"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>V(!U),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.createElement(l,{source:{uri:G.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",G.area),U?o.createElement(l,{source:{uri:T.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.createElement(l,{source:{uri:T.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.createElement(_,{onChangeText:$=>{oe($===""?ne+" ":$);let u=$.replace(/\D/g,"");Q(u);let Y="";for(let x=0;x<u.length;x++)Y+=u[x],(x+1)%5===0&&x+1<u.length&&(Y+=" ");H(Y),M("")},onBlur:be,value:J,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),U&&o.createElement(Nt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:be,setSelected:ke,selected:G,searchActive:U,setSearchActive:V,contentMaxHeight:300,contentbottomMargin:300}),re===""&&E.length!==10&&ne.length>10&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),re!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},re))),p==="email"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.createElement(_,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:$=>{B($),M("")},onBlur:be,value:j,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),re!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},re)))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>c(!1)},o.createElement(i,null,"Cancel")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{dt(),be()}},o.createElement(i,null,"Add")))),!C&&!Ce&&S?.length<4&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},o.createElement(l,{source:{uri:T.addIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!C&&!Ce&&S?.length===4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.createElement(l,{source:{uri:T.addDisableIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ce&&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&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&S?.length===0&&!C&&S?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!C&&S?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{S?.length>0&&(Ne(2),Le(!0),c(!1))}},o.createElement(i,{style:n.buttonText},"Proceed")))),m&&o.createElement(o.Fragment,null,v==="1"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon2},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>b(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>A("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),v==="2"&&o.createElement(o.Fragment,null,o.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:T.addCoSignerIcon3},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),v==="3"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:T.addCoSignerIcon4},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>A("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>{k("2"),c(!1),b(!1),A("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Start")))))),r&&Fe&&o.createElement(Ye,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!r&&o.createElement(i,null,"Loading Module Fonts..."))},ft=qi;import g,{useEffect as Zi,useRef as zi,useState as he}from"react";import{ethers as ea}from"ethers";var ta=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,TextInput:_,TouchableOpacity:s,StyleSheet:L,Font:f,AsyncStorage:K,styles:n,rnPasskey:r}=e.platform,[w,m]=he(e.fontsLoaded||!1),[b,v]=he(!1),[A,P]=he(!0),[k,C]=he(!1),[c,p]=he(!1),[N,E]=he(null),[Q,J]=he(null),[H,j]=he(e.newChainId||8453),[B,O]=he(!1),[z,ne]=he(!1),[oe,U]=he(!1),[V,G]=he(!1),[ke,S]=he(!1),[ge,q]=he(""),[Ge,de]=he(!1),[ie,F]=he({}),[me,Ce]=he(["","","",""]),Le=zi([]),[ae,Ne]=he(!1),{setChainId:re,setAddress:M,setPk:Fe,setProvider:Be,setSigner:rt,setVaultContract:fe,setVaultData:$e}=Ee();Zi(()=>{let u=async()=>{if(t)f&&await _e(f),m(!0);else{let Y=xe(document);m(Y)}};e.fontsLoaded||u()},[]);let Ze=(u,Y)=>{if(u.length>1){let x=u.replace(/\D/g,""),ee=[...me],ve=0;for(let He=Y;He<me.length&&ve<x.length;He++)ee[He]=x[ve],ve++;Ce(ee);let Xe=Y+x.length;Xe<me.length&&Le.current[Xe]&&Le.current[Xe].focus(),v(!1)}else{let x=u.replace(/\D/g,""),ee=[...me];ee[Y]=x,Ce(ee),x&&Le.current[Y+1]&&Le.current[Y+1].focus(),v(!1)}},ze=(u,Y,x)=>{x.nativeEvent.key==="Backspace"&&!me[Y]&&Y>0&&Le.current[Y-1]&&Le.current[Y-1].focus()},be=me.every(u=>u.length>0),dt=async u=>{if(!e.helperFunctions)q("No Helper Functions. Please include all helper functions in the EnterPinPage props."),v(!0);else if(q(""),v(!1),ae&&be&&e.hashedVaultId&&e.encrptedPk||!ae&&e.hashedVaultId&&e.encrptedPk&&u){e.setIsLoading(!0);let Y=u?.pinString?u?.pinString:me.join("");await En(e.vaultId,e.hashedVaultId,Y,u?.hashed?u?.hashed:W(Y),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(H),ln?.includes(e.origin?.toLowerCase()),null,u?.rawId).then(async x=>{if(x&&!x?.inCompleteVault)e.setIsLoading(!1),E(x),J(x?.pk&&e.action!=="eth_requestAccounts"?{address:x.address,channel:x.channel,chainId:x.chainId,pk:x?.pk}:{address:e.regAddress,channel:x.channel,chainId:x.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Yn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,u?.hashed?u?.hashed:W(Y),e.vaultId,Y,e.encrptedPk,e.vaultChannel,Number(H),u?.rawId).then(async ee=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),ee?p(!0):(q("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),v(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Gn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,u?.hashed?u?.hashed:W(Y),e.vaultId,Y,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(H),u?.rawId).then(async ee=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&K&&!e.reqTxData?.newUser&&!e.vaultAddress&&await K.removeItem("myVault"),ee?p(!0):(q("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),v(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Mn(t,K,e.hashedVaultId,u?.hashed?u?.hashed:W(Y),e.vaultId,Y,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(H),u?.rawId).then(async ee=>{e.setIsLoading(!1),ee?p(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),q("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),v(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&x?.pin?.length>0&&e.signTxElement?(F({chainId:H,ky:ae?ea.encodeBytes32String(x?.pin):"",rawId:ae?"":u?.rawId,...e.txToSign}),ne(!1),de(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(q(""),v(!1),ne(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(q(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),v(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(q(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),v(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),q(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),v(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&K&&await K.removeItem("myVault"),q(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),v(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(q("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),v(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(q("Incomplete account login detected. Logout and try again later"),v(!0)):(q(""),v(!1),p(!0));else if(x&&x?.inCompleteVault&&x?.pk){let ee=await Qe(Number(H),x?.pk);if(re(ee.chainId),M(ee.address),Fe(ee.pk),Be(ee.provider),rt(ee.signer),fe(ee.vaultContract),$e({vaultId:x?.vaultId,hashedVaultId:x?.hashedVaultId,vaultPin:x?.pin,hashedVaultPin:ae?W(x?.pin):Re(x?.rawId),vaultContract:ee.vaultContract,rawId:x?.rawId}),x?.channel?.toLowerCase()==="sms"){let ve=x?.vaultId?.replace(x?.vaultId?.slice(-10),""),Xe=x?.vaultId?.slice(-10)?.slice(0,5)+" "+x?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:ve?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Xe),e.setUserEmail("")}else e.setUserEmail(x?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else q(ae?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),v(!0),e.setIsLoading(!1)})}else!ae&&!u&&(q("Unexpected error with selected passkey. Try again later"),v(!0)),ae&&!be&&(q("Input your 4-Digits PIN to login."),v(!0))},st=async u=>{let Y=e.vaultId;if(N?.pin?.length>0&&N?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&Y&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let x=N.pin,ee=W(Y),ve=ae?W(x):Re(N.rawId);await Xt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ee,ve,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,Y,u,null,N.pk,Number(H)).then(Xe=>{e.setIsLoading(!1),Xe&&(S(u),U(!0))})}},$=async()=>{if(!t&&e.rootTagId?.length>0){let u=document.getElementById(e.rootTagId);u&&(u.style.minWidth=e?.rootExpandedWidth||"max-content",u.style.minHeight=e?.rootExpandedHeight||"100vh")}q(""),v(!1);try{let u=await navigator.credentials.get({publicKey:lt()}),Y=Re(u?.rawId);if(!t&&e.rootTagId?.length>0){let x=document.getElementById(e.rootTagId);x&&(x.style.minWidth="unset",x.style.minHeight="unset")}return{pinString:u?.id,hashed:Y,rawId:u?.rawId}}catch(u){if(!t&&e.rootTagId?.length>0){let Y=document.getElementById(e.rootTagId);Y&&(Y.style.minWidth="unset",Y.style.minHeight="unset")}q(`Passkey authentication failed: ${u?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),v(!0)}};return g.createElement(g.Fragment,null,w&&!z&&!Ge&&g.createElement(g.Fragment,null,!c&&g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},g.createElement(Te,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},ae?"Enter PIN":"Sign-in with Existing Passkey")),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",g.createElement(i,{style:{color:"#0C0C0E"}},ae?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",g.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),ae&&g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},me.map((u,Y)=>g.createElement(_,{key:Y,ref:x=>Le.current[Y]=x,className:b?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&b?{...n.verifiedCustdMdlOtpInputRed}:t&&!b?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:A,maxLength:1,value:me[Y],onChangeText:x=>Ze(x,Y),onKeyPress:x=>ze(x,Y,x),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${Y}`}))),g.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},b&&!ge&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),b&&ge&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},ge),!b&&g.createElement(i,null),A?g.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},g.createElement(l,{style:{width:24,height:24},source:{uri:T.pinHide}})):g.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},g.createElement(l,{style:{width:24,height:24},source:{uri:T.pinShow}})))),!ae&&g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:R(t,"14px")}:{fontSize:R(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:R(t,"12px")}:{fontSize:R(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),g.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!k&&g.createElement(a,{style:{height:20}}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},g.createElement(Sn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),ae&&g.createElement(s,{onPress:async()=>await dt(),style:t&&be&&!b?{...n.verifiedCustdMdlStartupButtonActive}:t&&be&&b?{...n.verifiedCustdMdlStartupButton}:t&&!be&&!b?{...n.verifiedCustdMdlStartupButton}:t&&!be&&b?{...n.verifiedCustdMdlStartupButton}:{},className:be&&!b?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},g.createElement(i,null,"Proceed")),!ae&&g.createElement(g.Fragment,null,b&&ge?.length>0&&g.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},ge),g.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let u=await $();u&&await dt(u)},className:"verified-custd-mdl-startup-button-active"},g.createElement(i,null,"Login With Passkey")))))),c&&g.createElement(Ye,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:Q},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),w&&z&&!Ge&&g.createElement(g.Fragment,null,!oe&&g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},g.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),g.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},g.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},g.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),g.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},g.createElement(l,{style:{height:250,width:"90%"},source:{uri:T.addCoSignerIcon1}})),V?g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",g.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement(s,{onPress:async()=>await st(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"Yes")),g.createElement(s,{onPress:()=>G(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"No")))))):g.createElement(g.Fragment,null,g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement(l,{source:{uri:T.pkicon}})),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement(l,{source:{uri:T.encryptedIcon}})),g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",g.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),g.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement(s,{onPress:()=>G(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},g.createElement(i,null,"Reject")),g.createElement(s,{onPress:async()=>await st(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},g.createElement(i,null,"Accept"))))),oe&&g.createElement(Ye,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:ke?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),w&&!z&&Ge&&g.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ie}),!w&&g.createElement(i,null,"Loading Module Fonts..."))},gt=ta;var ia=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:y,StyleSheet:_,Font:s,AsyncStorage:L}=e?.platform,[f,K]=we(e.fontsLoaded||!1),[n,r]=we(e.showLogoPage||!1),[w,m]=we([]),[b,v]=we("2"),[A,P]=we(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[k,C]=we(""),[c,p]=we(""),[N,E]=we(!1),[Q,J]=we(""),[H,j]=we(""),[B,O]=we(""),[z,ne]=we(""),[oe,U]=we(null),[V,G]=we(null),[ke,S]=we(!1),{setChainId:ge,setAddress:q,setPk:Ge,setProvider:de,setSigner:ie,setVaultContract:F,setVaultData:me,vaultData:Ce,chainId:Le,vaultContract:ae}=Ee();return Et(()=>{let Ne=async()=>{if(t)s&&await _e(s),K(!0);else{let re=xe(document);K(re)}};e.fontsLoaded||Ne()},[]),Et(()=>{let Ne=async()=>{let re;!t&&chrome?.storage?.local?re=await new Promise(Fe=>{chrome.storage.local.get(["lastPk"],Be=>{Fe(Be.lastPk)})}):!t&&localStorage?re=localStorage.getItem("lastPk"):t&&L&&(re=L.getItem("lastPk"));let M=await Qe(e.chainId,re&&re?.length>0?re:void 0);ge(M.chainId),q(M.address),Ge(M.pk),de(M.provider),ie(M.signer),me(M.vaultData),M.vaultContract?.contractAddress?F(M.vaultContract):F(void 0)};ae?.contractAddress||Ne()},[ae]),Et(()=>{na(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Et(()=>{(()=>{let re=xt.map(M=>{if(M)return{name:M.name,countryName:M.name,officialName:M.name,currencySymbol:M.currency,currencyName:M.currency,officialCurrencySymbol:M.currency,countryCode:M.code,flag:M.flag,continent:M.continent,phone_code:M.phone_code,code:M.code}}).filter(Boolean);m(re)})()},[]),Pe.createElement(y,{style:{padding:20,width:"100%",heigth:"100%"}},f&&n&&e.logoPageElement&&Pe.createElement(a,null,e.logoPageElement),f&&!n&&Pe.createElement(a,{style:{width:"100%",heigth:"100%"}},b==="2"&&Pe.createElement(rn,{platform:e.platform,fontsLoaded:f,setStep:v,setIsLoading:e.setIsLoading,setUserNumberFmt:C,userNumberFmt:k,setUserEmail:p,userEmail:c,setSelectedCountry:P,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),b==="3"&&Pe.createElement(dn,{platform:e.platform,fontsLoaded:f,setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:k,setUserNumberFmt:C,setUserEmail:p,userEmail:c,selectedCountry:A,helperFunctions:e.helperFunctions,setIsExistingUser:S}),b==="4"&&Pe.createElement(Pt,{platform:e.platform,fontsLoaded:f,setStep:v,setIsLoading:e.setIsLoading,setShowSuccessBtn:E,setSuccessBtnText:J,setSuccessBtnNeutText:j,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:G,userNumberFmt:k,userEmail:c,selectedCountry:A,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:O,setActionFooterText:ne,helperFunctions:e.helperFunctions,isExistingUser:ke,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),b==="5"&&Pe.createElement(Ye,{platform:e.platform,setStep:v,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:N,buttonText:Q,buttonNeutText:H,buttonFunc:oe,buttonNeutFunc:V,actionHeaderText:B,actionFooterText:z}),b==="6"&&Pe.createElement(ft,{platform:e.platform,fontsLoaded:f,setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:k,userEmail:c,selectedCountry:A,allCountries:w,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),b==="7"&&e.action===""&&Pe.createElement(Ye,{platform:e.platform,action:e.action,setStep:v,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="7"&&e.action!==""&&Pe.createElement(Ye,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:Le}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),b==="8"&&e.dashbordElement&&Pe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),b==="8"&&!e.dashbordElement&&Pe.createElement(Pe.Fragment,null),b==="0"&&Pe.createElement(gt,{platform:e.platform,fontsLoaded:f,vaultId:Ce?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:Ce?.hashedVaultId,encrptedPk:Ce?.pk,vaultAddress:Ce?.address,vaultChannel:Ce?.channel,actionText:pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(Le||e.chainId),action:"getPk",reqVaultData:Ce,reqTxData:e.txData?Object.keys(e.txData)?.map(Ne=>(e.txData[Ne]=decodeURIComponent(e.txData[Ne]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:C,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight})),!f&&Pe.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},Pe.createElement(i,null,"Loading Module Fonts...")))},sn=ia;var aa=e=>{let[t,a]=ye(!1),[i,l]=ye({}),[y,_]=ye(!1),[s,L]=ye(null),[f,K]=ye({}),[n,r]=ye({}),[w,m]=ye(!1),[b,v]=ye(!1),[A,P]=ye(!1),[k,C]=ye(!1),[c,p]=ye(!1),[N,E]=ye(""),[Q,J]=ye([]),[H,j]=ye(""),[B,O]=ye(e.defaultCountry||{area:"1",flag:T.usaFlag,name:"United States"}),[z,ne]=ye(""),[oe,U]=ye("");Tt(()=>{(async()=>{await jt();let ie=qt();ie&&(l(ie),a(!0))})()},[]);let{isReactNative:V,View:G,Text:ke,Font:S,AsyncStorage:ge,ActivityIndicator:q,styles:Ge}=i;return Tt(()=>{!y&&t&&(async()=>{if(V)S&&await _e(S),_(!0);else{let ie=xe(document);_(ie)}})()},[t,y]),Tt(()=>{t&&(async()=>{if(V){if(ge)try{let ie=await ge.getItem("myVault");if(ie){let F=JSON.parse(ie);if(F?.vaultId){K(F),L(!0);return}}L(!1)}catch(ie){console.error("Error reading vault data on react:",ie),L(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ie=>{ie.myVault&&JSON.parse(ie.myVault)?.vaultId?(K(JSON.parse(ie.myVault)),L(!0)):L(!1)});else if(localStorage){let ie=JSON.parse(localStorage.getItem("myVault"));ie&&ie?.vaultId?(K(ie),L(!0)):L(!1)}else L(!1)})()},[t]),Tt(()=>{(()=>{let ie=xt.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);J(ie)})()},[]),Z.createElement(Z.Fragment,null,t&&Z.createElement(Z.Fragment,null,y&&Z.createElement(Zt,null,w&&Z.createElement(G,{style:V?{...Ge.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},Z.createElement(q,{size:"large",color:"blue"})),Z.createElement(G,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:V?{...Ge.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&Z.createElement(Z.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&Z.createElement(G,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&Z.createElement(Z.Fragment,null,!s&&!b&&Z.createElement(sn,{platform:i,fontsLoaded:y,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:L,setIsLoading:m,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&!b&&!A&&Z.createElement(gt,{platform:i,fontsLoaded:y,setisOnboard:L,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,vaultChannel:f?.channel,regAddress:f?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:U,setUserNumberFmt:ne,setSelectedCountry:O,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&b&&A&&Z.createElement(gt,{platform:i,fontsLoaded:y,setisOnboard:L,vaultId:f?.vaultId,hashedVaultId:f?.hashedVaultId,encrptedPk:f?.pk,vaultAddress:f?.address,regAddress:f?.regAddress,vaultChannel:f?.channel,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:m,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:W(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(de=>(e.txData[de]=decodeURIComponent(e.txData[de]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:U,setUserNumberFmt:ne,setSelectedCountry:O,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight}),s&&!b&&A&&H===""&&Z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(ft,{platform:i,fontsLoaded:y,setStep:j,setIsLoading:m,userNumberFmt:z,userEmail:oe,selectedCountry:B,allCountries:Q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p})),s&&!b&&A&&H==="7"&&Z.createElement(Ye,{platform:i,action:e.action,setStep:j,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{C(!1),p(!1),v(!0)},buttonFunc:()=>{C(!1),p(!1),v(!0)}}),s&&!b&&A&&H==="8"&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:m}),s&&!b&&A&&H==="8"&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),!A&&b&&!k&&!c&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:m,setShowResetPin:C,setShowRemoveCosigner:p,setAction:E,setUserNumberFmt:ne,setUserEmail:U,setSelectedCountry:O,setVaultData:r,initWalletAndContract:Qe,useVaultStore:Ee}),s&&!A&&b&&!k&&!c&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),s&&!A&&!c&&b&&k&&Z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(Pt,{platform:i,fontsLoaded:y,action:"reset-pin",setStep:j,setIsLoading:m,userNumberFmt:z,userEmail:oe,vaultData:n,selectedCountry:B,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight})),s&&!A&&b&&!k&&c&&Z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(ft,{platform:i,fontsLoaded:y,action:"remove-cosigner",setStep:j,setIsLoading:m,userNumberFmt:z,userEmail:oe,selectedCountry:B,allCountries:Q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:v,setShowResetPin:C,setShowRemoveCosigner:p}))))),!y&&Z.createElement(ke,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&Z.createElement(Z.Fragment,null,"Preparing Module..."))},oa=aa;export{ft as AddCoSignersPage,rn as ContactPage,Pt as CreatePinPage,gt as EnterPinPage,sn as FTUPage,dn as OTPPage,Zt as VaultContextProvider,oa as VerifiedCustody,it as decryptString,at as decryptWithPasskey,je as encryptString,qe as encryptWithPasskey,qt as getPlatformComponents,Re as hashTheBuffer,W as hashTheString,jt as initPlatform,xe as loadAllGoogleFonts,_e as loadAllGoogleFontsRN,lt as publicKeyCredentialRequestOptions};
1
+ var Zn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $t=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var _n=$t((Ea,yi)=>{yi.exports="./Roboto-Regular-UUBD26YO.ttf"});var Sn=$t((Ta,Ki)=>{Ki.exports="./Manrope-Regular-33576HBZ.ttf"});var Nn=$t((Ya,vi)=>{vi.exports="./Hind-Regular-R5KOYWFC.ttf"});function zn(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}zn(`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{Zn("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import ze,{forwardRef as ei}from"react";var Ca=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",pn="https://wallet.verified.network/create-passkey",Et="https://wallet.verified.network/get-passkey",hn=["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"],It="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ht={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},vt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Pt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},E={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Tt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];var yn={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var Ot=!1,Jt=!1,Rt,Ut,Wt,Qt,jt,qt,Zt,zt,Kn,vn,Pn,en,An,tn=async()=>{if(Jt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),a=await import("events");Kn=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage");An=await(await import("react-native-passkey")).Passkey,vn=l.default,Pn=a.EventEmitter;let b=({className:A,id:u,...k})=>k,s=A=>u=>ze.createElement(A,{...b(u)});Rt=s(t.View),Ut=s(t.Text),Wt=s(t.Image),Qt=s(t.ScrollView),jt=t.StyleSheet,qt=s(t.TextInput),Zt=s(t.TouchableOpacity),zt=s(t.ActivityIndicator),en=t.StyleSheet.create(yn),Ot=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Rt=({onPress:a,...i})=>ze.createElement("div",{onClick:a,...i}),Ut=({onPress:a,...i})=>ze.createElement("span",{onClick:a,...i}),Wt=({onPress:a,source:i,...l})=>ze.createElement("img",{onClick:a,...l,src:i?.uri}),Qt=a=>ze.createElement("div",{style:{overflowY:"auto",...a.style}},a.children),jt={create:a=>a},en={},qt=ei(({onChangeText:a,onInput:i,onKeyDown:l,onKeyPress:K,value:b,keyboardType:s,secureTextEntry:A,onSubmitEditing:u,blurOnSubmit:k,placeholderTextColor:n,...r},_)=>ze.createElement("input",{...r,ref:_,value:b,onInput:g=>{i?.(g),a?.(g.target.value)},onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),u?.(g)),l?.(g),K?.(g)},type:A?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),Zt=({onPress:a,style:i,...l})=>ze.createElement("button",{style:{outline:"none",border:"none",...i},onClick:a,...l},l.children),zt=({color:a,size:i,...l})=>ze.createElement(t.img,{height:"50px",width:"50px",src:E.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Ot=!1,console.log("Web platform initialized.")}Jt=!0},nn=()=>{if(!Jt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Ot,View:Rt,Text:Ut,Image:Wt,ScrollView:Qt,StyleSheet:jt,TextInput:qt,TouchableOpacity:Zt,ActivityIndicator:zt,Font:Kn,AsyncStorage:vn,EventEmitter:Pn,styles:en,rnPasskey:An}};import z,{useEffect as Vt,useState as Le}from"react";import ti,{createContext as ni,useContext as ii,useState as ot}from"react";var Ln=ni(void 0),an=({children:e})=>{let[t,a]=ot(null),[i,l]=ot(null),[K,b]=ot(null),[s,A]=ot(null),[u,k]=ot(null),[n,r]=ot(null),[_,g]=ot(null);return ti.createElement(Ln.Provider,{value:{chainId:t,pk:i,address:K,signer:s,provider:u,vaultContract:n,vaultData:_,setChainId:a,setPk:l,setAddress:b,setSigner:A,setProvider:k,setVaultContract:r,setVaultData:g}},e)},Ge=()=>{let e=ii(Ln);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import xe,{useEffect as Dt,useState as Ee}from"react";import{debounce as la}from"lodash";import{contractAddress as Pi,Custody as Ai,Provider as Li,VerifiedWallet as on}from"@verified-network/verified-sdk";var pe={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:E.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:E.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:E.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:E.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:E.baseIcon}};import{pbkdf2 as En}from"@noble/hashes/pbkdf2";import{sha256 as Mt}from"@noble/hashes/sha256";import{randomBytes as Gt,utf8ToBytes as sn,bytesToUtf8 as bi}from"@noble/hashes/utils";import{gcm as Tn}from"@noble/ciphers/aes";import ln from"crypto-js";import{toast as Xn}from"react-toastify";import bt from"react";import{base as xi,baseSepolia as wi,gnosis as _i,mainnet as Si,polygon as Ni,sepolia as Xi}from"viem/chains";import{http as Ei}from"viem";import{createPublicClient as ri,encodeAbiParameters as di,encodeFunctionData as si,pad as li,toHex as ci,zeroAddress as Lt,zeroHash as ui}from"viem";var bn={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 xn={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 fi="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",gi="0x00000000D3254452a909E4eeD47455Af7E27C289",wn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",mi=0n,At=e=>{let t=e.module||e.address,a=e.initData||e.data;if(!t||!a)throw new Error("Module or data is missing");return{module:t,data:a}},Ci=e=>di([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,si({abi:bn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),pi=e=>{let{deInitData:t="0x",type:a="validator",signer:i,data:l="0x",module:K,...b}=e;return{deInitData:t,data:l,module:K,address:K,signer:i,type:a,getStubSignature:async()=>wn,signUserOpHash:async s=>await i.signMessage({message:{raw:s}}),signMessage:async s=>await i.signMessage({message:s}),...b}},hi=e=>pi({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:Lt,module:Lt,type:"validator",getStubSignature:async()=>wn}),ki=()=>({module:Lt,data:ui}),Yt=async(e,t,a)=>{let i=ri({chain:e,transport:t}),l=hi({signer:a}),K=[],b=[],s=ki(),A=[],u=Lt,k=fi,n=gi,r=[],_=Ci({defaultValidator:At(l),validators:K.map(At),executors:b.map(At),hook:At(s),fallbacks:A.map(At),registryAddress:u,bootStrapAddress:n,prevalidationHooks:r}),g=li(ci(mi),{size:32}),L=await i.readContract({address:k,abi:xn.abi,functionName:"computeAccountAddress",args:[_,g]});if(L?.toLowerCase()!==Lt?.toLowerCase())return L};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.googleapis.com",e.head.appendChild(i)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let i=e.createElement("link");i.rel="preconnect",i.href="https://fonts.gstatic.com",e.head.appendChild(i)}return kn.map(i=>{if(!e.querySelector(`link[href="${i}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=i,e.head.appendChild(K)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:_n(),Manrope:Sn(),Hind:Nn()}),!0),et=async(e,t)=>{try{let a;if(t)a=new on(t);else{let r=on.generateMnemonic();a=on.importWallet(r)}let i=Pi,l=e&&i[e]?.Custody&&pe[e]?.rpcUrls?.length>0?e:8453,K=pe[l]?.rpcUrls[0],b=a.setProvider(new Li(K)),s=a.privateKey,A=new Ai(b,i[l]?.Custody),u=b,k=[xi,Si,_i,Ni,Xi,wi].find(r=>Number(r?.id)===Number(l)),n=await Yt(k,Ei(),u);return l===11155111&&console.log("address to send test ETH to: ",a.address),{chainId:l,address:n,pk:s,signer:b,provider:K,vaultContract:A,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},j=e=>{let t=e.toLowerCase(),a=Mt(sn(t));return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},De=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),a=Mt(t);return"0x"+Array.from(a).map(i=>i.toString(16).padStart(2,"0")).join("")},tt=(e,t)=>ln.AES.encrypt(e,t).toString(),rt=(e,t)=>{var a=ln.AES.decrypt(e,t),i=a.toString(ln.enc.Utf8);return i},Ti=(e,t)=>bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},bt.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),bt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),bt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Xe=(e,t)=>(Xn.dismiss(),Xn.error(Ti(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 U=(e,t,a=16)=>{if(!e)return t;let i=parseFloat(t);return t.endsWith("rem")?i*a:(t.endsWith("px"),i)},Yi=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let a=t.length/2,i=new Uint8Array(a);for(let l=0;l<a;l++){let K=t.substr(l*2,2);i[l]=parseInt(K,16)}return i},cn=(e,t,a)=>{let i=Yi(a);return{challenge:Gt(32),rp:{name:e},user:{id:i,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"required"},timeout:6e4,attestation:"none"}},xt=e=>{let t=atob(e),a=new ArrayBuffer(t.length),i=new Uint8Array(a);for(let l=0;l<t.length;l++)i[l]=t.charCodeAt(l);return a},dt=()=>({challenge:Gt(32),timeout:6e4,userVerification:"preferred"}),rn=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),dn=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),a=atob(t);return new Uint8Array([...a].map(i=>i.charCodeAt(0)))},nt=async(e,t,a)=>{let i=t instanceof Uint8Array?t:new Uint8Array(t),l=Gt(8),K=Array.from(l).map(r=>r.toString(16).padStart(2,"0")).join(""),b=j(`${a}:${K}`),s=sn(b),A=Gt(12),u=En(Mt,i,s,{c:3e5,dkLen:32}),n=Tn(u,A).encrypt(sn(e));return[rn(s),rn(A),rn(n)].join(".")},st=async(e,t)=>{let[a,i,l]=e.split(".");if(!a||!i||!l)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),b=dn(a),s=dn(i),A=dn(l),u=En(Mt,K,b,{c:3e5,dkLen:32}),k=Tn(u,s);try{let n=k.decrypt(A);return bi(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import te,{useEffect as Bi,useState as ut}from"react";import Yn from"react";var Gi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=Number(e.currentSlider),_=e.sliderCount?.length||0,g=_>0?100/_:0;return Yn.createElement(a,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((L,y)=>{let v=y<=r;return Yn.createElement(a,{key:y,className:v?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&v?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${g}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${g}%`}:!t&&v?{width:`${g}%`}:{width:`${g}%`}})}))},Me=Gi;import be,{useState as Mi}from"react";var Fi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=Mi(null),g=P=>{if(P===""){_(null);return}let C=e.searchContent.filter(m=>{let c=m?.name?.toLowerCase(),p=P.toLowerCase();if(c?.includes(p))return m.searched=p,m.nameArray=m.name.split(""),m});_(C),e.handleButtonDisplay()},L=(P,C)=>{e.type==="area-code"?e.setSelected({area:P.phone_code,flag:P.flag,name:P.name}):e.type==="language"&&e.setSelected(P.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(P,C)=>P.map((m,c)=>{let p=C.includes(m.toLowerCase());return be.createElement(i,{key:c,style:p?n.boldText:n.fadedText},m)}),v=(P,C=!1)=>P.map((m,c)=>{let p=t?!1:window?.location?.search===`?${c}`,N=e.selected&&e.selected.length>0,X=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return be.createElement(s,{key:c,className:X,style:n.resultItem,onPress:()=>L(m,c)},be.createElement(a,{style:n.resultInner},be.createElement(l,{source:{uri:e.type==="language"?m.icon:m.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),be.createElement(i,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},m.nameArray&&m.searched?y(m.nameArray,m.searched):m.name,e.type==="language"&&m.label&&be.createElement(i,{style:m.searched?.includes(m.label.toLowerCase())?{}:n.fadedText},` (${m.label})`))),e.type==="language"&&N&&p&&be.createElement(l,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return be.createElement(a,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},be.createElement(a,{className:"verified-custd-mdl-st-language-content"},e.headerText&&be.createElement(i,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),be.createElement(a,{className:"verified-custd-mdl-mobille-startup-search-box-container"},be.createElement(a,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},be.createElement(l,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),be.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:g,onFocus:()=>e.type==="language"&&e.setSelected("")})),be.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},be.createElement(a,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&v(r||e.searchContent))))))},Ft=Fi;import wt from"react";var Gn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform;return wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",wt.createElement(i,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Mn=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,r=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&k&&(await k.removeItem("myVault"),await k.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:U(t,"0.7rem")}:{fontSize:U(t,"0.7rem")}},"Want to access a different account? Click"," ",wt.createElement(i,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:r},"Logout")," ","to logout and login/create another account")};var Di=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=ut(e.fontsLoaded||!1),[g,L]=ut(""),[y,v]=ut(""),[P,C]=ut(!1),[m,c]=ut(""),[p,N]=ut(!1),{pk:X,vaultContract:q,address:R}=Ge();Bi(()=>{let V=async()=>{if(t)u&&await Ne(u),_(!0);else{let J=Se(document);_(J)}};e.fontsLoaded||V()},[]);let O=()=>{e.selectedCountry.area&&g.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),N(!0)):(c(""),N(!1))},Z=async()=>{if(e.userEmail===""&&g===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let V=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${g}`,J=e.userEmail?.length>0?"email":"sms";if(V&&J&&X&&q||V&&J&&e.noContract){e.setIsLoading(!0);try{let ee=await e.helperFunctions.sendOTPVerification(R,J,V);e.setIsLoading(!1),ee?(c(""),e.setStep("3")):(c(J==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Xe("OTP Error",J==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return te.createElement(K,{style:{width:"100%",height:"100%"}},r&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},te.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},te.createElement(s,{onPress:()=>C(!P),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},te.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),te.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:P?{uri:E.arrowUp}:{uri:E.arrowDown}})),te.createElement(b,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:V=>{let J=V.replace(/\D/g,"");v(V),L(J);let ee="";for(let ie=0;ie<J?.length;ie++)ee+=J[ie],(ie+1)%5===0&&ie+1<J?.length&&(ee+=" ");e.setUserNumberFmt(ee),O()}})),P&&te.createElement(Ft,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:O,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:P,setSearchActive:C,contentMaxHeight:"300",contentbottomMargin:"300"}),g.length!==10&&y.length>10&&!m&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!P&&te.createElement(te.Fragment,null,e.enablePhone&&te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),te.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),te.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:V=>{e.setUserEmail(V),e.setUserNumberFmt(""),L(""),v(""),O()}}),m&&e.userEmail.length>0&&te.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},m)))),!P&&te.createElement(a,{style:{height:"80px"}}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},te.createElement(Gn,{platform:e.platform}),te.createElement(s,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:Z},te.createElement(i,null,"Get OTP"))))),!r&&te.createElement(i,null,"Loading Module Fonts..."))},un=Di;import H,{useEffect as Jn,useRef as Qi,useState as ft}from"react";import{AbiCoder as Vi,encodeBytes32String as He}from"ethers";import{combine as $i,split as Fn}from"shamir-secret-sharing";import{contractAddress as _t,Custody as St,Provider as lt,VerifiedWallet as qe}from"@verified-network/verified-sdk";import{base as Ii,baseSepolia as Hi,gnosis as Oi,mainnet as Ji,polygon as Ri,sepolia as Ui}from"viem/chains";import{http as Wi}from"viem";var Bn=async(e,t)=>{try{return await e.getCreator(t).then(async a=>a?.status===0&&a?.response?.result[0]===!0)}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",a),null}},Dn=async(e,t,a,i,l,K,b,s,A,u,k,n,r,_,g,L,y)=>{try{let v={vaultId:i,hashedVaultId:l,vaultPin:K,hashedVaultPin:b,vaultContract:k,rawId:g};return await k.getCreator(l).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0)try{let C;if(g)C=await nt(A,g,K);else{let c=He(K);C=tt(A,c)}let m;if(chrome?.storage?.local?m=await new Promise(c=>{chrome.storage.local.get(["lastPk"],p=>{c(p.lastPk)})}):!chrome?.storage?.local&&localStorage&&(m=localStorage.getItem("lastPk")),n==="reset-pin"&&r?.vaultContract&&L?.length>1&&y>1&&A?.length>0){let c=Number(L.length),N=(await Fn(Uint8Array.from(A.split("").map(V=>V.charCodeAt(0))),Number(c),Number(y))).map(V=>V.join(",")),X=g?"":He(K),q=[],R=[];for(let V=0;V<L.length;V++){let J=L[V],ee=g?await nt(N[V],g,K):tt(N[V],X);await k.addParticipant(l,J,ee).then(async ie=>{let se={creatorVaultId:i,vaultPin:K,creatorHashedVaultId:l,creatorHashedVaultPin:b,cosigner:J,hashedCosigner:J,cosignerVaultIdType:"",cosignerVaultId:J,share:ee};ie?.status===0?R.push(se):q.push(se)}),await new Promise(ie=>setTimeout(ie,1e3))}if(q?.length>0||R?.length!==L?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),null;let Z=await new qe(A).getAddress();return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:C,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:C,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:Z,vaultId:i,hashedVaultId:l,pk:C,channel:s})),{}}if(m&&m?.length>0)return await k.confirmParticipant(l,l,!0).then(async c=>{if(c?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let N=await new qe(A).getAddress(),X;if(g)X=await nt(A,g,K);else{let q=He(K);X=tt(A,q)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:N,vaultId:i,hashedVaultId:l,pk:X,channel:s})),v}catch(p){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return Xe("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",c),!1});if(n==="invitation")return{isExisting:!0,...v};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:i,hashedVaultId:l,pk:C,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:C,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:i,hashedVaultId:l,pk:C,channel:s}));let c=e?null:window;if(!e&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_}});else if(!e&&!chrome?.runtime?.sendMessage){let p=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_}}});c?.dispatchEvent(p)}else if(e&&a){let p=new a,N=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",X={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?r:{vaultId:i,hashedVaultId:l,hashedVaultPin:b},txData:_};p.emit(N,X)}}return n==="getPk"?{vaultId:i,hashedVaultId:l,pk:C,channel:s,shouldStop:!0}:{shouldStop:!0}}catch(C){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",C),Xe("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(P?.status===0&&P?.response?.result[0]!==!0)return await k.createVault(l).then(async C=>C?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:A}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",A):e&&t&&await t.setItem("lastPk",A),await k.confirmParticipant(l,l,!0).then(async m=>{if(m?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let p=await new qe(A).getAddress(),N;if(g)N=await nt(A,g,K);else{let X=He(K);N=tt(A,X)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})):e&&t&&await t.setItem("myVault",JSON.stringify({address:u,regAddress:p,vaultId:i,hashedVaultId:l,pk:N,channel:s})),v}catch(c){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",c),!1}}else return Xe("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",m),!1})):(Xe("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",C),!1))})}catch(v){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",v),Xe("Oops something went wrong","Error while creating pin. Try again later"),!1}},Vn=async(e,t,a,i,l,K,b,s,A,u,k)=>{try{let n;if(k)n=await st(l,k);else{let r=He(a);n=rt(l,r)}if(n){let r=_t,_=new qe(n),g=s&&r[s]?.Custody&&pe[s]?.rpcUrls?.length>0?s:8453,L=pe[g]?.rpcUrls[0],y=_.setProvider(new lt(L)),v=new St(y,r[g].Custody);return v?await v.getCreator(t).then(async P=>{if(P?.status===0&&P?.response?.result[0]===!0){let C=await v.getQuorum(t);return C?.status===0&&C?.response?.result?.length>0?A&&Number(C?.response?.result[0])>0?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n}:Number(C?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k}:A?{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k,pk:n}:{address:K,vaultId:e,hashedVaultId:t,channel:b,chainId:u||g,pin:a,rawId:k}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Bt=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let _;if(k)_=k;else{let g=_t,L=new qe(n),y=r&&g[r]?.Custody&&pe[r]?.rpcUrls?.length>0?r:8453,v=pe[y]?.rpcUrls[0],P=L.setProvider(new lt(v));_=new St(P,g[y].Custody)}return _?await _.confirmParticipant(K,i,u).then(async g=>g?.status===0?(u?await e(a,s,A,b):await t(a,s,A,b),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",g),!1)):!1},$n=async(e,t,a,i,l,K,b,s,A,u,k,n,r,_)=>{let g=Number(a.length),y=(await Fn(Uint8Array.from(n.split("").map(m=>m.charCodeAt(0))),Number(g),K)).map(m=>m.join(",")),v=r?"":He(A),P=[],C=[];for(let m=0;m<a.length;m++){let c=a[m],p=r?await nt(y[m],r,A):tt(y[m],v);await k.addParticipant(s,_==="remove-cosigner"?c:j(c.vaultId),p).then(async N=>{let X=_==="remove-cosigner"?{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c,hashedCosigner:c,cosignerVaultIdType:"",cosignerVaultId:c,share:p}:{creatorVaultId:b,vaultPin:A,creatorHashedVaultId:s,creatorHashedVaultPin:u,cosigner:c.vaultId,hashedCosigner:j(c.vaultId),cosignerVaultIdType:c.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:c.vaultId,share:p,...c};N?.status===0?(C.push(X),_!=="remove-cosigner"&&c.vaultId!==b&&await e(c.otpChannel,c.vaultId,b,u).then(q=>{q||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):P.push(X)}),await new Promise(N=>setTimeout(N,1e3))}return P?.length>0||C?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(s,K.toString()).then(async m=>{if(m?.status===0&&_!=="remove-cosigner"){let c=i?.map(p=>({name:p?.name,email:p?.email,phoneNumber:p?.phoneNumber,contactType:String(p?.otpChannel)?.toUpperCase(),position:`${Ht[Number(p?.position)]} Co-Signer`}));return await t(l,b,c,Number(K),u).then(p=>{p||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(m?.status===0&&_==="remove-cosigner"){let c=i?.map(async X=>(await k.removeParticipant(s,j(X?.vaultId)))?.status===0?"true":"false");if((await Promise.all(c))?.find(X=>X==="false")?.length>0)return!1;let N=i?.map(X=>({email:X?.email,phoneNumber:X?.phoneNumber,contactType:String(X?.otpChannel)?.toUpperCase(),position:`${Ht[Number(X?.position)]} Co-Signer`}));return await t(l,b,N,Number(K),u,!0).then(X=>{X||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),Xe("Oops somethin went wrong","error while saving vault keys"),!1})},In=async(e,t,a,i,l,K,b,s,A)=>{let u;if(A)u=await st(K,A);else{let k=He(l);u=rt(K,k)}if(u){let k=_t,n=new qe(u),r=s&&k[s]?.Custody&&pe[s]?.rpcUrls?.length>0?s:8453,_=pe[r]?.rpcUrls[0],g=n.setProvider(new lt(_)),L=new St(g,k[r].Custody);if(L)return await L.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.hash){let v=new Vi,P,C;if(y?.response?.result?.logs?.length>0){let m=y?.response?.result?.logs?.filter(N=>N?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&N?.topics?.map(X=>X?.toLowerCase())?.includes(It?.toLowerCase()));C=m?.length;let c=m[0]?.data,p=v.decode(["bytes32","bytes32","uint256"],c)?.map((N,X)=>X<2?N:Number(N)).flat();P=p[p?.length-1]}else{let N=(await new lt(_).getTransactionReceipt(y?.response?.hash)).logs?.filter(R=>R?.address?.toLowerCase()===k[r].Custody?.toLowerCase()&&R?.topics?.map(O=>O?.toLowerCase())?.includes(It?.toLowerCase()));C=N?.length;let X=N[0]?.data,q=v.decode(["bytes32","bytes32","uint256"],X)?.map((R,O)=>O<2?R:Number(R)).flat();P=q[q?.length-1]}return await e(b,i,a,Number(P),Number(C)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",y),!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},Hn=async(e,t,a,i,l,K,b,s,A,u,k,n,r)=>{let _;if(r)_=await st(b,r);else{let g=He(K);_=rt(b,g)}if(_){let g=_t,L=new qe(_),y=n&&g[n]?.Custody&&pe[n]?.rpcUrls?.length>0?n:8453,v=pe[y]?.rpcUrls[0],P=L.setProvider(new lt(v)),C=new St(P,g[y].Custody);if(C)return await C.signTransaction(A,a,String(k)).then(async m=>m?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,l,u),await C.checkQuorum(A,k).then(async c=>c?.status===0&&c?.response?.result?(c?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(s)?"email":"sms",s,Number(k)),!0):!1)):!1).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",m),!1))}},On=async(e,t,a,i,l,K,b,s,A,u,k)=>{let n;if(k)n=await st(b,k);else{let r=He(K);n=rt(b,r)}if(n){let r=_t,_=new qe(n),g=u&&r[u]?.Custody&&pe[u]?.rpcUrls?.length>0?u:8453,L=pe[g]?.rpcUrls[0],y=_.setProvider(new lt(L)),v=new St(y,r[g].Custody);return v?await v.checkQuorum(a,s).then(async P=>P?.status===0&&P?.response?.result&&P?.response?.result[0]===!0?await v.getShards(a,s).then(async C=>{if(C?.status===0&&C?.response?.result){let m=C?.response?.result.filter(c=>c!=="");if(m.length>1){let c=k?"":He(K),N=(await Promise.all(m.map(R=>k?st(R,k):rt(R,c)))).map(R=>new Uint8Array(R.split(",").map(Number))),X=await $i(N),q=new TextDecoder().decode(X);if(q){let R=k?"":He(K),O=k?await nt(q,k,K):tt(q,R),Z=new qe(q),V=await Z.getAddress(),ee=Z.setProvider(new lt(L)),ie=[Ii,Ji,Oi,Ri,Ui,Hi].find(W=>Number(W?.id)===Number(g)),se=await Yt(ie,Wi(),ee);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})):e&&t&&await t.setItem("myVault",JSON.stringify({address:se,regAddress:V,vaultId:l,hashedVaultId:a,pk:O,channel:A})),!0}}else return!1}else return!1}).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",C),!1)):!1).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",P),!1)):!1}};var ji=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=ft(e.fontsLoaded||!1),g=Qi([]),[L,y]=ft(!1),[v,P]=ft(60),[C,m]=ft(["","","",""]),[c,p]=ft(!1),[N,X]=ft(""),{pk:q,vaultContract:R,address:O}=Ge();Jn(()=>{let W=async()=>{if(t)u&&await Ne(u),_(!0);else{let $=Se(document);_($)}};e.fontsLoaded||W()},[]),Jn(()=>{if(v===0)return;let W=setInterval(()=>P($=>$-1),1e3);return()=>clearInterval(W)},[v]);let Z=(W,$)=>{if(W?.length>1){let G=W.replace(/\D/g,""),Pe=[...C],w=0;for(let Q=$;Q<C.length&&w<G.length;Q++)Pe[Q]=G[w],w++;m(Pe);let ke=$+G.length;ke<C.length&&g.current[ke]&&g.current[ke].focus(),p(!1)}else{let G=W.replace(/\D/g,""),Pe=[...C];Pe[$]=G,m(Pe),G&&g.current[$+1]&&g.current[$+1].focus(),p(!1)}},V=(W,$,G)=>{G.nativeEvent.key==="Backspace"&&!C[$]&&$>0&&g.current[$-1]&&g.current[$-1].focus()},J=C.every(W=>W.length>0),ee=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ie=async()=>{if(!J||!e.helperFunctions){p(!0),X("Please enter the complete OTP.");return}let W=ee(),$=C.join("");if(!(!e.noContract&&!q||!e.noContract&&!R)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(O,W,$)){e.setIsLoading(!1),p(!0);return}let Pe=j(W),w=!1;if(!e.noContract&&R&&(w=await Bn(R,Pe),w===null)){e.setIsLoading(!1),X("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(w),e.setIsLoading(!1),e.setStep("4")}catch(G){e.setIsLoading(!1),X("Error verifying OTP. Try again."),p(!0),console.error("error: ",G)}}},se=async()=>{if(!e.helperFunctions){X("Helper functions missing."),p(!0);return}let W=ee(),$=e.userEmail?"email":"sms";e.setIsLoading(!0);let G=await e.helperFunctions.sendOTPVerification(O,$,W);e.setIsLoading(!1),G?(m(["","","",""]),P(60),p(!1),X("")):Xe("OTP resend failed","Please try again later.")};return H.createElement(K,null,r&&H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},H.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&H.createElement(H.Fragment,null,H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),H.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&H.createElement(i,null,e.userEmail)),H.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},H.createElement(l,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},C.map((W,$)=>H.createElement(b,{key:$,ref:G=>g.current[$]=G,value:C[$],onChangeText:G=>Z(G,$),onKeyPress:G=>V(G,$,G),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),H.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&v>5&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},H.createElement(i,{style:{color:"#717286",fontWeight:"400"}},"00:"),v),!c&&v<=5&&v>0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},H.createElement(i,{style:{fontWeight:"400"}},"00:"),v),!c&&v===0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&N?.length>0&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},N),!c&&v>0&&N===""&&H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&v===0&&N===""||c&&N===""?H.createElement(s,{style:{background:"transparent"},onPress:async()=>{m(["","","",""]),await se()}},H.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!L&&H.createElement(a,{style:{height:"100px"}}),H.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},H.createElement(s,{className:J&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ie,disabled:!J||c,style:J&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},H.createElement(i,null,"Proceed"))))),!r&&H.createElement(i,null,"Loading Module Fonts..."))},fn=ji;import d,{useEffect as Rn,useRef as Un,useState as ge}from"react";import Re,{useEffect as qi}from"react";var Zi=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,EventEmitter:r}=e.platform;qi(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let v=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,P=>{P&&e.action!=="signRecovery"&&v?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let P=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});v?.dispatchEvent(P)}else t&&r&&new r().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(v){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",v)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let _=()=>{e.setStep?.("6")},g=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},L=()=>{e.handleShowDashboard()};return Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Re.createElement(l,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Re.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?_():e.action==="completeRecovery"?L():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Re.createElement(i,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Re.createElement(s,{onPress:()=>{e.action==="invitation"?g():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Re.createElement(i,{style:{fontSize:14}},e.buttonNeutText)))},Fe=Zi;import{contractAddress as zi,Provider as ea}from"@verified-network/verified-sdk";import{ethers as Wn}from"ethers";var ta=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,EventEmitter:n,styles:r,rnPasskey:_}=e.platform,[g,L]=ge(e.fontsLoaded||!1),[y,v]=ge(!0),[P,C]=ge(!1),[m,c]=ge(""),[p,N]=ge(!1),[X,q]=ge(!1),[R,O]=ge(!1),[Z,V]=ge(!1),[J,ee]=ge(""),[ie,se]=ge(""),[W,$]=ge(null),[G,Pe]=ge(!1),[w,ke]=ge(!1),[Q,Be]=ge(!1),[ce,ae]=ge(""),[F,ye]=ge(""),[Ke,we]=ge([]),[de,Te]=ge(0),[le,B]=ge(null),{address:Ve,pk:Oe,chainId:Je,vaultContract:ue,signer:Ue,setVaultData:Ze,setChainId:it,setAddress:We,setPk:Ct,setProvider:$e,setSigner:I,setVaultContract:Y,vaultData:Ye}=Ge(),[x,M]=ge(["","","",""]),[S,ne]=ge(["","","",""]),Ae=Un([]),Ce=Un([]);Rn(()=>{let T=async()=>{if(t)u&&await Ne(u),L(!0);else{let h=Se(document);L(h)}};e.fontsLoaded||T()},[]),Rn(()=>{let T=async()=>{e.setIsLoading&&e.setIsLoading(!0);let h=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(h?.status===0&&h?.response?.result?.length>0){let Kt=Number(h?.response?.result[0]);Te(Kt)}if(e.vaultData?.existingCosignersHashed?.length>0){we([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let oe=zi[Je]?.Custody;if(!oe)return;let fe=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Wn.Contract(oe,fe,e.vaultData?.signer))return;let re=new Wn.Interface(fe),yt=re.getEvent("NewParticipant").topicHash,qn=(await new ea(pe[Je]?.rpcUrls[0])?.getLogs({address:oe,fromBlock:pe[Je]?.custodyContractBlock||0,toBlock:"latest",topics:[yt]}))?.map(Kt=>{let Xt=re.parseLog(Kt);return Xt?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Xt?.args?.creator!==Xt?.args?.participant?Xt?.args?.participant:null})?.filter(Kt=>Kt!==null);we([...new Set(qn)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&T()},[e.isExistingUser,e.action,e.vaultData]);let Ie=(T,h,D)=>{C(!1),c("");let oe=T.replace(/\D/g,""),fe=D?[...S]:[...x];fe[h]=oe,D?(ne(fe),oe&&Ce.current[h+1]&&Ce.current[h+1].focus(),h<3&&fe.every(ve=>ve!=="")&&x.every(ve=>ve!=="")&&fe.join("")!==x.join("")&&(C(!0),c("Confirm Pin must match New Pin.")),h===3&&x.join("")!==fe.join("")&&(C(!0),c("Confirm Pin must match New Pin."))):(M(fe),oe&&Ae.current[h+1]&&Ae.current[h+1].focus(),S.every(ve=>ve!=="")&&fe.join("")!==S.join("")&&(C(!0),c("New Pin must match Confirm Pin.")))},ct=async()=>{c(""),C(!1);try{let T=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let h=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:pn,D=async(oe,fe,ve)=>{if(oe.type==="VW:Passkey_Credential")if(oe?.origin&&h?.toLowerCase()?.startsWith(oe?.origin?.toLowerCase())){le&&chrome.windows.remove(le),fe?.tab&&fe?.tab?.windowId&&chrome.windows.remove(fe.tab.windowId);let re=oe.data;if(re?.id&&re?.rawId){let kt=xt(re?.rawId),yt=De(kt),Cn={pinString:re?.id,hashed:yt,rawId:kt,listener:D};await at(Cn)}else c(`Passkey creation failed: ${re?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),C(!0)}else c("Passkey creation failed: invalid passkey origin. Try again later"),C(!0)};chrome.runtime.onMessage.addListener(D),await chrome.windows.create({url:`${h}?id=${T}`,type:"popup",width:500,height:600}).then(oe=>{B(oe.id)})}else{let h=t?_.create(cn("Verified Wallet",T,j(T))):await navigator?.credentials?.create({publicKey:cn("Verified Wallet",T,j(T))});if(h){let D=De(h?.rawId);return{pinString:h?.id,hashed:D,rawId:h?.rawId}}}return null}catch(T){return c(`Passkey creation failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),C(!0),null}},pt=async()=>{if(c(""),C(!1),chrome?.windows?.create&&window){let T=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Et,h=async(D,oe,fe)=>{if(D.type==="VW:Passkey_Credential")if(D?.origin&&T?.toLowerCase()?.startsWith(D?.origin?.toLowerCase())){le&&chrome.windows.remove(le),oe?.tab&&oe?.tab?.windowId&&chrome.windows.remove(oe.tab.windowId);let ve=D.data;if(ve?.id&&ve?.rawId){let re=xt(ve?.rawId),kt=De(re),yt={pinString:ve?.id,hashed:kt,rawId:re,listener:h};await at(yt)}else c(`Passkey authentication failed: ${ve?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),C(!0)}else c("Passkey authentication failed: invalid passkey origin. Try again later"),C(!0)};chrome.runtime.onMessage.addListener(h),await chrome.windows.create({url:`${T}`,type:"popup",width:500,height:600}).then(D=>{B(D.id)})}else try{let T=t?await _.get(dt()):await navigator?.credentials?.get({publicKey:dt()}),h=De(T?.rawId);return{pinString:T?.id,hashed:h,rawId:T?.rawId}}catch(T){c(`Passkey authentication failed: ${T?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),C(!0)}},ht=(T,h,D,oe)=>{let fe=D.nativeEvent.key;!oe&&fe==="Backspace"&&!x[h]&&h>0&&Ae.current[h-1]&&Ae.current[h-1].focus(),oe&&fe==="Backspace"&&!S[h]&&h>0&&Ce.current[h-1]&&Ce.current[h-1].focus()},_e=()=>w?e.isExistingUser?x.every(T=>T!==""):x.every(T=>T!=="")&&S.every(T=>T!==""&&x.join("")===S.join("")):!0,Qe=()=>!!(Q&&F?.length===66&&F?.toLowerCase()?.startsWith("0x")),at=async T=>{if(T?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(T?.listener),!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),C(!0);else{c(""),C(!1);let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&_e()&&h&&D&&Oe&&Ve&&ue||!e.isExistingUser&&_e()&&h&&D&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&_e()&&h&&D&&Oe&&Ve&&ue||e.isExistingUser&&_e()&&h&&D&&e.vaultData?.vaultContract){e.setIsLoading(!0);let oe=T?.pinString||x.join(""),fe=j(h),ve=T?.hashed||j(oe);await Dn(t,k,n,h,fe,oe,ve,D,T?.pk?T?.pk:Oe||e.vaultData?.pk,T?.address?T?.address:Ve||e.vaultData?.address,T?.vaultContract?T?.vaultContract:ue||e.vaultData?.vaultContract,e.action,T?.vaultData?T?.vaultData:e.vaultData,e.txData,T?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ke]:void 0,de).then(async re=>{e.setIsLoading(!1),re?(Ze(re?.shouldStop&&re?.vaultId?{vaultId:re?.vaultId,hashedVaultId:re?.hashedVaultId,hashedVaultPin:re?.hashedVaultPin,pk:re?.pk,rawId:re?.rawId,channel:re?.channel}:re?.shouldStop?{}:re),c(""),C(!1),e.action==="invitation"?(se(oe),$(T?.rawId),q(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local&&w?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&w?localStorage.removeItem("myVault"):t&&k&&w&&await k.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(D,h,T?.hashed,e.vaultData.hashedVaultPin,Date.now()),ee(`You have successfully reset your account ${w?"4-Digits PIN":"Passkey"}. ${w?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),N(!0)):re?.shouldStop?re?.shouldStop&&e.action!=="getPk"?(ee(""),N(!0)):re?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):re===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),C(!0)):(c(`You are an existing user. Please use the right ${w?"existing 4-Digits PIN":"existing Passkey for "+h} to recover your account login access on this device/browser`),C(!0)):(c("Unexpected error while creating account. Please try again later."),C(!0))})}else _e()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),C(!0))}},mn=async T=>{let h=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,D=e.userEmail?.length>0?"email":"sms";if(ie?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h||W&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&h){e.setIsLoading(!0);let oe=j(h),fe=w?j(ie):De(W);await Bt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,D,oe,fe,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,h,T,ue).then(ve=>{e.setIsLoading(!1),ve&&!Ye?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(T?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):ve&&Ye?.isExisting&&O(!0)})}};return d.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},g&&d.createElement(d.Fragment,null,!p&&!X&&d.createElement(d.Fragment,null,!Q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},w?"Change Pin":"Change Passkey"),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",w?"PIN":"Passkey",". This"," ",w?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(i,{style:{color:"#0C0C0E"}},w?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(i,{style:{color:"#0C0C0E"}},w?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(i,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!w&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),w&&d.createElement(d.Fragment,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((T,h)=>d.createElement(b,{key:`pin-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>Ae.current[h]=D,value:x[h],onChangeText:D=>Ie(D,h,!1),onKeyPress:D=>ht(D,h,D,!1)}))),e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&m===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&m?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(i,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},S.map((T,h)=>d.createElement(b,{key:`confirm-${h}`,style:t&&P?{...r.verifiedCustdMdlOtpInputRed}:t&&!P?{...r.verifiedCustdMdlOtpInput}:{},className:P?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:D=>Ce.current[h]=D,value:S[h],onChangeText:D=>Ie(D,h,!0),onKeyPress:D=>ht(D,h,D,!0)}))),d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!P&&d.createElement(i,null),P&&m===""&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),P&&m?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),!y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),y&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>v(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!w&&d.createElement(d.Fragment,null,P&&m?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!w&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{if(e.action==="reset-pin"){let h=await ct();h&&await at(h)}else{let h=await pt();h&&await at(h)}}},e.action==="reset-pin"&&d.createElement(i,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(i,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async T=>{let h=await ct();h&&await at(h)}},d.createElement(i,null,"Create New Account")),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(i,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(a,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonActive,border:"1px solid #0c0c0e"}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async T=>{Be(!0)}},d.createElement(i,null,"Import An Existing account")))),w&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&_e()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!_e()?{...r.verifiedCustdMdlStartupButton}:{},className:_e()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async T=>{await at()}},d.createElement(i,null,"Proceed"))))),Q&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(b,{style:t?{...r.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:F,onChangeText:T=>{ye(T)}}),ce?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ce)),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!G&&d.createElement(a,{style:{height:20}}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},P&&m?.length>0&&d.createElement(i,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},m),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Qe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Qe()?{...r.verifiedCustdMdlStartupButton}:{},className:Qe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async T=>{try{if(!Qe()){C(!0),c("Invalid private key entered. Please scroll up, check private key and try again.");return}let h=await et(Je,F);if(!h?.chainId||!h?.address||!h?.pk||!h?.provider||!h?.signer||!h?.vaultContract){C(!0),c("Invalid private key entered. Please check private key starts with 0x and try again.");return}it(h.chainId),We(h.address),Ct(h.pk),$e(h.provider),I(h.signer),Ze(h.vaultData),Y(h.vaultContract);let D=await ct();D&&await at({...D,pk:h.pk,vaultContract:h.vaultContract,signer:h.signer,address:h.address,vaultData:h.vaultData})}catch{C(!0),c("Error while importing account.try again later.");return}}},d.createElement(i,null,"Proceed With Passkey")))))),!p&&X&&d.createElement(d.Fragment,null,!R&&d.createElement(a,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(i,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(l,{style:t?{...r.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1}}),!Z&&d.createElement(K,null,d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.pkicon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:E.encryptedIcon}})),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>V(!0)},d.createElement(i,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await mn(!0)}},d.createElement(i,null,"Accept")))),Z&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(i,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",d.createElement(i,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await mn(!1)}},d.createElement(i,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>V(!1)},d.createElement(i,null,"No"))))))),R&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:Z?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),p&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:J?.length>0?J:"You have successfully logged in your account."})),!g&&d.createElement(i,null,"Loading Module Fonts..."))},Nt=ta;import o,{useEffect as Qn,useState as me}from"react";import{ethers as jn}from"ethers";import{contractAddress as na,Provider as ia}from"@verified-network/verified-sdk";var aa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n}=e.platform,[r,_]=me(e.fontsLoaded||!1),[g,L]=me(!1),[y,v]=me("1"),[P,C]=me("1"),[m,c]=me(!1),[p,N]=me("email"),[X,q]=me(""),[R,O]=me(""),[Z,V]=me(""),[J,ee]=me(""),[ie,se]=me(""),[W,$]=me(!1),[G,Pe]=me(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[w,ke]=me([]),[Q,Be]=me(0),[ce,ae]=me([]),[F,ye]=me([]),[Ke,we]=me(!1),[de,Te]=me(2),[le,B]=me(""),[Ve,Oe]=me(!1),{pk:Je,vaultData:ue,vaultContract:Ue,chainId:Ze,signer:it}=Ge();Qn(()=>{let I=async()=>{if(t)try{let Y=await Ne(u);_(!0)}catch{_(!1)}else{let Y=Se(document);_(Y)}};e.fontsLoaded||I()},[]),Qn(()=>{let I=async()=>{e.setIsLoading&&e.setIsLoading(!0);let Y=j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ye=await Ue.getQuorum(Y);if(Ye?.status===0&&Ye?.response?.result?.length>0){let _e=Number(Ye?.response?.result[0]);Be(_e),ye(new Array(_e).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),ue?.existingCosignersHashed?.length>0){ae([...new Set(ue?.existingCosignersHashed)]),ye([...new Set(ue?.existingCosignersHashed)]);return}let M=na[Ze]?.Custody;if(!M)return;let S=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new jn.Contract(M,S,it))return;let Ae=new jn.Interface(S),Ie=Ae.getEvent("NewParticipant").topicHash,ht=(await new ia(pe[Ze]?.rpcUrls[0])?.getLogs({address:M,fromBlock:pe[Ze]?.custodyContractBlock||0,toBlock:"latest",topics:[Ie]}))?.map(_e=>{let Qe=Ae.parseLog(_e);return Qe?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Qe?.args?.creator!==Qe?.args?.participant?Qe?.args?.participant:null})?.filter(_e=>_e!==null);ae([...new Set(ht)]),ye([...new Set(ht)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&it&&Ue||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&it&&Ue)&&I()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let We=()=>{},Ct=()=>{let I=w?.length;if(p==="sms"&&X?.length===0){B("Invalid input, please check the phone number");return}else if(p==="sms"&&X?.length!==10){B("Invalid input, please check the phone number");return}else if(p==="email"&&Z?.length===0){B("Invalid input, please check the email");return}else if(p==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Z)){B("Invalid input, please check the email");return}else if(w?.find(Y=>Y?.otpChannel==="sms"?Y?.phoneArea?.toLowerCase()+Y?.number?.toLowerCase()===G.area?.toLowerCase()+R?.toLowerCase():Y?.email?.toLowerCase()===Z?.toLowerCase())){e.action!=="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&B(p==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(p==="sms"&&G?.area?.toLowerCase()+R?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){B("Invalid input, phone number is creator's phone number");return}else if(p==="email"&&Z?.toLowerCase()===e.userEmail?.toLowerCase()){B("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&ce?.length===0){B("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!ce?.includes(j(p==="sms"?`+${G?.area}${X}`:Z))){B(p==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&F?.length===1){B("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(I+1===5){B("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}B(""),ke(Y=>[{name:J,email:Z,number:R,phoneNumber:`+${G?.area}${X}`,otpChannel:p,phoneArea:G?.area,position:Y?.length+1,vaultId:p==="sms"?`+${G?.area}${X}`:Z},...Y]),V(""),ee(""),q(""),O(""),se(""),I+1===4&&c(!1),e.action==="remove-cosigner"&&F?.length>1&&ye(F?.filter(Y=>Y!==j(p==="sms"?`+${G?.area}${X}`:Z)))},$e=async()=>{let I=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:ue?.vaultId},...w]:[ue?.hashedVaultId,...F];(e.action!=="remove-cosigner"&&I?.length>0&&w?.length>0&&de&&ue?.vaultId&&ue?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&I?.length>1&&de&&ue?.vaultId&&ue?.hashedVaultId&&Ue&&Je&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation)&&(e.setIsLoading(!0),await $n(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,I,w,e?.userEmail?.length>0?"email":"sms",de,ue.vaultId,ue.hashedVaultId,ue.vaultPin,ue.hashedVaultPin,Ue,Je,ue?.rawId,e.action).then(Y=>{e.setIsLoading(!1),Y&&(e.action==="remove-cosigner"?Oe(!0):e.setStep("7"))}))};return o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Ve&&o.createElement(o.Fragment,null,!g&&o.createElement(o.Fragment,null,P==="1"&&o.createElement(o.Fragment,null,o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.pkicon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.encryptedIcon},alt:"icon"})),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:E.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{v("1"),L(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Learn More")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{C("2"),c(!1),L(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),P==="2"&&o.createElement(o.Fragment,null," ",o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ke&&o.createElement(o.Fragment,null,o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},Q," required signers"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",w?.length+1<5?w?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",w?.length,"/5)")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&F?.includes(" ")&&o.createElement(i,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ke&&w.sort((I,Y)=>I?.position-Y?.position).map((I,Y)=>o.createElement(a,{key:Y,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},vt[I?.position]?.split(" ")[0],o.createElement(i,null,o.createElement(i,{style:{fontSize:10}},vt[I?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},I?.name),I.otpChannel==="email"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},I.email),I.otpChannel==="sms"&&o.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",I?.phoneArea,") ",I.number))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{ke(Ye=>Ye?.filter(x=>x?.otpChannel==="sms"?x?.phoneArea?.toLowerCase()+x?.number?.toLowerCase()!==I?.phoneArea?.toLowerCase()+I?.number?.toLowerCase():x?.email?.toLowerCase()!==I?.email?.toLowerCase())?.map((x,M)=>(x.position=M+1,x))),We()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ke&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:w?.length+1).fill("1").map((I,Y)=>o.createElement(a,{key:Y,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:Y+1===de&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:Y+1===de&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(Y+1))),o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:E.pointer}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&w?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/w?.length}%`}:!t&&w?.length===1?{width:`${100/w?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/w?.length+5}%`}:{width:`calc(${100/w?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&F?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length}%`}:!t&&F?.length===1?{width:`${100/F?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/F?.length+5}%`}:{width:`calc(${100/F?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?F?.length+1:w?.length+1).fill("1").map((I,Y)=>o.createElement(s,{style:{background:"transparent"},key:Y,onPress:()=>{Y+1>1&&Te(Y+1)}},e.action!=="remove-cosigner"&&o.createElement(i,{style:t&&Y===w?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===w?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1)),e.action==="remove-cosigner"&&o.createElement(i,{style:t&&Y===F?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===F?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1))))))),o.createElement(s,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await $e()}},o.createElement(i,null,"Confirm"))))),m&&w?.length<4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},vt[w?.length+1]?.split(" ")[0],o.createElement(i,{style:{fontSize:10}},vt[w?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(b,{onChangeText:ee,value:J,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("sms"),B(""),V("")}},o.createElement(l,{source:{uri:p==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{N("email"),B(""),q(""),O(""),se("")}},o.createElement(l,{source:{uri:p==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},p==="sms"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>$(!W),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.createElement(l,{source:{uri:G.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(i,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",G.area),W?o.createElement(l,{source:{uri:E.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.createElement(l,{source:{uri:E.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.createElement(b,{onChangeText:I=>{se(I===""?ie+" ":I);let Y=I.replace(/\D/g,"");q(Y);let Ye="";for(let x=0;x<Y.length;x++)Ye+=Y[x],(x+1)%5===0&&x+1<Y.length&&(Ye+=" ");O(Ye),B("")},onBlur:We,value:R,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),W&&o.createElement(Ft,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:We,setSelected:Pe,selected:G,searchActive:W,setSearchActive:$,contentMaxHeight:300,contentbottomMargin:300}),le===""&&X.length!==10&&ie.length>10&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),le!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le))),p==="email"&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:I=>{V(I),B("")},onBlur:We,value:Z,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),le!==""&&o.createElement(a,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(i,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},le)))),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>c(!1)},o.createElement(i,null,"Cancel")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{Ct(),We()}},o.createElement(i,null,"Add")))),!m&&!Ke&&w?.length<4&&o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},o.createElement(l,{source:{uri:E.addIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?" Add Co-Signer to remove":" Add another Co-Signer")),!m&&!Ke&&w?.length===4&&o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.createElement(l,{source:{uri:E.addDisableIcon},style:{width:20,height:20}}),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ke&&o.createElement(s,{className:w?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&w?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&w?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&w?.length>0&&!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),we(!0),c(!1))}},o.createElement(i,{style:n.buttonText},"Proceed")))),g&&o.createElement(o.Fragment,null,y==="1"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon2},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>L(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>v("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="2"&&o.createElement(o.Fragment,null,o.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:E.addCoSignerIcon3},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Next")))),y==="3"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon4},alt:""}),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(i,null,"Back")),o.createElement(s,{onPress:()=>{C("2"),c(!1),L(!1),v("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(i,null,"Start")))))),r&&Ve&&o.createElement(Fe,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),!r&&o.createElement(i,null,"Loading Module Fonts..."))},gt=aa;import f,{useEffect as oa,useRef as ra,useState as he}from"react";import{ethers as da}from"ethers";var sa=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,TextInput:b,TouchableOpacity:s,StyleSheet:A,Font:u,AsyncStorage:k,styles:n,rnPasskey:r}=e.platform,[_,g]=he(e.fontsLoaded||!1),[L,y]=he(!1),[v,P]=he(!0),[C,m]=he(!1),[c,p]=he(!1),[N,X]=he(null),[q,R]=he(null),[O,Z]=he(e.newChainId||8453),[V,J]=he(!1),[ee,ie]=he(!1),[se,W]=he(!1),[$,G]=he(!1),[Pe,w]=he(!1),[ke,Q]=he(""),[Be,ce]=he(!1),[ae,F]=he({}),[ye,Ke]=he(["","","",""]),we=ra([]),[de,Te]=he(!1),[le,B]=he(null),{setChainId:Ve,setAddress:Oe,setPk:Je,setProvider:ue,setSigner:Ue,setVaultContract:Ze,setVaultData:it}=Ge();oa(()=>{let x=async()=>{if(t)u&&await Ne(u),g(!0);else{let M=Se(document);g(M)}};e.fontsLoaded||x()},[]);let We=(x,M)=>{if(x.length>1){let S=x.replace(/\D/g,""),ne=[...ye],Ae=0;for(let Ie=M;Ie<ye.length&&Ae<S.length;Ie++)ne[Ie]=S[Ae],Ae++;Ke(ne);let Ce=M+S.length;Ce<ye.length&&we.current[Ce]&&we.current[Ce].focus(),y(!1)}else{let S=x.replace(/\D/g,""),ne=[...ye];ne[M]=S,Ke(ne),S&&we.current[M+1]&&we.current[M+1].focus(),y(!1)}},Ct=(x,M,S)=>{S.nativeEvent.key==="Backspace"&&!ye[M]&&M>0&&we.current[M-1]&&we.current[M-1].focus()},$e=ye.every(x=>x.length>0),I=async x=>{if(x?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(x?.listener),!e.helperFunctions)Q("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(Q(""),y(!1),de&&$e&&e.hashedVaultId&&e.encrptedPk||!de&&e.hashedVaultId&&e.encrptedPk&&x){e.setIsLoading(!0);let M=x?.pinString?x?.pinString:ye.join("");await Vn(e.vaultId,e.hashedVaultId,M,x?.hashed?x?.hashed:j(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(O),hn?.includes(e.origin?.toLowerCase()),null,x?.rawId).then(async S=>{if(S&&!S?.inCompleteVault)e.setIsLoading(!1),X(S),R(S?.pk&&e.action!=="eth_requestAccounts"?{address:S.address,channel:S.channel,chainId:S.chainId,pk:S?.pk}:{address:e.regAddress,channel:S.channel,chainId:S.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await In(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),ne?p(!0):(Q("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),y(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Hn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&k&&!e.reqTxData?.newUser&&!e.vaultAddress&&await k.removeItem("myVault"),ne?p(!0):(Q("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),y(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await On(t,k,e.hashedVaultId,x?.hashed?x?.hashed:j(M),e.vaultId,M,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(O),x?.rawId).then(async ne=>{e.setIsLoading(!1),ne?p(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),y(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&S?.pin?.length>0&&e.signTxElement?(F({chainId:O,ky:de?da.encodeBytes32String(S?.pin):"",rawId:de?"":x?.rawId,...e.txToSign}),ie(!1),ce(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(Q(""),y(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(Q(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(Q(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&k&&await k.removeItem("myVault"),Q(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(Q("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),y(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(Q("Incomplete account login detected. Logout and try again later"),y(!0)):(Q(""),y(!1),p(!0));else if(S&&S?.inCompleteVault&&S?.pk){let ne=await et(Number(O),S?.pk);if(Ve(ne.chainId),Oe(ne.address),Je(ne.pk),ue(ne.provider),Ue(ne.signer),Ze(ne.vaultContract),it({vaultId:S?.vaultId,hashedVaultId:S?.hashedVaultId,vaultPin:S?.pin,hashedVaultPin:de?j(S?.pin):De(S?.rawId),vaultContract:ne.vaultContract,rawId:S?.rawId}),S?.channel?.toLowerCase()==="sms"){let Ae=S?.vaultId?.replace(S?.vaultId?.slice(-10),""),Ce=S?.vaultId?.slice(-10)?.slice(0,5)+" "+S?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Ae?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ce),e.setUserEmail("")}else e.setUserEmail(S?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else Q(de?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!de&&!x&&(Q("Unexpected error with selected passkey. Try again later"),y(!0)),de&&!$e&&(Q("Input your 4-Digits PIN to login."),y(!0))},Y=async x=>{let M=e.vaultId;if(N?.pin?.length>0&&N?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&M&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let S=N.pin,ne=j(M),Ae=de?j(S):De(N.rawId);await Bt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,ne,Ae,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,M,x,null,N.pk,Number(O)).then(Ce=>{e.setIsLoading(!1),Ce&&(w(x),W(!0))})}},Ye=async()=>{if(Q(""),y(!1),chrome?.windows?.create){let x=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Et,M=async(S,ne,Ae)=>{if(S.type==="VW:Passkey_Credential")if(S?.origin&&x?.toLowerCase()?.startsWith(S?.origin?.toLowerCase())){le&&chrome.windows.remove(le),ne?.tab&&ne?.tab?.windowId&&chrome.windows.remove(ne.tab.windowId);let Ce=S.data;if(Ce?.id&&Ce?.rawId){let Ie=xt(Ce?.rawId),ct=De(Ie),pt={pinString:Ce?.id,hashed:ct,rawId:Ie,listener:M};pt&&await I(pt)}else Q(`Passkey authentication failed: ${Ce?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}else Q("Passkey authentication failed: invalid passkey origin. Try again later"),y(!0)};chrome.runtime.onMessage.addListener(M),await chrome.windows.create({url:`${x}`,type:"popup",width:500,height:600}).then(S=>{B(S.id)})}else try{let x=t?await r.get(dt()):await navigator?.credentials?.get({publicKey:dt()}),M=De(x?.rawId);return{pinString:x?.id,hashed:M,rawId:x?.rawId}}catch(x){Q(`Passkey authentication failed: ${x?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}};return f.createElement(f.Fragment,null,_&&!ee&&!Be&&f.createElement(f.Fragment,null,!c&&f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},f.createElement(Me,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},de?"Enter PIN":"Sign-in with Existing Passkey")),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",f.createElement(i,{style:{color:"#0C0C0E"}},de?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",f.createElement(i,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),de&&f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ye.map((x,M)=>f.createElement(b,{key:M,ref:S=>we.current[M]=S,className:L?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&L?{...n.verifiedCustdMdlOtpInputRed}:t&&!L?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:v,maxLength:1,value:ye[M],onChangeText:S=>We(S,M),onKeyPress:S=>Ct(S,M,S),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${M}`}))),f.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},L&&!ke&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),L&&ke&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},ke),!L&&f.createElement(i,null),v?f.createElement(s,{onPress:()=>P(!1),style:{backgroundColor:"transparent"}},f.createElement(l,{style:{width:24,height:24},source:{uri:E.pinHide}})):f.createElement(s,{onPress:()=>P(!0),style:{backgroundColor:"transparent"}},f.createElement(l,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!de&&f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},f.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),f.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!C&&f.createElement(a,{style:{height:20}}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},f.createElement(Mn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),de&&f.createElement(s,{onPress:async()=>await I(),style:t&&$e&&!L?{...n.verifiedCustdMdlStartupButtonActive}:t&&$e&&L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&!L?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&L?{...n.verifiedCustdMdlStartupButton}:{},className:$e&&!L?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},f.createElement(i,null,"Proceed")),!de&&f.createElement(f.Fragment,null,L&&ke?.length>0&&f.createElement(i,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},ke),f.createElement(s,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let x=await Ye();x&&await I(x)},className:"verified-custd-mdl-startup-button-active"},f.createElement(i,null,"Login With Passkey")))))),c&&f.createElement(Fe,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:q},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),_&&ee&&!Be&&f.createElement(f.Fragment,null,!se&&f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},f.createElement(Me,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),f.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},f.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},f.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),f.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},f.createElement(l,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),$?f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",f.createElement(i,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.createElement(s,{onPress:async()=>await Y(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"Yes")),f.createElement(s,{onPress:()=>G(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"No")))))):f.createElement(f.Fragment,null,f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.createElement(l,{source:{uri:E.pkicon}})),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},f.createElement(l,{source:{uri:E.encryptedIcon}})),f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",f.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),f.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},f.createElement(s,{onPress:()=>G(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},f.createElement(i,null,"Reject")),f.createElement(s,{onPress:async()=>await Y(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},f.createElement(i,null,"Accept"))))),se&&f.createElement(Fe,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:Pe?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),_&&!ee&&Be&&f.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ae}),!_&&f.createElement(i,null,"Loading Module Fonts..."))},mt=sa;var ca=e=>{let{isReactNative:t,View:a,Text:i,Image:l,ScrollView:K,StyleSheet:b,Font:s,AsyncStorage:A}=e?.platform,[u,k]=Ee(e.fontsLoaded||!1),[n,r]=Ee(e.showLogoPage||!1),[_,g]=Ee([]),[L,y]=Ee("2"),[v,P]=Ee(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[C,m]=Ee(""),[c,p]=Ee(""),[N,X]=Ee(!1),[q,R]=Ee(""),[O,Z]=Ee(""),[V,J]=Ee(""),[ee,ie]=Ee(""),[se,W]=Ee(null),[$,G]=Ee(null),[Pe,w]=Ee(!1),{setChainId:ke,setAddress:Q,setPk:Be,setProvider:ce,setSigner:ae,setVaultContract:F,setVaultData:ye,vaultData:Ke,chainId:we,vaultContract:de}=Ge();return Dt(()=>{let Te=async()=>{if(t)s&&await Ne(s),k(!0);else{let le=Se(document);k(le)}};e.fontsLoaded||Te()},[]),Dt(()=>{let Te=async()=>{let le;!t&&chrome?.storage?.local?le=await new Promise(Ve=>{chrome.storage.local.get(["lastPk"],Oe=>{Ve(Oe.lastPk)})}):!t&&localStorage?le=localStorage.getItem("lastPk"):t&&A&&(le=A.getItem("lastPk"));let B=await et(e.chainId,le&&le?.length>0?le:void 0);ke(B.chainId),Q(B.address),Be(B.pk),ce(B.provider),ae(B.signer),ye(B.vaultData),B.vaultContract?.contractAddress?F(B.vaultContract):F(void 0)};de?.contractAddress||Te()},[de]),Dt(()=>{la(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Dt(()=>{(()=>{let le=Tt.map(B=>{if(B)return{name:B.name,countryName:B.name,officialName:B.name,currencySymbol:B.currency,currencyName:B.currency,officialCurrencySymbol:B.currency,countryCode:B.code,flag:B.flag,continent:B.continent,phone_code:B.phone_code,code:B.code}}).filter(Boolean);g(le)})()},[]),xe.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},u&&n&&e.logoPageElement&&xe.createElement(a,null,e.logoPageElement),u&&!n&&xe.createElement(a,{style:{width:"100%",heigth:"100%"}},L==="2"&&xe.createElement(un,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:m,userNumberFmt:C,setUserEmail:p,userEmail:c,setSelectedCountry:P,selectedCountry:v,allCountries:_,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),L==="3"&&xe.createElement(fn,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:C,setUserNumberFmt:m,setUserEmail:p,userEmail:c,selectedCountry:v,helperFunctions:e.helperFunctions,setIsExistingUser:w}),L==="4"&&xe.createElement(Nt,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:X,setSuccessBtnText:R,setSuccessBtnNeutText:Z,setSuccessBtnFunc:W,setSuccessBtnNeutFunc:G,userNumberFmt:C,userEmail:c,selectedCountry:v,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:J,setActionFooterText:ie,helperFunctions:e.helperFunctions,isExistingUser:Pe,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),L==="5"&&xe.createElement(Fe,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:N,buttonText:q,buttonNeutText:O,buttonFunc:se,buttonNeutFunc:$,actionHeaderText:V,actionFooterText:ee}),L==="6"&&xe.createElement(gt,{platform:e.platform,fontsLoaded:u,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:C,userEmail:c,selectedCountry:v,allCountries:_,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner}),L==="7"&&e.action===""&&xe.createElement(Fe,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="7"&&e.action!==""&&xe.createElement(Fe,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:we}}:{type:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)}}),L==="8"&&e.dashbordElement&&xe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),L==="8"&&!e.dashbordElement&&xe.createElement(xe.Fragment,null),L==="0"&&xe.createElement(mt,{platform:e.platform,fontsLoaded:u,vaultId:Ke?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:Ke?.hashedVaultId,encrptedPk:Ke?.pk,vaultAddress:Ke?.address,vaultChannel:Ke?.channel,actionText:Pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(we||e.chainId),action:"getPk",reqVaultData:Ke,reqTxData:e.txData?Object.keys(e.txData)?.map(Te=>(e.txData[Te]=decodeURIComponent(e.txData[Te]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:m,setSelectedCountry:P,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain})),!u&&xe.createElement(a,{style:{padding:20,width:"100%",heigth:"100%"}},xe.createElement(i,null,"Loading Module Fonts...")))},gn=ca;var ua=e=>{let[t,a]=Le(!1),[i,l]=Le({}),[K,b]=Le(!1),[s,A]=Le(null),[u,k]=Le({}),[n,r]=Le({}),[_,g]=Le(!1),[L,y]=Le(!1),[v,P]=Le(!1),[C,m]=Le(!1),[c,p]=Le(!1),[N,X]=Le(""),[q,R]=Le([]),[O,Z]=Le(""),[V,J]=Le(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[ee,ie]=Le(""),[se,W]=Le("");Vt(()=>{(async()=>{await tn();let ae=nn();ae&&(l(ae),a(!0))})()},[]);let{isReactNative:$,View:G,Text:Pe,Font:w,AsyncStorage:ke,ActivityIndicator:Q,styles:Be}=i;return Vt(()=>{!K&&t&&(async()=>{if($)w&&await Ne(w),b(!0);else{let ae=Se(document);b(ae)}})()},[t,K]),Vt(()=>{t&&(async()=>{if($){if(ke)try{let ae=await ke.getItem("myVault");if(ae){let F=JSON.parse(ae);if(F?.vaultId){k(F),A(!0);return}}A(!1)}catch(ae){console.error("Error reading vault data on react:",ae),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ae=>{ae.myVault&&JSON.parse(ae.myVault)?.vaultId?(k(JSON.parse(ae.myVault)),A(!0)):A(!1)});else if(localStorage){let ae=JSON.parse(localStorage.getItem("myVault"));ae&&ae?.vaultId?(k(ae),A(!0)):A(!1)}else A(!1)})()},[t]),Vt(()=>{(()=>{let ae=Tt.map(F=>F?{name:F?.name,countryName:F?.name,officialName:F?.name,currencySymbol:F?.currency,currencyName:F?.currency,officialCurrencySymbol:F?.currency,countryCode:F?.code,flag:F?.flag,continent:F?.continent,phone_code:F?.phone_code,code:F?.code}:null).filter(F=>F!=null);R(ae)})()},[]),z.createElement(z.Fragment,null,t&&z.createElement(z.Fragment,null,K&&z.createElement(an,null,_&&z.createElement(G,{style:$?{...Be.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},z.createElement(Q,{size:"large",color:"blue"})),z.createElement(G,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:$?{...Be.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&z.createElement(z.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&z.createElement(G,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&z.createElement(z.Fragment,null,!s&&!L&&z.createElement(gn,{platform:i,fontsLoaded:K,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:g,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y,setShowResetPin:m,setShowRemoveCosigner:p,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&!L&&!v&&z.createElement(mt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,vaultChannel:u?.channel,regAddress:u?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:g,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:m,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:W,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&L&&v&&z.createElement(mt,{platform:i,fontsLoaded:K,setisOnboard:A,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,regAddress:u?.regAddress,vaultChannel:u?.channel,origin:e.origin,title:e.title,actionText:e.actionText||Pt[e.action],setIsLoading:g,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowResetPin:m,setShowRemoveCosigner:p,setShowCompleteVault:P,setUserEmail:W,setUserNumberFmt:ie,setSelectedCountry:J,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain}),s&&!L&&v&&O===""&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(gt,{platform:i,fontsLoaded:K,setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:m,setShowRemoveCosigner:p})),s&&!L&&v&&O==="7"&&z.createElement(Fe,{platform:i,action:e.action,setStep:Z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{m(!1),p(!1),y(!0)},buttonFunc:()=>{m(!1),p(!1),y(!0)}}),s&&!L&&v&&O==="8"&&e.dashbordElement&&z.createElement(e.dashbordElement,{setIsLoading:g}),s&&!L&&v&&O==="8"&&!e.dashbordElement&&z.createElement(z.Fragment,null),!v&&L&&!C&&!c&&e.dashbordElement&&z.createElement(e.dashbordElement,{setIsLoading:g,setShowResetPin:m,setShowRemoveCosigner:p,setAction:X,setUserNumberFmt:ie,setUserEmail:W,setSelectedCountry:J,setVaultData:r,initWalletAndContract:et,useVaultStore:Ge}),s&&!v&&L&&!C&&!c&&!e.dashbordElement&&z.createElement(z.Fragment,null),s&&!v&&!c&&L&&C&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(Nt,{platform:i,fontsLoaded:K,action:"reset-pin",setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,vaultData:n,selectedCountry:V,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain})),s&&!v&&L&&!C&&c&&z.createElement(G,{style:{width:"100%",heigth:"100%",padding:"20px"}},z.createElement(gt,{platform:i,fontsLoaded:K,action:"remove-cosigner",setStep:Z,setIsLoading:g,userNumberFmt:ee,userEmail:se,selectedCountry:V,allCountries:q,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:y,setShowResetPin:m,setShowRemoveCosigner:p}))))),!K&&z.createElement(Pe,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&z.createElement(z.Fragment,null,"Preparing Module..."))},fa=ua;export{gt as AddCoSignersPage,un as ContactPage,Nt as CreatePinPage,mt as EnterPinPage,gn as FTUPage,fn as OTPPage,an as VaultContextProvider,fa as VerifiedCustody,rt as decryptString,st as decryptWithPasskey,tt as encryptString,nt as encryptWithPasskey,nn as getPlatformComponents,De as hashTheBuffer,j as hashTheString,tn as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,dt as publicKeyCredentialRequestOptions};
3
3
  //# sourceMappingURL=index.mjs.map