@verified-network/verified-custody 0.3.4 → 0.3.6

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 ha(e){if(!e||typeof document>"u")return;let u=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.type="text/css",u.firstChild?u.insertBefore(y,u.firstChild):u.appendChild(y),y.styleSheet?y.styleSheet.cssText=e:y.appendChild(document.createTextNode(e))}ha(`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}
2
- `);typeof chrome>"u"&&(window.chrome={});import le,{useEffect as Ct,useState as Ne}from"react";import va,{createContext as ya,useContext as ba,useState as Ke}from"react";var aa=ya(void 0),At=e=>{let[u,y]=Ke(null),[d,a]=Ke(null),[i,b]=Ke(null),[c,C]=Ke(null),[l,f]=Ke(null),[x,O]=Ke(null),[N,z]=Ke(null),[h,A]=Ke(null),[M,k]=Ke(null);return va.createElement(aa.Provider,{value:{chainId:u,pk:d,address:i,smAddress:c,signer:l,provider:x,vaultContract:N,vaultData:h,setChainId:y,setPk:a,setAddress:b,setSmAddress:C,setSigner:f,setProvider:O,setVaultContract:z,setVaultData:A}},e.children)},_e=()=>{let e=ba(aa);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import ye,{useEffect as Nt,useState as Se}from"react";import{debounce as an}from"lodash";var Le=process.env.REACT_APP_NODE_ENV==="production"?8453:84532,cn=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",na=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],ia=["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"],oa="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",sa={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},dt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},rt={connect_wallet:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access"},F={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"},vt=[{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 wa,Custody as xa,Provider as Na,VerifiedWallet as St}from"@verified-network/verified-sdk";var Ae={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:F.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:F.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:F.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:F.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:F.baseIcon}},je={BUNDLER_URL_FIRST_SECTION:"https://bundler.biconomy.io/api/v2",11155111:{PAYMASTER_API_KEY:"BuFP2-5w-.5b3daf3a-d044-4dda-819c-4c4d8431df88",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},137:{PAYMASTER_API_KEY:"lDHvYk50N.30a2522e-0a9d-444b-b949-19194c1f237a",BUNDLER_API_KEY:"dewj2189.wh1289hU-7E49-45ic-af80-JkuxGCYRV"},84532:{PAYMASTER_API_KEY:"jSBI-WRji.99a4dda1-1c20-42ea-9409-2724f9a0ca7e",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},1:{PAYMASTER_API_KEY:"ap7LOqALI.bf68e672-47ce-40f8-8b62-ea508dcf5852",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},8453:{PAYMASTER_API_KEY:"glRQsmuYh.5d9372ab-5063-4ecd-ac63-643fef624a73",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},100:{PAYMASTER_API_KEY:"eUYghbvi4.317a2d6d-6ee7-4a0c-b91f-43ba2699f65b",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"}};import Ca from"crypto";import Et from"crypto-js";import{toast as da}from"react-toastify";import{createSmartAccountClient as Aa}from"@biconomy/account";import lt from"react";import{toMultichainNexusAccount as Sa}from"@biconomy/abstractjs";import{base as Ea,baseSepolia as Ia,gnosis as ka,mainnet as Pa,polygon as _a,sepolia as Fa}from"viem/chains";import{http as Qe}from"viem";var Re=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let d=e.createElement("link");d.rel="preconnect",d.href="https://fonts.googleapis.com",e.head.appendChild(d)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let d=e.createElement("link");d.rel="preconnect",d.href="https://fonts.gstatic.com",e.head.appendChild(d)}return ia.map(d=>{if(!e.querySelector(`link[href="${d}"]`)){let i=e.createElement("link");i.rel="stylesheet",i.href=d,e.head.appendChild(i)}}),!0},et=async(e,u)=>{var y,d,a,i,b;try{let c;if(u)c=new St(u);else{let D=St.generateMnemonic();c=St.importWallet(D)}let C=wa,l=e&&((y=C[e])!=null&&y.Custody)&&((a=(d=Ae[e])==null?void 0:d.rpcUrls)==null?void 0:a.length)>0?e:Le,f=(i=Ae[l])==null?void 0:i.rpcUrls[0],x=c.setProvider(new Na(f)),O=c.privateKey,N=new xa(x,(b=C[l])==null?void 0:b.Custody),h=await(await Aa({signer:x,bundlerUrl:`${je.BUNDLER_URL_FIRST_SECTION}/${l}/${je[l].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:je[l].PAYMASTER_API_KEY})).getAccountAddress(),A=x,k=(await Sa({chains:[Ea,Pa,Fa,ka,Ia,_a],transports:[Qe(),Qe(),Qe(),Qe(),Qe(),Qe()],signer:A})).addressOn(l);return{chainId:l,address:k,smAddress:h,pk:O,signer:x,provider:f,vaultContract:N,vaultData:null}}catch(c){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",c),{chainId:null,address:null,smAddress:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},ue=e=>`0x${Ca.createHash("sha256").update(e).digest("hex")}`,Ge=(e,u)=>Et.AES.encrypt(e,u).toString(),Je=(e,u)=>{var y=Et.AES.decrypt(e,u),d=y.toString(Et.enc.Utf8);return d};var Da=(e,u)=>lt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},lt.createElement("img",{style:{marginLeft:"5px"},src:F.errorAlert,alt:""}),lt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},lt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),lt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},u)));var we=(e,u)=>(da.dismiss(),da.error(Da(e,u),{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 J,{useState as bt}from"react";import ct from"react";var Ta=e=>{var u;return ct.createElement("div",{className:"verified-custd-mdl-startup-slider"},((u=e.sliderCount)==null?void 0:u.length)>0&&e.sliderCount.map((y,d)=>ct.createElement(ct.Fragment,{key:d},d<=Number(e.currentSlider)&&ct.createElement("div",{key:`active-${d}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),d>Number(e.currentSlider)&&ct.createElement("div",{key:`inactive-${d}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},Ee=Ta;import T,{useState as Ba}from"react";var La=e=>{var d;let[u,y]=Ba(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:F.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:a=>{a.target.value===""?y(null):e.type==="language"?y(e.searchContent.filter(i=>{if(i.name.toLowerCase().includes(a.target.value.toLowerCase()))return i.searched=a.target.value.toLowerCase(),i.nameArray=i.name.split(""),i})):e.type==="area-code"&&y(e.searchContent.filter(i=>{var b,c;if((b=i==null?void 0:i.name)!=null&&b.toLowerCase().includes(a.target.value.toLowerCase()))return i.searched=a.target.value.toLowerCase(),i.nameArray=(c=i==null?void 0:i.name)==null?void 0:c.split(""),i})),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"},!u&&((d=e==null?void 0:e.searchContent)==null?void 0:d.length)>0&&e.searchContent.map((a,i)=>T.createElement(T.Fragment,{key:i},e.type==="area-code"&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected({area:a.phone_code,flag:a.flag,name:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),window.location.search===`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.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:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))),u&&u.length>0&&u.map((a,i)=>{var b,c,C;return T.createElement(T.Fragment,{key:i},e.type==="area-code"&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected({area:a==null?void 0:a.phone_code,flag:a==null?void 0:a.flag,name:a==null?void 0:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a==null?void 0:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((b=a==null?void 0:a.nameArray)==null?void 0:b.length)>0&&(a==null?void 0:a.nameArray.map((l,f)=>T.createElement(T.Fragment,{key:f},!a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f,style:{color:"#B6B7C3"}},l),a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f},l)))))),e.type==="language"&&T.createElement(T.Fragment,{key:i},window.location.search!==`?${i}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((c=a.nameArray)==null?void 0:c.length)>0&&a.nameArray.map((l,f)=>T.createElement(T.Fragment,{key:f},!a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f,style:{color:"#B6B7C3"}},l),a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f},l)))),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((C=a.nameArray)==null?void 0:C.length)>0&&a.nameArray.map((l,f)=>T.createElement(T.Fragment,{key:f},!a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f,style:{color:"#B6B7C3"}},l),a.searched.includes(l.toLowerCase())&&T.createElement("span",{key:f},l))),!a.searched.includes(a.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${a.label})`),a.searched.includes(a.label.toLowerCase())&&T.createElement("span",null,` (${a.label})`))),window.location.search===`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.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:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))}))))))},yt=La;import Ye from"react";var ra=()=>Ye.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Ye.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",Ye.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),la=e=>Ye.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",Ye.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var u,y;e.setIsLoading(!0),(u=chrome==null?void 0:chrome.storage)!=null&&u.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!((y=chrome==null?void 0:chrome.storage)!=null&&y.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),tt=()=>Ye.createElement("div",{className:"verified-custd-mdl-privacy"},Ye.createElement("img",{alt:"Privacy Icon",src:F.privacyTip,className:"verified-custd-mdl-privacy-icon"}),Ye.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var Va=e=>{var z;let[u,y]=bt(""),[d,a]=bt(""),[i,b]=bt(!1),[c,C]=bt(""),{pk:l,vaultContract:f,address:x}=_e(),O=()=>{var A,M;let h=document.getElementById("verified-custd-mdl-contact-button");h&&e.selectedCountry.area&&u.length===10||h&&((A=e.userEmail)==null?void 0:A.length)>0&&isNaN(Number(e.userEmail))&&((M=e.userEmail)!=null&&M.includes("@"))?(C(""),h.className="verified-custd-mdl-startup-button-active"):(C(""),h.className="verified-custd-mdl-startup-button")},N=async()=>{var h,A,M;if(!e.helperFunctions)C("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((h=e.userEmail)==null?void 0:h.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){C("Invalid input, please check your email");return}let k=((A=e.userEmail)==null?void 0:A.length)>0?e.userEmail:`+${e.selectedCountry.area}${u}`,D=((M=e.userEmail)==null?void 0:M.length)>0?"email":"sms";k&&D&&l&&f||k&&D&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(x,D,k).then(g=>{var U;e.setIsLoading(!1),g?(C(""),e.setStep("3")):(C(D==="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",((U=e.userEmail)==null?void 0:U.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?C(""):C("Network error. check your internet connection and try again.")}};return J.createElement("div",{className:"verified-custd-mdl-startup-language"},J.createElement("div",{className:"verified-custd-mdl-startup-contact"},J.createElement(Ee,{sliderCount:[1,2,3],currentSlider:"0"}),J.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},e.enablePhone&&J.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),!e.enablePhone&&J.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your email address"),e.enablePhone&&J.createElement("div",{className:"verified-custd-mdl-st-contact-input"},J.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},J.createElement("div",{onClick:()=>{b(!i)},className:"verified-custd-mdl-st-contact-first-section"},J.createElement("img",{onClick:()=>{b(!i)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),J.createElement("p",{onClick:()=>{b(!i)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),i&&J.createElement("img",{onClick:()=>{b(!i)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!i&&J.createElement("img",{onClick:()=>{b(!i)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),J.createElement("input",{onInputCapture:h=>{var k;h.target.value===""?a(d+" "):a(h.target.value);let A=(k=h.target.value)==null?void 0:k.replace(/\D/g,"");y(A);let M="";for(let D=0;D<(A==null?void 0:A.length);D++)M+=A[D],(D+1)%5===0&&D+1<(A==null?void 0:A.length)&&(M+=" ");e.setUserNumberFmt(M)},onInput:h=>{O()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),i&&J.createElement(yt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:O,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:i,setSearchActive:b,contentMaxHeight:"300",contentbottomMargin:"300"}),u.length!==10&&d.length>10&&c===""&&J.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},J.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(c==null?void 0:c.length)>0&&J.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},J.createElement("p",{className:"verified-custd-mdl-input-error-text"},c)))),!i&&J.createElement(J.Fragment,null,e.enablePhone&&J.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},J.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),J.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),J.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),J.createElement("div",{className:"verified-custd-mdl-st-contact-input"},J.createElement("input",{onInputCapture:h=>{var A;e.setUserEmail((A=h.target)==null?void 0:A.value),e.setUserNumberFmt(""),y(""),a("")},onInput:h=>{O()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(c==null?void 0:c.length)>0&&((z=e.userEmail)==null?void 0:z.length)>0&&J.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},J.createElement("p",{className:"verified-custd-mdl-input-error-text"},c))))),!i&&J.createElement("div",{style:{height:"80px"}}),J.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},J.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},J.createElement(ra,null),J.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async h=>{if(h.target.className.includes("verified-custd-mdl-startup-button")&&h.target.className!=="verified-custd-mdl-startup-button")h.target.className="verified-custd-mdl-startup-button-click",await N();else{let A=document.getElementsByClassName("verified-custd-mdl-startup-button-active");A.length>0&&(A[0].className="verified-custd-mdl-startup-button-click",await N())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),J.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},J.createElement(tt,null)))))},It=Va;import Y,{useEffect as Ua,useState as wt}from"react";var Oa=e=>{var k,D,g,U,L,S;let[u,y]=wt(!1),[d,a]=wt(60),[i,b]=wt(!1),[c,C]=wt(""),{pk:l,vaultContract:f,address:x}=_e();Ua(()=>{if(d===0)return;let r=setInterval(()=>{a(n=>n-1)},1e3);return()=>clearInterval(r)},[d]);let O=r=>{if(r.value.length>0){let n=r.nextElementSibling;n&&n.focus()}else r.value.length===0&&r.focus()},N=r=>{let n=r.clipboardData.getData("text"),E=n==null?void 0:n.replace(/\D/g,""),P=document.getElementsByClassName("otp-input");if((P==null?void 0:P.length)===4&&(E==null?void 0:E.length)>0)for(let H=0;H<P.length;H++)E[H]&&(P[H].value=E[H],P[H].focus())},z=r=>{let n=r.target.previousElementSibling;n&&n.focus()},h=()=>{let r=document.getElementById("verified-custd-mdl-otp-button"),n=document.getElementById("verified-custd-mdl-otp-input-1"),E=document.getElementById("verified-custd-mdl-otp-input-2"),P=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4");r&&(n==null?void 0:n.value.length)>0&&(E==null?void 0:E.value.length)>0&&(P==null?void 0:P.value.length)>0&&(H==null?void 0:H.value.length)>0&&!i?r.className="verified-custd-mdl-startup-button-active":r.className="verified-custd-mdl-startup-button"},A=async()=>{var r,n,E,P,H,W,ee,q,te,Q;if(!e.helperFunctions)C("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),b(!0);else{let G=((r=e.userEmail)==null?void 0:r.length)>0?e.userEmail:`+${e.selectedCountry.area}${(n=e.userNumberFmt)==null?void 0:n.replace(" ","")}`,ae=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),o=document.getElementById("verified-custd-mdl-otp-input-3"),v=document.getElementById("verified-custd-mdl-otp-input-4");if(((E=ae==null?void 0:ae.value)==null?void 0:E.length)>0&&((P=ne==null?void 0:ne.value)==null?void 0:P.length)>0&&((H=o==null?void 0:o.value)==null?void 0:H.length)>0&&((W=v==null?void 0:v.value)==null?void 0:W.length)>0&&G&&l&&f||((ee=ae==null?void 0:ae.value)==null?void 0:ee.length)>0&&((q=ne==null?void 0:ne.value)==null?void 0:q.length)>0&&((te=o==null?void 0:o.value)==null?void 0:te.length)>0&&((Q=v==null?void 0:v.value)==null?void 0:Q.length)>0&&G&&e.noContract){e.setIsLoading(!0);let oe=(ae==null?void 0:ae.value)+(ne==null?void 0:ne.value)+(o==null?void 0:o.value)+(v==null?void 0:v.value);await e.helperFunctions.checkOTPVerification(x,G,String(oe)).then(se=>{e.setIsLoading(!1),se?e.setStep("4"):b(!0)})}}},M=async()=>{var r,n,E;if(!e.helperFunctions)C("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),b(!0);else{let P=((r=e.userEmail)==null?void 0:r.length)>0?e.userEmail:`+${e.selectedCountry.area}${(n=e.userNumberFmt)==null?void 0:n.replace(" ","")}`,H=((E=e.userEmail)==null?void 0:E.length)>0?"email":"sms";P&&H&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(x,H,P).then(W=>{if(e.setIsLoading(!1),W){a(60),b(!1),C("");let ee=document.getElementById("verified-custd-mdl-otp-input-1"),q=document.getElementById("verified-custd-mdl-otp-input-2"),te=document.getElementById("verified-custd-mdl-otp-input-3"),Q=document.getElementById("verified-custd-mdl-otp-input-4");ee.value="",q.value="",te.value="",Q.value=""}else we("Oops something went wrong","Unexpected error")}))}};return Y.createElement("div",{className:"verified-custd-mdl-startup-language"},Y.createElement("div",{className:"verified-custd-mdl-startup-contact"},Y.createElement(Ee,{sliderCount:[1,2,3],currentSlider:"0"}),Y.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},Y.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),Y.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},Y.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",Y.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((k=e.userNumberFmt)==null?void 0:k.length)>0?"phone number":"email address"),Y.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},Y.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((D=e.userNumberFmt)==null?void 0:D.length)>0&&Y.createElement(Y.Fragment,null,Y.createElement("span",null,"(+",(g=e.selectedCountry)==null?void 0:g.area,")")," ",Y.createElement("span",null," ",(U=e.userNumberFmt)==null?void 0:U.split(" ")[0])," ",Y.createElement("span",null," ",(L=e.userNumberFmt)==null?void 0:L.split(" ")[1])),((S=e.userEmail)==null?void 0:S.length)>0&&Y.createElement("span",null,e.userEmail)),Y.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:F.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),Y.createElement("div",{className:"verified-custd-mdl-otp-input-container"},Y.createElement("div",{className:"verified-custd-mdl-otp-input-group"},Y.createElement("input",{onInputCapture:r=>{var n;r.target.value=(n=r.target.value)==null?void 0:n.replace(/\D/g,""),b(!1),C("")},onInput:r=>{O(r.target),h()},onKeyDown:r=>{r.key==="Backspace"&&r.target.value===""&&z(r)},onPaste:r=>{N(r)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),Y.createElement("input",{onInputCapture:r=>{var n;r.target.value=(n=r.target.value)==null?void 0:n.replace(/\D/g,""),b(!1),C("")},onInput:r=>{O(r.target),h()},onKeyDown:r=>{r.key==="Backspace"&&r.target.value===""&&z(r)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),Y.createElement("input",{onInputCapture:r=>{var n;r.target.value=(n=r.target.value)==null?void 0:n.replace(/\D/g,""),b(!1),C("")},onInput:r=>{O(r.target),h()},onKeyDown:r=>{r.key==="Backspace"&&r.target.value===""&&z(r)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),Y.createElement("input",{onInputCapture:r=>{var n;r.target.value=(n=r.target.value)==null?void 0:n.replace(/\D/g,""),b(!1),C("")},onInput:r=>{O(r.target),h()},onKeyDown:r=>{r.key==="Backspace"&&r.target.value===""&&z(r)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),Y.createElement("div",{className:"verified-custd-mdl-otp-timer"},!i&&d>5&&c===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},Y.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),d),!i&&d<=5&&d>0&&c===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},Y.createElement("span",{style:{fontWeight:400}},"00:"),d),!i&&d===0&&c===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),i&&c===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),i&&(c==null?void 0:c.length)>0&&Y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},c),!i&&d>0&&c===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!i&&d===0&&c===""&&Y.createElement("p",{onClick:async()=>{let r=document.getElementsByClassName("otp-input");if(r)for(let n=0;n<r.length;n++)r[n].value="";await M()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),i&&c===""&&Y.createElement("p",{onClick:async()=>{let r=document.getElementsByClassName("otp-input");if(r)for(let n=0;n<r.length;n++)r[n].value="";await M()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!u&&Y.createElement("div",{style:{height:"100px"}}),Y.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},Y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},Y.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async r=>{if(r.target.className.includes("verified-custd-mdl-startup-button")&&r.target.className!=="verified-custd-mdl-startup-button")r.target.className="verified-custd-mdl-startup-button-click",await A();else{let n=document.getElementsByClassName("verified-custd-mdl-startup-button-active");n.length>0&&(n[0].className="verified-custd-mdl-startup-button-click",await A())}},className:"verified-custd-mdl-startup-button"},"Proceed"),Y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},Y.createElement(tt,null)))))},kt=Oa;import w,{useState as Ue}from"react";import{AbiCoder as Ma,encodeBytes32String as Ve}from"ethers";import{combine as za,split as Ha}from"shamir-secret-sharing";import{contractAddress as ut,Custody as mt,Provider as nt,VerifiedWallet as We}from"@verified-network/verified-sdk";import{createSmartAccountClient as Ka}from"@biconomy/account";import{toMultichainNexusAccount as ja}from"@biconomy/abstractjs";import{base as Ga,baseSepolia as Ya,gnosis as Wa,mainnet as $a,polygon as Za,sepolia as Ja}from"viem/chains";import{http as at}from"viem";var ca=async(e,u,y,d,a,i,b,c,C,l,f,x)=>{try{let O={vaultId:e,hashedVaultId:u,vaultPin:y,hashedVaultPin:d,vaultContract:C};return await C.getCreator(u,d).then(async N=>{var z,h,A,M,k,D,g,U;if((N==null?void 0:N.status)===0)try{let L=Ve(y),S=Ge(i,L);if(l==="invitation")return{isExisting:!0,...O};if((z=chrome==null?void 0:chrome.storage)!=null&&z.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:u,pk:S,channel:a})}):!((h=chrome==null?void 0:chrome.storage)!=null&&h.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:u,pk:S,channel:a})),(A=chrome==null?void 0:chrome.runtime)!=null&&A.sendMessage)chrome.runtime.sendMessage({type:l&&l==="connect_wallet"?"getPk":l&&l!=="connect_wallet"?l:"getPk",value:{vaultData:l&&l==="signRecovery"||l&&l==="completeRecovery"?f:{vaultId:e,hashedVaultId:u,hashedVaultPin:d},txData:x}});else if(!((M=chrome==null?void 0:chrome.runtime)!=null&&M.sendMessage)){let r=new CustomEvent(l&&l==="connect_wallet"?"getPk":l&&l!=="connect_wallet"?l:"getPk",{detail:{value:{vaultData:l&&l==="signRecovery"||l&&l==="completeRecovery"?f:{vaultId:e,hashedVaultId:u,hashedVaultPin:d},txData:x}}});window.dispatchEvent(r)}return l==="getPk"?{vaultId:e,hashedVaultId:u,pk:S,channel:a,shouldStop:!0}:{shouldStop:!0}}catch(L){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",L),we("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((k=N==null?void 0:N.reason)==null?void 0:k.toLowerCase())==="invalid pin"){let L;return(D=chrome==null?void 0:chrome.storage)!=null&&D.local?L=await new Promise(S=>{chrome.storage.local.get(["lastPk"],r=>{S(r.lastPk)})}):!((g=chrome==null?void 0:chrome.storage)!=null&&g.local)&&localStorage&&(L=localStorage.getItem("lastPk")),l==="reset-pin"&&(f!=null&&f.hashedOldPin)&&(f!=null&&f.vaultContract)?await Xa(u,f==null?void 0:f.hashedOldPin,d,f==null?void 0:f.vaultContract):L&&(L==null?void 0:L.length)>0?await C.confirmParticipant(u,d,u,d,!0).then(async S=>{var r,n,E,P;if((S==null?void 0:S.status)===0){(r=chrome==null?void 0:chrome.storage)!=null&&r.local?await chrome.storage.local.remove("lastPk"):!((n=chrome==null?void 0:chrome.storage)!=null&&n.local)&&localStorage&&localStorage.removeItem("lastPk");try{let W=await new We(i).getAddress(),ee=Ve(y),q=Ge(i,ee);return(E=chrome==null?void 0:chrome.storage)!=null&&E.local?await chrome.storage.local.set({myVault:JSON.stringify({address:b,regAddress:W,smAddress:c,vaultId:e,hashedVaultId:u,pk:q,channel:a})}):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:b,regAddress:W,smAddress:c,vaultId:e,hashedVaultId:u,pk:q,channel:a})),O}catch(H){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: ",H),!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: ",S),!1}):null}else if(((U=N==null?void 0:N.reason)==null?void 0:U.toLowerCase())==="wallet not created")return await C.createVault(u,d).then(async L=>{var S,r;return(L==null?void 0:L.status)===0?((S=chrome==null?void 0:chrome.storage)!=null&&S.local?await chrome.storage.local.set({lastPk:i}):!((r=chrome==null?void 0:chrome.storage)!=null&&r.local)&&localStorage&&localStorage.setItem("lastPk",i),await C.confirmParticipant(u,d,u,d,!0).then(async n=>{var E,P,H,W;if((n==null?void 0:n.status)===0){(E=chrome==null?void 0:chrome.storage)!=null&&E.local?await chrome.storage.local.remove("lastPk"):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.removeItem("lastPk");try{let q=await new We(i).getAddress(),te=Ve(y),Q=Ge(i,te);return(H=chrome==null?void 0:chrome.storage)!=null&&H.local?await chrome.storage.local.set({myVault:JSON.stringify({address:b,regAddress:q,smAddress:c,vaultId:e,hashedVaultId:u,pk:Q,channel:a})}):!((W=chrome==null?void 0:chrome.storage)!=null&&W.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:b,regAddress:q,smAddress:c,vaultId:e,hashedVaultId:u,pk:Q,channel:a})),O}catch(ee){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: ",ee),!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: ",n),!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: ",L),!1)})})}catch(O){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",O),we("Oops something went wrong","Error while creating pin. Try again later"),!1}},ua=async(e,u,y,d,a,i,b,c,C,l)=>{var f,x,O,N;try{let z=Ve(y),h=Je(a,z);if(h){let A=ut,M=new We(h),k=c&&((f=A[c])!=null&&f.Custody)&&((O=(x=Ae[c])==null?void 0:x.rpcUrls)==null?void 0:O.length)>0?c:Le,D=(N=Ae[k])==null?void 0:N.rpcUrls[0],g=M.setProvider(new nt(D)),U=new mt(g,A[k].Custody);return U?await U.getCreator(u,d).then(async L=>{var S,r,n,E;if((L==null?void 0:L.status)===0){let P=await U.getQuorum(u,d);return(P==null?void 0:P.status)===0&&((r=(S=P==null?void 0:P.response)==null?void 0:S.result)==null?void 0:r.length)>0?C&&Number((n=P==null?void 0:P.response)==null?void 0:n.result[0])>0?{address:i,vaultId:e,hashedVaultId:u,channel:b,chainId:l||k,pin:y,pk:h}:Number((E=P==null?void 0:P.response)==null?void 0:E.result[0])===0?{address:i,vaultId:e,hashedVaultId:u,channel:b,chainId:l||k,pin:y,pk:h,inCompleteVault:!0}:{address:i,vaultId:e,hashedVaultId:u,channel:b,chainId:l||k,pin:y}:(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(z){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",z),null}},xt=async(e,u,y,d,a,i,b,c,C,l,f,x,O)=>{var z,h,A,M;let N;if(f)N=f;else{let k=ut,D=new We(x),g=O&&((z=k[O])!=null&&z.Custody)&&((A=(h=Ae[O])==null?void 0:h.rpcUrls)==null?void 0:A.length)>0?O:Le,U=(M=Ae[g])==null?void 0:M.rpcUrls[0],L=D.setProvider(new nt(U));N=new mt(L,k[g].Custody)}return N?await N.confirmParticipant(i,a,d,b,l).then(async k=>(k==null?void 0:k.status)===0?(l?await e(y,c,C):await u(y,c,C),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",k),!1)):!1},ma=async(e,u,y,d,a,i,b,c,C,l,f,x)=>{let O=Number(y.length),z=(await Ha(Uint8Array.from(x.split("").map(k=>k.charCodeAt(0))),Number(O),i)).map(k=>k.join(",")),h=Ve(C),A=[],M=[];for(let k=0;k<y.length;k++){let D=y[k];await f.addParticipant(c,l,ue(D.vaultId),Ge(z[k],h)).then(async g=>{let U={creatorVaultId:b,vaultPin:C,creatorHashedVaultId:c,creatorHashedVaultPin:l,cosigner:D.vaultId,hashedCosigner:ue(D.vaultId),cosignerVaultIdType:D.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:D.vaultId,share:Ge(z[k],h),...D};(g==null?void 0:g.status)===0?(M.push(U),D.vaultId!==b&&await e(D.otpChannel,D.vaultId,b,l).then(L=>{L||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):A.push(U)}),await new Promise(g=>setTimeout(g,1e3))}return(A==null?void 0:A.length)>0||(M==null?void 0:M.length)!==(y==null?void 0:y.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 f.defineQuorum(c,l,i.toString()).then(async k=>{if((k==null?void 0:k.status)===0){let D=d==null?void 0:d.map(g=>{var U;return{name:g==null?void 0:g.name,email:g==null?void 0:g.email,phoneNumber:g==null?void 0:g.phoneNumber,contactType:(U=String(g==null?void 0:g.otpChannel))==null?void 0:U.toUpperCase(),position:`${sa[Number(g==null?void 0:g.position)]} Co-Signer`}});return await u(a,b,D,Number(i)).then(g=>{g||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})},fa=async(e,u,y,d,a,i,b,c)=>{var f,x,O,N;let C=Ve(a),l=Je(i,C);if(l){let z=ut,h=new We(l),A=c&&((f=z[c])!=null&&f.Custody)&&((O=(x=Ae[c])==null?void 0:x.rpcUrls)==null?void 0:O.length)>0?c:Le,M=(N=Ae[A])==null?void 0:N.rpcUrls[0],k=h.setProvider(new nt(M)),D=new mt(k,z[A].Custody);if(D)return await D.promptSignatures(u,y).then(async g=>{var U,L,S,r,n,E,P;if((g==null?void 0:g.status)===0&&((L=(U=g==null?void 0:g.response)==null?void 0:U.result)!=null&&L.logs)){let H=new Ma,W=(n=(r=(S=g==null?void 0:g.response)==null?void 0:S.result)==null?void 0:r.logs)==null?void 0:n.filter(Q=>{var G,ae,ne,o,v;return((G=Q==null?void 0:Q.address)==null?void 0:G.toLowerCase())===((ae=z[A].Custody)==null?void 0:ae.toLowerCase())&&((v=(ne=Q==null?void 0:Q.topics)==null?void 0:ne.map(oe=>oe==null?void 0:oe.toLowerCase()))==null?void 0:v.includes((o=oa)==null?void 0:o.toLowerCase()))}),ee=(E=W[0])==null?void 0:E.data,q=(P=H.decode(["bytes32","bytes32","uint256"],ee))==null?void 0:P.map((Q,G)=>G<2?Q:Number(Q)).flat(),te=q[(q==null?void 0:q.length)-1];return await e(b,d,y,Number(te),Number(W==null?void 0:W.length)),!0}else return!1}).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",g),!1))}},ga=async(e,u,y,d,a,i,b,c,C,l,f,x)=>{var z,h,A,M;let O=Ve(i),N=Je(b,O);if(N){let k=ut,D=new We(N),g=x&&((z=k[x])!=null&&z.Custody)&&((A=(h=Ae[x])==null?void 0:h.rpcUrls)==null?void 0:A.length)>0?x:Le,U=(M=Ae[g])==null?void 0:M.rpcUrls[0],L=D.setProvider(new nt(U)),S=new mt(L,k[g].Custody);if(S)return await S.signTransaction(C,d,y,f,l).then(async r=>(r==null?void 0:r.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,a),await S.checkQuorum(C,l,y,f).then(async n=>{var E,P;return(n==null?void 0:n.status)===0&&((E=n==null?void 0:n.response)!=null&&E.result)?(((P=n==null?void 0:n.response)==null?void 0:P.result[0])===!0&&await u(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,Number(f)),!0):!1})):!1).catch(r=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",r),!1))}},pa=async(e,u,y,d,a,i,b,c)=>{var f,x,O,N;let C=Ve(d),l=Je(a,C);if(l){let z=ut,h=new We(l),A=c&&((f=z[c])!=null&&f.Custody)&&((O=(x=Ae[c])==null?void 0:x.rpcUrls)==null?void 0:O.length)>0?c:Le,M=(N=Ae[A])==null?void 0:N.rpcUrls[0],k=h.setProvider(new nt(M)),D=new mt(k,z[A].Custody);return D?await D.checkQuorum(e,u,e,i).then(async g=>{var U,L;return(g==null?void 0:g.status)===0&&((U=g==null?void 0:g.response)!=null&&U.result)&&((L=g==null?void 0:g.response)==null?void 0:L.result[0])===!0?await D.getShards(e,u,i).then(async S=>{var r,n,E,P;if((S==null?void 0:S.status)===0&&((r=S==null?void 0:S.response)!=null&&r.result)){let H=(n=S==null?void 0:S.response)==null?void 0:n.result.filter(W=>W!=="");if(H.length>1){let W=Ve(d),q=H.map(G=>Je(G,W)).map(G=>new Uint8Array(G.split(",").map(Number))),te=await za(q),Q=new TextDecoder().decode(te);if(Q){let G=Ve(d),ae=Ge(Q,G),ne=new We(Q),o=await ne.getAddress(),v=ne.setProvider(new nt(M)),se=await(await Ka({signer:v,bundlerUrl:`${je.BUNDLER_URL_FIRST_SECTION}/${A}/${je[A].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:je[A].PAYMASTER_API_KEY})).getAccountAddress(),ie=v,s=(await ja({chains:[Ga,$a,Ja,Wa,Ya,Za],transports:[at(),at(),at(),at(),at(),at()],signer:ie})).addressOn(A);return(E=chrome==null?void 0:chrome.storage)!=null&&E.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:s,regAddress:o,smAddress:se,vaultId:y,hashedVaultId:e,pk:ae,channel:b})})):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:s,regAddress:o,smAddress:se,vaultId:y,hashedVaultId:e,pk:ae,channel:b}))),!0}}else return!1}else return!1}).catch(S=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",S),!1)):!1}).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",g),!1)):!1}},Xa=async(e,u,y,d)=>await d.resetPin(e,u,y).then(async a=>(a==null?void 0:a.status)===0?await d.confirmParticipant(e,y,e,y,!0).then(b=>(b==null?void 0:b.status)===0?{}:null):null);import $e from"react";var qa=e=>{var a,i;let u=e.showButton?null:setTimeout(()=>{var b,c,C,l;if(e.messageTosend)try{if((b=chrome==null?void 0:chrome.runtime)!=null&&b.sendMessage)chrome.runtime.sendMessage(e.messageTosend,f=>{f&&e.action!=="signRecovery"&&window.close()});else if(!((c=chrome==null?void 0:chrome.runtime)!=null&&c.sendMessage)){let f=new CustomEvent((C=e.messageTosend)==null?void 0:C.type,{detail:{value:(l=e.messageTosend)==null?void 0:l.value}});window.dispatchEvent(f)}}catch(f){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",f),we("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),y=()=>{e.setStep("6")},d=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return $e.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},$e.createElement("div",{className:"verified-custd-mdl-success-popup-content"},$e.createElement("img",{style:{width:"90%"},src:F.successIcon,alt:"Success Icon"}),$e.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},$e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),$e.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&&$e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{u&&clearTimeout(u),e.action==="invitation"&&y()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((i=e.buttonNeutText)==null?void 0:i.length)>0&&$e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{u&&clearTimeout(u),e.action==="invitation"&&d()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Fe=qa;var Qa=e=>{var Q,G,ae,ne;let[u,y]=Ue(!1),[d,a]=Ue(!1),[i,b]=Ue(""),[c,C]=Ue(!0),[l,f]=Ue(!1),[x,O]=Ue(!1),[N,z]=Ue(!1),[h,A]=Ue(""),[M,k]=Ue(""),[D,g]=Ue(!1),{address:U,pk:L,vaultContract:S,setVaultData:r,setChainId:n,vaultData:E,smAddress:P}=_e(),H=o=>{if(o.value.length>0){let v=o.nextElementSibling;v&&v.focus()}else o.value.length===0&&o.focus()},W=o=>{let v=o.target.previousElementSibling;v&&v.focus()},ee=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),v=document.getElementById("verified-custd-mdl-otp-input-1"),oe=document.getElementById("verified-custd-mdl-otp-input-2"),se=document.getElementById("verified-custd-mdl-otp-input-3"),ie=document.getElementById("verified-custd-mdl-otp-input-4"),$=document.getElementById("verified-custd-mdl-otp-input-5"),s=document.getElementById("verified-custd-mdl-otp-input-6"),_=document.getElementById("verified-custd-mdl-otp-input-7"),R=document.getElementById("verified-custd-mdl-otp-input-8");o&&(v==null?void 0:v.value.length)>0&&(oe==null?void 0:oe.value.length)>0&&(se==null?void 0:se.value.length)>0&&(ie==null?void 0:ie.value.length)>0&&($==null?void 0:$.value.length)>0&&(s==null?void 0:s.value.length)>0&&(_==null?void 0:_.value.length)>0&&(R==null?void 0:R.value.length)>0?(v==null?void 0:v.value)+(oe==null?void 0:oe.value)+(se==null?void 0:se.value)+(ie==null?void 0:ie.value)===($==null?void 0:$.value)+(s==null?void 0:s.value)+(_==null?void 0:_.value)+(R==null?void 0:R.value)?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",a(!0)):o.className="verified-custd-mdl-startup-button"},q=async()=>{var o,v,oe,se,ie,$,s,_,R,m,I,K,j,X,me,re,fe,ge,pe,be,V,De,Te,ce,he;if(!e.helperFunctions)b("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{b(""),a(!1);let B=document.getElementById("verified-custd-mdl-otp-input-1"),de=document.getElementById("verified-custd-mdl-otp-input-2"),ve=document.getElementById("verified-custd-mdl-otp-input-3"),ke=document.getElementById("verified-custd-mdl-otp-input-4"),Oe=document.getElementById("verified-custd-mdl-otp-input-5"),Me=document.getElementById("verified-custd-mdl-otp-input-6"),ze=document.getElementById("verified-custd-mdl-otp-input-7"),He=document.getElementById("verified-custd-mdl-otp-input-8"),Ze=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(v=e.userNumberFmt)==null?void 0:v.replace(" ","")}`,Xe=((oe=e.userEmail)==null?void 0:oe.length)>0?"email":"sms";if(((se=B==null?void 0:B.value)==null?void 0:se.length)>0&&((ie=de==null?void 0:de.value)==null?void 0:ie.length)>0&&(($=ve==null?void 0:ve.value)==null?void 0:$.length)>0&&((s=ke==null?void 0:ke.value)==null?void 0:s.length)>0&&((_=Oe==null?void 0:Oe.value)==null?void 0:_.length)>0&&((R=Me==null?void 0:Me.value)==null?void 0:R.length)>0&&((m=ze==null?void 0:ze.value)==null?void 0:m.length)>0&&((I=He==null?void 0:He.value)==null?void 0:I.length)>0&&Ze&&Xe&&L&&U&&S||((K=B==null?void 0:B.value)==null?void 0:K.length)>0&&((j=de==null?void 0:de.value)==null?void 0:j.length)>0&&((X=ve==null?void 0:ve.value)==null?void 0:X.length)>0&&((me=ke==null?void 0:ke.value)==null?void 0:me.length)>0&&((re=Oe==null?void 0:Oe.value)==null?void 0:re.length)>0&&((fe=Me==null?void 0:Me.value)==null?void 0:fe.length)>0&&((ge=ze==null?void 0:ze.value)==null?void 0:ge.length)>0&&((pe=He==null?void 0:He.value)==null?void 0:pe.length)>0&&Ze&&Xe&&((be=e.vaultData)!=null&&be.vaultContract)&&((V=e.vaultData)!=null&&V.hashedOldPin)){e.setIsLoading(!0);let qe=(B==null?void 0:B.value)+(de==null?void 0:de.value)+(ve==null?void 0:ve.value)+(ke==null?void 0:ke.value),pt=ue(Ze),ht=ue(qe);await ca(Ze,pt,qe,ht,Xe,L||((De=e.vaultData)==null?void 0:De.pk),U||((Te=e.vaultData)==null?void 0:Te.address),P||((ce=e.vaultData)==null?void 0:ce.smAddress),S||((he=e.vaultData)==null?void 0:he.vaultContract),e.action,e.vaultData,e.txData).then(Z=>{var ot,st;e.setIsLoading(!1),Z?(r(Z!=null&&Z.shouldStop&&(Z!=null&&Z.vaultId)?{vaultId:Z==null?void 0:Z.vaultId,hashedVaultId:Z==null?void 0:Z.hashedVaultId,pk:Z==null?void 0:Z.pk,channel:Z==null?void 0:Z.channel}:Z!=null&&Z.shouldStop?{}:Z),b(""),a(!1),e.action==="invitation"?(k(qe),f(!0)):e.action==="reset-pin"?((ot=chrome==null?void 0:chrome.storage)!=null&&ot.local?chrome.storage.local.remove("myVault"):!((st=chrome==null?void 0:chrome.storage)!=null&&st.local)&&localStorage&&localStorage.removeItem("myVault"),A("You have successfully reset your account pin. Login with the new pin"),z(!0)):Z!=null&&Z.shouldStop?Z!=null&&Z.shouldStop&&e.action!=="getPk"?(A(""),z(!0)):Z!=null&&Z.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):Z===null?e.action==="reset-pin"?(b("Reset pin failed. Try again later."),a(!0)):(b("You are an existing user. Please input the right pin to recover your account."),a(!0)):(b("Unexpected error while creating account. Please try again later."),a(!0))})}}},te=async o=>{var se,ie,$,s,_,R,m,I;let v=((se=e.userEmail)==null?void 0:se.length)>0?e.userEmail:`+${e.selectedCountry.area}${(ie=e.userNumberFmt)==null?void 0:ie.replace(" ","")}`,oe=(($=e.userEmail)==null?void 0:$.length)>0?"email":"sms";if((M==null?void 0:M.length)===4&&((s=e==null?void 0:e.vaultData)!=null&&s.hashedVaultId)&&((_=e.vaultData)!=null&&_.hashedVaultPin)&&v){e.setIsLoading(!0);let K=ue(v),j=ue(M);await xt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,oe,K,j,(R=e==null?void 0:e.vaultData)==null?void 0:R.hashedVaultId,(m=e.vaultData)==null?void 0:m.hashedVaultPin,(I=e.vaultData)==null?void 0:I.vaultId,v,o,S).then(X=>{var me,re;e.setIsLoading(!1),X&&!(E!=null&&E.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 ${(me=e.vaultData)==null?void 0:me.vaultId}`:`You rejected Co-signer reject from ${(re=e.vaultData)==null?void 0:re.vaultId}`),e.setStep("5")):X&&(E!=null&&E.isExisting)&&O(!0)})}};return w.createElement(w.Fragment,null,!N&&!l&&w.createElement("div",{className:"verified-custd-mdl-startup-language"},w.createElement("div",{className:"verified-custd-mdl-startup-contact"},w.createElement(Ee,{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"},"Create PIN"),w.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},w.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),w.createElement("div",{className:"verified-custd-mdl-otp-input-container"},w.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),w.createElement("div",{className:"verified-custd-mdl-otp-input-group"},w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"}))),w.createElement("div",{className:"verified-custd-mdl-otp-input-container"},w.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),w.createElement("div",{className:"verified-custd-mdl-otp-input-group"},w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),w.createElement("input",{onInputCapture:o=>{var v;o.target.value=(v=o.target.value)==null?void 0:v.replace(/\D/g,""),a(!1)},onInput:o=>{H(o.target),ee()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&W(o)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),w.createElement("div",{className:"verified-custd-mdl-otp-timer"},!d&&w.createElement("p",null),d&&i===""&&w.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),d&&(i==null?void 0:i.length)>0&&w.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},i),!c&&w.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>C(!0),src:F.pinShow,alt:"show pin icon"}),c&&w.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>C(!1),src:F.pinHide,alt:"hide pin icon"})))),!u&&w.createElement("div",{style:{height:"30px"}}),w.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},w.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},w.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 q();else{let v=document.getElementsByClassName("verified-custd-mdl-startup-button-active");v.length>0&&(v[0].className="verified-custd-mdl-startup-button-click",await q())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!N&&l&&w.createElement(w.Fragment,null,!x&&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(Ee,{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,(Q=e.vaultData)==null?void 0:Q.vaultId)," has requested you to be a Co-Signer"))),w.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!D&&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:F.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:F.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:()=>{g(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),w.createElement("button",{onClick:async()=>{await te(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),D&&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,(G=e.vaultData)==null?void 0:G.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 te(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),w.createElement("button",{onClick:()=>{g(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),x&&w.createElement(Fe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:D?`You rejected Co-signer reject from ${(ne=e.vaultData)==null?void 0:ne.vaultId}`:`You have been added as a Co-Signer for ${(ae=e.vaultData)==null?void 0:ae.vaultId}`})),N&&w.createElement(Fe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(h==null?void 0:h.length)>0?h:"You have successfully logged in your account."}))},ft=Qa;import t,{useState as xe}from"react";var Ra=e=>{var oe,se,ie,$;let[u,y]=xe(!1),[d,a]=xe("1"),[i,b]=xe("1"),[c,C]=xe(!1),[l,f]=xe("email"),[x,O]=xe(""),[N,z]=xe(""),[h,A]=xe(""),[M,k]=xe(""),[D,g]=xe(""),[U,L]=xe(!1),[S,r]=xe(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[n,E]=xe([]),[P,H]=xe(!1),[W,ee]=xe(2),[q,te]=xe(""),{pk:Q,vaultData:G,vaultContract:ae}=_e(),ne=()=>{let s=document.getElementById("add-cosigner-button");s&&(n==null?void 0:n.length)>0?s.className="startup-button-active":s.className="startup-button"},o=()=>{var _,R,m,I;if(l==="sms"&&(x==null?void 0:x.length)===0){te("Invalid input, please check the phone number");return}else if(l==="sms"&&(x==null?void 0:x.length)!==10){te("Invalid input, please check the phone number");return}else if(l==="email"&&(h==null?void 0:h.length)===0){te("Invalid input, please check the email");return}else if(l==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h)){te("Invalid input, please check the email");return}else if(n!=null&&n.find(K=>{var j,X,me,re;return(K==null?void 0:K.otpChannel)==="sms"?((j=K==null?void 0:K.phoneArea)==null?void 0:j.toLowerCase())+((X=K==null?void 0:K.number)==null?void 0:X.toLowerCase())===((me=S.area)==null?void 0:me.toLowerCase())+(N==null?void 0:N.toLowerCase()):((re=K==null?void 0:K.email)==null?void 0:re.toLowerCase())===(h==null?void 0:h.toLowerCase())})){te(l==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(l==="sms"&&((_=S==null?void 0:S.area)==null?void 0:_.toLowerCase())+(N==null?void 0:N.toLowerCase())===((R=e.selectedCountry.area)==null?void 0:R.toLowerCase())+((m=e.userNumberFmt)==null?void 0:m.toLowerCase())){te("Invalid input, phone number is creator's phone number");return}else if(l==="email"&&(h==null?void 0:h.toLowerCase())===((I=e.userEmail)==null?void 0:I.toLowerCase())){te("Invalid input, email is creator's email");return}te("");let s=n==null?void 0:n.length;E(K=>[{name:M,email:h,number:N,phoneNumber:`+${S==null?void 0:S.area}${x}`,otpChannel:l,phoneArea:S==null?void 0:S.area,position:(K==null?void 0:K.length)+1,vaultId:l==="sms"?`+${S==null?void 0:S.area}${x}`:h},...K]),A(""),k(""),O(""),z(""),g(""),s+1===4&&C(!1)},v=async()=>{var _,R,m,I,K,j;let s=[{otpChannel:((_=e==null?void 0:e.userEmail)==null?void 0:_.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(R=e==null?void 0:e.selectedCountry)==null?void 0:R.area}${(m=e==null?void 0:e.userNumberFmt)==null?void 0:m.replace(" ","")}`,vaultId:G==null?void 0:G.vaultId},...n];(s==null?void 0:s.length)>0&&(n==null?void 0:n.length)>0&&W&&(G!=null&&G.vaultId)&&(G!=null&&G.hashedVaultId)&&(G!=null&&G.vaultPin)&&(G!=null&&G.hashedVaultPin)&&ae&&Q&&((I=e.helperFunctions)!=null&&I.sendCoSignerInvitation)&&((K=e.helperFunctions)!=null&&K.sendCreatorConfirmation)&&(e.setIsLoading(!0),await ma(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,s,n,((j=e==null?void 0:e.userEmail)==null?void 0:j.length)>0?"email":"sms",W,G.vaultId,G.hashedVaultId,G.vaultPin,G.hashedVaultPin,ae,Q).then(X=>{e.setIsLoading(!1),X&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!u&&t.createElement(t.Fragment,null,i==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(Ee,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.pkicon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.encryptedIcon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.supervise,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>{a("1"),y(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{b("2"),C(!1),y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),i==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(Ee,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!P&&t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(n==null?void 0:n.length)+1<5?(n==null?void 0:n.length)+1:5,"/5)")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((oe=e.userEmail)==null?void 0:oe.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((se=e.userEmail)==null?void 0:se.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!P&&n.sort((s,_)=>(s==null?void 0:s.position)-(_==null?void 0:_.position)).map((s,_)=>{var R,m;return t.createElement("div",{key:_,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(R=dt[s==null?void 0:s.position])==null?void 0:R.split(" ")[0],t.createElement("sup",null,(m=dt[s==null?void 0:s.position])==null?void 0:m.split(" ")[1])," ","Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},s==null?void 0:s.name),s.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},s.email),s.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",s==null?void 0:s.phoneArea,") ",s.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:F.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{E(I=>{var K;return(K=I==null?void 0:I.filter(j=>{var X,me,re,fe,ge,pe;return(j==null?void 0:j.otpChannel)==="sms"?((X=j==null?void 0:j.phoneArea)==null?void 0:X.toLowerCase())+((me=j==null?void 0:j.number)==null?void 0:me.toLowerCase())!==((re=s==null?void 0:s.phoneArea)==null?void 0:re.toLowerCase())+((fe=s==null?void 0:s.number)==null?void 0:fe.toLowerCase()):((ge=j==null?void 0:j.email)==null?void 0:ge.toLowerCase())!==((pe=s==null?void 0:s.email)==null?void 0:pe.toLowerCase())}))==null?void 0:K.map((j,X)=>(j.position=X+1,j))})},onClick:()=>{ne()},style:{cursor:"pointer"},src:F.delete,alt:"delete"}))))})),P&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),t.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((n==null?void 0:n.length)+1).fill("1").map((s,_)=>t.createElement("div",{style:_+1===W?{}:{height:"0",width:"0",overflow:"hidden"},key:_,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(_+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:F.pointer,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.createElement("div",{style:(n==null?void 0:n.length)===1?{width:`${100/(n==null?void 0:n.length)}%`}:{width:`calc(${100/(n==null?void 0:n.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:F.sliderDot,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((n==null?void 0:n.length)+1).fill("1").map((s,_)=>t.createElement("p",{style:_===(n==null?void 0:n.length)?{paddingRight:"12px"}:_===0?{paddingLeft:"12px"}:{},onClick:()=>{_+1>1&&ee(_+1)},key:_,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(_+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async s=>{if(s.target.className.includes("startup-button")&&s.target.className!=="startup-button")s.target.className="startup-button-click",await v();else{let _=document.getElementsByClassName("startup-button-active");_.length>0&&(_[0].className="startup-button-click"),await v()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),c&&(n==null?void 0:n.length)<4&&t.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(ie=dt[(n==null?void 0:n.length)+1])==null?void 0:ie.split(" ")[0],t.createElement("sup",null,($=dt[(n==null?void 0:n.length)+1])==null?void 0:$.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:s=>{k(s.target.value)},value:M,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{f("sms"),te(""),A("")},src:l==="sms"?F.selectClicked:F.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{f("email"),te(""),O(""),z(""),g("")},src:l==="email"?F.selectClicked:F.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},l==="sms"&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.createElement("div",{onClick:()=>{L(!U)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{L(!U)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:S.flag}),t.createElement("p",{onClick:()=>{L(!U)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",S.area),U&&t.createElement("img",{onClick:()=>{L(!U)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!U&&t.createElement("img",{onClick:()=>{L(!U)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),t.createElement("input",{onInputCapture:s=>{var m;s.target.value===""?g(D+" "):g(s.target.value);let _=(m=s.target.value)==null?void 0:m.replace(/\D/g,"");O(_);let R="";for(let I=0;I<(_==null?void 0:_.length);I++)R+=_[I],(I+1)%5===0&&I+1<(_==null?void 0:_.length)&&(R+=" ");z(R),te("")},onInput:s=>{ne()},value:N,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),U&&t.createElement(yt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:ne,setSelected:r,selected:S,searchActive:U,setSearchActive:L,contentMaxHeight:"300",contentbottomMargin:"300"}),q===""&&x.length!==10&&D.length>10&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),q!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},q))),l==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:s=>{A(s.target.value),te("")},onInput:s=>{ne()},value:h,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),q!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},q))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>C(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{o()},onClick:()=>ne(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!c&&!P&&(n==null?void 0:n.length)<4&&t.createElement("div",{onClick:()=>C(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:F.addIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!c&&!P&&(n==null?void 0:n.length)===4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.createElement("img",{style:{width:"20px"},src:F.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!P&&t.createElement("button",{style:!c&&(n==null?void 0:n.length)<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},id:"add-cosigner-button",onClick:async s=>{if(s.target.className.includes("startup-button")&&s.target.className!=="startup-button")s.target.className="startup-button-click",(n==null?void 0:n.length)>0&&(ee(2),H(!0),C(!1));else{let _=document.getElementsByClassName("startup-button-active");_.length>0&&(_[0].className="startup-button-click",(n==null?void 0:n.length)>0&&(ee(2),H(!0),C(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),u&&t.createElement(t.Fragment,null,d==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon2,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>y(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),d==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon3,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),d==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon4,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>{b("2"),C(!1),y(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},gt=Ra;import p,{useEffect as en,useState as Ie}from"react";var tn=e=>{var ie,$,s,_,R;let[u,y]=Ie(e.fontsLoaded||!1),[d,a]=Ie(!1),[i,b]=Ie(!0),[c,C]=Ie(!1),[l,f]=Ie(!1),[x,O]=Ie(null),[N,z]=Ie(e.newChainId||Le),[h,A]=Ie(!1),[M,k]=Ie(!1),[D,g]=Ie(!1),[U,L]=Ie(!1),[S,r]=Ie(!1),[n,E]=Ie(""),{setChainId:P,setAddress:H,setSmAddress:W,setPk:ee,setProvider:q,setSigner:te,setVaultContract:Q,setVaultData:G}=_e();en(()=>{let m=()=>{let I=Re(document);y(I)};e.fontsLoaded||m()},[]);let ae=m=>{if(m.value.length>0){let I=m.nextElementSibling;I&&I.focus()}else m.value.length===0&&m.focus()},ne=m=>{let I=m.clipboardData.getData("text"),K=I==null?void 0:I.replace(/\D/g,""),j=document.getElementsByClassName("otp-input");if((j==null?void 0:j.length)===4&&(K==null?void 0:K.length)>0)for(let X=0;X<j.length;X++)K[X]&&(j[X].value=K[X],j[X].focus())},o=m=>{let I=m.target.previousElementSibling;I&&I.focus()},v=()=>{let m=document.getElementById("verified-custd-mdl-otp-button"),I=document.getElementById("verified-custd-mdl-otp-input-1"),K=document.getElementById("verified-custd-mdl-otp-input-2"),j=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4");m&&(I==null?void 0:I.value.length)>0&&(K==null?void 0:K.value.length)>0&&(j==null?void 0:j.value.length)>0&&(X==null?void 0:X.value.length)>0&&!d?m.className="verified-custd-mdl-startup-button-active":m.className="verified-custd-mdl-startup-button"},oe=async()=>{var m,I,K,j,X,me;if(!e.helperFunctions)E("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{E(""),a(!1);let re=document.getElementById("verified-custd-mdl-otp-input-1"),fe=document.getElementById("verified-custd-mdl-otp-input-2"),ge=document.getElementById("verified-custd-mdl-otp-input-3"),pe=document.getElementById("verified-custd-mdl-otp-input-4");if(((m=re==null?void 0:re.value)==null?void 0:m.length)>0&&((I=fe==null?void 0:fe.value)==null?void 0:I.length)>0&&((K=ge==null?void 0:ge.value)==null?void 0:K.length)>0&&((j=pe==null?void 0:pe.value)==null?void 0:j.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let be=(re==null?void 0:re.value)+(fe==null?void 0:fe.value)+(ge==null?void 0:ge.value)+(pe==null?void 0:pe.value);await ua(e.vaultId,e.hashedVaultId,be,ue(be),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(N),(me=na)==null?void 0:me.includes((X=e.origin)==null?void 0:X.toLowerCase())).then(async V=>{var De,Te,ce,he,B,de,ve,ke,Oe,Me,ze,He,Ze,Xe,qe,pt,ht,Z,ot,st,_t,Ft,Dt,Tt,Bt,Lt,Vt,Ut,Ot,Mt,zt,Ht,Kt,jt,Gt,Yt,Wt,$t,Zt,Jt,Xt,qt,Qt,Rt;if(V&&!(V!=null&&V.inCompleteVault))e.setIsLoading(!1),O(V),e.action==="getPk"&&((Te=(De=e.reqVaultData)==null?void 0:De.vaultId)==null?void 0:Te.toLowerCase())===((ce=e.vaultId)==null?void 0:ce.toLowerCase())?(e.setIsLoading(!0),await fa(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,ue(be),e.vaultId,be,e.encrptedPk,e.vaultChannel,Number(N)).then(async Ce=>{var Pe,Be;e.setIsLoading(!1),(Pe=chrome==null?void 0:chrome.storage)!=null&&Pe.local?await chrome.storage.local.remove("myVault"):!((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&localStorage&&localStorage.removeItem("myVault"),Ce?f(!0):(E("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),a(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await ga(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,ue(be),e.vaultId,be,e.encrptedPk,(he=e.reqVaultData)==null?void 0:he.vaultId,(B=e.reqVaultData)==null?void 0:B.hashedVaultId,(de=e.reqVaultData)==null?void 0:de.hashedVaultPin,(ve=e.reqTxData)==null?void 0:ve.id,Number(N)).then(async Ce=>{var Pe,Be,ea,ta;e.setIsLoading(!1),!((Pe=e.reqTxData)!=null&&Pe.newUser)&&((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((ea=e.reqTxData)!=null&&ea.newUser)&&!((ta=chrome==null?void 0:chrome.storage)!=null&&ta.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ce?f(!0):(E("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."),a(!0))})):e.action==="completeRecovery"&&((Oe=(ke=e.reqVaultData)==null?void 0:ke.vaultId)==null?void 0:Oe.toLowerCase())===((Me=e.vaultId)==null?void 0:Me.toLowerCase())?(e.setIsLoading(!0),await pa(e.hashedVaultId,ue(be),e.vaultId,be,e.encrptedPk,(ze=e.reqTxData)==null?void 0:ze.id,e.vaultChannel,Number(N)).then(async Ce=>{var Pe,Be;e.setIsLoading(!1),Ce?f(!0):((Pe=chrome==null?void 0:chrome.storage)!=null&&Pe.local?await chrome.storage.local.remove("myVault"):!((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&localStorage&&localStorage.removeItem("myVault"),E("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((Ze=(He=e.reqVaultData)==null?void 0:He.vaultId)==null?void 0:Ze.toLowerCase())!==((Xe=e.vaultId)==null?void 0:Xe.toLowerCase())&&((pt=(qe=e.reqVaultData)==null?void 0:qe.coSignerId)==null?void 0:pt.toLowerCase())===((ht=e.vaultId)==null?void 0:ht.toLowerCase())?(E(""),a(!1),k(!0)):e.action==="invitation"&&((ot=(Z=e.reqVaultData)==null?void 0:Z.vaultId)==null?void 0:ot.toLowerCase())===((st=e.vaultId)==null?void 0:st.toLowerCase())?(E(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(_t=e.reqVaultData)==null?void 0:_t.coSignerId} account`),a(!0)):e.action==="invitation"&&((Dt=(Ft=e.reqVaultData)==null?void 0:Ft.coSignerId)==null?void 0:Dt.toLowerCase())!==((Tt=e.vaultId)==null?void 0:Tt.toLowerCase())?(E(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Bt=e.reqVaultData)==null?void 0:Bt.coSignerId} account`),a(!0)):e.action==="getPk"&&((Vt=(Lt=e.reqVaultData)==null?void 0:Lt.vaultId)==null?void 0:Vt.toLowerCase())!==((Ut=e.vaultId)==null?void 0:Ut.toLowerCase())?((Ot=chrome==null?void 0:chrome.storage)!=null&&Ot.local?await chrome.storage.local.remove("myVault"):!((Mt=chrome==null?void 0:chrome.storage)!=null&&Mt.local)&&localStorage&&localStorage.removeItem("myVault"),E(`You are not authorized to fetch account details. please logout and login to: ${(zt=e.reqVaultData)==null?void 0:zt.vaultId} account`),a(!0)):e.action==="completeRecovery"&&((Kt=(Ht=e.reqVaultData)==null?void 0:Ht.vaultId)==null?void 0:Kt.toLowerCase())!==((jt=e.vaultId)==null?void 0:jt.toLowerCase())?((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local?await chrome.storage.local.remove("myVault"):!((Yt=chrome==null?void 0:chrome.storage)!=null&&Yt.local)&&localStorage&&localStorage.removeItem("myVault"),E(`You are not authorized to restore login access for this account. please logout and login to: ${(Wt=e.reqVaultData)==null?void 0:Wt.vaultId} account`),a(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)?(E("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),a(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(E("Incomplete account login detected. Logout and try again later"),a(!0)):(E(""),a(!1),f(!0));else if(V&&(V!=null&&V.inCompleteVault)&&(V!=null&&V.pk)){let Ce=await et(Number(N),V==null?void 0:V.pk);if(P(Ce.chainId),H(Ce.address),W(Ce.smAddress),ee(Ce.pk),q(Ce.provider),te(Ce.signer),Q(Ce.vaultContract),G({vaultId:V==null?void 0:V.vaultId,hashedVaultId:V==null?void 0:V.hashedVaultId,vaultPin:V==null?void 0:V.pin,hashedVaultPin:ue(V==null?void 0:V.pin),vaultContract:Ce.vaultContract}),(($t=V==null?void 0:V.channel)==null?void 0:$t.toLowerCase())==="sms"){let Pe=(Jt=V==null?void 0:V.vaultId)==null?void 0:Jt.replace((Zt=V==null?void 0:V.vaultId)==null?void 0:Zt.slice(-10),""),Be=((qt=(Xt=V==null?void 0:V.vaultId)==null?void 0:Xt.slice(-10))==null?void 0:qt.slice(0,5))+" "+((Rt=(Qt=V==null?void 0:V.vaultId)==null?void 0:Qt.slice(-10))==null?void 0:Rt.slice(5));e.setSelectedCountry({area:Pe==null?void 0:Pe.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Be),e.setUserEmail("")}else e.setUserEmail(V==null?void 0:V.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else E(""),a(!0),e.setIsLoading(!1)})}}},se=async m=>{var K,j,X,me,re,fe,ge,pe,be;let I=e.vaultId;if(((K=x==null?void 0:x.pin)==null?void 0:K.length)>0&&((j=x==null?void 0:x.pk)==null?void 0:j.length)>0&&((X=e==null?void 0:e.reqVaultData)!=null&&X.hashedVaultId)&&((me=e.reqVaultData)!=null&&me.hashedVaultPin)&&I&&((re=e.helperFunctions)!=null&&re.sendCreatorAcceptance)&&((fe=e.helperFunctions)!=null&&fe.sendCreatorRejection)){e.setIsLoading(!0);let V=x.pin,De=ue(I),Te=ue(V);await xt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,De,Te,(ge=e==null?void 0:e.reqVaultData)==null?void 0:ge.hashedVaultId,(pe=e.reqVaultData)==null?void 0:pe.hashedVaultPin,(be=e==null?void 0:e.reqVaultData)==null?void 0:be.vaultId,I,m,null,x.pk,Number(N)).then(ce=>{e.setIsLoading(!1),ce&&(r(m),g(!0))})}};return p.createElement(p.Fragment,null,u&&!M&&p.createElement(p.Fragment,null,!l&&p.createElement("div",{className:"verified-custd-mdl-startup-language"},p.createElement("div",{className:"verified-custd-mdl-startup-contact"},p.createElement(Ee,{sliderCount:[1],currentSlider:"0"}),p.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},p.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},p.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),p.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},p.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",p.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",p.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),p.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&p.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),p.createElement("div",{className:"verified-custd-mdl-otp-input-container"},p.createElement("div",{className:"verified-custd-mdl-otp-input-group"},p.createElement("input",{onInputCapture:m=>{var I;m.target.value=(I=m.target.value)==null?void 0:I.replace(/\D/g,""),a(!1)},onInput:m=>{ae(m.target),v()},onKeyDown:m=>{m.key==="Backspace"&&m.target.value===""&&o(m)},onPaste:m=>{ne(m)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),p.createElement("input",{onInputCapture:m=>{var I;m.target.value=(I=m.target.value)==null?void 0:I.replace(/\D/g,""),a(!1)},onInput:m=>{ae(m.target),v()},onKeyDown:m=>{m.key==="Backspace"&&m.target.value===""&&o(m)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),p.createElement("input",{onInputCapture:m=>{var I;m.target.value=(I=m.target.value)==null?void 0:I.replace(/\D/g,""),a(!1)},onInput:m=>{ae(m.target),v()},onKeyDown:m=>{m.key==="Backspace"&&m.target.value===""&&o(m)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),p.createElement("input",{onInputCapture:m=>{var I;m.target.value=(I=m.target.value)==null?void 0:I.replace(/\D/g,""),a(!1)},onInput:m=>{ae(m.target),v()},onKeyDown:m=>{m.key==="Backspace"&&m.target.value===""&&o(m)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),p.createElement("div",{className:"verified-custd-mdl-otp-timer"},d&&n===""&&p.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),d&&(n==null?void 0:n.length)>0&&p.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},n),!d&&p.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!i&&p.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>b(!0),src:F.pinShow,alt:"show pin icon"}),i&&p.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>b(!1),src:F.pinHide,alt:"hide pin icon"})))),!c&&p.createElement("div",{style:{height:"100px"}}),p.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},p.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},p.createElement(la,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),p.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async m=>{if(m.target.className.includes("verified-custd-mdl-startup-button")&&m.target.className!=="verified-custd-mdl-startup-button")m.target.className="verified-custd-mdl-startup-button-click",await oe();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await oe())}},className:"verified-custd-mdl-startup-button"},"Proceed"),p.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},p.createElement(tt,null))))),l&&p.createElement(Fe,{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:x},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: ${(ie=e.reqVaultData)==null?void 0:ie.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"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),u&&M&&p.createElement(p.Fragment,null,!D&&p.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},p.createElement("div",{className:"verified-custd-mdl-startup-contact"},p.createElement(Ee,{sliderCount:[1,2,3],currentSlider:"1"}),p.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},p.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},p.createElement("b",null,($=e.reqVaultData)==null?void 0:$.vaultId)," has requested you to be a Co-Signer"))),p.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!U&&p.createElement(p.Fragment,null,p.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},p.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),p.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."," "),p.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},p.createElement("img",{src:F.pkicon,alt:"icon"})),p.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",p.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),p.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},p.createElement("img",{src:F.encryptedIcon,alt:"icon"})),p.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",p.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),p.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},p.createElement("button",{onClick:()=>{L(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),p.createElement("button",{onClick:async()=>{await se(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),U&&p.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},p.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},p.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),p.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"," ",p.createElement("b",null,(s=e.reqVaultData)==null?void 0:s.vaultId),", you will not be able to reset the PIN for them.")),p.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},p.createElement("button",{onClick:async()=>{await se(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),p.createElement("button",{onClick:()=>{L(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),D&&p.createElement(Fe,{messageTosend:{type:"getPk",key:"vaultData",value:x},customTextHeader:"Successful",customTextFooter:S?`You have been added as a Co-Signer for ${(_=e.reqVaultData)==null?void 0:_.vaultId}`:`You rejected Co-signer reject from ${(R=e.reqVaultData)==null?void 0:R.vaultId}`})),!u&&p.createElement("h3",null,"Preparing Modules..."))},it=tn;var nn=e=>{var oe,se;let[u,y]=Se(e.fontsLoaded||!1),[d,a]=Se(e.showLogoPage||!1),[i,b]=Se([]),[c,C]=Se("2"),[l,f]=Se(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[x,O]=Se(""),[N,z]=Se(""),[h,A]=Se(!1),[M,k]=Se(""),[D,g]=Se(""),[U,L]=Se(""),[S,r]=Se(""),[n,E]=Se(null),[P,H]=Se(null),{setChainId:W,setAddress:ee,setSmAddress:q,setPk:te,setProvider:Q,setSigner:G,setVaultContract:ae,setVaultData:ne,vaultData:o,chainId:v}=_e();return Nt(()=>{let ie=()=>{let $=Re(document);y($)};e.fontsLoaded||ie()},[]),Nt(()=>{(async()=>{var _,R;let $;(_=chrome==null?void 0:chrome.storage)!=null&&_.local?$=await new Promise(m=>{chrome.storage.local.get(["lastPk"],I=>{m(I.lastPk)})}):!((R=chrome==null?void 0:chrome.storage)!=null&&R.local)&&localStorage&&($=localStorage.getItem("lastPk"));let s=await et(e.chainId,$&&($==null?void 0:$.length)>0?$:void 0);W(s.chainId),ee(s.address),q(s.smAddress),te(s.pk),Q(s.provider),G(s.signer),ae(s.vaultContract),ne(s.vaultData)})()},[]),Nt(()=>{an(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Nt(()=>{(()=>{let $=vt.map(s=>{if(s)return{name:s==null?void 0:s.name,countryName:s==null?void 0:s.name,officialName:s==null?void 0:s.name,currencySymbol:s==null?void 0:s.currency,currencyName:s==null?void 0:s.currency,officialCurrencySymbol:s==null?void 0:s.currency,countryCode:s==null?void 0:s.code,flag:s==null?void 0:s.flag,continent:s==null?void 0:s.continent,phone_code:s==null?void 0:s.phone_code,code:s==null?void 0:s.code}}).flat();b($==null?void 0:$.filter(s=>s!==void 0))})()},[]),ye.createElement(ye.Fragment,null,u&&d&&e.logoPageElement&&ye.createElement(ye.Fragment,null," ",e.logoPageElement),u&&!d&&ye.createElement(ye.Fragment,null,c==="2"&&ye.createElement(It,{setStep:C,setIsLoading:e.setIsLoading,setUserNumberFmt:O,userNumberFmt:x,setUserEmail:z,userEmail:N,setSelectedCountry:f,selectedCountry:l,allCountries:i,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),c==="3"&&ye.createElement(kt,{setStep:C,setIsLoading:e.setIsLoading,userNumberFmt:x,setUserNumberFmt:O,setUserEmail:z,userEmail:N,selectedCountry:l,helperFunctions:e.helperFunctions}),c==="4"&&ye.createElement(ft,{setStep:C,setIsLoading:e.setIsLoading,setShowSuccessBtn:A,setSuccessBtnText:k,setSuccessBtnNeutText:g,setSuccessBtnFunc:E,setSuccessBtnNeutFunc:H,userNumberFmt:x,userEmail:N,selectedCountry:l,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:L,setActionFooterText:r,helperFunctions:e.helperFunctions}),c==="5"&&ye.createElement(Fe,{setStep:C,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:h,buttonText:M,buttonNeutText:D,buttonFunc:n,buttonNeutFunc:P,actionHeaderText:U,actionFooterText:S}),c==="6"&&ye.createElement(gt,{setStep:C,setIsLoading:e.setIsLoading,userNumberFmt:x,userEmail:N,selectedCountry:l,allCountries:i,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),c==="7"&&e.action===""&&ye.createElement(Fe,{action:e.action,setStep:C,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="7"&&e.action!==""&&ye.createElement(Fe,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:v}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="8"&&e.dashbordElement&&ye.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),c==="8"&&!e.dashbordElement&&ye.createElement(ye.Fragment,null),c==="0"&&ye.createElement(it,{fontsLoaded:u,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:rt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(v||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(se=Object.keys(e.txData))==null?void 0:se.map(ie=>(e.txData[ie]=decodeURIComponent(e.txData[ie]),e.txData))[((oe=Object.keys(e.txData))==null?void 0:oe.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:z,setUserNumberFmt:O,setSelectedCountry:f,enablePhone:e.enablePhone})),!u&&ye.createElement("h3",null,"Preparing Modules..."))},Pt=nn;import{motion as on}from"framer-motion";var sn=e=>{var Q,G,ae,ne,o,v,oe,se,ie,$,s,_,R,m,I,K,j,X,me,re,fe,ge,pe,be,V,De,Te;let[u,y]=Ne(!0),[d,a]=Ne(null),[i,b]=Ne({}),[c,C]=Ne({}),[l,f]=Ne(!1),[x,O]=Ne(!1),[N,z]=Ne(!1),[h,A]=Ne(!1),[M,k]=Ne(""),[D,g]=Ne([]),[U,L]=Ne(""),[S,r]=Ne(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[n,E]=Ne(""),[P,H]=Ne(""),[W,ee]=Ne(null),[q,te]=Ne(null);return Ct(()=>{(()=>{let he=Re(document);y(he)})()},[]),Ct(()=>{(()=>{var he,B;if((he=chrome==null?void 0:chrome.storage)!=null&&he.local)chrome.storage.local.get("myVault",de=>{var ve;de.myVault&&((ve=JSON.parse(de.myVault))!=null&&ve.vaultId)?(b(JSON.parse(de.myVault)),a(!0)):a(!1)});else if(!((B=chrome==null?void 0:chrome.storage)!=null&&B.local)&&localStorage){let de=JSON.parse(localStorage.getItem("myVault"));de&&(de!=null&&de.vaultId)?(b(de),a(!0)):a(!1)}else a(!1)})()},[]),Ct(()=>{(()=>{let he=vt.map(B=>{if(B)return{name:B==null?void 0:B.name,countryName:B==null?void 0:B.name,officialName:B==null?void 0:B.name,currencySymbol:B==null?void 0:B.currency,currencyName:B==null?void 0:B.currency,officialCurrencySymbol:B==null?void 0:B.currency,countryCode:B==null?void 0:B.code,flag:B==null?void 0:B.flag,continent:B==null?void 0:B.continent,phone_code:B==null?void 0:B.phone_code,code:B==null?void 0:B.code}}).flat();g(he==null?void 0:he.filter(B=>B!==void 0))})()},[]),Ct(()=>{function ce(){var B,de,ve;let he=document.querySelector("#verified-custd-out-cont");he?(ee((de=(B=he.getBoundingClientRect())==null?void 0:B.height)==null?void 0:de.toString()),ee((ve=he.scrollHeight)==null?void 0:ve.toString())):(ee(null),te(null))}return ce(),window.addEventListener("resize",ce),()=>window.removeEventListener("resize",ce)},[]),le.createElement(le.Fragment,null,u&&le.createElement(At,null,le.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},d===null&&e.delayPageElement&&le.createElement(le.Fragment,null,e.delayPageElement," "),d===null&&!e.delayPageElement&&le.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),l&&le.createElement("div",{style:W&&q&&window&&Number(q)>window.innerHeight?{height:`${Number(W)+Number(q)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},le.createElement(on.img,{height:"50px",width:"50px",src:F.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),d!==null&&le.createElement(le.Fragment,null,!d&&le.createElement(Pt,{fontsLoaded:u,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)||((G=e.reqVaultData)==null?void 0:G.vaultId)),hashedVaultId:ue(decodeURIComponent(((ae=e.reqVaultData)==null?void 0:ae.vId)||((ne=e.reqVaultData)==null?void 0:ne.vaultId))),hashedVaultPin:decodeURIComponent(((o=e.reqVaultData)==null?void 0:o.vPh)||((v=e.reqVaultData)==null?void 0:v.hashedVaultPin)),coSignerId:decodeURIComponent((oe=e.reqVaultData)==null?void 0:oe.cId)}:null,txData:e.txData?(ie=Object.keys(e.txData))==null?void 0:ie.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[((se=Object.keys(e.txData))==null?void 0:se.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:f,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),d&&!x&&!N&&le.createElement(it,{fontsLoaded:u,setisOnboard:a,vaultId:i==null?void 0:i.vaultId,hashedVaultId:i==null?void 0:i.hashedVaultId,encrptedPk:i==null?void 0:i.pk,vaultAddress:i==null?void 0:i.address,vaultChannel:i==null?void 0:i.channel,origin:e.origin,title:e.title,actionText:e.actionText||rt[e.action],setIsLoading:f,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent((($=e.reqVaultData)==null?void 0:$.vId)||((s=e.reqVaultData)==null?void 0:s.vaultId)),hashedVaultId:ue(decodeURIComponent(((_=e.reqVaultData)==null?void 0:_.vId)||((R=e.reqVaultData)==null?void 0:R.vaultId))),hashedVaultPin:decodeURIComponent(((m=e.reqVaultData)==null?void 0:m.vPh)||((I=e.reqVaultData)==null?void 0:I.hashedVaultPin)),coSignerId:decodeURIComponent((K=e.reqVaultData)==null?void 0:K.cId)}:null,reqTxData:e.txData?(X=Object.keys(e.txData))==null?void 0:X.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[((j=Object.keys(e.txData))==null?void 0:j.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:O,setShowCompleteVault:z,setUserEmail:H,setUserNumberFmt:E,setSelectedCountry:r,enablePhone:e.enablePhone}),d&&x&&N&&le.createElement(it,{fontsLoaded:u,setisOnboard:a,vaultId:i==null?void 0:i.vaultId,hashedVaultId:i==null?void 0:i.hashedVaultId,encrptedPk:i==null?void 0:i.pk,vaultAddress:i==null?void 0:i.address,vaultChannel:i==null?void 0:i.channel,origin:e.origin,title:e.title,actionText:e.actionText||rt[e.action],setIsLoading:f,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((me=e.reqVaultData)==null?void 0:me.vId)||((re=e.reqVaultData)==null?void 0:re.vaultId)),hashedVaultId:ue(decodeURIComponent(((fe=e.reqVaultData)==null?void 0:fe.vId)||((ge=e.reqVaultData)==null?void 0:ge.vaultId))),hashedVaultPin:decodeURIComponent(((pe=e.reqVaultData)==null?void 0:pe.vPh)||((be=e.reqVaultData)==null?void 0:be.hashedVaultPin)),coSignerId:decodeURIComponent((V=e.reqVaultData)==null?void 0:V.cId)}:null,reqTxData:e.txData?(Te=Object.keys(e.txData))==null?void 0:Te.map(ce=>(e.txData[ce]=decodeURIComponent(e.txData[ce]),e.txData))[((De=Object.keys(e.txData))==null?void 0:De.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:O,setShowCompleteVault:z,setUserEmail:H,setUserNumberFmt:E,setSelectedCountry:r,enablePhone:e.enablePhone}),d&&!x&&N&&U===""&&le.createElement(gt,{setStep:L,setIsLoading:f,userNumberFmt:n,userEmail:P,selectedCountry:S,allCountries:D,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),d&&!x&&N&&U==="7"&&le.createElement(Fe,{action:e.action,setStep:L,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),d&&!x&&N&&U==="8"&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:f}),d&&!x&&N&&U==="8"&&!e.dashbordElement&&le.createElement(le.Fragment,null),d&&!N&&x&&!h&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:f,setShowResetPin:A,setAction:k,setUserNumberFmt:E,setUserEmail:H,setSelectedCountry:r,setVaultData:C,initWalletAndContract:et}),d&&!N&&x&&!h&&!e.dashbordElement&&le.createElement(le.Fragment,null),d&&!N&&x&&h&&le.createElement(ft,{action:"reset-pin",setStep:L,setIsLoading:f,userNumberFmt:n,userEmail:P,vaultData:c,selectedCountry:S,helperFunctions:e.helperFunctions})))),!u&&le.createElement("h3",null,"Preparing Modules..."))},dn=sn;export{gt as AddCoSignersPage,It as ContactPage,ft as CreatePinPage,it as EnterPinPage,Pt as FTUPage,kt as OTPPage,At as VaultContextProvider,dn as VerifiedCustody,Je as decryptString,Ge as encryptString,ue as hashTheString};
1
+ function Cn(e){if(!e||typeof document>"u")return;let c=document.head||document.getElementsByTagName("head")[0],y=document.createElement("style");y.type="text/css",c.firstChild?c.insertBefore(y,c.firstChild):c.appendChild(y),y.styleSheet?y.styleSheet.cssText=e:y.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 fe,{useEffect as xt,useState as we}from"react";import Sn,{createContext as An,useContext as kn,useState as ze}from"react";var ln=An(void 0),wt=e=>{let[c,y]=ze(null),[r,n]=ze(null),[a,b]=ze(null),[l,m]=ze(null),[u,S]=ze(null),[w,V]=ze(null),[_,M]=ze(null),[g,I]=ze(null);return Sn.createElement(ln.Provider,{value:{chainId:c,pk:r,address:a,signer:l,provider:u,vaultContract:w,vaultData:_,setChainId:y,setPk:n,setAddress:b,setSigner:m,setProvider:S,setVaultContract:V,setVaultData:M}},e.children)},_e=()=>{let e=kn(ln);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import he,{useEffect as bt,useState as ke}from"react";import{debounce as sa}from"lodash";var Le=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",cn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],un=["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"],mn="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",fn={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},it={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},ot={connect_wallet:"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"},D={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},gt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];import{contractAddress as En,Custody as In,Provider as Pn,VerifiedWallet as Nt}from"@verified-network/verified-sdk";var Ae={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:D.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:D.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:D.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:D.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:D.baseIcon}};import _n from"crypto";import Ct from"crypto-js";import{toast as gn}from"react-toastify";import dt from"react";import{toMultichainNexusAccount as Fn}from"@biconomy/abstractjs";import{base as Dn,baseSepolia as Tn,gnosis as Bn,mainnet as Ln,polygon as Vn,sepolia as Un}from"viem/chains";import{http as Je}from"viem";var qe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.googleapis.com",e.head.appendChild(r)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.gstatic.com",e.head.appendChild(r)}return un.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let a=e.createElement("link");a.rel="stylesheet",a.href=r,e.head.appendChild(a)}}),!0},Xe=async(e,c)=>{var y,r,n,a,b;try{let l;if(c)l=new Nt(c);else{let H=Nt.generateMnemonic();l=Nt.importWallet(H)}let m=En,u=e&&((y=m[e])!=null&&y.Custody)&&((n=(r=Ae[e])==null?void 0:r.rpcUrls)==null?void 0:n.length)>0?e:Le,S=(a=Ae[u])==null?void 0:a.rpcUrls[0],w=l.setProvider(new Pn(S)),V=l.privateKey,_=new In(w,(b=m[u])==null?void 0:b.Custody),M=w,I=(await Fn({chains:[Dn,Ln,Un,Bn,Tn,Vn],transports:[Je(),Je(),Je(),Je(),Je(),Je()],signer:M})).addressOn(u);return{chainId:u,address:I,pk:V,signer:w,provider:S,vaultContract:_,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}}},pe=e=>`0x${_n.createHash("sha256").update(e).digest("hex")}`,He=(e,c)=>Ct.AES.encrypt(e,c).toString(),$e=(e,c)=>{var y=Ct.AES.decrypt(e,c),r=y.toString(Ct.enc.Utf8);return r};var On=(e,c)=>dt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},dt.createElement("img",{style:{marginLeft:"5px"},src:D.errorAlert,alt:""}),dt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},dt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),dt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},c)));var ye=(e,c)=>(gn.dismiss(),gn.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 ht}from"react";import rt from"react";var Mn=e=>{var c;return rt.createElement("div",{className:"verified-custd-mdl-startup-slider"},((c=e.sliderCount)==null?void 0:c.length)>0&&e.sliderCount.map((y,r)=>rt.createElement(rt.Fragment,{key:r},r<=Number(e.currentSlider)&&rt.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&rt.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},Ie=Mn;import B,{useState as zn}from"react";var Hn=e=>{var r;let[c,y]=zn(null);return B.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},B.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&B.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),B.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},B.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},B.createElement("img",{style:{paddingLeft:"6px"},src:D.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),B.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:n=>{n.target.value===""?y(null):e.type==="language"?y(e.searchContent.filter(a=>{if(a.name.toLowerCase().includes(n.target.value.toLowerCase()))return a.searched=n.target.value.toLowerCase(),a.nameArray=a.name.split(""),a})):e.type==="area-code"&&y(e.searchContent.filter(a=>{var b,l;if((b=a==null?void 0:a.name)!=null&&b.toLowerCase().includes(n.target.value.toLowerCase()))return a.searched=n.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"})),B.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},B.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!c&&((r=e==null?void 0:e.searchContent)==null?void 0:r.length)>0&&e.searchContent.map((n,a)=>B.createElement(B.Fragment,{key:a},e.type==="area-code"&&B.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:n.phone_code,flag:n.flag,name:n.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},B.createElement("img",{src:n.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.type==="language"&&B.createElement(B.Fragment,null,window.location.search!==`?${a}`&&B.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},B.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),window.location.search===`?${a}`&&B.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},B.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},B.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.selected&&e.selected.length>0&&B.createElement("img",{src:D.circleClicked,alt:"Clicked Icon"}))))),c&&c.length>0&&c.map((n,a)=>{var b,l,m;return B.createElement(B.Fragment,{key:a},e.type==="area-code"&&B.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:n==null?void 0:n.phone_code,flag:n==null?void 0:n.flag,name:n==null?void 0:n.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},B.createElement("img",{src:n==null?void 0:n.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((b=n==null?void 0:n.nameArray)==null?void 0:b.length)>0&&(n==null?void 0:n.nameArray.map((u,S)=>B.createElement(B.Fragment,{key:S},!n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S,style:{color:"#B6B7C3"}},u),n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S},u)))))),e.type==="language"&&B.createElement(B.Fragment,{key:a},window.location.search!==`?${a}`&&B.createElement("div",{onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},B.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=n.nameArray)==null?void 0:l.length)>0&&n.nameArray.map((u,S)=>B.createElement(B.Fragment,{key:S},!n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S,style:{color:"#B6B7C3"}},u),n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S},u)))),n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((m=n.nameArray)==null?void 0:m.length)>0&&n.nameArray.map((u,S)=>B.createElement(B.Fragment,{key:S},!n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S,style:{color:"#B6B7C3"}},u),n.searched.includes(u.toLowerCase())&&B.createElement("span",{key:S},u))),!n.searched.includes(n.label.toLowerCase())&&B.createElement("span",{style:{color:"#B6B7C3"}},` (${n.label})`),n.searched.includes(n.label.toLowerCase())&&B.createElement("span",null,` (${n.label})`))),window.location.search===`?${a}`&&B.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(n.name)},onClick:()=>{e.setSelected(n.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},B.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},B.createElement("img",{src:n.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name," ",`(${n.label})`),!n.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},n.name)),e.selected&&e.selected.length>0&&B.createElement("img",{src:D.circleClicked,alt:"Clicked Icon"}))))}))))))},pt=Hn;import je from"react";var pn=()=>je.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),hn=e=>je.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var c,y;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")):!((y=chrome==null?void 0:chrome.storage)!=null&&y.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Qe=()=>je.createElement("div",{className:"verified-custd-mdl-privacy"},je.createElement("img",{alt:"Privacy Icon",src:D.privacyTip,className:"verified-custd-mdl-privacy-icon"}),je.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var jn=e=>{var M;let[c,y]=ht(""),[r,n]=ht(""),[a,b]=ht(!1),[l,m]=ht(""),{pk:u,vaultContract:S,address:w}=_e(),V=()=>{var I,H;let g=document.getElementById("verified-custd-mdl-contact-button");g&&e.selectedCountry.area&&c.length===10||g&&((I=e.userEmail)==null?void 0:I.length)>0&&isNaN(Number(e.userEmail))&&((H=e.userEmail)!=null&&H.includes("@"))?(m(""),g.className="verified-custd-mdl-startup-button-active"):(m(""),g.className="verified-custd-mdl-startup-button")},_=async()=>{var g,I,H;if(!e.helperFunctions)m("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((g=e.userEmail)==null?void 0:g.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){m("Invalid input, please check your email");return}let T=((I=e.userEmail)==null?void 0:I.length)>0?e.userEmail:`+${e.selectedCountry.area}${c}`,L=((H=e.userEmail)==null?void 0:H.length)>0?"email":"sms";T&&L&&u&&S||T&&L&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(w,L,T).then(p=>{var k;e.setIsLoading(!1),p?(m(""),e.setStep("3")):(m(L==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),ye("Oops something went wrong",((k=e.userEmail)==null?void 0:k.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?m(""):m("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(Ie,{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:()=>{b(!a)},className:"verified-custd-mdl-st-contact-first-section"},Z.createElement("img",{onClick:()=>{b(!a)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),Z.createElement("p",{onClick:()=>{b(!a)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),a&&Z.createElement("img",{onClick:()=>{b(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowUp}),!a&&Z.createElement("img",{onClick:()=>{b(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowDown})),Z.createElement("input",{onInputCapture:g=>{var T;g.target.value===""?n(r+" "):n(g.target.value);let I=(T=g.target.value)==null?void 0:T.replace(/\D/g,"");y(I);let H="";for(let L=0;L<(I==null?void 0:I.length);L++)H+=I[L],(L+1)%5===0&&L+1<(I==null?void 0:I.length)&&(H+=" ");e.setUserNumberFmt(H)},onInput:g=>{V()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),a&&Z.createElement(pt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:V,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:a,setSearchActive:b,contentMaxHeight:"300",contentbottomMargin:"300"}),c.length!==10&&r.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:g=>{var I;e.setUserEmail((I=g.target)==null?void 0:I.value),e.setUserNumberFmt(""),y(""),n("")},onInput:g=>{V()},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(pn,null),Z.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async g=>{if(g.target.className.includes("verified-custd-mdl-startup-button")&&g.target.className!=="verified-custd-mdl-startup-button")g.target.className="verified-custd-mdl-startup-button-click",await _();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await _())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),Z.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},Z.createElement(Qe,null)))))},St=jn;import G,{useEffect as Kn,useState as vt}from"react";var Gn=e=>{var T,L,p,k,U,E;let[c,y]=vt(!1),[r,n]=vt(60),[a,b]=vt(!1),[l,m]=vt(""),{pk:u,vaultContract:S,address:w}=_e();Kn(()=>{if(r===0)return;let s=setInterval(()=>{n(i=>i-1)},1e3);return()=>clearInterval(s)},[r]);let V=s=>{if(s.value.length>0){let i=s.nextElementSibling;i&&i.focus()}else s.value.length===0&&s.focus()},_=s=>{let i=s.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=s=>{let i=s.target.previousElementSibling;i&&i.focus()},g=()=>{let s=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");s&&(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?s.className="verified-custd-mdl-startup-button-active":s.className="verified-custd-mdl-startup-button"},I=async()=>{var s,i,O,C,P,K,ie,ae,R,te;if(!e.helperFunctions)m("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),b(!0);else{let j=((s=e.userEmail)==null?void 0:s.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,oe=document.getElementById("verified-custd-mdl-otp-input-1"),o=document.getElementById("verified-custd-mdl-otp-input-2"),N=document.getElementById("verified-custd-mdl-otp-input-3"),$=document.getElementById("verified-custd-mdl-otp-input-4");if(((O=oe==null?void 0:oe.value)==null?void 0:O.length)>0&&((C=o==null?void 0:o.value)==null?void 0:C.length)>0&&((P=N==null?void 0:N.value)==null?void 0:P.length)>0&&((K=$==null?void 0:$.value)==null?void 0:K.length)>0&&j&&u&&S||((ie=oe==null?void 0:oe.value)==null?void 0:ie.length)>0&&((ae=o==null?void 0:o.value)==null?void 0:ae.length)>0&&((R=N==null?void 0:N.value)==null?void 0:R.length)>0&&((te=$==null?void 0:$.value)==null?void 0:te.length)>0&&j&&e.noContract){e.setIsLoading(!0);let ne=(oe==null?void 0:oe.value)+(o==null?void 0:o.value)+(N==null?void 0:N.value)+($==null?void 0:$.value);await e.helperFunctions.checkOTPVerification(w,j,String(ne)).then(q=>{e.setIsLoading(!1),q?e.setStep("4"):b(!0)})}}},H=async()=>{var s,i,O;if(!e.helperFunctions)m("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),b(!0);else{let C=((s=e.userEmail)==null?void 0:s.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(w,P,C).then(K=>{if(e.setIsLoading(!1),K){n(60),b(!1),m("");let ie=document.getElementById("verified-custd-mdl-otp-input-1"),ae=document.getElementById("verified-custd-mdl-otp-input-2"),R=document.getElementById("verified-custd-mdl-otp-input-3"),te=document.getElementById("verified-custd-mdl-otp-input-4");ie.value="",ae.value="",R.value="",te.value=""}else ye("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(Ie,{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"," ",((T=e.userNumberFmt)==null?void 0:T.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,"(+",(p=e.selectedCountry)==null?void 0:p.area,")")," ",G.createElement("span",null," ",(k=e.userNumberFmt)==null?void 0:k.split(" ")[0])," ",G.createElement("span",null," ",(U=e.userNumberFmt)==null?void 0:U.split(" ")[1])),((E=e.userEmail)==null?void 0:E.length)>0&&G.createElement("span",null,e.userEmail)),G.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:D.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:s=>{var i;s.target.value=(i=s.target.value)==null?void 0:i.replace(/\D/g,""),b(!1),m("")},onInput:s=>{V(s.target),g()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&M(s)},onPaste:s=>{_(s)},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:s=>{var i;s.target.value=(i=s.target.value)==null?void 0:i.replace(/\D/g,""),b(!1),m("")},onInput:s=>{V(s.target),g()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&M(s)},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:s=>{var i;s.target.value=(i=s.target.value)==null?void 0:i.replace(/\D/g,""),b(!1),m("")},onInput:s=>{V(s.target),g()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&M(s)},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:s=>{var i;s.target.value=(i=s.target.value)==null?void 0:i.replace(/\D/g,""),b(!1),m("")},onInput:s=>{V(s.target),g()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&M(s)},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&&r>5&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},G.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!a&&r<=5&&r>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},G.createElement("span",{style:{fontWeight:400}},"00:"),r),!a&&r===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&&r>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!a&&r===0&&l===""&&G.createElement("p",{onClick:async()=>{let s=document.getElementsByClassName("otp-input");if(s)for(let i=0;i<s.length;i++)s[i].value="";await H()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),a&&l===""&&G.createElement("p",{onClick:async()=>{let s=document.getElementsByClassName("otp-input");if(s)for(let i=0;i<s.length;i++)s[i].value="";await H()},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 s=>{if(s.target.className.includes("verified-custd-mdl-startup-button")&&s.target.className!=="verified-custd-mdl-startup-button")s.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"),G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},G.createElement(Qe,null)))))},At=Gn;import x,{useState as Ue}from"react";import{AbiCoder as Wn,encodeBytes32String as Ve}from"ethers";import{combine as $n,split as Yn}from"shamir-secret-sharing";import{contractAddress as st,Custody as lt,Provider as et,VerifiedWallet as Ke}from"@verified-network/verified-sdk";import{toMultichainNexusAccount as Zn}from"@biconomy/abstractjs";import{base as Jn,baseSepolia as qn,gnosis as Xn,mainnet as Qn,polygon as Rn,sepolia as ea}from"viem/chains";import{http as Re}from"viem";var vn=async(e,c,y,r,n,a,b,l,m,u,S)=>{try{let w={vaultId:e,hashedVaultId:c,vaultPin:y,hashedVaultPin:r,vaultContract:l};return await l.getCreator(c,r).then(async V=>{var _,M,g,I,H,T,L,p;if((V==null?void 0:V.status)===0)try{let k=Ve(y),U=He(a,k);if(m==="invitation")return{isExisting:!0,...w};if((_=chrome==null?void 0:chrome.storage)!=null&&_.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:c,pk:U,channel:n})}):!((M=chrome==null?void 0:chrome.storage)!=null&&M.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:c,pk:U,channel:n})),(g=chrome==null?void 0:chrome.runtime)!=null&&g.sendMessage)chrome.runtime.sendMessage({type:m&&m==="connect_wallet"?"getPk":m&&m!=="connect_wallet"?m:"getPk",value:{vaultData:m&&m==="signRecovery"||m&&m==="completeRecovery"?u:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:S}});else if(!((I=chrome==null?void 0:chrome.runtime)!=null&&I.sendMessage)){let E=new CustomEvent(m&&m==="connect_wallet"?"getPk":m&&m!=="connect_wallet"?m:"getPk",{detail:{value:{vaultData:m&&m==="signRecovery"||m&&m==="completeRecovery"?u:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:S}}});window.dispatchEvent(E)}return m==="getPk"?{vaultId:e,hashedVaultId:c,pk:U,channel:n,shouldStop:!0}:{shouldStop:!0}}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",k),ye("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((H=V==null?void 0:V.reason)==null?void 0:H.toLowerCase())==="invalid pin"){let k;return(T=chrome==null?void 0:chrome.storage)!=null&&T.local?k=await new Promise(U=>{chrome.storage.local.get(["lastPk"],E=>{U(E.lastPk)})}):!((L=chrome==null?void 0:chrome.storage)!=null&&L.local)&&localStorage&&(k=localStorage.getItem("lastPk")),m==="reset-pin"&&(u!=null&&u.hashedOldPin)&&(u!=null&&u.vaultContract)?await ta(c,u==null?void 0:u.hashedOldPin,r,u==null?void 0:u.vaultContract):k&&(k==null?void 0:k.length)>0?await l.confirmParticipant(c,r,c,r,!0).then(async U=>{var E,s,i,O;if((U==null?void 0:U.status)===0){(E=chrome==null?void 0:chrome.storage)!=null&&E.local?await chrome.storage.local.remove("lastPk"):!((s=chrome==null?void 0:chrome.storage)!=null&&s.local)&&localStorage&&localStorage.removeItem("lastPk");try{let P=await new Ke(a).getAddress(),K=Ve(y),ie=He(a,K);return(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.set({myVault:JSON.stringify({address:b,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:n})}):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:b,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:n})),w}catch(C){return ye("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 ye("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",U),!1}):null}else if(((p=V==null?void 0:V.reason)==null?void 0:p.toLowerCase())==="wallet not created")return await l.createVault(c,r).then(async k=>{var U,E;return(k==null?void 0:k.status)===0?((U=chrome==null?void 0:chrome.storage)!=null&&U.local?await chrome.storage.local.set({lastPk:a}):!((E=chrome==null?void 0:chrome.storage)!=null&&E.local)&&localStorage&&localStorage.setItem("lastPk",a),await l.confirmParticipant(c,r,c,r,!0).then(async s=>{var i,O,C,P;if((s==null?void 0:s.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 Ke(a).getAddress(),ae=Ve(y),R=He(a,ae);return(C=chrome==null?void 0:chrome.storage)!=null&&C.local?await chrome.storage.local.set({myVault:JSON.stringify({address:b,regAddress:ie,vaultId:e,hashedVaultId:c,pk:R,channel:n})}):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:b,regAddress:ie,vaultId:e,hashedVaultId:c,pk:R,channel:n})),w}catch(K){return ye("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",K),!1}}else return ye("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: ",s),!1})):(ye("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(w){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",w),ye("Oops something went wrong","Error while creating pin. Try again later"),!1}},yn=async(e,c,y,r,n,a,b,l,m,u)=>{var S,w,V,_;try{let M=Ve(y),g=$e(n,M);if(g){let I=st,H=new Ke(g),T=l&&((S=I[l])!=null&&S.Custody)&&((V=(w=Ae[l])==null?void 0:w.rpcUrls)==null?void 0:V.length)>0?l:Le,L=(_=Ae[T])==null?void 0:_.rpcUrls[0],p=H.setProvider(new et(L)),k=new lt(p,I[T].Custody);return k?await k.getCreator(c,r).then(async U=>{var E,s,i,O;if((U==null?void 0:U.status)===0){let C=await k.getQuorum(c,r);return(C==null?void 0:C.status)===0&&((s=(E=C==null?void 0:C.response)==null?void 0:E.result)==null?void 0:s.length)>0?m&&Number((i=C==null?void 0:C.response)==null?void 0:i.result[0])>0?{address:a,vaultId:e,hashedVaultId:c,channel:b,chainId:u||T,pin:y,pk:g}:Number((O=C==null?void 0:C.response)==null?void 0:O.result[0])===0?{address:a,vaultId:e,hashedVaultId:c,channel:b,chainId:u||T,pin:y,pk:g,inCompleteVault:!0}:{address:a,vaultId:e,hashedVaultId:c,channel:b,chainId:u||T,pin:y}:(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}},yt=async(e,c,y,r,n,a,b,l,m,u,S,w,V)=>{var M,g,I,H;let _;if(S)_=S;else{let T=st,L=new Ke(w),p=V&&((M=T[V])!=null&&M.Custody)&&((I=(g=Ae[V])==null?void 0:g.rpcUrls)==null?void 0:I.length)>0?V:Le,k=(H=Ae[p])==null?void 0:H.rpcUrls[0],U=L.setProvider(new et(k));_=new lt(U,T[p].Custody)}return _?await _.confirmParticipant(a,n,r,b,u).then(async T=>(T==null?void 0:T.status)===0?(u?await e(y,l,m):await c(y,l,m),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(T=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",T),!1)):!1},bn=async(e,c,y,r,n,a,b,l,m,u,S,w)=>{let V=Number(y.length),M=(await Yn(Uint8Array.from(w.split("").map(T=>T.charCodeAt(0))),Number(V),a)).map(T=>T.join(",")),g=Ve(m),I=[],H=[];for(let T=0;T<y.length;T++){let L=y[T];await S.addParticipant(l,u,pe(L.vaultId),He(M[T],g)).then(async p=>{let k={creatorVaultId:b,vaultPin:m,creatorHashedVaultId:l,creatorHashedVaultPin:u,cosigner:L.vaultId,hashedCosigner:pe(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:He(M[T],g),...L};(p==null?void 0:p.status)===0?(H.push(k),L.vaultId!==b&&await e(L.otpChannel,L.vaultId,b,u).then(U=>{U||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):I.push(k)}),await new Promise(p=>setTimeout(p,1e3))}return(I==null?void 0:I.length)>0||(H==null?void 0:H.length)!==(y==null?void 0:y.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),ye("Oops somethin went wrong","error while adding co-signers"),!1):await S.defineQuorum(l,u,a.toString()).then(async T=>{if((T==null?void 0:T.status)===0){let L=r==null?void 0:r.map(p=>{var k;return{name:p==null?void 0:p.name,email:p==null?void 0:p.email,phoneNumber:p==null?void 0:p.phoneNumber,contactType:(k=String(p==null?void 0:p.otpChannel))==null?void 0:k.toUpperCase(),position:`${fn[Number(p==null?void 0:p.position)]} Co-Signer`}});return await c(n,b,L,Number(a)).then(p=>{p||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"),ye("Oops somethin went wrong","error while saving vault keys"),!1})},xn=async(e,c,y,r,n,a,b,l)=>{var S,w,V,_;let m=Ve(n),u=$e(a,m);if(u){let M=st,g=new Ke(u),I=l&&((S=M[l])!=null&&S.Custody)&&((V=(w=Ae[l])==null?void 0:w.rpcUrls)==null?void 0:V.length)>0?l:Le,H=(_=Ae[I])==null?void 0:_.rpcUrls[0],T=g.setProvider(new et(H)),L=new lt(T,M[I].Custody);if(L)return await L.promptSignatures(c,y).then(async p=>{var k,U,E,s,i,O,C;if((p==null?void 0:p.status)===0&&((U=(k=p==null?void 0:p.response)==null?void 0:k.result)!=null&&U.logs)){let P=new Wn,K=(i=(s=(E=p==null?void 0:p.response)==null?void 0:E.result)==null?void 0:s.logs)==null?void 0:i.filter(te=>{var j,oe,o,N,$;return((j=te==null?void 0:te.address)==null?void 0:j.toLowerCase())===((oe=M[I].Custody)==null?void 0:oe.toLowerCase())&&(($=(o=te==null?void 0:te.topics)==null?void 0:o.map(ne=>ne==null?void 0:ne.toLowerCase()))==null?void 0:$.includes((N=mn)==null?void 0:N.toLowerCase()))}),ie=(O=K[0])==null?void 0:O.data,ae=(C=P.decode(["bytes32","bytes32","uint256"],ie))==null?void 0:C.map((te,j)=>j<2?te:Number(te)).flat(),R=ae[(ae==null?void 0:ae.length)-1];return await e(b,r,y,Number(R),Number(K==null?void 0:K.length)),!0}else return!1}).catch(p=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",p),!1))}},wn=async(e,c,y,r,n,a,b,l,m,u,S,w)=>{var M,g,I,H;let V=Ve(a),_=$e(b,V);if(_){let T=st,L=new Ke(_),p=w&&((M=T[w])!=null&&M.Custody)&&((I=(g=Ae[w])==null?void 0:g.rpcUrls)==null?void 0:I.length)>0?w:Le,k=(H=Ae[p])==null?void 0:H.rpcUrls[0],U=L.setProvider(new et(k)),E=new lt(U,T[p].Custody);if(E)return await E.signTransaction(m,r,y,S,u).then(async s=>(s==null?void 0:s.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,n),await E.checkQuorum(m,u,y,S).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(S)),!0):!1})):!1).catch(s=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",s),!1))}},Nn=async(e,c,y,r,n,a,b,l)=>{var S,w,V,_;let m=Ve(r),u=$e(n,m);if(u){let M=st,g=new Ke(u),I=l&&((S=M[l])!=null&&S.Custody)&&((V=(w=Ae[l])==null?void 0:w.rpcUrls)==null?void 0:V.length)>0?l:Le,H=(_=Ae[I])==null?void 0:_.rpcUrls[0],T=g.setProvider(new et(H)),L=new lt(T,M[I].Custody);return L?await L.checkQuorum(e,c,e,a).then(async p=>{var k,U;return(p==null?void 0:p.status)===0&&((k=p==null?void 0:p.response)!=null&&k.result)&&((U=p==null?void 0:p.response)==null?void 0:U.result[0])===!0?await L.getShards(e,c,a).then(async E=>{var s,i,O,C;if((E==null?void 0:E.status)===0&&((s=E==null?void 0:E.response)!=null&&s.result)){let P=(i=E==null?void 0:E.response)==null?void 0:i.result.filter(K=>K!=="");if(P.length>1){let K=Ve(r),ae=P.map(j=>$e(j,K)).map(j=>new Uint8Array(j.split(",").map(Number))),R=await $n(ae),te=new TextDecoder().decode(R);if(te){let j=Ve(r),oe=He(te,j),o=new Ke(te),N=await o.getAddress(),ne=o.setProvider(new et(H)),W=(await Zn({chains:[Jn,Qn,ea,Xn,qn,Rn],transports:[Re(),Re(),Re(),Re(),Re(),Re()],signer:ne})).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:W,regAddress:N,vaultId:y,hashedVaultId:e,pk:oe,channel:b})})):!((C=chrome==null?void 0:chrome.storage)!=null&&C.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:W,regAddress:N,vaultId:y,hashedVaultId:e,pk:oe,channel:b}))),!0}}else return!1}else return!1}).catch(E=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",E),!1)):!1}).catch(p=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",p),!1)):!1}},ta=async(e,c,y,r)=>await r.resetPin(e,c,y).then(async n=>(n==null?void 0:n.status)===0?await r.confirmParticipant(e,y,e,y,!0).then(b=>(b==null?void 0:b.status)===0?{}:null):null);import Ge from"react";var na=e=>{var n,a;let c=e.showButton?null:setTimeout(()=>{var b,l,m,u;if(e.messageTosend)try{if((b=chrome==null?void 0:chrome.runtime)!=null&&b.sendMessage)chrome.runtime.sendMessage(e.messageTosend,S=>{S&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let S=new CustomEvent((m=e.messageTosend)==null?void 0:m.type,{detail:{value:(u=e.messageTosend)==null?void 0:u.value}});window.dispatchEvent(S)}}catch(S){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",S),ye("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),y=()=>{e.setStep("6")},r=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return Ge.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},Ge.createElement("div",{className:"verified-custd-mdl-success-popup-content"},Ge.createElement("img",{style:{width:"90%"},src:D.successIcon,alt:"Success Icon"}),Ge.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},Ge.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),Ge.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((n=e.buttonText)==null?void 0:n.length)>0&&Ge.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&y()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((a=e.buttonNeutText)==null?void 0:a.length)>0&&Ge.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Fe=na;var aa=e=>{var R,te,j,oe;let[c,y]=Ue(!1),[r,n]=Ue(!1),[a,b]=Ue(""),[l,m]=Ue(!0),[u,S]=Ue(!1),[w,V]=Ue(!1),[_,M]=Ue(!1),[g,I]=Ue(""),[H,T]=Ue(""),[L,p]=Ue(!1),{address:k,pk:U,vaultContract:E,setVaultData:s,setChainId:i,vaultData:O}=_e(),C=o=>{if(o.value.length>0){let N=o.nextElementSibling;N&&N.focus()}else o.value.length===0&&o.focus()},P=o=>{let N=o.target.previousElementSibling;N&&N.focus()},K=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),N=document.getElementById("verified-custd-mdl-otp-input-1"),$=document.getElementById("verified-custd-mdl-otp-input-2"),ne=document.getElementById("verified-custd-mdl-otp-input-3"),q=document.getElementById("verified-custd-mdl-otp-input-4"),W=document.getElementById("verified-custd-mdl-otp-input-5"),A=document.getElementById("verified-custd-mdl-otp-input-6"),f=document.getElementById("verified-custd-mdl-otp-input-7"),F=document.getElementById("verified-custd-mdl-otp-input-8");o&&(N==null?void 0:N.value.length)>0&&($==null?void 0:$.value.length)>0&&(ne==null?void 0:ne.value.length)>0&&(q==null?void 0:q.value.length)>0&&(W==null?void 0:W.value.length)>0&&(A==null?void 0:A.value.length)>0&&(f==null?void 0:f.value.length)>0&&(F==null?void 0:F.value.length)>0?(N==null?void 0:N.value)+($==null?void 0:$.value)+(ne==null?void 0:ne.value)+(q==null?void 0:q.value)===(W==null?void 0:W.value)+(A==null?void 0:A.value)+(f==null?void 0:f.value)+(F==null?void 0:F.value)?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",n(!0)):o.className="verified-custd-mdl-startup-button"},ie=async()=>{var o,N,$,ne,q,W,A,f,F,re,le,se,X,ee,ge,v,z,me,ce,ue,De,Ne,Ce,Se;if(!e.helperFunctions)b("No Helper Functions. Please include all helper functions in the CreatePinPage props."),n(!0);else{b(""),n(!1);let J=document.getElementById("verified-custd-mdl-otp-input-1"),Q=document.getElementById("verified-custd-mdl-otp-input-2"),d=document.getElementById("verified-custd-mdl-otp-input-3"),de=document.getElementById("verified-custd-mdl-otp-input-4"),ve=document.getElementById("verified-custd-mdl-otp-input-5"),Te=document.getElementById("verified-custd-mdl-otp-input-6"),Oe=document.getElementById("verified-custd-mdl-otp-input-7"),Me=document.getElementById("verified-custd-mdl-otp-input-8"),We=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(N=e.userNumberFmt)==null?void 0:N.replace(" ","")}`,Ye=(($=e.userEmail)==null?void 0:$.length)>0?"email":"sms";if(((ne=J==null?void 0:J.value)==null?void 0:ne.length)>0&&((q=Q==null?void 0:Q.value)==null?void 0:q.length)>0&&((W=d==null?void 0:d.value)==null?void 0:W.length)>0&&((A=de==null?void 0:de.value)==null?void 0:A.length)>0&&((f=ve==null?void 0:ve.value)==null?void 0:f.length)>0&&((F=Te==null?void 0:Te.value)==null?void 0:F.length)>0&&((re=Oe==null?void 0:Oe.value)==null?void 0:re.length)>0&&((le=Me==null?void 0:Me.value)==null?void 0:le.length)>0&&We&&Ye&&U&&k&&E||((se=J==null?void 0:J.value)==null?void 0:se.length)>0&&((X=Q==null?void 0:Q.value)==null?void 0:X.length)>0&&((ee=d==null?void 0:d.value)==null?void 0:ee.length)>0&&((ge=de==null?void 0:de.value)==null?void 0:ge.length)>0&&((v=ve==null?void 0:ve.value)==null?void 0:v.length)>0&&((z=Te==null?void 0:Te.value)==null?void 0:z.length)>0&&((me=Oe==null?void 0:Oe.value)==null?void 0:me.length)>0&&((ce=Me==null?void 0:Me.value)==null?void 0:ce.length)>0&&We&&Ye&&((ue=e.vaultData)!=null&&ue.vaultContract)&&((De=e.vaultData)!=null&&De.hashedOldPin)){e.setIsLoading(!0);let Ze=(J==null?void 0:J.value)+(Q==null?void 0:Q.value)+(d==null?void 0:d.value)+(de==null?void 0:de.value),mt=pe(We),ft=pe(Ze);await vn(We,mt,Ze,ft,Ye,U||((Ne=e.vaultData)==null?void 0:Ne.pk),k||((Ce=e.vaultData)==null?void 0:Ce.address),E||((Se=e.vaultData)==null?void 0:Se.vaultContract),e.action,e.vaultData,e.txData).then(Y=>{var nt,at;e.setIsLoading(!1),Y?(s(Y!=null&&Y.shouldStop&&(Y!=null&&Y.vaultId)?{vaultId:Y==null?void 0:Y.vaultId,hashedVaultId:Y==null?void 0:Y.hashedVaultId,pk:Y==null?void 0:Y.pk,channel:Y==null?void 0:Y.channel}:Y!=null&&Y.shouldStop?{}:Y),b(""),n(!1),e.action==="invitation"?(T(Ze),S(!0)):e.action==="reset-pin"?((nt=chrome==null?void 0:chrome.storage)!=null&&nt.local?chrome.storage.local.remove("myVault"):!((at=chrome==null?void 0:chrome.storage)!=null&&at.local)&&localStorage&&localStorage.removeItem("myVault"),I("You have successfully reset your account pin. Login with the new pin"),M(!0)):Y!=null&&Y.shouldStop?Y!=null&&Y.shouldStop&&e.action!=="getPk"?(I(""),M(!0)):Y!=null&&Y.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):Y===null?e.action==="reset-pin"?(b("Reset pin failed. Try again later."),n(!0)):(b("You are an existing user. Please input the right pin to recover your account."),n(!0)):(b("Unexpected error while creating account. Please try again later."),n(!0))})}}},ae=async o=>{var ne,q,W,A,f,F,re,le;let N=((ne=e.userEmail)==null?void 0:ne.length)>0?e.userEmail:`+${e.selectedCountry.area}${(q=e.userNumberFmt)==null?void 0:q.replace(" ","")}`,$=((W=e.userEmail)==null?void 0:W.length)>0?"email":"sms";if((H==null?void 0:H.length)===4&&((A=e==null?void 0:e.vaultData)!=null&&A.hashedVaultId)&&((f=e.vaultData)!=null&&f.hashedVaultPin)&&N){e.setIsLoading(!0);let se=pe(N),X=pe(H);await yt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,$,se,X,(F=e==null?void 0:e.vaultData)==null?void 0:F.hashedVaultId,(re=e.vaultData)==null?void 0:re.hashedVaultPin,(le=e.vaultData)==null?void 0:le.vaultId,N,o,E).then(ee=>{var ge,v;e.setIsLoading(!1),ee&&!(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 ${(ge=e.vaultData)==null?void 0:ge.vaultId}`:`You rejected Co-signer reject from ${(v=e.vaultData)==null?void 0:v.vaultId}`),e.setStep("5")):ee&&(O!=null&&O.isExisting)&&V(!0)})}};return x.createElement(x.Fragment,null,!_&&!u&&x.createElement("div",{className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(Ie,{sliderCount:[1,2,3],currentSlider:"1"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),x.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},x.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),x.createElement("div",{className:"verified-custd-mdl-otp-input-container"},x.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),x.createElement("div",{className:"verified-custd-mdl-otp-input-group"},x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"}))),x.createElement("div",{className:"verified-custd-mdl-otp-input-container"},x.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),x.createElement("div",{className:"verified-custd-mdl-otp-input-group"},x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),x.createElement("input",{onInputCapture:o=>{var N;o.target.value=(N=o.target.value)==null?void 0:N.replace(/\D/g,""),n(!1)},onInput:o=>{C(o.target),K()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),x.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&x.createElement("p",null),r&&a===""&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(a==null?void 0:a.length)>0&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>m(!0),src:D.pinShow,alt:"show pin icon"}),l&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>m(!1),src:D.pinHide,alt:"hide pin icon"})))),!c&&x.createElement("div",{style:{height:"30px"}}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},x.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},x.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 N=document.getElementsByClassName("verified-custd-mdl-startup-button-active");N.length>0&&(N[0].className="verified-custd-mdl-startup-button-click",await ie())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!_&&u&&x.createElement(x.Fragment,null,!w&&x.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(Ie,{sliderCount:[1,2,3],currentSlider:"1"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},x.createElement("b",null,(R=e.vaultData)==null?void 0:R.vaultId)," has requested you to be a Co-Signer"))),x.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),!L&&x.createElement(x.Fragment,null,x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),x.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."," "),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:D.pkicon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:D.encryptedIcon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:()=>{p(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),x.createElement("button",{onClick:async()=>{await ae(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),L&&x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),x.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"," ",x.createElement("b",null,(te=e.vaultData)==null?void 0:te.vaultId),", you will not be able to reset the PIN for them.")),x.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:async()=>{await ae(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),x.createElement("button",{onClick:()=>{p(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),w&&x.createElement(Fe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:L?`You rejected Co-signer reject from ${(oe=e.vaultData)==null?void 0:oe.vaultId}`:`You have been added as a Co-Signer for ${(j=e.vaultData)==null?void 0:j.vaultId}`})),_&&x.createElement(Fe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(g==null?void 0:g.length)>0?g:"You have successfully logged in your account."}))},ct=aa;import t,{useState as be}from"react";var ia=e=>{var ne,q,W,A;let[c,y]=be(!1),[r,n]=be("1"),[a,b]=be("1"),[l,m]=be(!1),[u,S]=be("email"),[w,V]=be(""),[_,M]=be(""),[g,I]=be(""),[H,T]=be(""),[L,p]=be(""),[k,U]=be(!1),[E,s]=be(e.defaultCountry||{area:"1",flag:D.usaFlag,name:"United States"}),[i,O]=be([]),[C,P]=be(!1),[K,ie]=be(2),[ae,R]=be(""),{pk:te,vaultData:j,vaultContract:oe}=_e(),o=()=>{let f=document.getElementById("add-cosigner-button");f&&(i==null?void 0:i.length)>0?f.className="startup-button-active":f.className="startup-button"},N=()=>{var F,re,le,se;if(u==="sms"&&(w==null?void 0:w.length)===0){R("Invalid input, please check the phone number");return}else if(u==="sms"&&(w==null?void 0:w.length)!==10){R("Invalid input, please check the phone number");return}else if(u==="email"&&(g==null?void 0:g.length)===0){R("Invalid input, please check the email");return}else if(u==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(g)){R("Invalid input, please check the email");return}else if(i!=null&&i.find(X=>{var ee,ge,v,z;return(X==null?void 0:X.otpChannel)==="sms"?((ee=X==null?void 0:X.phoneArea)==null?void 0:ee.toLowerCase())+((ge=X==null?void 0:X.number)==null?void 0:ge.toLowerCase())===((v=E.area)==null?void 0:v.toLowerCase())+(_==null?void 0:_.toLowerCase()):((z=X==null?void 0:X.email)==null?void 0:z.toLowerCase())===(g==null?void 0:g.toLowerCase())})){R(u==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(u==="sms"&&((F=E==null?void 0:E.area)==null?void 0:F.toLowerCase())+(_==null?void 0:_.toLowerCase())===((re=e.selectedCountry.area)==null?void 0:re.toLowerCase())+((le=e.userNumberFmt)==null?void 0:le.toLowerCase())){R("Invalid input, phone number is creator's phone number");return}else if(u==="email"&&(g==null?void 0:g.toLowerCase())===((se=e.userEmail)==null?void 0:se.toLowerCase())){R("Invalid input, email is creator's email");return}R("");let f=i==null?void 0:i.length;O(X=>[{name:H,email:g,number:_,phoneNumber:`+${E==null?void 0:E.area}${w}`,otpChannel:u,phoneArea:E==null?void 0:E.area,position:(X==null?void 0:X.length)+1,vaultId:u==="sms"?`+${E==null?void 0:E.area}${w}`:g},...X]),I(""),T(""),V(""),M(""),p(""),f+1===4&&m(!1)},$=async()=>{var F,re,le,se,X,ee;let f=[{otpChannel:((F=e==null?void 0:e.userEmail)==null?void 0:F.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(re=e==null?void 0:e.selectedCountry)==null?void 0:re.area}${(le=e==null?void 0:e.userNumberFmt)==null?void 0:le.replace(" ","")}`,vaultId:j==null?void 0:j.vaultId},...i];(f==null?void 0:f.length)>0&&(i==null?void 0:i.length)>0&&K&&(j!=null&&j.vaultId)&&(j!=null&&j.hashedVaultId)&&(j!=null&&j.vaultPin)&&(j!=null&&j.hashedVaultPin)&&oe&&te&&((se=e.helperFunctions)!=null&&se.sendCoSignerInvitation)&&((X=e.helperFunctions)!=null&&X.sendCreatorConfirmation)&&(e.setIsLoading(!0),await bn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,f,i,((ee=e==null?void 0:e.userEmail)==null?void 0:ee.length)>0?"email":"sms",K,j.vaultId,j.hashedVaultId,j.vaultPin,j.hashedVaultPin,oe,te).then(ge=>{e.setIsLoading(!1),ge&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!c&&t.createElement(t.Fragment,null,a==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(Ie,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.pkicon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.encryptedIcon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.supervise,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>{n("1"),y(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{b("2"),m(!1),y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),a==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(Ie,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!C&&t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((ne=e.userEmail)==null?void 0:ne.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((q=e.userEmail)==null?void 0:q.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!C&&i.sort((f,F)=>(f==null?void 0:f.position)-(F==null?void 0:F.position)).map((f,F)=>{var re,le;return t.createElement("div",{key:F,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(re=it[f==null?void 0:f.position])==null?void 0:re.split(" ")[0],t.createElement("sup",null,(le=it[f==null?void 0:f.position])==null?void 0:le.split(" ")[1])," ","Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},f==null?void 0:f.name),f.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},f.email),f.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",f==null?void 0:f.phoneArea,") ",f.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:D.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{O(se=>{var X;return(X=se==null?void 0:se.filter(ee=>{var ge,v,z,me,ce,ue;return(ee==null?void 0:ee.otpChannel)==="sms"?((ge=ee==null?void 0:ee.phoneArea)==null?void 0:ge.toLowerCase())+((v=ee==null?void 0:ee.number)==null?void 0:v.toLowerCase())!==((z=f==null?void 0:f.phoneArea)==null?void 0:z.toLowerCase())+((me=f==null?void 0:f.number)==null?void 0:me.toLowerCase()):((ce=ee==null?void 0:ee.email)==null?void 0:ce.toLowerCase())!==((ue=f==null?void 0:f.email)==null?void 0:ue.toLowerCase())}))==null?void 0:X.map((ee,ge)=>(ee.position=ge+1,ee))})},onClick:()=>{o()},style:{cursor:"pointer"},src:D.delete,alt:"delete"}))))})),C&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),t.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.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,F)=>t.createElement("div",{style:F+1===K?{}:{height:"0",width:"0",overflow:"hidden"},key:F,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(F+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:D.pointer,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:D.sliderDot,alt:""})))),t.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,F)=>t.createElement("p",{style:F===(i==null?void 0:i.length)?{paddingRight:"12px"}:F===0?{paddingLeft:"12px"}:{},onClick:()=>{F+1>1&&ie(F+1)},key:F,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(F+1)))))),t.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 $();else{let F=document.getElementsByClassName("startup-button-active");F.length>0&&(F[0].className="startup-button-click"),await $()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&t.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(W=it[(i==null?void 0:i.length)+1])==null?void 0:W.split(" ")[0],t.createElement("sup",null,(A=it[(i==null?void 0:i.length)+1])==null?void 0:A.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:f=>{T(f.target.value)},value:H,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{S("sms"),R(""),I("")},src:u==="sms"?D.selectClicked:D.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{S("email"),R(""),V(""),M(""),p("")},src:u==="email"?D.selectClicked:D.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},u==="sms"&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.createElement("div",{onClick:()=>{U(!k)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{U(!k)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:E.flag}),t.createElement("p",{onClick:()=>{U(!k)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",E.area),k&&t.createElement("img",{onClick:()=>{U(!k)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowUp}),!k&&t.createElement("img",{onClick:()=>{U(!k)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowDown})),t.createElement("input",{onInputCapture:f=>{var le;f.target.value===""?p(L+" "):p(f.target.value);let F=(le=f.target.value)==null?void 0:le.replace(/\D/g,"");V(F);let re="";for(let se=0;se<(F==null?void 0:F.length);se++)re+=F[se],(se+1)%5===0&&se+1<(F==null?void 0:F.length)&&(re+=" ");M(re),R("")},onInput:f=>{o()},value:_,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),k&&t.createElement(pt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:o,setSelected:s,selected:E,searchActive:k,setSearchActive:U,contentMaxHeight:"300",contentbottomMargin:"300"}),ae===""&&w.length!==10&&L.length>10&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ae!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ae))),u==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:f=>{I(f.target.value),R("")},onInput:f=>{o()},value:g,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ae!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ae))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>m(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{N()},onClick:()=>o(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!C&&(i==null?void 0:i.length)<4&&t.createElement("div",{onClick:()=>m(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:D.addIcon,alt:"add icon"}),t.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&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.createElement("img",{style:{width:"20px"},src:D.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!C&&t.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),m(!1));else{let F=document.getElementsByClassName("startup-button-active");F.length>0&&(F[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),P(!0),m(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),c&&t.createElement(t.Fragment,null,r==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon2,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>y(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>n("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon3,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>n("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>n("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon4,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>n("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>{b("2"),m(!1),y(!1),n("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},ut=ia;import h,{useEffect as oa,useState as xe}from"react";import{ethers as da}from"ethers";var ra=e=>{var le,se,X,ee,ge;let[c,y]=xe(e.fontsLoaded||!1),[r,n]=xe(!1),[a,b]=xe(!0),[l,m]=xe(!1),[u,S]=xe(!1),[w,V]=xe(null),[_,M]=xe(null),[g,I]=xe(e.newChainId||Le),[H,T]=xe(!1),[L,p]=xe(!1),[k,U]=xe(!1),[E,s]=xe(!1),[i,O]=xe(!1),[C,P]=xe(""),[K,ie]=xe(!1),[ae,R]=xe({}),{setChainId:te,setAddress:j,setPk:oe,setProvider:o,setSigner:N,setVaultContract:$,setVaultData:ne}=_e();oa(()=>{let v=()=>{let z=qe(document);y(z)};e.fontsLoaded||v()},[]);let q=v=>{if(v.value.length>0){let z=v.nextElementSibling;z&&z.focus()}else v.value.length===0&&v.focus()},W=v=>{let z=v.clipboardData.getData("text"),me=z==null?void 0:z.replace(/\D/g,""),ce=document.getElementsByClassName("otp-input");if((ce==null?void 0:ce.length)===4&&(me==null?void 0:me.length)>0)for(let ue=0;ue<ce.length;ue++)me[ue]&&(ce[ue].value=me[ue],ce[ue].focus())},A=v=>{let z=v.target.previousElementSibling;z&&z.focus()},f=()=>{let v=document.getElementById("verified-custd-mdl-otp-button"),z=document.getElementById("verified-custd-mdl-otp-input-1"),me=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");v&&(z==null?void 0:z.value.length)>0&&(me==null?void 0:me.value.length)>0&&(ce==null?void 0:ce.value.length)>0&&(ue==null?void 0:ue.value.length)>0&&!r?v.className="verified-custd-mdl-startup-button-active":v.className="verified-custd-mdl-startup-button"},F=async()=>{var v,z,me,ce,ue,De;if(!e.helperFunctions)P("No Helper Functions. Please include all helper functions in the EnterPinPage props."),n(!0);else{P(""),n(!1);let Ne=document.getElementById("verified-custd-mdl-otp-input-1"),Ce=document.getElementById("verified-custd-mdl-otp-input-2"),Se=document.getElementById("verified-custd-mdl-otp-input-3"),J=document.getElementById("verified-custd-mdl-otp-input-4");if(((v=Ne==null?void 0:Ne.value)==null?void 0:v.length)>0&&((z=Ce==null?void 0:Ce.value)==null?void 0:z.length)>0&&((me=Se==null?void 0:Se.value)==null?void 0:me.length)>0&&((ce=J==null?void 0:J.value)==null?void 0:ce.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let Q=(Ne==null?void 0:Ne.value)+(Ce==null?void 0:Ce.value)+(Se==null?void 0:Se.value)+(J==null?void 0:J.value);await yn(e.vaultId,e.hashedVaultId,Q,pe(Q),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(g),(De=cn)==null?void 0:De.includes((ue=e.origin)==null?void 0:ue.toLowerCase())).then(async d=>{var de,ve,Te,Oe,Me,We,Ye,Ze,mt,ft,Y,nt,at,Et,It,Pt,_t,Ft,Dt,Tt,Bt,Lt,Vt,Ut,Ot,Mt,zt,Ht,jt,Kt,Gt,Wt,$t,Yt,Zt,Jt,qt,Xt,Qt,Rt,en,tn,nn,an,on,dn;if(d&&!(d!=null&&d.inCompleteVault))e.setIsLoading(!1),V(d),M(d!=null&&d.pk?{address:d.address,channel:d.channel,chainId:d.chainId,pk:d==null?void 0:d.pk}:{address:e.regAddress||d.address,channel:d.channel,chainId:d.chainId}),e.action==="getPk"&&((ve=(de=e.reqVaultData)==null?void 0:de.vaultId)==null?void 0:ve.toLowerCase())===((Te=e.vaultId)==null?void 0:Te.toLowerCase())?(e.setIsLoading(!0),await xn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,pe(Q),e.vaultId,Q,e.encrptedPk,e.vaultChannel,Number(g)).then(async Ee=>{var Pe,Be;e.setIsLoading(!1),(Pe=chrome==null?void 0:chrome.storage)!=null&&Pe.local?await chrome.storage.local.remove("myVault"):!((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&localStorage&&localStorage.removeItem("myVault"),Ee?S(!0):(P("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),n(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await wn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,pe(Q),e.vaultId,Q,e.encrptedPk,(Oe=e.reqVaultData)==null?void 0:Oe.vaultId,(Me=e.reqVaultData)==null?void 0:Me.hashedVaultId,(We=e.reqVaultData)==null?void 0:We.hashedVaultPin,(Ye=e.reqTxData)==null?void 0:Ye.id,Number(g)).then(async Ee=>{var Pe,Be,rn,sn;e.setIsLoading(!1),!((Pe=e.reqTxData)!=null&&Pe.newUser)&&((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((rn=e.reqTxData)!=null&&rn.newUser)&&!((sn=chrome==null?void 0:chrome.storage)!=null&&sn.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ee?S(!0):(P("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),n(!0))})):e.action==="completeRecovery"&&((mt=(Ze=e.reqVaultData)==null?void 0:Ze.vaultId)==null?void 0:mt.toLowerCase())===((ft=e.vaultId)==null?void 0:ft.toLowerCase())?(e.setIsLoading(!0),await Nn(e.hashedVaultId,pe(Q),e.vaultId,Q,e.encrptedPk,(Y=e.reqTxData)==null?void 0:Y.id,e.vaultChannel,Number(g)).then(async Ee=>{var Pe,Be;e.setIsLoading(!1),Ee?S(!0):((Pe=chrome==null?void 0:chrome.storage)!=null&&Pe.local?await chrome.storage.local.remove("myVault"):!((Be=chrome==null?void 0:chrome.storage)!=null&&Be.local)&&localStorage&&localStorage.removeItem("myVault"),P("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),n(!0))})):e.action==="eth_sendTransaction"&&((nt=e.encrptedPk)==null?void 0:nt.length)>0&&((at=d==null?void 0:d.pin)==null?void 0:at.length)>0&&e.signTxElement?(R({chainId:g,ky:da.encodeBytes32String(d==null?void 0:d.pin),...e.txToSign}),p(!1),ie(!0)):e.action==="invitation"&&((It=(Et=e.reqVaultData)==null?void 0:Et.vaultId)==null?void 0:It.toLowerCase())!==((Pt=e.vaultId)==null?void 0:Pt.toLowerCase())&&((Ft=(_t=e.reqVaultData)==null?void 0:_t.coSignerId)==null?void 0:Ft.toLowerCase())===((Dt=e.vaultId)==null?void 0:Dt.toLowerCase())?(P(""),n(!1),p(!0)):e.action==="invitation"&&((Bt=(Tt=e.reqVaultData)==null?void 0:Tt.vaultId)==null?void 0:Bt.toLowerCase())===((Lt=e.vaultId)==null?void 0:Lt.toLowerCase())?(P(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(Vt=e.reqVaultData)==null?void 0:Vt.coSignerId} account`),n(!0)):e.action==="invitation"&&((Ot=(Ut=e.reqVaultData)==null?void 0:Ut.coSignerId)==null?void 0:Ot.toLowerCase())!==((Mt=e.vaultId)==null?void 0:Mt.toLowerCase())?(P(`You cannot accept this Co-Signer invitation. please logout and login to: ${(zt=e.reqVaultData)==null?void 0:zt.coSignerId} account`),n(!0)):e.action==="getPk"&&((jt=(Ht=e.reqVaultData)==null?void 0:Ht.vaultId)==null?void 0:jt.toLowerCase())!==((Kt=e.vaultId)==null?void 0:Kt.toLowerCase())?((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local?await chrome.storage.local.remove("myVault"):!((Wt=chrome==null?void 0:chrome.storage)!=null&&Wt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to fetch account details. please logout and login to: ${($t=e.reqVaultData)==null?void 0:$t.vaultId} account`),n(!0)):e.action==="completeRecovery"&&((Zt=(Yt=e.reqVaultData)==null?void 0:Yt.vaultId)==null?void 0:Zt.toLowerCase())!==((Jt=e.vaultId)==null?void 0:Jt.toLowerCase())?((qt=chrome==null?void 0:chrome.storage)!=null&&qt.local?await chrome.storage.local.remove("myVault"):!((Xt=chrome==null?void 0:chrome.storage)!=null&&Xt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to restore login access for this account. please logout and login to: ${(Qt=e.reqVaultData)==null?void 0:Qt.vaultId} account`),n(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)||e.action==="eth_requestAccounts"&&!(e!=null&&e.vaultAddress)?(P("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),n(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(P("Incomplete account login detected. Logout and try again later"),n(!0)):(P(""),n(!1),S(!0));else if(d&&(d!=null&&d.inCompleteVault)&&(d!=null&&d.pk)){let Ee=await Xe(Number(g),d==null?void 0:d.pk);if(te(Ee.chainId),j(Ee.address),oe(Ee.pk),o(Ee.provider),N(Ee.signer),$(Ee.vaultContract),ne({vaultId:d==null?void 0:d.vaultId,hashedVaultId:d==null?void 0:d.hashedVaultId,vaultPin:d==null?void 0:d.pin,hashedVaultPin:pe(d==null?void 0:d.pin),vaultContract:Ee.vaultContract}),((Rt=d==null?void 0:d.channel)==null?void 0:Rt.toLowerCase())==="sms"){let Pe=(tn=d==null?void 0:d.vaultId)==null?void 0:tn.replace((en=d==null?void 0:d.vaultId)==null?void 0:en.slice(-10),""),Be=((an=(nn=d==null?void 0:d.vaultId)==null?void 0:nn.slice(-10))==null?void 0:an.slice(0,5))+" "+((dn=(on=d==null?void 0:d.vaultId)==null?void 0:on.slice(-10))==null?void 0:dn.slice(5));e.setSelectedCountry({area:Pe==null?void 0:Pe.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Be),e.setUserEmail("")}else e.setUserEmail(d==null?void 0:d.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else P(""),n(!0),e.setIsLoading(!1)})}}},re=async v=>{var me,ce,ue,De,Ne,Ce,Se,J,Q;let z=e.vaultId;if(((me=w==null?void 0:w.pin)==null?void 0:me.length)>0&&((ce=w==null?void 0:w.pk)==null?void 0:ce.length)>0&&((ue=e==null?void 0:e.reqVaultData)!=null&&ue.hashedVaultId)&&((De=e.reqVaultData)!=null&&De.hashedVaultPin)&&z&&((Ne=e.helperFunctions)!=null&&Ne.sendCreatorAcceptance)&&((Ce=e.helperFunctions)!=null&&Ce.sendCreatorRejection)){e.setIsLoading(!0);let d=w.pin,de=pe(z),ve=pe(d);await yt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,de,ve,(Se=e==null?void 0:e.reqVaultData)==null?void 0:Se.hashedVaultId,(J=e.reqVaultData)==null?void 0:J.hashedVaultPin,(Q=e==null?void 0:e.reqVaultData)==null?void 0:Q.vaultId,z,v,null,w.pk,Number(g)).then(Te=>{e.setIsLoading(!1),Te&&(O(v),U(!0))})}};return h.createElement(h.Fragment,null,c&&!L&&!K&&h.createElement(h.Fragment,null,!u&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(Ie,{sliderCount:[1],currentSlider:"0"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},h.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},h.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},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"}},e.vaultId)," ","account."),h.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:v=>{var z;v.target.value=(z=v.target.value)==null?void 0:z.replace(/\D/g,""),n(!1)},onInput:v=>{q(v.target),f()},onKeyDown:v=>{v.key==="Backspace"&&v.target.value===""&&A(v)},onPaste:v=>{W(v)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:v=>{var z;v.target.value=(z=v.target.value)==null?void 0:z.replace(/\D/g,""),n(!1)},onInput:v=>{q(v.target),f()},onKeyDown:v=>{v.key==="Backspace"&&v.target.value===""&&A(v)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:v=>{var z;v.target.value=(z=v.target.value)==null?void 0:z.replace(/\D/g,""),n(!1)},onInput:v=>{q(v.target),f()},onKeyDown:v=>{v.key==="Backspace"&&v.target.value===""&&A(v)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:v=>{var z;v.target.value=(z=v.target.value)==null?void 0:z.replace(/\D/g,""),n(!1)},onInput:v=>{q(v.target),f()},onKeyDown:v=>{v.key==="Backspace"&&v.target.value===""&&A(v)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&C===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(C==null?void 0:C.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},C),!r&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!a&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>b(!0),src:D.pinShow,alt:"show pin icon"}),a&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>b(!1),src:D.pinHide,alt:"hide pin icon"})))),!l&&h.createElement("div",{style:{height:"100px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement(hn,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),h.createElement("button",{id:"verified-custd-mdl-otp-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 z=document.getElementsByClassName("verified-custd-mdl-startup-button-active");z.length>0&&(z[0].className="verified-custd-mdl-startup-button-click",await F())}},className:"verified-custd-mdl-startup-button"},"Proceed"),h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},h.createElement(Qe,null))))),u&&h.createElement(Fe,{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:_},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: ${(le=e.reqVaultData)==null?void 0:le.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."} `})),c&&L&&!K&&h.createElement(h.Fragment,null,!k&&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(Ie,{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,(se=e.reqVaultData)==null?void 0:se.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),!E&&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:D.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:D.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:()=>{s(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await re(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),E&&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,(X=e.reqVaultData)==null?void 0:X.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 re(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{s(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),k&&h.createElement(Fe,{messageTosend:{type:"getPk",key:"vaultData",value:w},customTextHeader:"Successful",customTextFooter:i?`You have been added as a Co-Signer for ${(ee=e.reqVaultData)==null?void 0:ee.vaultId}`:`You rejected Co-signer reject from ${(ge=e.reqVaultData)==null?void 0:ge.vaultId}`})),c&&!L&&K&&h.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ae}),!c&&h.createElement("h3",null,"Preparing Modules..."))},tt=ra;var la=e=>{var $,ne;let[c,y]=ke(e.fontsLoaded||!1),[r,n]=ke(e.showLogoPage||!1),[a,b]=ke([]),[l,m]=ke("2"),[u,S]=ke(e.defaultCountry||{area:"1",flag:D.usaFlag,name:"United States"}),[w,V]=ke(""),[_,M]=ke(""),[g,I]=ke(!1),[H,T]=ke(""),[L,p]=ke(""),[k,U]=ke(""),[E,s]=ke(""),[i,O]=ke(null),[C,P]=ke(null),{setChainId:K,setAddress:ie,setPk:ae,setProvider:R,setSigner:te,setVaultContract:j,setVaultData:oe,vaultData:o,chainId:N}=_e();return bt(()=>{let q=()=>{let W=qe(document);y(W)};e.fontsLoaded||q()},[]),bt(()=>{(async()=>{var f,F;let W;(f=chrome==null?void 0:chrome.storage)!=null&&f.local?W=await new Promise(re=>{chrome.storage.local.get(["lastPk"],le=>{re(le.lastPk)})}):!((F=chrome==null?void 0:chrome.storage)!=null&&F.local)&&localStorage&&(W=localStorage.getItem("lastPk"));let A=await Xe(e.chainId,W&&(W==null?void 0:W.length)>0?W:void 0);K(A.chainId),ie(A.address),ae(A.pk),R(A.provider),te(A.signer),j(A.vaultContract),oe(A.vaultData)})()},[]),bt(()=>{sa(()=>{n(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),bt(()=>{(()=>{let W=gt.map(A=>{if(A)return{name:A==null?void 0:A.name,countryName:A==null?void 0:A.name,officialName:A==null?void 0:A.name,currencySymbol:A==null?void 0:A.currency,currencyName:A==null?void 0:A.currency,officialCurrencySymbol:A==null?void 0:A.currency,countryCode:A==null?void 0:A.code,flag:A==null?void 0:A.flag,continent:A==null?void 0:A.continent,phone_code:A==null?void 0:A.phone_code,code:A==null?void 0:A.code}}).flat();b(W==null?void 0:W.filter(A=>A!==void 0))})()},[]),he.createElement(he.Fragment,null,c&&r&&e.logoPageElement&&he.createElement(he.Fragment,null," ",e.logoPageElement),c&&!r&&he.createElement(he.Fragment,null,l==="2"&&he.createElement(St,{setStep:m,setIsLoading:e.setIsLoading,setUserNumberFmt:V,userNumberFmt:w,setUserEmail:M,userEmail:_,setSelectedCountry:S,selectedCountry:u,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="3"&&he.createElement(At,{setStep:m,setIsLoading:e.setIsLoading,userNumberFmt:w,setUserNumberFmt:V,setUserEmail:M,userEmail:_,selectedCountry:u,helperFunctions:e.helperFunctions}),l==="4"&&he.createElement(ct,{setStep:m,setIsLoading:e.setIsLoading,setShowSuccessBtn:I,setSuccessBtnText:T,setSuccessBtnNeutText:p,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:P,userNumberFmt:w,userEmail:_,selectedCountry:u,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:U,setActionFooterText:s,helperFunctions:e.helperFunctions}),l==="5"&&he.createElement(Fe,{setStep:m,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:g,buttonText:H,buttonNeutText:L,buttonFunc:i,buttonNeutFunc:C,actionHeaderText:k,actionFooterText:E}),l==="6"&&he.createElement(ut,{setStep:m,setIsLoading:e.setIsLoading,userNumberFmt:w,userEmail:_,selectedCountry:u,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="7"&&e.action===""&&he.createElement(Fe,{action:e.action,setStep:m,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&he.createElement(Fe,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:N}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&he.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),l==="8"&&!e.dashbordElement&&he.createElement(he.Fragment,null),l==="0"&&he.createElement(tt,{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:ot.getPk,setIsLoading:e.setIsLoading,newChainId:Number(N||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(ne=Object.keys(e.txData))==null?void 0:ne.map(q=>(e.txData[q]=decodeURIComponent(e.txData[q]),e.txData))[(($=Object.keys(e.txData))==null?void 0:$.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:M,setUserNumberFmt:V,setSelectedCountry:S,enablePhone:e.enablePhone})),!c&&he.createElement("h3",null,"Preparing Modules..."))},kt=la;import{motion as ca}from"framer-motion";var ua=e=>{var te,j,oe,o,N,$,ne,q,W,A,f,F,re,le,se,X,ee,ge,v,z,me,ce,ue,De,Ne,Ce,Se;let[c,y]=we(!0),[r,n]=we(null),[a,b]=we({}),[l,m]=we({}),[u,S]=we(!1),[w,V]=we(!1),[_,M]=we(!1),[g,I]=we(!1),[H,T]=we(""),[L,p]=we([]),[k,U]=we(""),[E,s]=we(e.defaultCountry||{area:"1",flag:D.usaFlag,name:"United States"}),[i,O]=we(""),[C,P]=we(""),[K,ie]=we(null),[ae,R]=we(null);return xt(()=>{(()=>{let Q=qe(document);y(Q)})()},[]),xt(()=>{(()=>{var Q,d;if((Q=chrome==null?void 0:chrome.storage)!=null&&Q.local)chrome.storage.local.get("myVault",de=>{var ve;de.myVault&&((ve=JSON.parse(de.myVault))!=null&&ve.vaultId)?(b(JSON.parse(de.myVault)),n(!0)):n(!1)});else if(!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage){let de=JSON.parse(localStorage.getItem("myVault"));de&&(de!=null&&de.vaultId)?(b(de),n(!0)):n(!1)}else n(!1)})()},[]),xt(()=>{(()=>{let Q=gt.map(d=>{if(d)return{name:d==null?void 0:d.name,countryName:d==null?void 0:d.name,officialName:d==null?void 0:d.name,currencySymbol:d==null?void 0:d.currency,currencyName:d==null?void 0:d.currency,officialCurrencySymbol:d==null?void 0:d.currency,countryCode:d==null?void 0:d.code,flag:d==null?void 0:d.flag,continent:d==null?void 0:d.continent,phone_code:d==null?void 0:d.phone_code,code:d==null?void 0:d.code}}).flat();p(Q==null?void 0:Q.filter(d=>d!==void 0))})()},[]),xt(()=>{function J(){var d,de,ve;let Q=document.querySelector("#verified-custd-out-cont");Q?(ie((de=(d=Q.getBoundingClientRect())==null?void 0:d.height)==null?void 0:de.toString()),ie((ve=Q.scrollHeight)==null?void 0:ve.toString())):(ie(null),R(null))}return J(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)},[]),fe.createElement(fe.Fragment,null,c&&fe.createElement(wt,null,fe.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&fe.createElement(fe.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&fe.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),u&&fe.createElement("div",{style:K&&ae&&window&&Number(ae)>window.innerHeight?{height:`${Number(K)+Number(ae)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},fe.createElement(ca.img,{height:"50px",width:"50px",src:D.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),r!==null&&fe.createElement(fe.Fragment,null,!r&&fe.createElement(kt,{fontsLoaded:c,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((te=e.reqVaultData)==null?void 0:te.vId)||((j=e.reqVaultData)==null?void 0:j.vaultId)),hashedVaultId:pe(decodeURIComponent(((oe=e.reqVaultData)==null?void 0:oe.vId)||((o=e.reqVaultData)==null?void 0:o.vaultId))),hashedVaultPin:decodeURIComponent(((N=e.reqVaultData)==null?void 0:N.vPh)||(($=e.reqVaultData)==null?void 0:$.hashedVaultPin)),coSignerId:decodeURIComponent((ne=e.reqVaultData)==null?void 0:ne.cId)}:null,txData:e.txData?(W=Object.keys(e.txData))==null?void 0:W.map(J=>(e.txData[J]=decodeURIComponent(e.txData[J]),e.txData))[((q=Object.keys(e.txData))==null?void 0:q.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:n,setIsLoading:S,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),r&&!w&&!_&&fe.createElement(tt,{fontsLoaded:c,setisOnboard:n,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,vaultChannel:a==null?void 0:a.channel,regAddress:a==null?void 0:a.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||ot[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((A=e.reqVaultData)==null?void 0:A.vId)||((f=e.reqVaultData)==null?void 0:f.vaultId)),hashedVaultId:pe(decodeURIComponent(((F=e.reqVaultData)==null?void 0:F.vId)||((re=e.reqVaultData)==null?void 0:re.vaultId))),hashedVaultPin:decodeURIComponent(((le=e.reqVaultData)==null?void 0:le.vPh)||((se=e.reqVaultData)==null?void 0:se.hashedVaultPin)),coSignerId:decodeURIComponent((X=e.reqVaultData)==null?void 0:X.cId)}:null,reqTxData:e.txData?(ge=Object.keys(e.txData))==null?void 0:ge.map(J=>(e.txData[J]=decodeURIComponent(e.txData[J]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:V,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:s,enablePhone:e.enablePhone}),r&&w&&_&&fe.createElement(tt,{fontsLoaded:c,setisOnboard:n,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,regAddress:a==null?void 0:a.regAddress,vaultChannel:a==null?void 0:a.channel,origin:e.origin,title:e.title,actionText:e.actionText||ot[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((v=e.reqVaultData)==null?void 0:v.vId)||((z=e.reqVaultData)==null?void 0:z.vaultId)),hashedVaultId:pe(decodeURIComponent(((me=e.reqVaultData)==null?void 0:me.vId)||((ce=e.reqVaultData)==null?void 0:ce.vaultId))),hashedVaultPin:decodeURIComponent(((ue=e.reqVaultData)==null?void 0:ue.vPh)||((De=e.reqVaultData)==null?void 0:De.hashedVaultPin)),coSignerId:decodeURIComponent((Ne=e.reqVaultData)==null?void 0:Ne.cId)}:null,reqTxData:e.txData?(Se=Object.keys(e.txData))==null?void 0:Se.map(J=>(e.txData[J]=decodeURIComponent(e.txData[J]),e.txData))[((Ce=Object.keys(e.txData))==null?void 0:Ce.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:V,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:s,enablePhone:e.enablePhone}),r&&!w&&_&&k===""&&fe.createElement(ut,{setStep:U,setIsLoading:S,userNumberFmt:i,userEmail:C,selectedCountry:E,allCountries:L,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),r&&!w&&_&&k==="7"&&fe.createElement(Fe,{action:e.action,setStep:U,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),r&&!w&&_&&k==="8"&&e.dashbordElement&&fe.createElement(e.dashbordElement,{setIsLoading:S}),r&&!w&&_&&k==="8"&&!e.dashbordElement&&fe.createElement(fe.Fragment,null),r&&!_&&w&&!g&&e.dashbordElement&&fe.createElement(e.dashbordElement,{setIsLoading:S,setShowResetPin:I,setAction:T,setUserNumberFmt:O,setUserEmail:P,setSelectedCountry:s,setVaultData:m,initWalletAndContract:Xe}),r&&!_&&w&&!g&&!e.dashbordElement&&fe.createElement(fe.Fragment,null),r&&!_&&w&&g&&fe.createElement(ct,{action:"reset-pin",setStep:U,setIsLoading:S,userNumberFmt:i,userEmail:C,vaultData:l,selectedCountry:E,helperFunctions:e.helperFunctions})))),!c&&fe.createElement("h3",null,"Preparing Modules..."))},ma=ua;export{ut as AddCoSignersPage,St as ContactPage,ct as CreatePinPage,tt as EnterPinPage,kt as FTUPage,At as OTPPage,wt as VaultContextProvider,ma as VerifiedCustody,$e as decryptString,He as encryptString,pe as hashTheString};
3
3
  //# sourceMappingURL=index.mjs.map