@verified-network/verified-custody 0.4.1 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- function Cn(e){if(!e||typeof document>"u")return;let c=document.head||document.getElementsByTagName("head")[0],p=document.createElement("style");p.type="text/css",c.firstChild?c.insertBefore(p,c.firstChild):c.appendChild(p),p.styleSheet?p.styleSheet.cssText=e:p.appendChild(document.createTextNode(e))}Cn(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
2
- `);typeof chrome>"u"&&(window.chrome={});import me,{useEffect as Ft,useState as Se}from"react";import Sn,{createContext as En,useContext as An,useState as Ye}from"react";var dn=En(void 0),Dt=e=>{let[c,p]=Ye(null),[s,t]=Ye(null),[a,N]=Ye(null),[l,g]=Ye(null),[m,E]=Ye(null),[y,B]=Ye(null),[F,M]=Ye(null),[v,I]=Ye(null);return Sn.createElement(dn.Provider,{value:{chainId:c,pk:s,address:a,signer:l,provider:m,vaultContract:y,vaultData:F,setChainId:p,setPk:t,setAddress:N,setSigner:g,setProvider:E,setVaultContract:B,setVaultData:M}},e.children)},Le=()=>{let e=An(dn);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import xe,{useEffect as _t,useState as Ie}from"react";import{debounce as da}from"lodash";var Oe=process.env.REACT_APP_NODE_ENV==="production"?8453:84532,pa=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"],un="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",mn={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},gt={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"},_={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"},Et=[{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"}];import{contractAddress as kn,Custody as In,Provider as Pn,VerifiedWallet as Tt}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:_.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:_.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:_.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:_.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:_.baseIcon}};import _n from"crypto";import Lt from"crypto-js";import{toast as fn}from"react-toastify";import ht from"react";import{toMultichainNexusAccount as Fn}from"@biconomy/abstractjs";import{base as Dn,baseSepolia as Tn,gnosis as Ln,mainnet as Bn,polygon as Vn,sepolia as Un}from"viem/chains";import{http as et}from"viem";var tt=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.googleapis.com",e.head.appendChild(s)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.gstatic.com",e.head.appendChild(s)}return cn.map(s=>{if(!e.querySelector(`link[href="${s}"]`)){let a=e.createElement("link");a.rel="stylesheet",a.href=s,e.head.appendChild(a)}}),!0},nt=async(e,c)=>{var p,s,t,a,N;try{let l;if(c)l=new Tt(c);else{let z=Tt.generateMnemonic();l=Tt.importWallet(z)}let g=kn,m=e&&((p=g[e])!=null&&p.Custody)&&((t=(s=Pe[e])==null?void 0:s.rpcUrls)==null?void 0:t.length)>0?e:Oe,E=(a=Pe[m])==null?void 0:a.rpcUrls[0],y=l.setProvider(new Pn(E)),B=l.privateKey,F=new In(y,(N=g[m])==null?void 0:N.Custody),M=y,I=(await Fn({chains:[Dn,Bn,Un,Ln,Tn,Vn],transports:[et(),et(),et(),et(),et(),et()],signer:M})).addressOn(m);return{chainId:m,address:I,pk:B,signer:y,provider:E,vaultContract:F,vaultData:null}}catch(l){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",l),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},fe=e=>`0x${_n.createHash("sha256").update(e==null?void 0:e.toLowerCase()).digest("hex")}`,Ze=(e,c)=>Lt.AES.encrypt(e,c).toString(),Qe=(e,c)=>{var p=Lt.AES.decrypt(e,c),s=p.toString(Lt.enc.Utf8);return s};var On=(e,c)=>ht.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},ht.createElement("img",{style:{marginLeft:"5px"},src:_.errorAlert,alt:""}),ht.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},ht.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),ht.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},c)));var we=(e,c)=>(fn.dismiss(),fn.error(On(e,c),{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}));import Z,{useState as kt}from"react";import vt from"react";var Mn=e=>{var c;return vt.createElement("div",{className:"verified-custd-mdl-startup-slider"},((c=e.sliderCount)==null?void 0:c.length)>0&&e.sliderCount.map((p,s)=>vt.createElement(vt.Fragment,{key:s},s<=Number(e.currentSlider)&&vt.createElement("div",{key:`active-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),s>Number(e.currentSlider)&&vt.createElement("div",{key:`inactive-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},De=Mn;import T,{useState as zn}from"react";var Hn=e=>{var s;let[c,p]=zn(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:_.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:t=>{t.target.value===""?p(null):e.type==="language"?p(e.searchContent.filter(a=>{if(a.name.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=a.name.split(""),a})):e.type==="area-code"&&p(e.searchContent.filter(a=>{var N,l;if((N=a==null?void 0:a.name)!=null&&N.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=(l=a==null?void 0:a.name)==null?void 0:l.split(""),a})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},T.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!c&&((s=e==null?void 0:e.searchContent)==null?void 0:s.length)>0&&e.searchContent.map((t,a)=>T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t.phone_code,flag:t.flag,name:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))),c&&c.length>0&&c.map((t,a)=>{var N,l,g;return T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t==null?void 0:t.phone_code,flag:t==null?void 0:t.flag,name:t==null?void 0:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t==null?void 0:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((N=t==null?void 0:t.nameArray)==null?void 0:N.length)>0&&(t==null?void 0:t.nameArray.map((m,E)=>T.createElement(T.Fragment,{key:E},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E},m)))))),e.type==="language"&&T.createElement(T.Fragment,{key:a},window.location.search!==`?${a}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=t.nameArray)==null?void 0:l.length)>0&&t.nameArray.map((m,E)=>T.createElement(T.Fragment,{key:E},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E},m)))),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((g=t.nameArray)==null?void 0:g.length)>0&&t.nameArray.map((m,E)=>T.createElement(T.Fragment,{key:E},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:E},m))),!t.searched.includes(t.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${t.label})`),t.searched.includes(t.label.toLowerCase())&&T.createElement("span",null,` (${t.label})`))),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))}))))))},At=Hn;import yt from"react";var gn=()=>yt.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),pn=e=>yt.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var c,p;e.setIsLoading(!0),(c=chrome==null?void 0:chrome.storage)!=null&&c.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!((p=chrome==null?void 0:chrome.storage)!=null&&p.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account");var jn=e=>{var M;let[c,p]=kt(""),[s,t]=kt(""),[a,N]=kt(!1),[l,g]=kt(""),{pk:m,vaultContract:E,address:y}=Le(),B=()=>{var I,z;let v=document.getElementById("verified-custd-mdl-contact-button");v&&e.selectedCountry.area&&c.length===10||v&&((I=e.userEmail)==null?void 0:I.length)>0&&isNaN(Number(e.userEmail))&&((z=e.userEmail)!=null&&z.includes("@"))?(g(""),v.className="verified-custd-mdl-startup-button-active"):(g(""),v.className="verified-custd-mdl-startup-button")},F=async()=>{var v,I,z;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((v=e.userEmail)==null?void 0:v.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){g("Invalid input, please check your email");return}let D=((I=e.userEmail)==null?void 0:I.length)>0?e.userEmail:`+${e.selectedCountry.area}${c}`,L=((z=e.userEmail)==null?void 0:z.length)>0?"email":"sms";D&&L&&m&&E||D&&L&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(y,L,D).then(b=>{var A;e.setIsLoading(!1),b?(g(""),e.setStep("3")):(g(L==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),we("Oops something went wrong",((A=e.userEmail)==null?void 0:A.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?g(""):g("Network error. check your internet connection and try again.")}};return Z.createElement("div",{className:"verified-custd-mdl-startup-language"},Z.createElement("div",{className:"verified-custd-mdl-startup-contact"},Z.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),Z.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},e.enablePhone&&Z.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),!e.enablePhone&&Z.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your email address"),e.enablePhone&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Z.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},Z.createElement("div",{onClick:()=>{N(!a)},className:"verified-custd-mdl-st-contact-first-section"},Z.createElement("img",{onClick:()=>{N(!a)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),Z.createElement("p",{onClick:()=>{N(!a)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),a&&Z.createElement("img",{onClick:()=>{N(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!a&&Z.createElement("img",{onClick:()=>{N(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),Z.createElement("input",{onInputCapture:v=>{var D;v.target.value===""?t(s+" "):t(v.target.value);let I=(D=v.target.value)==null?void 0:D.replace(/\D/g,"");p(I);let z="";for(let L=0;L<(I==null?void 0:I.length);L++)z+=I[L],(L+1)%5===0&&L+1<(I==null?void 0:I.length)&&(z+=" ");e.setUserNumberFmt(z)},onInput:v=>{B()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),a&&Z.createElement(At,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:B,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:a,setSearchActive:N,contentMaxHeight:"300",contentbottomMargin:"300"}),c.length!==10&&s.length>10&&l===""&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!a&&Z.createElement(Z.Fragment,null,e.enablePhone&&Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),Z.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),Z.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Z.createElement("input",{onInputCapture:v=>{var I;e.setUserEmail((I=v.target)==null?void 0:I.value),e.setUserNumberFmt(""),p(""),t("")},onInput:v=>{B()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((M=e.userEmail)==null?void 0:M.length)>0&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!a&&Z.createElement("div",{style:{height:"80px"}}),Z.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},Z.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},Z.createElement(gn,null),Z.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async v=>{if(v.target.className.includes("verified-custd-mdl-startup-button")&&v.target.className!=="verified-custd-mdl-startup-button")v.target.className="verified-custd-mdl-startup-button-click",await F();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await F())}},className:"verified-custd-mdl-startup-button"},"Get OTP"))))},Bt=jn;import G,{useEffect as ea,useState as Pt}from"react";import{AbiCoder as Kn,encodeBytes32String as Me}from"ethers";import{combine as Gn,split as Wn}from"shamir-secret-sharing";import{contractAddress as bt,Custody as xt,Provider as it,VerifiedWallet as Je}from"@verified-network/verified-sdk";import{toMultichainNexusAccount as $n}from"@biconomy/abstractjs";import{base as Yn,baseSepolia as Zn,gnosis as Jn,mainnet as qn,polygon as Xn,sepolia as Qn}from"viem/chains";import{http as at}from"viem";var hn=async(e,c)=>{try{return await e.getCreator(c,"").then(async p=>{var s,t;if((p==null?void 0:p.status)===0)return!0;if(((s=p==null?void 0:p.reason)==null?void 0:s.toLowerCase())==="wallet not created")return!1;if(((t=p==null?void 0:p.reason)==null?void 0:t.toLowerCase())==="invalid pin")return!0})}catch{return null}},vn=async(e,c,p,s,t,a,N,l,g,m,E)=>{try{let y={vaultId:e,hashedVaultId:c,vaultPin:p,hashedVaultPin:s,vaultContract:l};return await l.getCreator(c,s).then(async B=>{var F,M,v,I,z,D,L,b;if((B==null?void 0:B.status)===0)try{let A=Me(p),V=Ze(a,A);if(g==="invitation")return{isExisting:!0,...y};if((F=chrome==null?void 0:chrome.storage)!=null&&F.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})}):!((M=chrome==null?void 0:chrome.storage)!=null&&M.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})),(v=chrome==null?void 0:chrome.runtime)!=null&&v.sendMessage)chrome.runtime.sendMessage({type:g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:s},txData:E}});else if(!((I=chrome==null?void 0:chrome.runtime)!=null&&I.sendMessage)){let k=new CustomEvent(g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",{detail:{value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:s},txData:E}}});window.dispatchEvent(k)}return g==="getPk"?{vaultId:e,hashedVaultId:c,pk:V,channel:t,shouldStop:!0}:{shouldStop:!0}}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",A),we("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((z=B==null?void 0:B.reason)==null?void 0:z.toLowerCase())==="invalid pin"){let A;return(D=chrome==null?void 0:chrome.storage)!=null&&D.local?A=await new Promise(V=>{chrome.storage.local.get(["lastPk"],k=>{V(k.lastPk)})}):!((L=chrome==null?void 0:chrome.storage)!=null&&L.local)&&localStorage&&(A=localStorage.getItem("lastPk")),g==="reset-pin"&&(m!=null&&m.hashedOldPin)&&(m!=null&&m.vaultContract)?await Rn(c,m==null?void 0:m.hashedOldPin,s,m==null?void 0:m.vaultContract):A&&(A==null?void 0:A.length)>0?await l.confirmParticipant(c,s,c,s,!0).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){(k=chrome==null?void 0:chrome.storage)!=null&&k.local?await chrome.storage.local.remove("lastPk"):!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage&&localStorage.removeItem("lastPk");try{let P=await new Je(a).getAddress(),j=Me(p),ie=Ze(a,j);return(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.set({myVault:JSON.stringify({address:N,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:t})}):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:N,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:t})),y}catch(C){return we("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 we("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",V),!1}):null}else if(((b=B==null?void 0:B.reason)==null?void 0:b.toLowerCase())==="wallet not created")return await l.createVault(c,s).then(async A=>{var V,k;return(A==null?void 0:A.status)===0?((V=chrome==null?void 0:chrome.storage)!=null&&V.local?await chrome.storage.local.set({lastPk:a}):!((k=chrome==null?void 0:chrome.storage)!=null&&k.local)&&localStorage&&localStorage.setItem("lastPk",a),await l.confirmParticipant(c,s,c,s,!0).then(async d=>{var i,O,C,P;if((d==null?void 0:d.status)===0){(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.remove("lastPk"):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.removeItem("lastPk");try{let ie=await new Je(a).getAddress(),ne=Me(p),J=Ze(a,ne);return(C=chrome==null?void 0:chrome.storage)!=null&&C.local?await chrome.storage.local.set({myVault:JSON.stringify({address:N,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})}):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:N,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})),y}catch(j){return we("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",j),!1}}else return we("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: ",d),!1})):(we("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",A),!1)})})}catch(y){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",y),we("Oops something went wrong","Error while creating pin. Try again later"),!1}},yn=async(e,c,p,s,t,a,N,l,g,m)=>{var E,y,B,F;try{let M=Me(p),v=Qe(t,M);if(v){let I=bt,z=new Je(v),D=l&&((E=I[l])!=null&&E.Custody)&&((B=(y=Pe[l])==null?void 0:y.rpcUrls)==null?void 0:B.length)>0?l:Oe,L=(F=Pe[D])==null?void 0:F.rpcUrls[0],b=z.setProvider(new it(L)),A=new xt(b,I[D].Custody);return A?await A.getCreator(c,s).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){let C=await A.getQuorum(c,s);return(C==null?void 0:C.status)===0&&((d=(k=C==null?void 0:C.response)==null?void 0:k.result)==null?void 0:d.length)>0?g&&Number((i=C==null?void 0:C.response)==null?void 0:i.result[0])>0?{address:a,vaultId:e,hashedVaultId:c,channel:N,chainId:m||D,pin:p,pk:v}:Number((O=C==null?void 0:C.response)==null?void 0:O.result[0])===0?{address:a,vaultId:e,hashedVaultId:c,channel:N,chainId:m||D,pin:p,pk:v,inCompleteVault:!0}:{address:a,vaultId:e,hashedVaultId:c,channel:N,chainId:m||D,pin:p}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(M){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",M),null}},It=async(e,c,p,s,t,a,N,l,g,m,E,y,B)=>{var M,v,I,z;let F;if(E)F=E;else{let D=bt,L=new Je(y),b=B&&((M=D[B])!=null&&M.Custody)&&((I=(v=Pe[B])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?B:Oe,A=(z=Pe[b])==null?void 0:z.rpcUrls[0],V=L.setProvider(new it(A));F=new xt(V,D[b].Custody)}return F?await F.confirmParticipant(a,t,s,N,m).then(async D=>(D==null?void 0:D.status)===0?(m?await e(p,l,g):await c(p,l,g),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(D=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",D),!1)):!1},bn=async(e,c,p,s,t,a,N,l,g,m,E,y)=>{let B=Number(p.length),M=(await Wn(Uint8Array.from(y.split("").map(D=>D.charCodeAt(0))),Number(B),a)).map(D=>D.join(",")),v=Me(g),I=[],z=[];for(let D=0;D<p.length;D++){let L=p[D];await E.addParticipant(l,m,fe(L.vaultId),Ze(M[D],v)).then(async b=>{let A={creatorVaultId:N,vaultPin:g,creatorHashedVaultId:l,creatorHashedVaultPin:m,cosigner:L.vaultId,hashedCosigner:fe(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:Ze(M[D],v),...L};(b==null?void 0:b.status)===0?(z.push(A),L.vaultId!==N&&await e(L.otpChannel,L.vaultId,N,m).then(V=>{V||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):I.push(A)}),await new Promise(b=>setTimeout(b,1e3))}return(I==null?void 0:I.length)>0||(z==null?void 0:z.length)!==(p==null?void 0:p.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),we("Oops somethin went wrong","error while adding co-signers"),!1):await E.defineQuorum(l,m,a.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let L=s==null?void 0:s.map(b=>{var A;return{name:b==null?void 0:b.name,email:b==null?void 0:b.email,phoneNumber:b==null?void 0:b.phoneNumber,contactType:(A=String(b==null?void 0:b.otpChannel))==null?void 0:A.toUpperCase(),position:`${mn[Number(b==null?void 0:b.position)]} Co-Signer`}});return await c(t,N,L,Number(a)).then(b=>{b||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"),we("Oops somethin went wrong","error while saving vault keys"),!1})},xn=async(e,c,p,s,t,a,N,l)=>{var E,y,B,F;let g=Me(t),m=Qe(a,g);if(m){let M=bt,v=new Je(m),I=l&&((E=M[l])!=null&&E.Custody)&&((B=(y=Pe[l])==null?void 0:y.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new it(z)),L=new xt(D,M[I].Custody);if(L)return await L.promptSignatures(c,p).then(async b=>{var A,V,k,d,i,O,C;if((b==null?void 0:b.status)===0&&((V=(A=b==null?void 0:b.response)==null?void 0:A.result)!=null&&V.logs)){let P=new Kn,j=(i=(d=(k=b==null?void 0:b.response)==null?void 0:k.result)==null?void 0:d.logs)==null?void 0:i.filter(Q=>{var H,oe,R,re,o;return((H=Q==null?void 0:Q.address)==null?void 0:H.toLowerCase())===((oe=M[I].Custody)==null?void 0:oe.toLowerCase())&&((o=(R=Q==null?void 0:Q.topics)==null?void 0:R.map(S=>S==null?void 0:S.toLowerCase()))==null?void 0:o.includes((re=un)==null?void 0:re.toLowerCase()))}),ie=(O=j[0])==null?void 0:O.data,ne=(C=P.decode(["bytes32","bytes32","uint256"],ie))==null?void 0:C.map((Q,H)=>H<2?Q:Number(Q)).flat(),J=ne[(ne==null?void 0:ne.length)-1];return await e(N,s,p,Number(J),Number(j==null?void 0:j.length)),!0}else return!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",b),!1))}},wn=async(e,c,p,s,t,a,N,l,g,m,E,y)=>{var M,v,I,z;let B=Me(a),F=Qe(N,B);if(F){let D=bt,L=new Je(F),b=y&&((M=D[y])!=null&&M.Custody)&&((I=(v=Pe[y])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?y:Oe,A=(z=Pe[b])==null?void 0:z.rpcUrls[0],V=L.setProvider(new it(A)),k=new xt(V,D[b].Custody);if(k)return await k.signTransaction(g,s,p,E,m).then(async d=>(d==null?void 0:d.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,t),await k.checkQuorum(g,m,p,E).then(async i=>{var O,C;return(i==null?void 0:i.status)===0&&((O=i==null?void 0:i.response)!=null&&O.result)?(((C=i==null?void 0:i.response)==null?void 0:C.result[0])===!0&&await c(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(E)),!0):!1})):!1).catch(d=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",d),!1))}},Nn=async(e,c,p,s,t,a,N,l)=>{var E,y,B,F;let g=Me(s),m=Qe(t,g);if(m){let M=bt,v=new Je(m),I=l&&((E=M[l])!=null&&E.Custody)&&((B=(y=Pe[l])==null?void 0:y.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new it(z)),L=new xt(D,M[I].Custody);return L?await L.checkQuorum(e,c,e,a).then(async b=>{var A,V;return(b==null?void 0:b.status)===0&&((A=b==null?void 0:b.response)!=null&&A.result)&&((V=b==null?void 0:b.response)==null?void 0:V.result[0])===!0?await L.getShards(e,c,a).then(async k=>{var d,i,O,C;if((k==null?void 0:k.status)===0&&((d=k==null?void 0:k.response)!=null&&d.result)){let P=(i=k==null?void 0:k.response)==null?void 0:i.result.filter(j=>j!=="");if(P.length>1){let j=Me(s),ne=P.map(H=>Qe(H,j)).map(H=>new Uint8Array(H.split(",").map(Number))),J=await Gn(ne),Q=new TextDecoder().decode(J);if(Q){let H=Me(s),oe=Ze(Q,H),R=new Je(Q),re=await R.getAddress(),S=R.setProvider(new it(z)),te=(await $n({chains:[Yn,qn,Qn,Jn,Zn,Xn],transports:[at(),at(),at(),at(),at(),at()],signer:S})).addressOn(I);return(O=chrome==null?void 0:chrome.storage)!=null&&O.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:te,regAddress:re,vaultId:p,hashedVaultId:e,pk:oe,channel:N})})):!((C=chrome==null?void 0:chrome.storage)!=null&&C.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:te,regAddress:re,vaultId:p,hashedVaultId:e,pk:oe,channel:N}))),!0}}else return!1}else return!1}).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",b),!1)):!1}},Rn=async(e,c,p,s)=>await s.resetPin(e,c,p).then(async t=>(t==null?void 0:t.status)===0?await s.confirmParticipant(e,p,e,p,!0).then(N=>(N==null?void 0:N.status)===0?{}:null):null);var ta=e=>{var D,L,b,A,V,k;let[c,p]=Pt(!1),[s,t]=Pt(60),[a,N]=Pt(!1),[l,g]=Pt(""),{pk:m,vaultContract:E,address:y}=Le();ea(()=>{if(s===0)return;let d=setInterval(()=>{t(i=>i-1)},1e3);return()=>clearInterval(d)},[s]);let B=d=>{if(d.value.length>0){let i=d.nextElementSibling;i&&i.focus()}else d.value.length===0&&d.focus()},F=d=>{let i=d.clipboardData.getData("text"),O=i==null?void 0:i.replace(/\D/g,""),C=document.getElementsByClassName("otp-input");if((C==null?void 0:C.length)===4&&(O==null?void 0:O.length)>0)for(let P=0;P<C.length;P++)O[P]&&(C[P].value=O[P],C[P].focus())},M=d=>{let i=d.target.previousElementSibling;i&&i.focus()},v=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),i=document.getElementById("verified-custd-mdl-otp-input-1"),O=document.getElementById("verified-custd-mdl-otp-input-2"),C=document.getElementById("verified-custd-mdl-otp-input-3"),P=document.getElementById("verified-custd-mdl-otp-input-4");d&&(i==null?void 0:i.value.length)>0&&(O==null?void 0:O.value.length)>0&&(C==null?void 0:C.value.length)>0&&(P==null?void 0:P.value.length)>0&&!a?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},I=async()=>{var d,i,O,C,P,j,ie,ne,J,Q;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let H=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,oe=document.getElementById("verified-custd-mdl-otp-input-1"),R=document.getElementById("verified-custd-mdl-otp-input-2"),re=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");if(((O=oe==null?void 0:oe.value)==null?void 0:O.length)>0&&((C=R==null?void 0:R.value)==null?void 0:C.length)>0&&((P=re==null?void 0:re.value)==null?void 0:P.length)>0&&((j=o==null?void 0:o.value)==null?void 0:j.length)>0&&H&&m&&E||((ie=oe==null?void 0:oe.value)==null?void 0:ie.length)>0&&((ne=R==null?void 0:R.value)==null?void 0:ne.length)>0&&((J=re==null?void 0:re.value)==null?void 0:J.length)>0&&((Q=o==null?void 0:o.value)==null?void 0:Q.length)>0&&H&&e.noContract){e.setIsLoading(!0);let S=(oe==null?void 0:oe.value)+(R==null?void 0:R.value)+(re==null?void 0:re.value)+(o==null?void 0:o.value);await e.helperFunctions.checkOTPVerification(y,H,String(S)).then(async ee=>{if(ee){let te=fe(H),K=!1;if(e.noContract||(K=await hn(E,te)),K===null){g("Unexpected error while fetching account details. Try again later."),N(!0);return}e.setIsExistingUser&&e.setIsExistingUser(K),e.setIsLoading(!1),e.setStep("4")}else e.setIsLoading(!1),N(!0)})}}},z=async()=>{var d,i,O;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let C=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,P=((O=e.userEmail)==null?void 0:O.length)>0?"email":"sms";C&&P&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(y,P,C).then(j=>{if(e.setIsLoading(!1),j){t(60),N(!1),g("");let ie=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),J=document.getElementById("verified-custd-mdl-otp-input-3"),Q=document.getElementById("verified-custd-mdl-otp-input-4");ie.value="",ne.value="",J.value="",Q.value=""}else we("Oops something went wrong","Unexpected error")}))}};return G.createElement("div",{className:"verified-custd-mdl-startup-language"},G.createElement("div",{className:"verified-custd-mdl-startup-contact"},G.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},G.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),G.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},G.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",G.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((D=e.userNumberFmt)==null?void 0:D.length)>0?"phone number":"email address"),G.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},G.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((L=e.userNumberFmt)==null?void 0:L.length)>0&&G.createElement(G.Fragment,null,G.createElement("span",null,"(+",(b=e.selectedCountry)==null?void 0:b.area,")")," ",G.createElement("span",null," ",(A=e.userNumberFmt)==null?void 0:A.split(" ")[0])," ",G.createElement("span",null," ",(V=e.userNumberFmt)==null?void 0:V.split(" ")[1])),((k=e.userEmail)==null?void 0:k.length)>0&&G.createElement("span",null,e.userEmail)),G.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:_.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),G.createElement("div",{className:"verified-custd-mdl-otp-input-container"},G.createElement("div",{className:"verified-custd-mdl-otp-input-group"},G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},onPaste:d=>{F(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),N(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),G.createElement("div",{className:"verified-custd-mdl-otp-timer"},!a&&s>5&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},G.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),s),!a&&s<=5&&s>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},G.createElement("span",{style:{fontWeight:400}},"00:"),s),!a&&s===0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),a&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),a&&(l==null?void 0:l.length)>0&&G.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},l),!a&&s>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!a&&s===0&&l===""&&G.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),a&&l===""&&G.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!c&&G.createElement("div",{style:{height:"100px"}}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},G.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await I();else{let i=document.getElementsByClassName("verified-custd-mdl-startup-button-active");i.length>0&&(i[0].className="verified-custd-mdl-startup-button-click",await I())}},className:"verified-custd-mdl-startup-button"},"Proceed"))))},Vt=ta;import h,{useState as ze}from"react";import qe from"react";var na=e=>{var a,N;let c=e.showButton?null:setTimeout(()=>{var l,g,m,E;if(e.messageTosend)try{if((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)chrome.runtime.sendMessage(e.messageTosend,y=>{y&&e.action!=="signRecovery"&&window.close()});else if(!((g=chrome==null?void 0:chrome.runtime)!=null&&g.sendMessage)){let y=new CustomEvent((m=e.messageTosend)==null?void 0:m.type,{detail:{value:(E=e.messageTosend)==null?void 0:E.value}});window.dispatchEvent(y)}}catch(y){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",y),we("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),p=()=>{e.setStep("6")},s=()=>{chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},t=()=>{e.setShowDasboard(!0)};return qe.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},qe.createElement("div",{className:"verified-custd-mdl-success-popup-content"},qe.createElement("img",{style:{width:"90%"},src:_.successIcon,alt:"Success Icon"}),qe.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},qe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),qe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((a=e.buttonText)==null?void 0:a.length)>0&&qe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&p(),e.action==="completeRecovery"&&t()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((N=e.buttonNeutText)==null?void 0:N.length)>0&&qe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&s()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Be=na;var aa=e=>{var J,Q,H,oe,R,re;let[c,p]=ze(!1),[s,t]=ze(!1),[a,N]=ze(""),[l,g]=ze(!0),[m,E]=ze(!1),[y,B]=ze(!1),[F,M]=ze(!1),[v,I]=ze(""),[z,D]=ze(""),[L,b]=ze(!1),{address:A,pk:V,vaultContract:k,setVaultData:d,setChainId:i,vaultData:O}=Le(),C=o=>{if(o.value.length>0){let S=o.nextElementSibling;S&&S.focus()}else o.value.length===0&&o.focus()},P=o=>{let S=o.target.previousElementSibling;S&&S.focus()},j=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),S=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),te=document.getElementById("verified-custd-mdl-otp-input-3"),K=document.getElementById("verified-custd-mdl-otp-input-4"),f=document.getElementById("verified-custd-mdl-otp-input-5"),u=document.getElementById("verified-custd-mdl-otp-input-6"),Y=document.getElementById("verified-custd-mdl-otp-input-7"),q=document.getElementById("verified-custd-mdl-otp-input-8");!e.isExistingUser&&o&&(S==null?void 0:S.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(K==null?void 0:K.value.length)>0&&(f==null?void 0:f.value.length)>0&&(u==null?void 0:u.value.length)>0&&(Y==null?void 0:Y.value.length)>0&&(q==null?void 0:q.value.length)>0||e.isExistingUser&&o&&(S==null?void 0:S.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(K==null?void 0:K.value.length)>0?!e.isExistingUser&&(S==null?void 0:S.value)+(ee==null?void 0:ee.value)+(te==null?void 0:te.value)+(K==null?void 0:K.value)===(f==null?void 0:f.value)+(u==null?void 0:u.value)+(Y==null?void 0:Y.value)+(q==null?void 0:q.value)||e.isExistingUser?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",t(!0)):o.className="verified-custd-mdl-startup-button"},ie=async()=>{var o,S,ee,te,K,f,u,Y,q,ae,W,X,ge,x,U,de,ce,ue,Ve,Ee,Ae,ke,se,le,r,pe,_e,Xe,st,rt,dt,lt,ct,ut;if(!e.helperFunctions)N("No Helper Functions. Please include all helper functions in the CreatePinPage props."),t(!0);else{N(""),t(!1);let he=document.getElementById("verified-custd-mdl-otp-input-1"),ve=document.getElementById("verified-custd-mdl-otp-input-2"),ye=document.getElementById("verified-custd-mdl-otp-input-3"),be=document.getElementById("verified-custd-mdl-otp-input-4"),He=document.getElementById("verified-custd-mdl-otp-input-5"),je=document.getElementById("verified-custd-mdl-otp-input-6"),Ke=document.getElementById("verified-custd-mdl-otp-input-7"),Ge=document.getElementById("verified-custd-mdl-otp-input-8"),We=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(S=e.userNumberFmt)==null?void 0:S.replace(" ","")}`,$e=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(!e.isExistingUser&&((te=he==null?void 0:he.value)==null?void 0:te.length)>0&&((K=ve==null?void 0:ve.value)==null?void 0:K.length)>0&&((f=ye==null?void 0:ye.value)==null?void 0:f.length)>0&&((u=be==null?void 0:be.value)==null?void 0:u.length)>0&&((Y=He==null?void 0:He.value)==null?void 0:Y.length)>0&&((q=je==null?void 0:je.value)==null?void 0:q.length)>0&&((ae=Ke==null?void 0:Ke.value)==null?void 0:ae.length)>0&&((W=Ge==null?void 0:Ge.value)==null?void 0:W.length)>0&&We&&$e&&V&&A&&k||!e.isExistingUser&&((X=he==null?void 0:he.value)==null?void 0:X.length)>0&&((ge=ve==null?void 0:ve.value)==null?void 0:ge.length)>0&&((x=ye==null?void 0:ye.value)==null?void 0:x.length)>0&&((U=be==null?void 0:be.value)==null?void 0:U.length)>0&&((de=He==null?void 0:He.value)==null?void 0:de.length)>0&&((ce=je==null?void 0:je.value)==null?void 0:ce.length)>0&&((ue=Ke==null?void 0:Ke.value)==null?void 0:ue.length)>0&&((Ve=Ge==null?void 0:Ge.value)==null?void 0:Ve.length)>0&&We&&$e&&((Ee=e.vaultData)!=null&&Ee.vaultContract)&&((Ae=e.vaultData)!=null&&Ae.hashedOldPin)||e.isExistingUser&&((ke=he==null?void 0:he.value)==null?void 0:ke.length)>0&&((se=ve==null?void 0:ve.value)==null?void 0:se.length)>0&&((le=ye==null?void 0:ye.value)==null?void 0:le.length)>0&&((r=be==null?void 0:be.value)==null?void 0:r.length)>0&&We&&$e&&V&&A&&k||e.isExistingUser&&((pe=he==null?void 0:he.value)==null?void 0:pe.length)>0&&((_e=ve==null?void 0:ve.value)==null?void 0:_e.length)>0&&((Xe=ye==null?void 0:ye.value)==null?void 0:Xe.length)>0&&((st=be==null?void 0:be.value)==null?void 0:st.length)>0&&We&&$e&&((rt=e.vaultData)!=null&&rt.vaultContract)&&((dt=e.vaultData)!=null&&dt.hashedOldPin)){e.setIsLoading(!0);let Re=(he==null?void 0:he.value)+(ve==null?void 0:ve.value)+(ye==null?void 0:ye.value)+(be==null?void 0:be.value),Ct=fe(We),St=fe(Re);await vn(We,Ct,Re,St,$e,V||((lt=e.vaultData)==null?void 0:lt.pk),A||((ct=e.vaultData)==null?void 0:ct.address),k||((ut=e.vaultData)==null?void 0:ut.vaultContract),e.action,e.vaultData,e.txData).then($=>{var mt,ft;e.setIsLoading(!1),$?(d($!=null&&$.shouldStop&&($!=null&&$.vaultId)?{vaultId:$==null?void 0:$.vaultId,hashedVaultId:$==null?void 0:$.hashedVaultId,pk:$==null?void 0:$.pk,channel:$==null?void 0:$.channel}:$!=null&&$.shouldStop?{}:$),N(""),t(!1),e.action==="invitation"?(D(Re),E(!0)):e.action==="reset-pin"?((mt=chrome==null?void 0:chrome.storage)!=null&&mt.local?chrome.storage.local.remove("myVault"):!((ft=chrome==null?void 0:chrome.storage)!=null&&ft.local)&&localStorage&&localStorage.removeItem("myVault"),I("You have successfully reset your account pin. Login with the new pin"),M(!0)):$!=null&&$.shouldStop?$!=null&&$.shouldStop&&e.action!=="getPk"?(I(""),M(!0)):$!=null&&$.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):$===null?e.action==="reset-pin"?(N("Reset pin failed. Try again later."),t(!0)):(N("You are an existing user. Please input the right pin to recover your account."),t(!0)):(N("Unexpected error while creating account. Please try again later."),t(!0))})}}},ne=async o=>{var te,K,f,u,Y,q,ae,W;let S=((te=e.userEmail)==null?void 0:te.length)>0?e.userEmail:`+${e.selectedCountry.area}${(K=e.userNumberFmt)==null?void 0:K.replace(" ","")}`,ee=((f=e.userEmail)==null?void 0:f.length)>0?"email":"sms";if((z==null?void 0:z.length)===4&&((u=e==null?void 0:e.vaultData)!=null&&u.hashedVaultId)&&((Y=e.vaultData)!=null&&Y.hashedVaultPin)&&S){e.setIsLoading(!0);let X=fe(S),ge=fe(z);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,X,ge,(q=e==null?void 0:e.vaultData)==null?void 0:q.hashedVaultId,(ae=e.vaultData)==null?void 0:ae.hashedVaultPin,(W=e.vaultData)==null?void 0:W.vaultId,S,o,k).then(x=>{var U,de;e.setIsLoading(!1),x&&!(O!=null&&O.isExisting)&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(o?`You have been added as a Co-Signer for ${(U=e.vaultData)==null?void 0:U.vaultId}`:`You rejected Co-signer reject from ${(de=e.vaultData)==null?void 0:de.vaultId}`),e.setStep("5")):x&&(O!=null&&O.isExisting)&&B(!0)})}};return h.createElement(h.Fragment,null,!F&&!m&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter PIN"),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."),e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",h.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",h.createElement("span",{style:{color:"#0C0C0E"}},((J=e.userEmail)==null?void 0:J.length)>0?e.userEmail:`+${e.selectedCountry.area}${(Q=e.userNumberFmt)==null?void 0:Q.replace(" ","")}`)," ","account."))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&h.createElement("p",null),s&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:_.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:_.pinHide,alt:"hide pin icon"}))),!e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),h.createElement("input",{onInputCapture:o=>{var S;o.target.value=(S=o.target.value)==null?void 0:S.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&h.createElement("p",null),s&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:_.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:_.pinHide,alt:"hide pin icon"})))),!c&&h.createElement("div",{style:{height:"30px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await ie();else{let S=document.getElementsByClassName("verified-custd-mdl-startup-button-active");S.length>0&&(S[0].className="verified-custd-mdl-startup-button-click",await ie())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!F&&m&&h.createElement(h.Fragment,null,!y&&h.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},h.createElement("b",null,(H=e.vaultData)==null?void 0:H.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!L&&h.createElement(h.Fragment,null,h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},h.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),h.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:_.pkicon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:_.encryptedIcon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},h.createElement("button",{onClick:()=>{b(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await ne(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),L&&h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},h.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),h.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",h.createElement("b",null,(oe=e.vaultData)==null?void 0:oe.vaultId),", you will not be able to reset the PIN for them.")),h.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},h.createElement("button",{onClick:async()=>{await ne(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{b(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),y&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:L?`You rejected Co-signer reject from ${(re=e.vaultData)==null?void 0:re.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),F&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(v==null?void 0:v.length)>0?v:"You have successfully logged in your account."}))},wt=aa;import n,{useState as Ne}from"react";var ia=e=>{var S,ee,te,K;let[c,p]=Ne(!1),[s,t]=Ne("1"),[a,N]=Ne("1"),[l,g]=Ne(!1),[m,E]=Ne("email"),[y,B]=Ne(""),[F,M]=Ne(""),[v,I]=Ne(""),[z,D]=Ne(""),[L,b]=Ne(""),[A,V]=Ne(!1),[k,d]=Ne(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=Ne([]),[C,P]=Ne(!1),[j,ie]=Ne(2),[ne,J]=Ne(""),{pk:Q,vaultData:H,vaultContract:oe}=Le(),R=()=>{let f=document.getElementById("add-cosigner-button");f&&(i==null?void 0:i.length)>0?f.className="startup-button-active":f.className="startup-button"},re=()=>{var u,Y,q,ae;if(m==="sms"&&(y==null?void 0:y.length)===0){J("Invalid input, please check the phone number");return}else if(m==="sms"&&(y==null?void 0:y.length)!==10){J("Invalid input, please check the phone number");return}else if(m==="email"&&(v==null?void 0:v.length)===0){J("Invalid input, please check the email");return}else if(m==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){J("Invalid input, please check the email");return}else if(i!=null&&i.find(W=>{var X,ge,x,U;return(W==null?void 0:W.otpChannel)==="sms"?((X=W==null?void 0:W.phoneArea)==null?void 0:X.toLowerCase())+((ge=W==null?void 0:W.number)==null?void 0:ge.toLowerCase())===((x=k.area)==null?void 0:x.toLowerCase())+(F==null?void 0:F.toLowerCase()):((U=W==null?void 0:W.email)==null?void 0:U.toLowerCase())===(v==null?void 0:v.toLowerCase())})){J(m==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(m==="sms"&&((u=k==null?void 0:k.area)==null?void 0:u.toLowerCase())+(F==null?void 0:F.toLowerCase())===((Y=e.selectedCountry.area)==null?void 0:Y.toLowerCase())+((q=e.userNumberFmt)==null?void 0:q.toLowerCase())){J("Invalid input, phone number is creator's phone number");return}else if(m==="email"&&(v==null?void 0:v.toLowerCase())===((ae=e.userEmail)==null?void 0:ae.toLowerCase())){J("Invalid input, email is creator's email");return}J("");let f=i==null?void 0:i.length;O(W=>[{name:z,email:v,number:F,phoneNumber:`+${k==null?void 0:k.area}${y}`,otpChannel:m,phoneArea:k==null?void 0:k.area,position:(W==null?void 0:W.length)+1,vaultId:m==="sms"?`+${k==null?void 0:k.area}${y}`:v},...W]),I(""),D(""),B(""),M(""),b(""),f+1===4&&g(!1)},o=async()=>{var u,Y,q,ae,W,X;let f=[{otpChannel:((u=e==null?void 0:e.userEmail)==null?void 0:u.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(Y=e==null?void 0:e.selectedCountry)==null?void 0:Y.area}${(q=e==null?void 0:e.userNumberFmt)==null?void 0:q.replace(" ","")}`,vaultId:H==null?void 0:H.vaultId},...i];(f==null?void 0:f.length)>0&&(i==null?void 0:i.length)>0&&j&&(H!=null&&H.vaultId)&&(H!=null&&H.hashedVaultId)&&(H!=null&&H.vaultPin)&&(H!=null&&H.hashedVaultPin)&&oe&&Q&&((ae=e.helperFunctions)!=null&&ae.sendCoSignerInvitation)&&((W=e.helperFunctions)!=null&&W.sendCreatorConfirmation)&&(e.setIsLoading(!0),await bn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,f,i,((X=e==null?void 0:e.userEmail)==null?void 0:X.length)>0?"email":"sms",j,H.vaultId,H.hashedVaultId,H.vaultPin,H.hashedVaultPin,oe,Q).then(ge=>{e.setIsLoading(!1),ge&&e.setStep("7")}))};return n.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!c&&n.createElement(n.Fragment,null,a==="1"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.pkicon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.encryptedIcon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.supervise,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>{t("1"),p(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),n.createElement("button",{onClick:()=>{N("2"),g(!1),p(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),a==="2"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),n.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!C&&n.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},n.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((S=e.userEmail)==null?void 0:S.length)>0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((ee=e.userEmail)==null?void 0:ee.length)===0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!C&&i.sort((f,u)=>(f==null?void 0:f.position)-(u==null?void 0:u.position)).map((f,u)=>{var Y,q;return n.createElement("div",{key:u,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(Y=gt[f==null?void 0:f.position])==null?void 0:Y.split(" ")[0],n.createElement("sup",null,(q=gt[f==null?void 0:f.position])==null?void 0:q.split(" ")[1])," ","Co-Signer")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},f==null?void 0:f.name),f.otpChannel==="email"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},f.email),f.otpChannel==="sms"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",f==null?void 0:f.phoneArea,") ",f.number))),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},n.createElement("img",{style:{cursor:"pointer"},src:_.editBlack,alt:"edit"}),n.createElement("img",{onClickCapture:()=>{O(ae=>{var W;return(W=ae==null?void 0:ae.filter(X=>{var ge,x,U,de,ce,ue;return(X==null?void 0:X.otpChannel)==="sms"?((ge=X==null?void 0:X.phoneArea)==null?void 0:ge.toLowerCase())+((x=X==null?void 0:X.number)==null?void 0:x.toLowerCase())!==((U=f==null?void 0:f.phoneArea)==null?void 0:U.toLowerCase())+((de=f==null?void 0:f.number)==null?void 0:de.toLowerCase()):((ce=X==null?void 0:X.email)==null?void 0:ce.toLowerCase())!==((ue=f==null?void 0:f.email)==null?void 0:ue.toLowerCase())}))==null?void 0:W.map((X,ge)=>(X.position=ge+1,X))})},onClick:()=>{R()},style:{cursor:"pointer"},src:_.delete,alt:"delete"}))))})),C&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),n.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("div",{style:u+1===j?{}:{height:"0",width:"0",overflow:"hidden"},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(u+1))," "),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:_.pointer,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},n.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:_.sliderDot,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("p",{style:u===(i==null?void 0:i.length)?{paddingRight:"12px"}:u===0?{paddingLeft:"12px"}:{},onClick:()=>{u+1>1&&ie(u+1)},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1)))))),n.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",await o();else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click"),await o()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&n.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(te=gt[(i==null?void 0:i.length)+1])==null?void 0:te.split(" ")[0],n.createElement("sup",null,(K=gt[(i==null?void 0:i.length)+1])==null?void 0:K.split(" ")[1])," ","Co-Signer"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},n.createElement("input",{onInput:f=>{D(f.target.value)},value:z,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{E("sms"),J(""),I("")},src:m==="sms"?_.selectClicked:_.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{E("email"),J(""),B(""),M(""),b("")},src:m==="email"?_.selectClicked:_.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},m==="sms"&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},n.createElement("div",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-first-section"},n.createElement("img",{onClick:()=>{V(!A)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:k.flag}),n.createElement("p",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",k.area),A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),n.createElement("input",{onInputCapture:f=>{var q;f.target.value===""?b(L+" "):b(f.target.value);let u=(q=f.target.value)==null?void 0:q.replace(/\D/g,"");B(u);let Y="";for(let ae=0;ae<(u==null?void 0:u.length);ae++)Y+=u[ae],(ae+1)%5===0&&ae+1<(u==null?void 0:u.length)&&(Y+=" ");M(Y),J("")},onInput:f=>{R()},value:F,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),A&&n.createElement(At,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:R,setSelected:d,selected:k,searchActive:A,setSearchActive:V,contentMaxHeight:"300",contentbottomMargin:"300"}),ne===""&&y.length!==10&&L.length>10&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))),m==="email"&&n.createElement(n.Fragment,null,n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("input",{style:{width:"100%"},onInputCapture:f=>{I(f.target.value),J("")},onInput:f=>{R()},value:v,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},n.createElement("button",{onClick:()=>g(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),n.createElement("button",{onClickCapture:()=>{re()},onClick:()=>R(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!C&&(i==null?void 0:i.length)<4&&n.createElement("div",{onClick:()=>g(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},n.createElement("img",{style:{width:"20px"},src:_.addIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!C&&(i==null?void 0:i.length)===4&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},n.createElement("img",{style:{width:"20px"},src:_.addDisableIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!C&&n.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},id:"add-cosigner-button",onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),P(!0),g(!1));else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),P(!0),g(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),c&&n.createElement(n.Fragment,null,s==="1"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon2,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>p(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="2"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon3,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="3"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon4,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>{N("2"),g(!1),p(!1),t("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},Nt=ia;import w,{useEffect as oa,useState as Ce}from"react";import{ethers as sa}from"ethers";var ra=e=>{var q,ae,W,X,ge;let[c,p]=Ce(e.fontsLoaded||!1),[s,t]=Ce(!1),[a,N]=Ce(!0),[l,g]=Ce(!1),[m,E]=Ce(!1),[y,B]=Ce(null),[F,M]=Ce(null),[v,I]=Ce(e.newChainId||Oe),[z,D]=Ce(!1),[L,b]=Ce(!1),[A,V]=Ce(!1),[k,d]=Ce(!1),[i,O]=Ce(!1),[C,P]=Ce(""),[j,ie]=Ce(!1),[ne,J]=Ce({}),{setChainId:Q,setAddress:H,setPk:oe,setProvider:R,setSigner:re,setVaultContract:o,setVaultData:S}=Le();oa(()=>{let x=()=>{let U=tt(document);p(U)};e.fontsLoaded||x()},[]);let ee=x=>{if(x.value.length>0){let U=x.nextElementSibling;U&&U.focus()}else x.value.length===0&&x.focus()},te=x=>{let U=x.clipboardData.getData("text"),de=U==null?void 0:U.replace(/\D/g,""),ce=document.getElementsByClassName("otp-input");if((ce==null?void 0:ce.length)===4&&(de==null?void 0:de.length)>0)for(let ue=0;ue<ce.length;ue++)de[ue]&&(ce[ue].value=de[ue],ce[ue].focus())},K=x=>{let U=x.target.previousElementSibling;U&&U.focus()},f=()=>{let x=document.getElementById("verified-custd-mdl-otp-button"),U=document.getElementById("verified-custd-mdl-otp-input-1"),de=document.getElementById("verified-custd-mdl-otp-input-2"),ce=document.getElementById("verified-custd-mdl-otp-input-3"),ue=document.getElementById("verified-custd-mdl-otp-input-4");x&&(U==null?void 0:U.value.length)>0&&(de==null?void 0:de.value.length)>0&&(ce==null?void 0:ce.value.length)>0&&(ue==null?void 0:ue.value.length)>0&&!s?x.className="verified-custd-mdl-startup-button-active":x.className="verified-custd-mdl-startup-button"},u=async()=>{var x,U,de,ce,ue,Ve;if(!e.helperFunctions)P("No Helper Functions. Please include all helper functions in the EnterPinPage props."),t(!0);else{P(""),t(!1);let Ee=document.getElementById("verified-custd-mdl-otp-input-1"),Ae=document.getElementById("verified-custd-mdl-otp-input-2"),ke=document.getElementById("verified-custd-mdl-otp-input-3"),se=document.getElementById("verified-custd-mdl-otp-input-4");if(((x=Ee==null?void 0:Ee.value)==null?void 0:x.length)>0&&((U=Ae==null?void 0:Ae.value)==null?void 0:U.length)>0&&((de=ke==null?void 0:ke.value)==null?void 0:de.length)>0&&((ce=se==null?void 0:se.value)==null?void 0:ce.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let le=(Ee==null?void 0:Ee.value)+(Ae==null?void 0:Ae.value)+(ke==null?void 0:ke.value)+(se==null?void 0:se.value);await yn(e.vaultId,e.hashedVaultId,le,fe(le),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(v),(Ve=ln)==null?void 0:Ve.includes((ue=e.origin)==null?void 0:ue.toLowerCase())).then(async r=>{var pe,_e,Xe,st,rt,dt,lt,ct,ut,he,ve,ye,be,He,je,Ke,Ge,We,$e,Re,Ct,St,$,mt,ft,Ot,Mt,zt,Ht,jt,Kt,Gt,Wt,$t,Yt,Zt,Jt,qt,Xt,Qt,Rt,en,tn,nn,an,on;if(r&&!(r!=null&&r.inCompleteVault))e.setIsLoading(!1),B(r),M(r!=null&&r.pk&&e.action!=="eth_requestAccounts"?{address:r.address,channel:r.channel,chainId:r.chainId,pk:r==null?void 0:r.pk}:{address:e.regAddress,channel:r.channel,chainId:r.chainId}),e.action==="getPk"&&((_e=(pe=e.reqVaultData)==null?void 0:pe.vaultId)==null?void 0:_e.toLowerCase())===((Xe=e.vaultId)==null?void 0:Xe.toLowerCase())?(e.setIsLoading(!0),await xn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),(Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),Fe?E(!0):(P("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),t(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await wn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(st=e.reqVaultData)==null?void 0:st.vaultId,(rt=e.reqVaultData)==null?void 0:rt.hashedVaultId,(dt=e.reqVaultData)==null?void 0:dt.hashedVaultPin,(lt=e.reqTxData)==null?void 0:lt.id,Number(v)).then(async Fe=>{var Te,Ue,sn,rn;e.setIsLoading(!1),!((Te=e.reqTxData)!=null&&Te.newUser)&&((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((sn=e.reqTxData)!=null&&sn.newUser)&&!((rn=chrome==null?void 0:chrome.storage)!=null&&rn.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Fe?E(!0):(P("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),t(!0))})):e.action==="completeRecovery"&&((ut=(ct=e.reqVaultData)==null?void 0:ct.vaultId)==null?void 0:ut.toLowerCase())===((he=e.vaultId)==null?void 0:he.toLowerCase())?(e.setIsLoading(!0),await Nn(e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(ve=e.reqTxData)==null?void 0:ve.id,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),Fe?E(!0):((Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),P("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),t(!0))})):e.action==="eth_sendTransaction"&&((ye=e.encrptedPk)==null?void 0:ye.length)>0&&((be=r==null?void 0:r.pin)==null?void 0:be.length)>0&&e.signTxElement?(J({chainId:v,ky:sa.encodeBytes32String(r==null?void 0:r.pin),...e.txToSign}),b(!1),ie(!0)):e.action==="invitation"&&((je=(He=e.reqVaultData)==null?void 0:He.vaultId)==null?void 0:je.toLowerCase())!==((Ke=e.vaultId)==null?void 0:Ke.toLowerCase())&&((We=(Ge=e.reqVaultData)==null?void 0:Ge.coSignerId)==null?void 0:We.toLowerCase())===(($e=e.vaultId)==null?void 0:$e.toLowerCase())?(P(""),t(!1),b(!0)):e.action==="invitation"&&((Ct=(Re=e.reqVaultData)==null?void 0:Re.vaultId)==null?void 0:Ct.toLowerCase())===((St=e.vaultId)==null?void 0:St.toLowerCase())?(P(`You cannot accept your own Co-Signer invitation. please logout and login to: ${($=e.reqVaultData)==null?void 0:$.coSignerId} account`),t(!0)):e.action==="invitation"&&((ft=(mt=e.reqVaultData)==null?void 0:mt.coSignerId)==null?void 0:ft.toLowerCase())!==((Ot=e.vaultId)==null?void 0:Ot.toLowerCase())?(P(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Mt=e.reqVaultData)==null?void 0:Mt.coSignerId} account`),t(!0)):e.action==="getPk"&&((Ht=(zt=e.reqVaultData)==null?void 0:zt.vaultId)==null?void 0:Ht.toLowerCase())!==((jt=e.vaultId)==null?void 0:jt.toLowerCase())?((Kt=chrome==null?void 0:chrome.storage)!=null&&Kt.local?await chrome.storage.local.remove("myVault"):!((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to fetch account details. please logout and login to: ${(Wt=e.reqVaultData)==null?void 0:Wt.vaultId} account`),t(!0)):e.action==="completeRecovery"&&((Yt=($t=e.reqVaultData)==null?void 0:$t.vaultId)==null?void 0:Yt.toLowerCase())!==((Zt=e.vaultId)==null?void 0:Zt.toLowerCase())?((Jt=chrome==null?void 0:chrome.storage)!=null&&Jt.local?await chrome.storage.local.remove("myVault"):!((qt=chrome==null?void 0:chrome.storage)!=null&&qt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to restore login access for this account. please logout and login to: ${(Xt=e.reqVaultData)==null?void 0:Xt.vaultId} account`),t(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)||e.action==="eth_requestAccounts"&&!(e!=null&&e.vaultAddress)?(P("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),t(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(P("Incomplete account login detected. Logout and try again later"),t(!0)):(P(""),t(!1),E(!0));else if(r&&(r!=null&&r.inCompleteVault)&&(r!=null&&r.pk)){let Fe=await nt(Number(v),r==null?void 0:r.pk);if(Q(Fe.chainId),H(Fe.address),oe(Fe.pk),R(Fe.provider),re(Fe.signer),o(Fe.vaultContract),S({vaultId:r==null?void 0:r.vaultId,hashedVaultId:r==null?void 0:r.hashedVaultId,vaultPin:r==null?void 0:r.pin,hashedVaultPin:fe(r==null?void 0:r.pin),vaultContract:Fe.vaultContract}),((Qt=r==null?void 0:r.channel)==null?void 0:Qt.toLowerCase())==="sms"){let Te=(en=r==null?void 0:r.vaultId)==null?void 0:en.replace((Rt=r==null?void 0:r.vaultId)==null?void 0:Rt.slice(-10),""),Ue=((nn=(tn=r==null?void 0:r.vaultId)==null?void 0:tn.slice(-10))==null?void 0:nn.slice(0,5))+" "+((on=(an=r==null?void 0:r.vaultId)==null?void 0:an.slice(-10))==null?void 0:on.slice(5));e.setSelectedCountry({area:Te==null?void 0:Te.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ue),e.setUserEmail("")}else e.setUserEmail(r==null?void 0:r.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else P(""),t(!0),e.setIsLoading(!1)})}}},Y=async x=>{var de,ce,ue,Ve,Ee,Ae,ke,se,le;let U=e.vaultId;if(((de=y==null?void 0:y.pin)==null?void 0:de.length)>0&&((ce=y==null?void 0:y.pk)==null?void 0:ce.length)>0&&((ue=e==null?void 0:e.reqVaultData)!=null&&ue.hashedVaultId)&&((Ve=e.reqVaultData)!=null&&Ve.hashedVaultPin)&&U&&((Ee=e.helperFunctions)!=null&&Ee.sendCreatorAcceptance)&&((Ae=e.helperFunctions)!=null&&Ae.sendCreatorRejection)){e.setIsLoading(!0);let r=y.pin,pe=fe(U),_e=fe(r);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,pe,_e,(ke=e==null?void 0:e.reqVaultData)==null?void 0:ke.hashedVaultId,(se=e.reqVaultData)==null?void 0:se.hashedVaultPin,(le=e==null?void 0:e.reqVaultData)==null?void 0:le.vaultId,U,x,null,y.pk,Number(v)).then(Xe=>{e.setIsLoading(!1),Xe&&(O(x),V(!0))})}};return w.createElement(w.Fragment,null,c&&!L&&!j&&w.createElement(w.Fragment,null,!m&&w.createElement("div",{className:"verified-custd-mdl-startup-language"},w.createElement("div",{className:"verified-custd-mdl-startup-contact"},w.createElement(De,{sliderCount:[1],currentSlider:"0"}),w.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},w.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},w.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),w.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},w.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",w.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",w.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),w.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&w.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),w.createElement("div",{className:"verified-custd-mdl-otp-input-container"},w.createElement("div",{className:"verified-custd-mdl-otp-input-group"},w.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&K(x)},onPaste:x=>{te(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),w.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&K(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),w.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&K(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),w.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&K(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),w.createElement("div",{className:"verified-custd-mdl-otp-timer"},s&&C===""&&w.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(C==null?void 0:C.length)>0&&w.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},C),!s&&w.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!a&&w.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!0),src:_.pinShow,alt:"show pin icon"}),a&&w.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!1),src:_.pinHide,alt:"hide pin icon"})))),!l&&w.createElement("div",{style:{height:"100px"}}),w.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},w.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},w.createElement(pn,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),w.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async x=>{if(x.target.className.includes("verified-custd-mdl-startup-button")&&x.target.className!=="verified-custd-mdl-startup-button")x.target.className="verified-custd-mdl-startup-button-click",await u();else{let U=document.getElementsByClassName("verified-custd-mdl-startup-button-active");U.length>0&&(U[0].className="verified-custd-mdl-startup-button-click",await u())}},className:"verified-custd-mdl-startup-button"},"Proceed")))),m&&w.createElement(Be,{messageTosend:e.action==="getPk"?{type:"closePopup",key:"",value:""}:e.action==="signRecovery"?{type:"closePopup",key:"",value:""}:e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:F},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${(q=e.reqVaultData)==null?void 0:q.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"||e.action==="eth_requestAccounts"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `,showButton:e.action==="completeRecovery",buttonText:e.action==="completeRecovery"?"Go To Dashboard":"",setShowDasboard:e.setShowDashboard,actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:""})),c&&L&&!j&&w.createElement(w.Fragment,null,!A&&w.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},w.createElement("div",{className:"verified-custd-mdl-startup-contact"},w.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),w.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},w.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},w.createElement("b",null,(ae=e.reqVaultData)==null?void 0:ae.vaultId)," has requested you to be a Co-Signer"))),w.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!k&&w.createElement(w.Fragment,null,w.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},w.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),w.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),w.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},w.createElement("img",{src:_.pkicon,alt:"icon"})),w.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",w.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),w.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},w.createElement("img",{src:_.encryptedIcon,alt:"icon"})),w.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",w.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),w.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},w.createElement("button",{onClick:()=>{d(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),w.createElement("button",{onClick:async()=>{await Y(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),k&&w.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},w.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},w.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),w.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",w.createElement("b",null,(W=e.reqVaultData)==null?void 0:W.vaultId),", you will not be able to reset the PIN for them.")),w.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},w.createElement("button",{onClick:async()=>{await Y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),w.createElement("button",{onClick:()=>{d(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),A&&w.createElement(Be,{messageTosend:{type:"getPk",key:"vaultData",value:y},customTextHeader:"Successful",customTextFooter:i?`You have been added as a Co-Signer for ${(X=e.reqVaultData)==null?void 0:X.vaultId}`:`You rejected Co-signer reject from ${(ge=e.reqVaultData)==null?void 0:ge.vaultId}`})),c&&!L&&j&&w.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ne}),!c&&w.createElement("h3",null,"Preparing Modules..."))},ot=ra;var la=e=>{var ee,te;let[c,p]=Ie(e.fontsLoaded||!1),[s,t]=Ie(e.showLogoPage||!1),[a,N]=Ie([]),[l,g]=Ie("2"),[m,E]=Ie(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[y,B]=Ie(""),[F,M]=Ie(""),[v,I]=Ie(!1),[z,D]=Ie(""),[L,b]=Ie(""),[A,V]=Ie(""),[k,d]=Ie(""),[i,O]=Ie(null),[C,P]=Ie(null),[j,ie]=Ie(!1),{setChainId:ne,setAddress:J,setPk:Q,setProvider:H,setSigner:oe,setVaultContract:R,setVaultData:re,vaultData:o,chainId:S}=Le();return _t(()=>{let K=()=>{let f=tt(document);p(f)};e.fontsLoaded||K()},[]),_t(()=>{(async()=>{var Y,q;let f;(Y=chrome==null?void 0:chrome.storage)!=null&&Y.local?f=await new Promise(ae=>{chrome.storage.local.get(["lastPk"],W=>{ae(W.lastPk)})}):!((q=chrome==null?void 0:chrome.storage)!=null&&q.local)&&localStorage&&(f=localStorage.getItem("lastPk"));let u=await nt(e.chainId,f&&(f==null?void 0:f.length)>0?f:void 0);ne(u.chainId),J(u.address),Q(u.pk),H(u.provider),oe(u.signer),R(u.vaultContract),re(u.vaultData)})()},[]),_t(()=>{da(()=>{t(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),_t(()=>{(()=>{let f=Et.map(u=>{if(u)return{name:u==null?void 0:u.name,countryName:u==null?void 0:u.name,officialName:u==null?void 0:u.name,currencySymbol:u==null?void 0:u.currency,currencyName:u==null?void 0:u.currency,officialCurrencySymbol:u==null?void 0:u.currency,countryCode:u==null?void 0:u.code,flag:u==null?void 0:u.flag,continent:u==null?void 0:u.continent,phone_code:u==null?void 0:u.phone_code,code:u==null?void 0:u.code}}).flat();N(f==null?void 0:f.filter(u=>u!==void 0))})()},[]),xe.createElement(xe.Fragment,null,c&&s&&e.logoPageElement&&xe.createElement(xe.Fragment,null," ",e.logoPageElement),c&&!s&&xe.createElement(xe.Fragment,null,l==="2"&&xe.createElement(Bt,{setStep:g,setIsLoading:e.setIsLoading,setUserNumberFmt:B,userNumberFmt:y,setUserEmail:M,userEmail:F,setSelectedCountry:E,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="3"&&xe.createElement(Vt,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:y,setUserNumberFmt:B,setUserEmail:M,userEmail:F,selectedCountry:m,helperFunctions:e.helperFunctions,setIsExistingUser:ie}),l==="4"&&xe.createElement(wt,{setStep:g,setIsLoading:e.setIsLoading,setShowSuccessBtn:I,setSuccessBtnText:D,setSuccessBtnNeutText:b,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:P,userNumberFmt:y,userEmail:F,selectedCountry:m,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:V,setActionFooterText:d,helperFunctions:e.helperFunctions,isExistingUser:j}),l==="5"&&xe.createElement(Be,{setStep:g,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:v,buttonText:z,buttonNeutText:L,buttonFunc:i,buttonNeutFunc:C,actionHeaderText:A,actionFooterText:k}),l==="6"&&xe.createElement(Nt,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:y,userEmail:F,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="7"&&e.action===""&&xe.createElement(Be,{action:e.action,setStep:g,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&xe.createElement(Be,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:S}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&xe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),l==="8"&&!e.dashbordElement&&xe.createElement(xe.Fragment,null),l==="0"&&xe.createElement(ot,{fontsLoaded:c,vaultId:o==null?void 0:o.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:o==null?void 0:o.hashedVaultId,encrptedPk:o==null?void 0:o.pk,vaultAddress:o==null?void 0:o.address,vaultChannel:o==null?void 0:o.channel,actionText:pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(S||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(K=>(e.txData[K]=decodeURIComponent(e.txData[K]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:M,setUserNumberFmt:B,setSelectedCountry:E,enablePhone:e.enablePhone})),!c&&xe.createElement("h3",null,"Preparing Modules..."))},Ut=la;import{motion as ca}from"framer-motion";var ua=e=>{var Q,H,oe,R,re,o,S,ee,te,K,f,u,Y,q,ae,W,X,ge,x,U,de,ce,ue,Ve,Ee,Ae,ke;let[c,p]=Se(!0),[s,t]=Se(null),[a,N]=Se({}),[l,g]=Se({}),[m,E]=Se(!1),[y,B]=Se(!1),[F,M]=Se(!1),[v,I]=Se(!1),[z,D]=Se(""),[L,b]=Se([]),[A,V]=Se(""),[k,d]=Se(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=Se(""),[C,P]=Se(""),[j,ie]=Se(null),[ne,J]=Se(null);return Ft(()=>{(()=>{let le=tt(document);p(le)})()},[]),Ft(()=>{(()=>{var le,r;if((le=chrome==null?void 0:chrome.storage)!=null&&le.local)chrome.storage.local.get("myVault",pe=>{var _e;pe.myVault&&((_e=JSON.parse(pe.myVault))!=null&&_e.vaultId)?(N(JSON.parse(pe.myVault)),t(!0)):t(!1)});else if(!((r=chrome==null?void 0:chrome.storage)!=null&&r.local)&&localStorage){let pe=JSON.parse(localStorage.getItem("myVault"));pe&&(pe!=null&&pe.vaultId)?(N(pe),t(!0)):t(!1)}else t(!1)})()},[]),Ft(()=>{(()=>{let le=Et.map(r=>{if(r)return{name:r==null?void 0:r.name,countryName:r==null?void 0:r.name,officialName:r==null?void 0:r.name,currencySymbol:r==null?void 0:r.currency,currencyName:r==null?void 0:r.currency,officialCurrencySymbol:r==null?void 0:r.currency,countryCode:r==null?void 0:r.code,flag:r==null?void 0:r.flag,continent:r==null?void 0:r.continent,phone_code:r==null?void 0:r.phone_code,code:r==null?void 0:r.code}}).flat();b(le==null?void 0:le.filter(r=>r!==void 0))})()},[]),Ft(()=>{function se(){var r,pe,_e;let le=document.querySelector("#verified-custd-out-cont");le?(ie((pe=(r=le.getBoundingClientRect())==null?void 0:r.height)==null?void 0:pe.toString()),ie((_e=le.scrollHeight)==null?void 0:_e.toString())):(ie(null),J(null))}return se(),window.addEventListener("resize",se),()=>window.removeEventListener("resize",se)},[]),me.createElement(me.Fragment,null,c&&me.createElement(Dt,null,me.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},s===null&&e.delayPageElement&&me.createElement(me.Fragment,null,e.delayPageElement," "),s===null&&!e.delayPageElement&&me.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),m&&me.createElement("div",{style:j&&ne&&window&&Number(ne)>window.innerHeight?{height:`${Number(j)+Number(ne)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},me.createElement(ca.img,{height:"50px",width:"50px",src:_.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),s!==null&&me.createElement(me.Fragment,null,!s&&me.createElement(Ut,{fontsLoaded:c,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((Q=e.reqVaultData)==null?void 0:Q.vId)||((H=e.reqVaultData)==null?void 0:H.vaultId)),hashedVaultId:fe(decodeURIComponent(((oe=e.reqVaultData)==null?void 0:oe.vId)||((R=e.reqVaultData)==null?void 0:R.vaultId))),hashedVaultPin:decodeURIComponent(((re=e.reqVaultData)==null?void 0:re.vPh)||((o=e.reqVaultData)==null?void 0:o.hashedVaultPin)),coSignerId:decodeURIComponent((S=e.reqVaultData)==null?void 0:S.cId)}:null,txData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:t,setIsLoading:E,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),s&&!y&&!F&&me.createElement(ot,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,vaultChannel:a==null?void 0:a.channel,regAddress:a==null?void 0:a.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:E,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((K=e.reqVaultData)==null?void 0:K.vId)||((f=e.reqVaultData)==null?void 0:f.vaultId)),hashedVaultId:fe(decodeURIComponent(((u=e.reqVaultData)==null?void 0:u.vId)||((Y=e.reqVaultData)==null?void 0:Y.vaultId))),hashedVaultPin:decodeURIComponent(((q=e.reqVaultData)==null?void 0:q.vPh)||((ae=e.reqVaultData)==null?void 0:ae.hashedVaultPin)),coSignerId:decodeURIComponent((W=e.reqVaultData)==null?void 0:W.cId)}:null,reqTxData:e.txData?(ge=Object.keys(e.txData))==null?void 0:ge.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((X=Object.keys(e.txData))==null?void 0:X.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),s&&y&&F&&me.createElement(ot,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,regAddress:a==null?void 0:a.regAddress,vaultChannel:a==null?void 0:a.channel,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:E,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((x=e.reqVaultData)==null?void 0:x.vId)||((U=e.reqVaultData)==null?void 0:U.vaultId)),hashedVaultId:fe(decodeURIComponent(((de=e.reqVaultData)==null?void 0:de.vId)||((ce=e.reqVaultData)==null?void 0:ce.vaultId))),hashedVaultPin:decodeURIComponent(((ue=e.reqVaultData)==null?void 0:ue.vPh)||((Ve=e.reqVaultData)==null?void 0:Ve.hashedVaultPin)),coSignerId:decodeURIComponent((Ee=e.reqVaultData)==null?void 0:Ee.cId)}:null,reqTxData:e.txData?(ke=Object.keys(e.txData))==null?void 0:ke.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((Ae=Object.keys(e.txData))==null?void 0:Ae.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),s&&!y&&F&&A===""&&me.createElement(Nt,{setStep:V,setIsLoading:E,userNumberFmt:i,userEmail:C,selectedCountry:k,allCountries:L,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),s&&!y&&F&&A==="7"&&me.createElement(Be,{action:e.action,setStep:V,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),s&&!y&&F&&A==="8"&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:E}),s&&!y&&F&&A==="8"&&!e.dashbordElement&&me.createElement(me.Fragment,null),s&&!F&&y&&!v&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:E,setShowResetPin:I,setAction:D,setUserNumberFmt:O,setUserEmail:P,setSelectedCountry:d,setVaultData:g,initWalletAndContract:nt}),s&&!F&&y&&!v&&!e.dashbordElement&&me.createElement(me.Fragment,null),s&&!F&&y&&v&&me.createElement(wt,{action:"reset-pin",setStep:V,setIsLoading:E,userNumberFmt:i,userEmail:C,vaultData:l,selectedCountry:k,helperFunctions:e.helperFunctions})))),!c&&me.createElement("h3",null,"Preparing Modules..."))},ma=ua;export{Nt as AddCoSignersPage,Bt as ContactPage,wt as CreatePinPage,ot as EnterPinPage,Ut as FTUPage,Vt as OTPPage,Dt as VaultContextProvider,ma as VerifiedCustody,Qe as decryptString,Ze as encryptString,fe as hashTheString};
1
+ var An=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var yt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var an=yt((ea,Hn)=>{Hn.exports="./Roboto-Regular-UUBD26YO.ttf"});var rn=yt((ta,On)=>{On.exports="./Manrope-Regular-33576HBZ.ttf"});var on=yt((na,Jn)=>{Jn.exports="./Hind-Regular-R5KOYWFC.ttf"});function Pn(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}Pn(`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{An("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import Fe,{forwardRef as Ln}from"react";var Fi=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Ot=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Jt=["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"],Rt="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ut={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},et={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},tt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},N={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},ut=[{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 Qt={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,At=!1,Pt,Lt,bt,_t,xt,Nt,St,Xt,Wt,jt,qt,wt,Zt,Yt=async()=>{if(At)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("Initializing React Native platform...");let t=await import("react-native"),i=await import("events");Wt=(await import("expo-font")).default;let s=await import("@react-native-async-storage/async-storage");Zt=await(await import("react-native-passkey")).Passkey,jt=s.default,qt=i.EventEmitter;let L=({className:A,id:m,...C})=>C,d=A=>m=>Fe.createElement(A,{...L(m)});Pt=d(t.View),Lt=d(t.Text),bt=d(t.Image),_t=d(t.ScrollView),xt=t.StyleSheet,Nt=d(t.TextInput),St=d(t.TouchableOpacity),Xt=d(t.ActivityIndicator),wt=t.StyleSheet.create(Qt),vt=!0,console.log("React Native platform initialized.")}else{console.log("Initializing Web platform...");let{motion:t}=await import("framer-motion");Pt=({onPress:i,...a})=>Fe.createElement("div",{onClick:i,...a}),Lt=({onPress:i,...a})=>Fe.createElement("span",{onClick:i,...a}),bt=({onPress:i,source:a,...s})=>Fe.createElement("img",{onClick:i,...s,src:a?.uri}),_t=i=>Fe.createElement("div",{style:{overflowY:"auto",...i.style}},i.children),xt={create:i=>i},wt={},Nt=Ln(({onChangeText:i,onInput:a,onKeyDown:s,onKeyPress:K,value:L,keyboardType:d,secureTextEntry:A,onSubmitEditing:m,blurOnSubmit:C,placeholderTextColor:n,...o},x)=>Fe.createElement("input",{...o,ref:x,value:L,onInput:p=>{a?.(p),i?.(p.target.value)},onKeyDown:p=>{p.key==="Enter"&&(p.preventDefault(),m?.(p)),s?.(p),K?.(p)},type:A?"password":d==="numeric"||d==="number-pad"?"tel":"text",onChange:()=>{}})),St=({onPress:i,style:a,...s})=>Fe.createElement("button",{style:{outline:"none",border:"none",...a},onClick:i,...s},s.children),Xt=({color:i,size:a,...s})=>Fe.createElement(t.img,{height:"50px",width:"50px",src:N.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...s}),vt=!1,console.log("Web platform initialized.")}At=!0},Et=()=>{if(!At)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:vt,View:Pt,Text:Lt,Image:bt,ScrollView:_t,StyleSheet:xt,TextInput:Nt,TouchableOpacity:St,ActivityIndicator:Xt,Font:Wt,AsyncStorage:jt,EventEmitter:qt,styles:wt,rnPasskey:Zt}};import U,{useEffect as ht,useState as Ke}from"react";import bn,{createContext as _n,useContext as xn,useState as Ie}from"react";var zt=_n(void 0),Tt=({children:e})=>{let[t,i]=Ie(null),[a,s]=Ie(null),[K,L]=Ie(null),[d,A]=Ie(null),[m,C]=Ie(null),[n,o]=Ie(null),[x,p]=Ie(null);return bn.createElement(zt.Provider,{value:{chainId:t,pk:a,address:K,signer:d,provider:m,vaultContract:n,vaultData:x,setChainId:i,setPk:s,setAddress:L,setSigner:A,setProvider:C,setVaultContract:o,setVaultData:p}},e)},Se=()=>{let e=xn(zt);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import he,{useEffect as kt,useState as Pe}from"react";import{debounce as Yi}from"lodash";import{contractAddress as Rn,Custody as Un,Provider as Qn,VerifiedWallet as Gt}from"@verified-network/verified-sdk";var be={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:N.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:N.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:N.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:N.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:N.baseIcon}};import{pbkdf2 as sn}from"@noble/hashes/pbkdf2";import{sha256 as mt}from"@noble/hashes/sha256";import{randomBytes as gt,utf8ToBytes as Bt,bytesToUtf8 as Wn}from"@noble/hashes/utils";import{gcm as ln}from"@noble/ciphers/aes";import $t from"crypto-js";import{toast as dn}from"react-toastify";import at from"react";import{base as jn,baseSepolia as qn,gnosis as Zn,mainnet as zn,polygon as ei,sepolia as ti}from"viem/chains";import{http as ni}from"viem";import{createPublicClient as Xn,encodeAbiParameters as wn,encodeFunctionData as Yn,pad as En,toHex as Tn,zeroAddress as it,zeroHash as Gn}from"viem";var en={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 tn={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 Mn="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",Fn="0x00000000D3254452a909E4eeD47455Af7E27C289",nn="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",Bn=0n,nt=e=>{let t=e.module||e.address,i=e.initData||e.data;if(!t||!i)throw new Error("Module or data is missing");return{module:t,data:i}},$n=e=>wn([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,Yn({abi:en.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),Vn=e=>{let{deInitData:t="0x",type:i="validator",signer:a,data:s="0x",module:K,...L}=e;return{deInitData:t,data:s,module:K,address:K,signer:a,type:i,getStubSignature:async()=>nn,signUserOpHash:async d=>await a.signMessage({message:{raw:d}}),signMessage:async d=>await a.signMessage({message:d}),...L}},Dn=e=>Vn({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:it,module:it,type:"validator",getStubSignature:async()=>nn}),In=()=>({module:it,data:Gn}),ft=async(e,t,i)=>{let a=Xn({chain:e,transport:t}),s=Dn({signer:i}),K=[],L=[],d=In(),A=[],m=it,C=Mn,n=Fn,o=[],x=$n({defaultValidator:nt(s),validators:K.map(nt),executors:L.map(nt),hook:nt(d),fallbacks:A.map(nt),registryAddress:m,bootStrapAddress:n,prevalidationHooks:o}),p=En(Tn(Bn),{size:32}),v=await a.readContract({address:C,abi:tn.abi,functionName:"computeAccountAddress",args:[x,p]});if(v?.toLowerCase()!==it?.toLowerCase())return v};var ye=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return Jt.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let K=e.createElement("link");K.rel="stylesheet",K.href=a,e.head.appendChild(K)}}),!0},ve=async e=>(await e?.loadAsync({Roboto:an(),Manrope:rn(),Hind:on()}),!0),Ue=async(e,t)=>{try{let i;if(t)i=new Gt(t);else{let o=Gt.generateMnemonic();i=Gt.importWallet(o)}let a=Rn,s=e&&a[e]?.Custody&&be[e]?.rpcUrls?.length>0?e:8453,K=be[s]?.rpcUrls[0],L=i.setProvider(new Qn(K)),d=i.privateKey,A=new Un(L,a[s]?.Custody),m=L,C=[jn,zn,Zn,ei,ti,qn].find(o=>Number(o?.id)===Number(s)),n=await ft(C,ni(),m);return{chainId:s,address:n,pk:d,signer:L,provider:K,vaultContract:A,vaultData:null}}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",i),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},ee=e=>{let t=e.toLowerCase(),i=mt(Bt(t));return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},Be=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),i=mt(t);return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},He=(e,t)=>$t.AES.encrypt(e,t).toString(),Oe=(e,t)=>{var i=$t.AES.decrypt(e,t),a=i.toString($t.enc.Utf8);return a},ii=(e,t)=>at.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},at.createElement("img",{style:{marginLeft:"5px"},src:N.errorAlert,alt:""}),at.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},at.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),at.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var _e=(e,t)=>(dn.dismiss(),dn.error(ii(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 ne=(e,t,i=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*i:(t.endsWith("px"),a)},ai=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let i=t.length/2,a=new Uint8Array(i);for(let s=0;s<i;s++){let K=t.substr(s*2,2);a[s]=parseInt(K,16)}return a},Vt=(e,t,i)=>{let a=ai(i);return{challenge:gt(32),rp:{name:e},user:{id:a,name:t,displayName:t},pubKeyCredParams:[{alg:-7,type:"public-key"},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"preferred",residentKey:"preferred"},timeout:6e4,attestation:"direct"}},Qe=()=>({challenge:gt(32),timeout:6e4,userVerification:"preferred"}),Mt=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),Ft=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),i=atob(t);return new Uint8Array([...i].map(a=>a.charCodeAt(0)))},Je=async(e,t,i)=>{let a=t instanceof Uint8Array?t:new Uint8Array(t),s=gt(8),K=Array.from(s).map(o=>o.toString(16).padStart(2,"0")).join(""),L=ee(`${i}:${K}`),d=Bt(L),A=gt(12),m=sn(mt,a,d,{c:3e5,dkLen:32}),n=ln(m,A).encrypt(Bt(e));return[Mt(d),Mt(A),Mt(n)].join(".")},Re=async(e,t)=>{let[i,a,s]=e.split(".");if(!i||!a||!s)throw new Error("Invalid encrypted data format");let K=t instanceof Uint8Array?t:new Uint8Array(t),L=Ft(i),d=Ft(a),A=Ft(s),m=sn(mt,K,L,{c:3e5,dkLen:32}),C=ln(m,d);try{let n=C.decrypt(A);return Wn(n)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import re,{useEffect as si,useState as We}from"react";import cn from"react";var ri=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,o=Number(e.currentSlider),x=e.sliderCount?.length||0,p=x>0?100/x:0;return cn.createElement(i,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden"}},e.sliderCount?.map((v,y)=>{let k=y<=o;return cn.createElement(i,{key:y,className:k?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&k?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${p}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${p}%`}:!t&&k?{width:`${p}%`}:{width:`${p}%`}})}))},xe=ri;import ke,{useState as oi}from"react";var di=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=oi(null),p=h=>{if(h===""){x(null);return}let f=e.searchContent.filter(g=>{let c=g?.name?.toLowerCase(),P=h.toLowerCase();if(c?.includes(P))return g.searched=P,g.nameArray=g.name.split(""),g});x(f),e.handleButtonDisplay()},v=(h,f)=>{e.type==="area-code"?e.setSelected({area:h.phone_code,flag:h.flag,name:h.name}):e.type==="language"&&e.setSelected(h.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},y=(h,f)=>h.map((g,c)=>{let P=f.includes(g.toLowerCase());return ke.createElement(a,{key:c,style:P?n.boldText:n.fadedText},g)}),k=(h,f=!1)=>h.map((g,c)=>{let P=t?!1:window?.location?.search===`?${c}`,E=e.selected&&e.selected.length>0,j=e.type==="language"&&P?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return ke.createElement(d,{key:c,className:j,style:n.resultItem,onPress:()=>v(g,c)},ke.createElement(i,{style:n.resultInner},ke.createElement(s,{source:{uri:e.type==="language"?g.icon:g.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),ke.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},g.nameArray&&g.searched?y(g.nameArray,g.searched):g.name,e.type==="language"&&g.label&&ke.createElement(a,{style:g.searched?.includes(g.label.toLowerCase())?{}:n.fadedText},` (${g.label})`))),e.type==="language"&&E&&P&&ke.createElement(s,{source:{uri:N.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return ke.createElement(i,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},ke.createElement(i,{className:"verified-custd-mdl-st-language-content"},e.headerText&&ke.createElement(a,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),ke.createElement(i,{className:"verified-custd-mdl-mobille-startup-search-box-container"},ke.createElement(i,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},ke.createElement(s,{source:{uri:N.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),ke.createElement(L,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:p,onFocus:()=>e.type==="language"&&e.setSelected("")})),ke.createElement(K,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},ke.createElement(i,{className:"verified-custd-mdl-ms-search-content-container"},(o||e.searchContent)?.length>0&&k(o||e.searchContent))))))},pt=di;import rt from"react";var un=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform;return rt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",rt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",rt.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},fn=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,o=async()=>{e.setIsLoading(!0);try{!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage?(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")):t&&C&&(await C.removeItem("myVault"),await C.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return rt.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:ne(t,"0.7rem")}:{fontSize:ne(t,"0.7rem")}},"Want to access a different account? Click"," ",rt.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:o},"Logout")," ","to logout and login/create another account")};var li=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=We(e.fontsLoaded||!1),[p,v]=We(""),[y,k]=We(""),[h,f]=We(!1),[g,c]=We(""),[P,E]=We(!1),{pk:j,vaultContract:oe,address:q}=Se();si(()=>{let W=async()=>{if(t)m&&await ve(m),x(!0);else{let H=ye(document);x(H)}};e.fontsLoaded||W()},[]);let Q=()=>{e.selectedCountry.area&&p.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),E(!0)):(c(""),E(!1))},te=async()=>{if(e.userEmail===""&&p===""){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 W=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${p}`,H=e.userEmail?.length>0?"email":"sms";if(W&&H&&j&&oe||W&&H&&e.noContract){e.setIsLoading(!0);try{let z=await e.helperFunctions.sendOTPVerification(q,H,W);e.setIsLoading(!1),z?(c(""),e.setStep("3")):(c(H==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),_e("OTP Error",H==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return re.createElement(K,{style:{width:"100%",height:"100%"}},o&&re.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},re.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},re.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),re.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},re.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&re.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},re.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},re.createElement(d,{onPress:()=>f(!h),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},re.createElement(s,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),re.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),re.createElement(s,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:h?{uri:N.arrowUp}:{uri:N.arrowDown}})),re.createElement(L,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:W=>{let H=W.replace(/\D/g,"");k(W),v(H);let z="";for(let ie=0;ie<H?.length;ie++)z+=H[ie],(ie+1)%5===0&&ie+1<H?.length&&(z+=" ");e.setUserNumberFmt(z),Q()}})),h&&re.createElement(pt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:h,setSearchActive:f,contentMaxHeight:"300",contentbottomMargin:"300"}),p.length!==10&&y.length>10&&!g&&re.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!h&&re.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},re.createElement(L,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:W=>{e.setUserEmail(W),e.setUserNumberFmt(""),v(""),k(""),Q()}}),g&&e.userEmail.length>0&&re.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},g))),!h&&re.createElement(i,{style:{height:"80px"}}),re.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},re.createElement(un,{platform:e.platform}),re.createElement(d,{style:t&&P?{...n.verifiedCustdMdlStartupButtonActive}:t&&!P?{...n.verifiedCustdMdlStartupButton}:{},className:P?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:te},re.createElement(a,null,"Get OTP"))))),!o&&re.createElement(a,null,"Loading Module Fonts..."))},Dt=li;import F,{useEffect as yn,useRef as yi,useState as qe}from"react";import{AbiCoder as ci,encodeBytes32String as Ye}from"ethers";import{combine as ui,split as fi}from"shamir-secret-sharing";import{contractAddress as ot,Custody as dt,Provider as je,VerifiedWallet as $e}from"@verified-network/verified-sdk";import{base as gi,baseSepolia as mi,gnosis as pi,mainnet as Ci,polygon as ki,sepolia as hi}from"viem/chains";import{http as Ki}from"viem";var gn=async(e,t)=>{try{return await e.getCreator(t).then(async i=>i?.status===0&&i?.response?.result[0]===!0)}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",i),null}},mn=async(e,t,i,a,s,K,L,d,A,m,C,n,o,x,p)=>{try{let v={vaultId:a,hashedVaultId:s,vaultPin:K,hashedVaultPin:L,vaultContract:C,rawId:p};return await C.getCreator(s).then(async y=>{if(y?.status===0&&y?.response?.result[0]===!0)try{let k;if(p)k=await Je(A,p,K);else{let f=Ye(K);k=He(A,f)}let h;if(chrome?.storage?.local?h=await new Promise(f=>{chrome.storage.local.get(["lastPk"],g=>{f(g.lastPk)})}):!chrome?.storage?.local&&localStorage&&(h=localStorage.getItem("lastPk")),h&&h?.length>0)return await C.confirmParticipant(s,s,!0).then(async f=>{if(f?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let c=await new $e(A).getAddress(),P;if(p)P=await Je(A,p,K);else{let E=Ye(K);P=He(A,E)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:m,regAddress:c,vaultId:a,hashedVaultId:s,pk:P,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:m,regAddress:c,vaultId:a,hashedVaultId:s,pk:P,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({address:m,regAddress:c,vaultId:a,hashedVaultId:s,pk:P,channel:d})),v}catch(g){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",g),!1}}else return _e("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",f),!1});if(n==="invitation")return{isExisting:!0,...v};{!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:a,hashedVaultId:s,pk:k,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({vaultId:a,hashedVaultId:s,pk:k,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({vaultId:a,hashedVaultId:s,pk:k,channel:d}));let f=e?null:window;if(!e&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?o:{vaultId:a,hashedVaultId:s,hashedVaultPin:L},txData:x}});else if(!e&&!chrome?.runtime?.sendMessage){let g=new CustomEvent(n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",{detail:{value:{vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?o:{vaultId:a,hashedVaultId:s,hashedVaultPin:L},txData:x}}});f?.dispatchEvent(g)}else if(e&&i){let g=new i,c=n&&n==="connect_wallet"||n&&n==="eth_requestAccounts"?"getPk":n&&n!=="connect_wallet"?n:"getPk",P={vaultData:n&&n==="signRecovery"||n&&n==="completeRecovery"?o:{vaultId:a,hashedVaultId:s,hashedVaultPin:L},txData:x};g.emit(c,P)}}return n==="getPk"?{vaultId:a,hashedVaultId:s,pk:k,channel:d,shouldStop:!0}:{shouldStop:!0}}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",k),_e("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(y?.status===0&&y?.response?.result[0]!==!0)return await C.createVault(s).then(async k=>k?.status===0?(!e&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:A}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("lastPk",A):e&&t&&await t.setItem("lastPk",A),await C.confirmParticipant(s,s,!0).then(async h=>{if(h?.status===0){!e&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!e&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("lastPk"):e&&t&&await t.removeItem("lastPk");try{let g=await new $e(A).getAddress(),c;if(p)c=await Je(A,p,K);else{let P=Ye(K);c=He(A,P)}return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:s,pk:c,channel:d})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:s,pk:c,channel:d})):e&&t&&await t.setItem("myVault",JSON.stringify({address:m,regAddress:g,vaultId:a,hashedVaultId:s,pk:c,channel:d})),v}catch(f){return _e("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",f),!1}}else return _e("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",h),!1})):(_e("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",k),!1))})}catch(v){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",v),_e("Oops something went wrong","Error while creating pin. Try again later"),!1}},pn=async(e,t,i,a,s,K,L,d,A,m,C)=>{try{let n;if(C)n=await Re(s,C);else{let o=Ye(i);n=Oe(s,o)}if(n){let o=ot,x=new $e(n),p=d&&o[d]?.Custody&&be[d]?.rpcUrls?.length>0?d:8453,v=be[p]?.rpcUrls[0],y=x.setProvider(new je(v)),k=new dt(y,o[p].Custody);return k?await k.getCreator(t).then(async h=>{if(h?.status===0&&h?.response?.result[0]===!0){let f=await k.getQuorum(t);return f?.status===0&&f?.response?.result?.length>0?A&&Number(f?.response?.result[0])>0?{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C,pk:n}:Number(f?.response?.result[0])===0?{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C,pk:n,inCompleteVault:!0}:{address:K,vaultId:e,hashedVaultId:t,channel:L,chainId:m||p,pin:i,rawId:C}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",n),null}},Ct=async(e,t,i,a,s,K,L,d,A,m,C,n,o)=>{let x;if(C)x=C;else{let p=ot,v=new $e(n),y=o&&p[o]?.Custody&&be[o]?.rpcUrls?.length>0?o:8453,k=be[y]?.rpcUrls[0],h=v.setProvider(new je(k));x=new dt(h,p[y].Custody)}return x?await x.confirmParticipant(K,a,m).then(async p=>p?.status===0?(m?await e(i,d,A):await t(i,d,A),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(p=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",p),!1)):!1},Cn=async(e,t,i,a,s,K,L,d,A,m,C,n,o)=>{let x=Number(i.length),v=(await fi(Uint8Array.from(n.split("").map(f=>f.charCodeAt(0))),Number(x),K)).map(f=>f.join(",")),y=o?"":Ye(A),k=[],h=[];for(let f=0;f<i.length;f++){let g=i[f],c=o?await Je(v[f],o,A):He(v[f],y);await C.addParticipant(d,ee(g.vaultId),c).then(async P=>{let E={creatorVaultId:L,vaultPin:A,creatorHashedVaultId:d,creatorHashedVaultPin:m,cosigner:g.vaultId,hashedCosigner:ee(g.vaultId),cosignerVaultIdType:g.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:g.vaultId,share:c,...g};P?.status===0?(h.push(E),g.vaultId!==L&&await e(g.otpChannel,g.vaultId,L,m).then(j=>{j||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):k.push(E)}),await new Promise(P=>setTimeout(P,1e3))}return k?.length>0||h?.length!==i?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),_e("Oops somethin went wrong","error while adding co-signers"),!1):await C.defineQuorum(d,K.toString()).then(async f=>{if(f?.status===0){let g=a?.map(c=>({name:c?.name,email:c?.email,phoneNumber:c?.phoneNumber,contactType:String(c?.otpChannel)?.toUpperCase(),position:`${Ut[Number(c?.position)]} Co-Signer`}));return await t(s,L,g,Number(K)).then(c=>{c||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),_e("Oops somethin went wrong","error while saving vault keys"),!1})},kn=async(e,t,i,a,s,K,L,d,A)=>{let m;if(A)m=await Re(K,A);else{let C=Ye(s);m=Oe(K,C)}if(m){let C=ot,n=new $e(m),o=d&&C[d]?.Custody&&be[d]?.rpcUrls?.length>0?d:8453,x=be[o]?.rpcUrls[0],p=n.setProvider(new je(x)),v=new dt(p,C[o].Custody);if(v)return await v.promptSignatures(t).then(async y=>{if(y?.status===0&&y?.response?.result?.logs){let k=new ci,h=y?.response?.result?.logs?.filter(P=>P?.address?.toLowerCase()===C[o].Custody?.toLowerCase()&&P?.topics?.map(E=>E?.toLowerCase())?.includes(Rt?.toLowerCase())),f=h[0]?.data,g=k.decode(["bytes32","bytes32","uint256"],f)?.map((P,E)=>E<2?P:Number(P)).flat(),c=g[g?.length-1];return await e(L,a,i,Number(c),Number(h?.length)),!0}else return!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},hn=async(e,t,i,a,s,K,L,d,A,m,C,n,o)=>{let x;if(o)x=await Re(L,o);else{let p=Ye(K);x=Oe(L,p)}if(x){let p=ot,v=new $e(x),y=n&&p[n]?.Custody&&be[n]?.rpcUrls?.length>0?n:8453,k=be[y]?.rpcUrls[0],h=v.setProvider(new je(k)),f=new dt(h,p[y].Custody);if(f)return await f.signTransaction(A,i,C).then(async g=>g?.status===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)?"email":"sms",d,s),await f.checkQuorum(A,C).then(async c=>c?.status===0&&c?.response?.result?(c?.response?.result[0]===!0&&await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d)?"email":"sms",d,Number(C)),!0):!1)):!1).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",g),!1))}},Kn=async(e,t,i,a,s,K,L,d,A,m,C)=>{let n;if(C)n=await Re(L,C);else{let o=Ye(K);n=Oe(L,o)}if(n){let o=ot,x=new $e(n),p=m&&o[m]?.Custody&&be[m]?.rpcUrls?.length>0?m:8453,v=be[p]?.rpcUrls[0],y=x.setProvider(new je(v)),k=new dt(y,o[p].Custody);return k?await k.checkQuorum(i,d).then(async h=>h?.status===0&&h?.response?.result&&h?.response?.result[0]===!0?await k.getShards(i,d).then(async f=>{if(f?.status===0&&f?.response?.result){let g=f?.response?.result.filter(c=>c!=="");if(g.length>1){let c=C?"":Ye(K),E=(await Promise.all(g.map(q=>C?Re(q,C):Oe(q,c)))).map(q=>new Uint8Array(q.split(",").map(Number))),j=await ui(E),oe=new TextDecoder().decode(j);if(oe){let q=C?"":Ye(K),Q=C?await Je(oe,C,K):He(oe,q),te=new $e(oe),W=await te.getAddress(),z=te.setProvider(new je(v)),ie=[gi,Ci,pi,ki,hi,mi].find(B=>Number(B?.id)===Number(p)),se=await ft(ie,Ki(),z);return!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:se,regAddress:W,vaultId:s,hashedVaultId:i,pk:Q,channel:A})}):!e&&!chrome?.storage?.local&&localStorage?localStorage.setItem("myVault",JSON.stringify({address:se,regAddress:W,vaultId:s,hashedVaultId:i,pk:Q,channel:A})):e&&t&&await t.setItem("myVault",JSON.stringify({address:se,regAddress:W,vaultId:s,hashedVaultId:i,pk:Q,channel:A})),!0}}else return!1}else return!1}).catch(f=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",f),!1)):!1).catch(h=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",h),!1)):!1}};var vi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=qe(e.fontsLoaded||!1),p=yi([]),[v,y]=qe(!1),[k,h]=qe(60),[f,g]=qe(["","","",""]),[c,P]=qe(!1),[E,j]=qe(""),{pk:oe,vaultContract:q,address:Q}=Se();yn(()=>{let B=async()=>{if(t)m&&await ve(m),x(!0);else{let $=ye(document);x($)}};e.fontsLoaded||B()},[]),yn(()=>{if(k===0)return;let B=setInterval(()=>h($=>$-1),1e3);return()=>clearInterval(B)},[k]);let te=(B,$)=>{if(B?.length>1){let M=B.replace(/\D/g,""),ue=[...f],b=0;for(let G=$;G<f.length&&b<M.length;G++)ue[G]=M[b],b++;g(ue);let fe=$+M.length;fe<f.length&&p.current[fe]&&p.current[fe].focus(),P(!1)}else{let M=B.replace(/\D/g,""),ue=[...f];ue[$]=M,g(ue),M&&p.current[$+1]&&p.current[$+1].focus(),P(!1)}},W=(B,$,M)=>{M.nativeEvent.key==="Backspace"&&!f[$]&&$>0&&p.current[$-1]&&p.current[$-1].focus()},H=f.every(B=>B.length>0),z=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ie=async()=>{if(!H||!e.helperFunctions){P(!0),j("Please enter the complete OTP.");return}let B=z(),$=f.join("");if(!(!e.noContract&&!oe||!e.noContract&&!q)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(Q,B,$)){e.setIsLoading(!1),P(!0);return}let ue=ee(B),b=!1;if(!e.noContract&&q&&(b=await gn(q,ue),b===null)){e.setIsLoading(!1),j("Unexpected error. Try again later."),P(!0);return}e.setIsExistingUser?.(b),e.setIsLoading(!1),e.setStep("4")}catch(M){e.setIsLoading(!1),j("Error verifying OTP. Try again."),P(!0),console.error("error: ",M)}}},se=async()=>{if(!e.helperFunctions){j("Helper functions missing."),P(!0);return}let B=z(),$=e.userEmail?"email":"sms";e.setIsLoading(!0);let M=await e.helperFunctions.sendOTPVerification(Q,$,B);e.setIsLoading(!1),M?(g(["","","",""]),h(60),P(!1),j("")):_e("OTP resend failed","Please try again later.")};return F.createElement(K,null,o&&F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},F.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&F.createElement(F.Fragment,null,F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),F.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&F.createElement(a,null,e.userEmail)),F.createElement(d,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},F.createElement(s,{source:{uri:N.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),F.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},F.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},f.map((B,$)=>F.createElement(L,{key:$,ref:M=>p.current[$]=M,value:f[$],onChangeText:M=>te(M,$),onKeyPress:M=>W(M,$,M),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),F.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&k>5&&E===""&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},F.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),k),!c&&k<=5&&k>0&&E===""&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},F.createElement(a,{style:{fontWeight:"400"}},"00:"),k),!c&&k===0&&E===""&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&E===""&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&E?.length>0&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},E),!c&&k>0&&E===""&&F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&k===0&&E===""||c&&E===""?F.createElement(d,{style:{background:"transparent"},onPress:async()=>{g(["","","",""]),await se()}},F.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!v&&F.createElement(i,{style:{height:"100px"}}),F.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},F.createElement(d,{className:H&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ie,disabled:!H||c,style:H&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},F.createElement(a,null,"Proceed"))))),!o&&F.createElement(a,null,"Loading Module Fonts..."))},It=vi;import l,{useEffect as Li,useRef as vn,useState as Ae}from"react";import Ee,{useEffect as Ai}from"react";var Pi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n,EventEmitter:o}=e.platform;Ai(()=>{let y;return e.showButton||(y=setTimeout(()=>{if(e.messageTosend)try{let k=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,h=>{h&&e.action!=="signRecovery"&&k?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let h=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});k?.dispatchEvent(h)}else t&&o&&new o().emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(k){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",k)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{y&&clearTimeout(y)}},[]);let x=()=>{e.setStep?.("6")},p=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},v=()=>{e.setShowDasboard?.(!0)};return Ee.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Ee.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Ee.createElement(s,{style:{width:"90%"},source:{uri:N.successIcon},alt:"Success Icon"}),Ee.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Ee.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Ee.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Ee.createElement(d,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?x():e.action==="completeRecovery"?v():e.buttonFunc?.()},className:"verified-custd-mdl-startup-button-active"},Ee.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Ee.createElement(d,{onPress:()=>{e.action==="invitation"?p():e.buttonNeutFunc?.()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Ee.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},Xe=Pi;var bi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,EventEmitter:n,styles:o,rnPasskey:x}=e.platform,[p,v]=Ae(e.fontsLoaded||!1),[y,k]=Ae(!0),[h,f]=Ae(!1),[g,c]=Ae(""),[P,E]=Ae(!1),[j,oe]=Ae(!1),[q,Q]=Ae(!1),[te,W]=Ae(!1),[H,z]=Ae(""),[ie,se]=Ae(""),[B,$]=Ae(null),[M,ue]=Ae(!1),[b,fe]=Ae(!1),{address:G,pk:I,vaultContract:D,setVaultData:Me,setChainId:we,vaultData:Z}=Se(),[ae,de]=Ae(["","","",""]),[R,pe]=Ae(["","","",""]),ce=vn([]),O=vn([]);Li(()=>{let Y=async()=>{if(t)m&&await ve(m),v(!0);else{let S=ye(document);v(S)}};e.fontsLoaded||Y()},[]);let V=(Y,S,J)=>{f(!1),c("");let Le=Y.replace(/\D/g,""),X=J?[...R]:[...ae];X[S]=Le,J?(pe(X),Le&&O.current[S+1]&&O.current[S+1].focus(),S<3&&X.every(w=>w!=="")&&ae.every(w=>w!=="")&&X.join("")!==ae.join("")&&(f(!0),c("Confirm Pin must match New Pin.")),S===3&&ae.join("")!==X.join("")&&(f(!0),c("Confirm Pin must match New Pin."))):(de(X),Le&&ce.current[S+1]&&ce.current[S+1].focus(),R.every(w=>w!=="")&&X.join("")!==R.join("")&&(f(!0),c("New Pin must match Confirm Pin.")))},T=async()=>{c(""),f(!1);try{let Y=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,S=t?x.create(Vt("Verified Wallet",Y,ee(Y))):await navigator?.credentials?.create({publicKey:Vt("Verified Wallet",Y,ee(Y))}),J=Be(S?.rawId);return{pinString:S?.id,hashed:J,rawId:S?.rawId}}catch(Y){return c(`Passkey creation failed: ${Y?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0),null}},Te=async()=>{c(""),f(!1);try{let Y=t?await x.get(Qe()):await navigator.credentials.get({publicKey:Qe()}),S=Be(Y?.rawId);return{pinString:Y?.id,hashed:S,rawId:Y?.rawId}}catch(Y){c(`Passkey authentication failed: ${Y?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),f(!0)}},ge=(Y,S,J,Le)=>{let X=J.nativeEvent.key;!Le&&X==="Backspace"&&!ae[S]&&S>0&&ce.current[S-1]&&ce.current[S-1].focus(),Le&&X==="Backspace"&&!R[S]&&S>0&&O.current[S-1]&&O.current[S-1].focus()},Ne=()=>b?e.isExistingUser?ae.every(Y=>Y!==""):ae.every(Y=>Y!=="")&&R.every(Y=>Y!==""&&ae.join("")===R.join("")):!0,ze=async Y=>{if(!e.helperFunctions)c("No Helper Functions. Please include all helper functions in the CreatePinPage props."),f(!0);else{c(""),f(!1);let S=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,J=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Ne()&&S&&J&&I&&G&&D||!e.isExistingUser&&Ne()&&S&&J&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Ne()&&S&&J&&I&&G&&D||e.isExistingUser&&Ne()&&S&&J&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin){e.setIsLoading(!0);let Le=Y?.pinString||ae.join(""),X=ee(S),w=Y?.hashed||ee(Le);await mn(t,C,n,S,X,Le,w,J,I||e.vaultData?.pk,G||e.vaultData?.address,D||e.vaultData?.vaultContract,e.action,e.vaultData,e.txData,Y?.rawId).then(async _=>{e.setIsLoading(!1),_?(Me(_?.shouldStop&&_?.vaultId?{vaultId:_?.vaultId,hashedVaultId:_?.hashedVaultId,pk:_?.pk,rawId:_?.rawId,channel:_?.channel}:_?.shouldStop?{}:_),c(""),f(!1),e.action==="invitation"?(se(Le),$(Y?.rawId),oe(!0)):e.action==="reset-pin"?(!t&&chrome?.storage?.local?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),z(`You have successfully reset your account ${b?"4-Digits PIN":"Passkey"}. Login with the new ${b?"4-Digits PIN":"Passkey"}`),E(!0)):_?.shouldStop?_?.shouldStop&&e.action!=="getPk"?(z(""),E(!0)):_?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):_===null?e.action==="reset-pin"?(c("Reset pin failed. Try again later."),f(!0)):(c(`You are an existing user. Please use the right ${b?"existing 4-Digits PIN":"existing Passkey for "+S} to recover your account login access on this device/browser`),f(!0)):(c("Unexpected error while creating account. Please try again later."),f(!0))})}else Ne()||(c(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),f(!0))}},ct=async Y=>{let S=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,J=e.userEmail?.length>0?"email":"sms";if(ie?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&S){e.setIsLoading(!0);let Le=ee(S),X=b?ee(ie):Be(B);await Ct(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,J,Le,X,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,S,Y,D).then(w=>{e.setIsLoading(!1),w&&!Z?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(Y?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):w&&Z?.isExisting&&Q(!0)})}};return l.createElement(K,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},p&&l.createElement(l.Fragment,null,!P&&!j&&l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},l.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&l.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},b?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&l.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},b?"Enter PIN":"Sign-in with Existing Passkey"),l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&l.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",b?"PIN":"Passkey",". This"," ",b?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&l.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",l.createElement(a,{style:{color:"#0C0C0E"}},b?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",l.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."))),!b&&l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:ne(t,"14px")}:{fontSize:ne(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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."),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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."),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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&&l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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&&l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},`Click "Login With Passkey" button, passkey popup will appears to login using the accoun't passkey.`),l.createElement(d,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),b&&l.createElement(l.Fragment,null,l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&l.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ae.map((Y,S)=>l.createElement(L,{key:`pin-${S}`,style:t&&h?{...o.verifiedCustdMdlOtpInputRed}:t&&h?{...o.verifiedCustdMdlOtpInput}:{},className:h?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:J=>ce.current[S]=J,value:ae[S],onChangeText:J=>V(J,S,!1),onKeyPress:J=>ge(J,S,J,!1)}))),e.isExistingUser&&l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!h&&l.createElement(a,null),h&&g===""&&l.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),h&&g?.length>0&&l.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!y&&l.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!0)},l.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinShow}})),y&&l.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!1)},l.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinHide}})))),!e.isExistingUser&&l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},l.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},R.map((Y,S)=>l.createElement(L,{key:`confirm-${S}`,style:t&&h?{...o.verifiedCustdMdlOtpInputRed}:t&&!h?{...o.verifiedCustdMdlOtpInput}:{},className:h?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:y,keyboardType:"number-pad",maxLength:1,ref:J=>O.current[S]=J,value:R[S],onChangeText:J=>V(J,S,!0),onKeyPress:J=>ge(J,S,J,!0)}))),l.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!h&&l.createElement(a,null),h&&g===""&&l.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),h&&g?.length>0&&l.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!y&&l.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!0)},l.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinShow}})),y&&l.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>k(!1)},l.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.pinHide}})))))),!M&&l.createElement(i,{style:{height:20}}),l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},l.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!b&&l.createElement(l.Fragment,null,h&&g?.length>0&&l.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),e.isExistingUser&&l.createElement(d,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async Y=>{let S=await Te();S&&await ze(S)}},l.createElement(a,null,"Login With Passkey")),!e.isExistingUser&&l.createElement(d,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async Y=>{let S=await T();S&&await ze(S)}},l.createElement(a,null,"Create New Passkey"))),b&&l.createElement(d,{id:"verified-custd-mdl-otp-button",style:t&&Ne()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!Ne()?{...o.verifiedCustdMdlStartupButton}:{},className:Ne()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async Y=>{await ze()}},l.createElement(a,null,"Proceed"))))),!P&&j&&l.createElement(l.Fragment,null,!q&&l.createElement(i,{className:"verified-custd-mdl-startup-language",style:t?{...o.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},l.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),l.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},l.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},l.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),l.createElement(s,{style:t?{...o.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon1}}),!te&&l.createElement(K,null,l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),l.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),l.createElement(i,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},l.createElement(s,{source:{uri:N.pkicon}})),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},l.createElement(s,{source:{uri:N.encryptedIcon}})),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},l.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonNeut}:{},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>W(!0)},l.createElement(a,null,"Reject")),l.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ct(!0)}},l.createElement(a,null,"Accept")))),te&&l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),l.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",l.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),l.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},l.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await ct(!1)}},l.createElement(a,null,"Yes")),l.createElement(d,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>W(!1)},l.createElement(a,null,"No"))))))),q&&l.createElement(Xe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:te?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`})),P&&l.createElement(Xe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:H?.length>0?H:"You have successfully logged in your account."})),!p&&l.createElement(a,null,"Loading Module Fonts..."))},st=bi;import r,{useEffect as _i,useState as Ce}from"react";var xi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n}=e.platform,[o,x]=Ce(e.fontsLoaded||!1),[p,v]=Ce(!1),[y,k]=Ce("1"),[h,f]=Ce("1"),[g,c]=Ce(!1),[P,E]=Ce("email"),[j,oe]=Ce(""),[q,Q]=Ce(""),[te,W]=Ce(""),[H,z]=Ce(""),[ie,se]=Ce(""),[B,$]=Ce(!1),[M,ue]=Ce(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[b,fe]=Ce([]),[G,I]=Ce(!1),[D,Me]=Ce(2),[we,Z]=Ce(""),{pk:ae,vaultData:de,vaultContract:R}=Se();_i(()=>{let V=async()=>{if(t)try{let T=await ve(m);x(!0)}catch{x(!1)}else{let T=ye(document);x(T)}};e.fontsLoaded||V()},[]);let pe=()=>{},ce=()=>{if(P==="sms"&&j?.length===0){Z("Invalid input, please check the phone number");return}else if(P==="sms"&&j?.length!==10){Z("Invalid input, please check the phone number");return}else if(P==="email"&&te?.length===0){Z("Invalid input, please check the email");return}else if(P==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(te)){Z("Invalid input, please check the email");return}else if(b?.find(T=>T?.otpChannel==="sms"?T?.phoneArea?.toLowerCase()+T?.number?.toLowerCase()===M.area?.toLowerCase()+q?.toLowerCase():T?.email?.toLowerCase()===te?.toLowerCase())){Z(P==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(P==="sms"&&M?.area?.toLowerCase()+q?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){Z("Invalid input, phone number is creator's phone number");return}else if(P==="email"&&te?.toLowerCase()===e.userEmail?.toLowerCase()){Z("Invalid input, email is creator's email");return}Z("");let V=b?.length;fe(T=>[{name:H,email:te,number:q,phoneNumber:`+${M?.area}${j}`,otpChannel:P,phoneArea:M?.area,position:T?.length+1,vaultId:P==="sms"?`+${M?.area}${j}`:te},...T]),W(""),z(""),oe(""),Q(""),se(""),V+1===4&&c(!1)},O=async()=>{let V=[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:de?.vaultId},...b];V?.length>0&&b?.length>0&&D&&de?.vaultId&&de?.hashedVaultId&&de?.vaultPin&&de?.hashedVaultPin&&R&&ae&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation&&(e.setIsLoading(!0),await Cn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,V,b,e?.userEmail?.length>0?"email":"sms",D,de.vaultId,de.hashedVaultId,de.vaultPin,de.hashedVaultPin,R,ae,de?.rawId).then(T=>{e.setIsLoading(!1),T&&e.setStep("7")}))};return r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},o&&r.createElement(r.Fragment,null,!p&&r.createElement(r.Fragment,null,h==="1"&&r.createElement(r.Fragment,null,r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon1},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:N.pkicon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:N.encryptedIcon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:N.supervise},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{k("1"),v(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Learn More")),r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{f("2"),c(!1),v(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Add Co-Signer")))),h==="2"&&r.createElement(r.Fragment,null," ",r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!G&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",b?.length+1<5?b?.length+1:5,"/5)")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!G&&b.sort((V,T)=>V?.position-T?.position).map((V,T)=>r.createElement(i,{key:T,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},et[V?.position]?.split(" ")[0],r.createElement(a,null,r.createElement(a,{style:{fontSize:10}},et[V?.position]?.split(" ")[1]))," ","Co-Signer")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},V?.name),V.otpChannel==="email"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},V.email),V.otpChannel==="sms"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",V?.phoneArea,") ",V.number))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},r.createElement(d,{style:{background:"transparent",width:24,height:24},onPress:()=>{fe(Te=>Te?.filter(ge=>ge?.otpChannel==="sms"?ge?.phoneArea?.toLowerCase()+ge?.number?.toLowerCase()!==V?.phoneArea?.toLowerCase()+V?.number?.toLowerCase():ge?.email?.toLowerCase()!==V?.email?.toLowerCase())?.map((ge,Ne)=>(ge.position=Ne+1,ge))),pe()}},r.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:N.delete}}))))))),G&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(b?.length+1).fill("1").map((V,T)=>r.createElement(i,{key:T,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:T+1===D&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:T+1===D&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(T+1))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:N.pointer}})))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},r.createElement(i,{style:t&&b?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/b?.length}%`}:!t&&b?.length===1?{width:`${100/b?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/b?.length+5}%`}:{width:`calc(${100/b?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:N.sliderDot}})))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(b?.length+1).fill("1").map((V,T)=>r.createElement(d,{style:{background:"transparent"},key:T,onPress:()=>{T+1>1&&Me(T+1)}},r.createElement(a,{style:t&&T===b?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&T===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&T===0?{paddingLeft:12}:!t&&T===b?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(T+1))))))),r.createElement(d,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",onPress:async()=>{await O()}},r.createElement(a,null,"Confirm"))))),g&&b?.length<4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},et[b?.length+1]?.split(" ")[0],r.createElement(a,{style:{fontSize:10}},et[b?.length+1]?.split(" ")[1])," ","Co-Signer"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},r.createElement(L,{onChangeText:z,value:H,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{E("sms"),Z(""),W("")}},r.createElement(s,{source:{uri:P==="sms"?N.selectClicked:N.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{E("email"),Z(""),oe(""),Q(""),se("")}},r.createElement(s,{source:{uri:P==="email"?N.selectClicked:N.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},P==="sms"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},r.createElement(d,{onPress:()=>$(!B),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},r.createElement(s,{source:{uri:M.flag},style:{width:24,height:16},alt:"Country Flag"}),r.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",M.area),B?r.createElement(s,{source:{uri:N.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):r.createElement(s,{source:{uri:N.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),r.createElement(L,{onChangeText:V=>{se(V===""?ie+" ":V);let T=V.replace(/\D/g,"");oe(T);let Te="";for(let ge=0;ge<T.length;ge++)Te+=T[ge],(ge+1)%5===0&&ge+1<T.length&&(Te+=" ");Q(Te),Z("")},onBlur:pe,value:q,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),B&&r.createElement(pt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:pe,setSelected:ue,selected:M,searchActive:B,setSearchActive:$,contentMaxHeight:300,contentbottomMargin:300}),we===""&&j.length!==10&&ie.length>10&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),we!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},we))),P==="email"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},r.createElement(L,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:V=>{W(V),Z("")},onBlur:pe,value:te,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),we!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},we)))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>c(!1)},r.createElement(a,null,"Cancel")),r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{ce(),pe()}},r.createElement(a,null,"Add")))),!g&&!G&&b?.length<4&&r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",width:20,height:20}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>c(!0)},r.createElement(s,{source:{uri:N.addIcon},style:{width:20,height:20}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!g&&!G&&b?.length===4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},r.createElement(s,{source:{uri:N.addDisableIcon},style:{width:20,height:20}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!G&&r.createElement(d,{className:b?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&b?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&b?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&b?.length>0&&!g&&b?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&b?.length===0&&!g&&b?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!g&&b?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{b?.length>0&&(Me(2),I(!0),c(!1))}},r.createElement(a,{style:n.buttonText},"Proceed")))),p&&r.createElement(r.Fragment,null,y==="1"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon2},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(d,{onPress:()=>k("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),y==="2"&&r.createElement(r.Fragment,null,r.createElement(s,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:N.addCoSignerIcon3},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k("3"),className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),y==="3"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:N.addCoSignerIcon4},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(d,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>k("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(d,{onPress:()=>{f("2"),c(!1),v(!1),k("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Start")))))),!o&&r.createElement(a,null,"Loading Module Fonts..."))},lt=xi;import u,{useEffect as Ni,useRef as Si,useState as me}from"react";import{ethers as Xi}from"ethers";var wi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,TextInput:L,TouchableOpacity:d,StyleSheet:A,Font:m,AsyncStorage:C,styles:n,rnPasskey:o}=e.platform,[x,p]=me(e.fontsLoaded||!1),[v,y]=me(!1),[k,h]=me(!0),[f,g]=me(!1),[c,P]=me(!1),[E,j]=me(null),[oe,q]=me(null),[Q,te]=me(e.newChainId||8453),[W,H]=me(!1),[z,ie]=me(!1),[se,B]=me(!1),[$,M]=me(!1),[ue,b]=me(!1),[fe,G]=me(""),[I,D]=me(!1),[Me,we]=me({}),[Z,ae]=me(["","","",""]),de=Si([]),[R,pe]=me(!1),{setChainId:ce,setAddress:O,setPk:V,setProvider:T,setSigner:Te,setVaultContract:ge,setVaultData:Ne}=Se();Ni(()=>{let X=async()=>{if(t)m&&await ve(m),p(!0);else{let w=ye(document);p(w)}};e.fontsLoaded||X()},[]);let ze=(X,w)=>{if(X.length>1){let _=X.replace(/\D/g,""),le=[...Z],Ve=0;for(let Kt=w;Kt<Z.length&&Ve<_.length;Kt++)le[Kt]=_[Ve],Ve++;ae(le);let De=w+_.length;De<Z.length&&de.current[De]&&de.current[De].focus(),y(!1)}else{let _=X.replace(/\D/g,""),le=[...Z];le[w]=_,ae(le),_&&de.current[w+1]&&de.current[w+1].focus(),y(!1)}},ct=(X,w,_)=>{_.nativeEvent.key==="Backspace"&&!Z[w]&&w>0&&de.current[w-1]&&de.current[w-1].focus()},Y=Z.every(X=>X.length>0),S=async X=>{if(!e.helperFunctions)G("No Helper Functions. Please include all helper functions in the EnterPinPage props."),y(!0);else if(G(""),y(!1),R&&Y&&e.hashedVaultId&&e.encrptedPk||!R&&e.hashedVaultId&&e.encrptedPk&&X){e.setIsLoading(!0);let w=X?.pinString?X?.pinString:Z.join("");await pn(e.vaultId,e.hashedVaultId,w,X?.hashed?X?.hashed:ee(w),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(Q),Ot?.includes(e.origin?.toLowerCase()),null,X?.rawId).then(async _=>{if(_&&!_?.inCompleteVault)e.setIsLoading(!1),j(_),q(_?.pk&&e.action!=="eth_requestAccounts"?{address:_.address,channel:_.channel,chainId:_.chainId,pk:_?.pk}:{address:e.regAddress,channel:_.channel,chainId:_.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await kn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,X?.hashed?X?.hashed:ee(w),e.vaultId,w,e.encrptedPk,e.vaultChannel,Number(Q),X?.rawId).then(async le=>{e.setIsLoading(!1),!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),le?P(!0):(G("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:ee(w),e.vaultId,w,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number(Q),X?.rawId).then(async le=>{e.setIsLoading(!1),!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),le?P(!0):(G("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 Kn(t,C,e.hashedVaultId,X?.hashed?X?.hashed:ee(w),e.vaultId,w,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number(Q),X?.rawId).then(async le=>{e.setIsLoading(!1),le?P(!0):(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),G("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),y(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&_?.pin?.length>0&&e.signTxElement?(we({chainId:Q,ky:R?Xi.encodeBytes32String(_?.pin):"",rawId:R?"":X?.rawId,...e.txToSign}),ie(!1),D(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(G(""),y(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(G(`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()?(G(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),y(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),G(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),y(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage?localStorage.removeItem("myVault"):t&&C&&await C.removeItem("myVault"),G(`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?(G("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?(G("Incomplete account login detected. Logout and try again later"),y(!0)):(G(""),y(!1),P(!0));else if(_&&_?.inCompleteVault&&_?.pk){let le=await Ue(Number(Q),_?.pk);if(ce(le.chainId),O(le.address),V(le.pk),T(le.provider),Te(le.signer),ge(le.vaultContract),Ne({vaultId:_?.vaultId,hashedVaultId:_?.hashedVaultId,vaultPin:_?.pin,hashedVaultPin:R?ee(_?.pin):Be(_?.rawId),vaultContract:le.vaultContract,rawId:_?.rawId}),_?.channel?.toLowerCase()==="sms"){let Ve=_?.vaultId?.replace(_?.vaultId?.slice(-10),""),De=_?.vaultId?.slice(-10)?.slice(0,5)+" "+_?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:Ve?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(De),e.setUserEmail("")}else e.setUserEmail(_?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else G(R?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),y(!0),e.setIsLoading(!1)})}else!R&&!X&&(G("Unexpected error with selected passkey. Try again later"),y(!0)),R&&!Y&&(G("Input your 4-Digits PIN to login."),y(!0))},J=async X=>{let w=e.vaultId;if(E?.pin?.length>0&&E?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&w&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let _=E.pin,le=ee(w),Ve=R?ee(_):Be(E.rawId);await Ct(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,le,Ve,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,w,X,null,E.pk,Number(Q)).then(De=>{e.setIsLoading(!1),De&&(b(X),B(!0))})}},Le=async()=>{G(""),y(!1);try{let X=await navigator.credentials.get({publicKey:Qe()}),w=Be(X?.rawId);return{pinString:X?.id,hashed:w,rawId:X?.rawId}}catch(X){G(`Passkey authentication failed: ${X?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),y(!0)}};return u.createElement(u.Fragment,null,x&&!z&&!I&&u.createElement(u.Fragment,null,!c&&u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px"}:{padding:"20px"},className:"verified-custd-mdl-startup-language"},u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},u.createElement(xe,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},u.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},R?"Enter PIN":"Sign-in with Existing Passkey")),u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},u.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",u.createElement(a,{style:{color:"#0C0C0E"}},R?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",u.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&u.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),R&&u.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},u.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},Z.map((X,w)=>u.createElement(L,{key:w,ref:_=>de.current[w]=_,className:v?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&v?{...n.verifiedCustdMdlOtpInputRed}:t&&!v?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:k,maxLength:1,value:Z[w],onChangeText:_=>ze(_,w),onKeyPress:_=>ct(_,w,_),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${w}`}))),u.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},v&&!fe&&u.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),v&&fe&&u.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},fe),!v&&u.createElement(a,null),k?u.createElement(d,{onPress:()=>h(!1),style:{backgroundColor:"transparent"}},u.createElement(s,{style:{width:24,height:24},source:{uri:N.pinHide}})):u.createElement(d,{onPress:()=>h(!0),style:{backgroundColor:"transparent"}},u.createElement(s,{style:{width:24,height:24},source:{uri:N.pinShow}})))),!R&&u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},u.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:ne(t,"14px")}:{fontSize:ne(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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."),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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."),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:ne(t,"12px")}:{fontSize:ne(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.'),u.createElement(d,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!f&&u.createElement(i,{style:{height:20}}),u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},u.createElement(i,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},u.createElement(fn,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),R&&u.createElement(d,{onPress:async()=>await S(),style:t&&Y&&!v?{...n.verifiedCustdMdlStartupButtonActive}:t&&Y&&v?{...n.verifiedCustdMdlStartupButton}:t&&!Y&&!v?{...n.verifiedCustdMdlStartupButton}:t&&!Y&&v?{...n.verifiedCustdMdlStartupButton}:{},className:Y&&!v?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},u.createElement(a,null,"Proceed")),!R&&u.createElement(u.Fragment,null,v&&fe?.length>0&&u.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},fe),u.createElement(d,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},onPress:async()=>{let X=await Le();X&&await S(X)},className:"verified-custd-mdl-startup-button-active"},u.createElement(a,null,"Login With Passkey")))))),c&&u.createElement(Xe,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:oe},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:e.action==="completeRecovery",buttonText:e.action==="completeRecovery"?"Go To Dashboard":"",setShowDasboard:e.setShowDashboard,actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:""})),x&&z&&!I&&u.createElement(u.Fragment,null,!se&&u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},u.createElement(xe,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),u.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},u.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},u.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),u.createElement(d,{style:{backgroundColor:"transparent",width:"100%"}},u.createElement(s,{style:{height:250,width:"90%"},source:{uri:N.addCoSignerIcon1}})),$?u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",u.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},u.createElement(d,{onPress:async()=>await J(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},u.createElement(a,null,"Yes")),u.createElement(d,{onPress:()=>M(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},u.createElement(a,null,"No")))))):u.createElement(u.Fragment,null,u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},u.createElement(s,{source:{uri:N.pkicon}})),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},u.createElement(s,{source:{uri:N.encryptedIcon}})),u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",u.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),u.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},u.createElement(d,{onPress:()=>M(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut}:{},className:"verified-custd-mdl-add-cosigner-button-neut"},u.createElement(a,null,"Reject")),u.createElement(d,{onPress:async()=>await J(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},u.createElement(a,null,"Accept"))))),se&&u.createElement(Xe,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:E},customTextHeader:"Successful",customTextFooter:ue?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`})),x&&!z&&I&&u.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:Me}),!x&&u.createElement(a,null,"Loading Module Fonts..."))},Ze=wi;var Ei=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:K,StyleSheet:L,Font:d,AsyncStorage:A}=e?.platform,[m,C]=Pe(e.fontsLoaded||!1),[n,o]=Pe(e.showLogoPage||!1),[x,p]=Pe([]),[v,y]=Pe("2"),[k,h]=Pe(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[f,g]=Pe(""),[c,P]=Pe(""),[E,j]=Pe(!1),[oe,q]=Pe(""),[Q,te]=Pe(""),[W,H]=Pe(""),[z,ie]=Pe(""),[se,B]=Pe(null),[$,M]=Pe(null),[ue,b]=Pe(!1),{setChainId:fe,setAddress:G,setPk:I,setProvider:D,setSigner:Me,setVaultContract:we,setVaultData:Z,vaultData:ae,chainId:de,vaultContract:R}=Se();return kt(()=>{let pe=async()=>{if(t)d&&await ve(d),C(!0);else{let ce=ye(document);C(ce)}};e.fontsLoaded||pe()},[]),kt(()=>{let pe=async()=>{let ce;!t&&chrome?.storage?.local?ce=await new Promise(V=>{chrome.storage.local.get(["lastPk"],T=>{V(T.lastPk)})}):!t&&localStorage?ce=localStorage.getItem("lastPk"):t&&A&&(ce=A.getItem("lastPk"));let O=await Ue(e.chainId,ce&&ce?.length>0?ce:void 0);fe(O.chainId),G(O.address),I(O.pk),D(O.provider),Me(O.signer),Z(O.vaultData),O.vaultContract?.contractAddress?we(O.vaultContract):we(void 0)};R?.contractAddress||pe()},[R]),kt(()=>{Yi(()=>{o(!1)},e.logoTimeoutTime??3e3)()},[]),kt(()=>{(()=>{let ce=ut.map(O=>{if(O)return{name:O.name,countryName:O.name,officialName:O.name,currencySymbol:O.currency,currencyName:O.currency,officialCurrencySymbol:O.currency,countryCode:O.code,flag:O.flag,continent:O.continent,phone_code:O.phone_code,code:O.code}}).filter(Boolean);p(ce)})()},[]),he.createElement(K,{style:{padding:20,width:"100%",heigth:"100%"}},m&&n&&e.logoPageElement&&he.createElement(i,null,e.logoPageElement),m&&!n&&he.createElement(i,{style:{width:"100%",heigth:"100%"}},v==="2"&&he.createElement(Dt,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:g,userNumberFmt:f,setUserEmail:P,userEmail:c,setSelectedCountry:h,selectedCountry:k,allCountries:x,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),v==="3"&&he.createElement(It,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,setUserNumberFmt:g,setUserEmail:P,userEmail:c,selectedCountry:k,helperFunctions:e.helperFunctions,setIsExistingUser:b}),v==="4"&&he.createElement(st,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:j,setSuccessBtnText:q,setSuccessBtnNeutText:te,setSuccessBtnFunc:B,setSuccessBtnNeutFunc:M,userNumberFmt:f,userEmail:c,selectedCountry:k,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:H,setActionFooterText:ie,helperFunctions:e.helperFunctions,isExistingUser:ue}),v==="5"&&he.createElement(Xe,{platform:e.platform,setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:E,buttonText:oe,buttonNeutText:Q,buttonFunc:se,buttonNeutFunc:$,actionHeaderText:W,actionFooterText:z}),v==="6"&&he.createElement(lt,{platform:e.platform,fontsLoaded:m,setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:f,userEmail:c,selectedCountry:k,allCountries:x,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),v==="7"&&e.action===""&&he.createElement(Xe,{platform:e.platform,action:e.action,setStep:y,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),v==="7"&&e.action!==""&&he.createElement(Xe,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:de}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),v==="8"&&e.dashbordElement&&he.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),v==="8"&&!e.dashbordElement&&he.createElement(he.Fragment,null),v==="0"&&he.createElement(Ze,{platform:e.platform,fontsLoaded:m,vaultId:ae?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:ae?.hashedVaultId,encrptedPk:ae?.pk,vaultAddress:ae?.address,vaultChannel:ae?.channel,actionText:tt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(de||e.chainId),action:"getPk",reqVaultData:ae,reqTxData:e.txData?Object.keys(e.txData)?.map(pe=>(e.txData[pe]=decodeURIComponent(e.txData[pe]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:P,setUserNumberFmt:g,setSelectedCountry:h,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard})),!m&&he.createElement(i,{style:{padding:20,width:"100%",heigth:"100%"}},he.createElement(a,null,"Loading Module Fonts...")))},Ht=Ei;var Ti=e=>{let[t,i]=Ke(!1),[a,s]=Ke({}),[K,L]=Ke(!1),[d,A]=Ke(null),[m,C]=Ke({}),[n,o]=Ke({}),[x,p]=Ke(!1),[v,y]=Ke(!1),[k,h]=Ke(!1),[f,g]=Ke(!1),[c,P]=Ke(""),[E,j]=Ke([]),[oe,q]=Ke(""),[Q,te]=Ke(e.defaultCountry||{area:"1",flag:N.usaFlag,name:"United States"}),[W,H]=Ke(""),[z,ie]=Ke("");ht(()=>{(async()=>{await Yt();let I=Et();I&&(s(I),i(!0))})()},[]);let{isReactNative:se,View:B,Text:$,Font:M,AsyncStorage:ue,ActivityIndicator:b,styles:fe}=a;return ht(()=>{!K&&t&&(async()=>{if(se)M&&await ve(M),L(!0);else{let I=ye(document);L(I)}})()},[t,K]),ht(()=>{t&&(async()=>{if(se){if(ue)try{let I=await ue.getItem("myVault");if(I){let D=JSON.parse(I);if(D?.vaultId){C(D),A(!0);return}}A(!1)}catch(I){console.error("Error reading vault data on react:",I),A(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",I=>{I.myVault&&JSON.parse(I.myVault)?.vaultId?(C(JSON.parse(I.myVault)),A(!0)):A(!1)});else if(localStorage){let I=JSON.parse(localStorage.getItem("myVault"));I&&I?.vaultId?(C(I),A(!0)):A(!1)}else A(!1)})()},[t]),ht(()=>{(()=>{let I=ut.map(D=>D?{name:D?.name,countryName:D?.name,officialName:D?.name,currencySymbol:D?.currency,currencyName:D?.currency,officialCurrencySymbol:D?.currency,countryCode:D?.code,flag:D?.flag,continent:D?.continent,phone_code:D?.phone_code,code:D?.code}:null).filter(D=>D!=null);j(I)})()},[]),U.createElement(U.Fragment,null,t&&U.createElement(U.Fragment,null,K&&U.createElement(Tt,null,x&&U.createElement(B,{style:se?{...fe.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},U.createElement(b,{size:"large",color:"blue"})),U.createElement(B,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:se?{...fe.verifiedCustdMdlContainer}:{}},d===null&&e.delayPageElement&&U.createElement(U.Fragment,null,e.delayPageElement),d===null&&!e.delayPageElement&&U.createElement(B,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),d!==null&&U.createElement(U.Fragment,null,!d&&U.createElement(Ht,{platform:a,fontsLoaded:K,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:ee(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.values(e.txData)[Object.keys(e.txData).length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:A,setIsLoading:p,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:y}),d&&!v&&!k&&U.createElement(Ze,{platform:a,fontsLoaded:K,setisOnboard:A,vaultId:m?.vaultId,hashedVaultId:m?.hashedVaultId,encrptedPk:m?.pk,vaultAddress:m?.address,vaultChannel:m?.channel,regAddress:m?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||tt[e.action],setIsLoading:p,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:ee(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.values(e.txData)[Object.keys(e.txData).length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowCompleteVault:h,setUserEmail:ie,setUserNumberFmt:H,setSelectedCountry:te,enablePhone:e.enablePhone}),d&&v&&k&&U.createElement(Ze,{platform:a,fontsLoaded:K,setisOnboard:A,vaultId:m?.vaultId,hashedVaultId:m?.hashedVaultId,encrptedPk:m?.pk,vaultAddress:m?.address,regAddress:m?.regAddress,vaultChannel:m?.channel,origin:e.origin,title:e.title,actionText:e.actionText||tt[e.action],setIsLoading:p,newChainId:Number(e.chainId),action:e.action||"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:ee(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.values(e.txData)[Object.keys(e.txData).length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:y,setShowCompleteVault:h,setUserEmail:ie,setUserNumberFmt:H,setSelectedCountry:te,enablePhone:e.enablePhone}),d&&!v&&k&&oe===""&&U.createElement(B,{style:{width:"100%",heigth:"100%",padding:"20px"}},U.createElement(lt,{platform:a,fontsLoaded:K,setStep:q,setIsLoading:p,userNumberFmt:W,userEmail:z,selectedCountry:Q,allCountries:E,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone})),d&&!v&&k&&oe==="7"&&U.createElement(Xe,{platform:a,action:e.action,setStep:q,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),d&&!v&&k&&oe==="8"&&e.dashbordElement&&U.createElement(e.dashbordElement,{setIsLoading:p}),d&&!v&&k&&oe==="8"&&!e.dashbordElement&&U.createElement(U.Fragment,null),d&&!k&&v&&!f&&e.dashbordElement&&U.createElement(e.dashbordElement,{setIsLoading:p,setShowResetPin:g,setAction:P,setUserNumberFmt:H,setUserEmail:ie,setSelectedCountry:te,setVaultData:o,initWalletAndContract:Ue}),d&&!k&&v&&!f&&!e.dashbordElement&&U.createElement(U.Fragment,null),d&&!k&&v&&f&&U.createElement(B,{style:{width:"100%",heigth:"100%",padding:"20px"}},U.createElement(st,{platform:a,fontsLoaded:K,action:"reset-pin",setStep:q,setIsLoading:p,userNumberFmt:W,userEmail:z,vaultData:m,selectedCountry:Q,helperFunctions:e.helperFunctions}))))),!K&&U.createElement($,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&U.createElement(U.Fragment,null,"Preparing Module..."))},Gi=Ti;export{lt as AddCoSignersPage,Dt as ContactPage,st as CreatePinPage,Ze as EnterPinPage,Ht as FTUPage,It as OTPPage,Tt as VaultContextProvider,Gi as VerifiedCustody,Oe as decryptString,Re as decryptWithPasskey,He as encryptString,Je as encryptWithPasskey,Et as getPlatformComponents,ee as hashTheString,Yt as initPlatform,ye as loadAllGoogleFonts,ve as loadAllGoogleFontsRN,Qe as publicKeyCredentialRequestOptions};
3
3
  //# sourceMappingURL=index.mjs.map