@verified-network/verified-custody 0.2.8 → 0.3.0

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 na(e){if(!e||typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.type="text/css",s.firstChild?s.insertBefore(f,s.firstChild):s.appendChild(f),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e))}na(`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 ce,{useEffect as aa,useState as He}from"react";import ia,{createContext as oa,useContext as da,useState as Ee}from"react";var Ut=oa(void 0),Ot=e=>{let[s,f]=Ee(null),[r,a]=Ee(null),[n,E]=Ee(null),[l,v]=Ee(null),[c,k]=Ee(null),[_,V]=Ee(null),[B,O]=Ee(null),[x,C]=Ee(null);return ia.createElement(Ut.Provider,{value:{chainId:s,pk:r,address:n,signer:l,provider:c,vaultContract:_,vaultData:B,setChainId:f,setPk:a,setAddress:E,setSigner:v,setProvider:k,setVaultContract:V,setVaultData:O}},e.children)},ye=()=>{let e=da(Ut);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import le,{useEffect as Je,useState as fe}from"react";import{debounce as ka}from"lodash";var be=process.env.REACT_APP_NODE_ENV==="production"?8453:11155111,Va=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Mt=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Kt=["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"],zt="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ze="23o7dHkKdIMtjnft5q/J4mqpdBqqOOuajepmYqY0eAi9TaqQYsVSBA==",Xe="https://verified.azurewebsites.net/api/otpsender",jt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},Oe={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Ht={connect_wallet:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access"},P={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"},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 ra,Custody as sa,Provider as la,VerifiedWallet as Qe}from"@verified-network/verified-sdk";var ue={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://solemn-summer-patina.quiknode.pro/${process.env.REACT_APP_QUIKNODE_KEY}/`],blockExplorerUrls:["https://etherscan.io/"],icon:P.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api.etherscan.io/api"},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://red-quaint-pallet.base-mainnet.quiknode.pro/${process.env.REACT_APP_QUICKNODE_KEY}/`],blockExplorerUrls:["https://basescan.org/"],Icon:P.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:P.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:P.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api-sepolia.etherscan.io/api"},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:P.baseIcon}},Se={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 Re from"crypto-js";import{toast as Yt}from"react-toastify";import{createSmartAccountClient as ua}from"@biconomy/account";import Me from"react";var Fe=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 Kt.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let n=e.createElement("link");n.rel="stylesheet",n.href=r,e.head.appendChild(n)}}),!0},Wt=async(e,s)=>{var f,r,a,n,E;try{let l;if(s)l=new Qe(s);else{let C=Qe.generateMnemonic();l=Qe.importWallet(C)}let v=ra,c=e&&((f=v[e])!=null&&f.Custody)&&((a=(r=ue[e])==null?void 0:r.rpcUrls)==null?void 0:a.length)>0?e:be,k=(n=ue[c])==null?void 0:n.rpcUrls[0],_=l.setProvider(new la(k)),V=l.privateKey,B=new sa(_,(E=v[c])==null?void 0:E.Custody),x=await(await ua({signer:_,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${c}/${Se[c].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[c].PAYMASTER_API_KEY})).getAccountAddress();return{chainId:c,address:x,pk:V,signer:_,provider:k,vaultContract:B,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}}},Ye=async(e,s)=>{try{let f=JSON.stringify({action:"start",recipient:e,channel:s}),a=await(await fetch(Xe,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Ze},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f),!1}},$t=async(e,s)=>{try{let f=JSON.stringify({action:"verify",recipient:e,code:s}),a=await(await fetch(Xe,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Ze},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f==null?void 0:f.message),!1}},ie=e=>ca.createHash("sha256").update(e).digest("hex").slice(0,30),Te=(e,s)=>Re.AES.encrypt(e,s).toString(),Be=(e,s)=>{var f=Re.AES.decrypt(e,s),r=f.toString(Re.enc.Utf8);return r};var ma=(e,s)=>Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},Me.createElement("img",{style:{marginLeft:"5px"},src:P.errorAlert,alt:""}),Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},s)));var me=(e,s)=>(Yt.dismiss(),Yt.error(ma(e,s),{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 G,{useState as $e}from"react";import Ke from"react";var fa=e=>{var s;return Ke.createElement("div",{className:"verified-custd-mdl-startup-slider"},((s=e.sliderCount)==null?void 0:s.length)>0&&e.sliderCount.map((f,r)=>Ke.createElement(Ke.Fragment,{key:r},r<=Number(e.currentSlider)&&Ke.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&Ke.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},ge=fa;import T,{useState as ga}from"react";var pa=e=>{var r;let[s,f]=ga(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:P.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===""?f(null):e.type==="language"?f(e.searchContent.filter(n=>{if(n.name.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=n.name.split(""),n})):e.type==="area-code"&&f(e.searchContent.filter(n=>{var E,l;if((E=n==null?void 0:n.name)!=null&&E.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=(l=n==null?void 0:n.name)==null?void 0:l.split(""),n})),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"},!s&&((r=e==null?void 0:e.searchContent)==null?void 0:r.length)>0&&e.searchContent.map((a,n)=>T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,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!==`?${n}`&&T.createElement("div",{key:n,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===`?${n}`&&T.createElement("div",{key:n,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:P.circleClicked,alt:"Clicked Icon"}))))),s&&s.length>0&&s.map((a,n)=>{var E,l,v;return T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,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"},((E=a==null?void 0:a.nameArray)==null?void 0:E.length)>0&&(a==null?void 0:a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c)))))),e.type==="language"&&T.createElement(T.Fragment,{key:n},window.location.search!==`?${n}`&&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"},((l=a.nameArray)==null?void 0:l.length)>0&&a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c)))),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((v=a.nameArray)==null?void 0:v.length)>0&&a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c))),!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===`?${n}`&&T.createElement("div",{key:n,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:P.circleClicked,alt:"Clicked Icon"}))))}))))))},We=pa;import ke from"react";var qt=()=>ke.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),Jt=e=>ke.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var s,f;e.setIsLoading(!0),(s=chrome==null?void 0:chrome.storage)!=null&&s.local?await chrome.storage.local.remove("myVault"):!((f=chrome==null?void 0:chrome.storage)!=null&&f.local)&&localStorage&&localStorage.removeItem("myVault"),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Le=()=>ke.createElement("div",{className:"verified-custd-mdl-privacy"},ke.createElement("img",{alt:"Privacy Icon",src:P.privacyTip,className:"verified-custd-mdl-privacy-icon"}),ke.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var ha=e=>{var B,O;let[s,f]=$e(""),[r,a]=$e(""),[n,E]=$e(!1),[l,v]=$e(""),{pk:c,vaultContract:k}=ye(),_=()=>{var C,D;let x=document.getElementById("verified-custd-mdl-contact-button");x&&e.selectedCountry.area&&s.length===10||x&&((C=e.userEmail)==null?void 0:C.length)>0&&isNaN(Number(e.userEmail))&&((D=e.userEmail)!=null&&D.includes("@"))?(v(""),x.className="verified-custd-mdl-startup-button-active"):(v(""),x.className="verified-custd-mdl-startup-button")},V=async()=>{var D,F,y;if(((D=e.userEmail)==null?void 0:D.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){v("Invalid input, please check your email");return}let x=((F=e.userEmail)==null?void 0:F.length)>0?e.userEmail:`+${e.selectedCountry.area}${s}`,C=((y=e.userEmail)==null?void 0:y.length)>0?"email":"sms";x&&C&&c&&k&&(e.setIsLoading(!0),await Ye(x,C).then(A=>{var d;e.setIsLoading(!1),A?(v(""),e.setStep("3")):(v(C==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),me("Oops something went wrong",((d=e.userEmail)==null?void 0:d.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))}))};return G.createElement("div",{className:"verified-custd-mdl-startup-language"},G.createElement("div",{className:"verified-custd-mdl-startup-contact"},G.createElement(ge,{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 your phone number"),G.createElement("div",{className:"verified-custd-mdl-st-contact-input"},G.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},G.createElement("div",{onClick:()=>{E(!n)},className:"verified-custd-mdl-st-contact-first-section"},G.createElement("img",{onClick:()=>{E(!n)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),G.createElement("p",{onClick:()=>{E(!n)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),n&&G.createElement("img",{onClick:()=>{E(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!n&&G.createElement("img",{onClick:()=>{E(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),G.createElement("input",{onInputCapture:x=>{var F;x.target.value===""?a(r+" "):a(x.target.value);let C=(F=x.target.value)==null?void 0:F.replace(/\D/g,"");f(C);let D="";for(let y=0;y<(C==null?void 0:C.length);y++)D+=C[y],(y+1)%5===0&&y+1<(C==null?void 0:C.length)&&(D+=" ");e.setUserNumberFmt(D)},onInput:x=>{_()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),n&&G.createElement(We,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:_,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:n,setSearchActive:E,contentMaxHeight:"300",contentbottomMargin:"300"}),s.length!==10&&r.length>10&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&((B=e.userEmail)==null?void 0:B.length)===0&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!n&&G.createElement(G.Fragment,null,G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),G.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),G.createElement("div",{className:"verified-custd-mdl-st-contact-input"},G.createElement("input",{onInputCapture:x=>{var C;e.setUserEmail((C=x.target)==null?void 0:C.value),e.setUserNumberFmt(""),f(""),a("")},onInput:x=>{_()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((O=e.userEmail)==null?void 0:O.length)>0&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!n&&G.createElement("div",{style:{height:"80px"}}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},G.createElement(qt,null),G.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async x=>{if(x.target.className.includes("verified-custd-mdl-startup-button")&&x.target.className!=="verified-custd-mdl-startup-button")x.target.className="verified-custd-mdl-startup-button-click",await V();else{let C=document.getElementsByClassName("verified-custd-mdl-startup-button-active");C.length>0&&(C[0].className="verified-custd-mdl-startup-button-click",await V())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},G.createElement(Le,null)))))},et=ha;import K,{useEffect as va,useState as tt}from"react";var ya=e=>{var x,C,D,F,y,A;let[s,f]=tt(!1),[r,a]=tt(60),[n,E]=tt(!1),{pk:l,vaultContract:v}=ye();va(()=>{if(r===0)return;let d=setInterval(()=>{a(m=>m-1)},1e3);return()=>clearInterval(d)},[r]);let c=d=>{if(d.value.length>0){let m=d.nextElementSibling;m&&m.focus()}else d.value.length===0&&d.focus()},k=d=>{let m=d.clipboardData.getData("text"),S=m==null?void 0:m.replace(/\D/g,""),I=document.getElementsByClassName("otp-input");if((I==null?void 0:I.length)===4&&(S==null?void 0:S.length)>0)for(let i=0;i<I.length;i++)S[i]&&(I[i].value=S[i],I[i].focus())},_=d=>{let m=d.target.previousElementSibling;m&&m.focus()},V=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),m=document.getElementById("verified-custd-mdl-otp-input-1"),S=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");d&&(m==null?void 0:m.value.length)>0&&(S==null?void 0:S.value.length)>0&&(I==null?void 0:I.value.length)>0&&(i==null?void 0:i.value.length)>0&&!n?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},B=async()=>{var U,W,ae,Y,Z,R;let d=((U=e.userEmail)==null?void 0:U.length)>0?e.userEmail:`+${e.selectedCountry.area}${(W=e.userNumberFmt)==null?void 0:W.replace(" ","")}`,m=document.getElementById("verified-custd-mdl-otp-input-1"),S=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");if(((ae=m==null?void 0:m.value)==null?void 0:ae.length)>0&&((Y=S==null?void 0:S.value)==null?void 0:Y.length)>0&&((Z=I==null?void 0:I.value)==null?void 0:Z.length)>0&&((R=i==null?void 0:i.value)==null?void 0:R.length)>0&&d&&l&&v){e.setIsLoading(!0);let z=(m==null?void 0:m.value)+(S==null?void 0:S.value)+(I==null?void 0:I.value)+(i==null?void 0:i.value);await $t(d,String(z)).then(o=>{e.setIsLoading(!1),o?e.setStep("4"):E(!0)})}},O=async()=>{var S,I,i;let d=((S=e.userEmail)==null?void 0:S.length)>0?e.userEmail:`+${e.selectedCountry.area}${(I=e.userNumberFmt)==null?void 0:I.replace(" ","")}`,m=((i=e.userEmail)==null?void 0:i.length)>0?"email":"sms";d&&m&&(e.setIsLoading(!0),await Ye(d,m).then(U=>{if(e.setIsLoading(!1),U){a(60),E(!1);let W=document.getElementById("verified-custd-mdl-otp-input-1"),ae=document.getElementById("verified-custd-mdl-otp-input-2"),Y=document.getElementById("verified-custd-mdl-otp-input-3"),Z=document.getElementById("verified-custd-mdl-otp-input-4");W.value="",ae.value="",Y.value="",Z.value=""}else me("Oops something went wrong","Unexpected error")}))};return K.createElement("div",{className:"verified-custd-mdl-startup-language"},K.createElement("div",{className:"verified-custd-mdl-startup-contact"},K.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},K.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",K.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((x=e.userNumberFmt)==null?void 0:x.length)>0?"phone number":"email address"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((C=e.userNumberFmt)==null?void 0:C.length)>0&&K.createElement(K.Fragment,null,K.createElement("span",null,"(+",(D=e.selectedCountry)==null?void 0:D.area,")")," ",K.createElement("span",null," ",(F=e.userNumberFmt)==null?void 0:F.split(" ")[0])," ",K.createElement("span",null," ",(y=e.userNumberFmt)==null?void 0:y.split(" ")[1])),((A=e.userEmail)==null?void 0:A.length)>0&&K.createElement("span",null,e.userEmail)),K.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:P.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),K.createElement("div",{className:"verified-custd-mdl-otp-input-container"},K.createElement("div",{className:"verified-custd-mdl-otp-input-group"},K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},onPaste:d=>{k(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),K.createElement("div",{className:"verified-custd-mdl-otp-timer"},!n&&r>5&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},K.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!n&&r<=5&&r>0&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},K.createElement("span",{style:{fontWeight:400}},"00:"),r),!n&&r===0&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),n&&K.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),!n&&r>0&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!n&&r===0&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),n&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!s&&K.createElement("div",{style:{height:"100px"}}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},K.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await B();else{let m=document.getElementsByClassName("verified-custd-mdl-startup-button-active");m.length>0&&(m[0].className="verified-custd-mdl-startup-button-click",await B())}},className:"verified-custd-mdl-startup-button"},"Proceed"),K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},K.createElement(Le,null)))))},at=ya;import b,{useState as Ne}from"react";import{AbiCoder as ba,decodeBytes32String as xa,encodeBytes32String as Ie}from"ethers";import{combine as wa,split as Na}from"shamir-secret-sharing";import{contractAddress as ze,Custody as je,Provider as Ve,VerifiedWallet as Pe}from"@verified-network/verified-sdk";import{createSmartAccountClient as Ca}from"@biconomy/account";var Zt=async(e,s,f,r,a,n,E,l,v,c,k)=>{try{let _={vaultId:e,hashedVaultId:s,vaultPin:f,hashedVaultPin:r,vaultContract:l};return await l.getCreator(s,r).then(async V=>{var B,O,x,C,D,F;if((V==null?void 0:V.status)===0)try{if(v==="invitation")return{isExisting:!0,..._};if((B=chrome==null?void 0:chrome.storage)!=null&&B.local){let y=Ie(f),A=Te(n,y);await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:s,pk:A,channel:a})})}else if(!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage){let y=Ie(f),A=Te(n,y);localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:s,pk:A,channel:a}))}if((x=chrome==null?void 0:chrome.runtime)!=null&&x.sendMessage)chrome.runtime.sendMessage({type:v&&v==="connect_wallet"?"getPk":v&&v!=="connect_wallet"?v:"getPk",value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?c:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}});else if(!((C=chrome==null?void 0:chrome.runtime)!=null&&C.sendMessage)){let y=new CustomEvent(v&&v==="connect_wallet"?"getPk":v&&v!=="connect_wallet"?v:"getPk",{detail:{value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?c:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}}});window.dispatchEvent(y)}return{shouldStop:!0}}catch(y){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",y),me("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else{if(((D=V==null?void 0:V.reason)==null?void 0:D.toLowerCase())==="invalid pin")return null;if(((F=V==null?void 0:V.reason)==null?void 0:F.toLowerCase())==="wallet not created")return await l.createVault(s,r).then(async y=>(y==null?void 0:y.status)===0?await l.confirmParticipant(s,r,s,r,!0).then(async A=>{var d,m;if((A==null?void 0:A.status)===0)try{let I=await new Pe(n).getAddress(),i=Ie(f),U=Te(n,i);return(d=chrome==null?void 0:chrome.storage)!=null&&d.local?await chrome.storage.local.set({myVault:JSON.stringify({address:E,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})}):!((m=chrome==null?void 0:chrome.storage)!=null&&m.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:E,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})),_}catch(S){return me("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",S),!1}else return me("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: ",A),!1}):(me("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",y),!1))}})}catch(_){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",_),me("Oops something went wrong","Error while creating pin. Try again later"),!1}},Xt=async(e,s,f,r,a,n,E,l,v,c)=>{var k,_,V,B;try{let O=Ie(f),x=Be(a,O);if(x){let C=ze,D=new Pe(x),F=l&&((k=C[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,y=(B=ue[F])==null?void 0:B.rpcUrls[0],A=D.setProvider(new Ve(y)),d=new je(A,C[F].Custody);return d?await d.getCreator(s,r).then(async m=>(m==null?void 0:m.status)===0?v?{address:n,vaultId:e,hashedVaultId:s,channel:E,chainId:c||F,pin:f,pk:x}:{address:n,vaultId:e,hashedVaultId:s,channel:E,chainId:c||F,pin:f}:(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(O){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",O),null}},qe=async(e,s,f,r,a,n,E,l,v,c,k,_,V)=>{var O,x,C,D;let B;if(k)B=k;else{let F=ze,y=new Pe(_),A=V&&((O=F[V])!=null&&O.Custody)&&((C=(x=ue[V])==null?void 0:x.rpcUrls)==null?void 0:C.length)>0?V:be,d=(D=ue[A])==null?void 0:D.rpcUrls[0],m=y.setProvider(new Ve(d));B=new je(m,F[A].Custody)}return B?await k.confirmParticipant(n,a,r,E,c).then(async F=>(F==null?void 0:F.status)===0?(c?await e(f,l,v):await s(f,l,v),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(F=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",F),!1)):!1},Qt=async(e,s,f,r,a,n,E,l,v,c,k,_)=>{let V=Number(f.length),O=(await Na(Uint8Array.from(_.split("").map(D=>D.charCodeAt(0))),Number(V),n)).map(D=>D.join(",")),x=[],C=[];for(let D=0;D<f.length;D++){let F=f[D];await k.addParticipant(l,c,ie(F.vaultId),O[D]).then(async y=>{let A={creatorVaultId:E,vaultPin:v,creatorHashedVaultId:l,creatorHashedVaultPin:c,cosigner:F.vaultId,hashedCosigner:ie(F.vaultId),cosignerVaultIdType:F.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:F.vaultId,share:O[D],...F};(y==null?void 0:y.status)===0?(C.push(A),F.vaultId!==E&&await e(F.otpChannel,F.vaultId,E,c).then(d=>{d||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):x.push(A)})}return(x==null?void 0:x.length)>0||(C==null?void 0:C.length)!==(f==null?void 0:f.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),me("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(l,c,n.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let F=r==null?void 0:r.map(y=>{var A;return{name:y==null?void 0:y.name,email:y==null?void 0:y.email,phoneNumber:y==null?void 0:y.phoneNumber,contactType:(A=String(y==null?void 0:y.otpChannel))==null?void 0:A.toUpperCase(),position:`${jt[Number(y==null?void 0:y.position)]} Co-Signer`}});return await s(a,E,F,Number(n)).then(y=>{y||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"),me("Oops somethin went wrong","error while saving vault keys"),!1})},Rt=async(e,s,f,r,a,n,E,l)=>{var k,_,V,B;let v=Ie(a),c=Be(n,v);if(c){let O=ze,x=new Pe(c),C=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,D=(B=ue[C])==null?void 0:B.rpcUrls[0],F=x.setProvider(new Ve(D)),y=new je(F,O[C].Custody);if(y)return await y.promptSignatures(s,f).then(async A=>{var d,m,S,I,i,U,W;if((A==null?void 0:A.status)===0&&((m=(d=A==null?void 0:A.response)==null?void 0:d.result)!=null&&m.logs)){let ae=new ba,Y=(i=(I=(S=A==null?void 0:A.response)==null?void 0:S.result)==null?void 0:I.logs)==null?void 0:i.filter(o=>{var g,ee,Q,te,u;return((g=o==null?void 0:o.address)==null?void 0:g.toLowerCase())===((ee=O[C].Custody)==null?void 0:ee.toLowerCase())&&((u=(Q=o==null?void 0:o.topics)==null?void 0:Q.map(p=>p==null?void 0:p.toLowerCase()))==null?void 0:u.includes((te=zt)==null?void 0:te.toLowerCase()))}),Z=(U=Y[0])==null?void 0:U.data,R=(W=ae.decode(["bytes32","bytes32","uint256"],Z))==null?void 0:W.map((o,g)=>g<2?xa(o):Number(o)).flat(),z=R[(R==null?void 0:R.length)-1];return await e(E,r,f,Number(z),Number(Y==null?void 0:Y.length)),!0}else return!1}).catch(A=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",A),!1))}},ea=async(e,s,f,r,a,n,E,l,v,c,k,_)=>{var O,x,C,D;let V=Ie(n),B=Be(E,V);if(B){let F=ze,y=new Pe(B),A=_&&((O=F[_])!=null&&O.Custody)&&((C=(x=ue[_])==null?void 0:x.rpcUrls)==null?void 0:C.length)>0?_:be,d=(D=ue[A])==null?void 0:D.rpcUrls[0],m=y.setProvider(new Ve(d)),S=new je(m,F[A].Custody);if(S)return await S.signTransaction(v,r,f,k,c).then(async I=>(I==null?void 0:I.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,a),await S.checkQuorum(v,c,f,k).then(async i=>{var U,W;return(i==null?void 0:i.status)===0&&((U=i==null?void 0:i.response)!=null&&U.result)?(((W=i==null?void 0:i.response)==null?void 0:W.result[0])===!0&&await s(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(k)),!0):!1})):!1).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",I),!1))}},ta=async(e,s,f,r,a,n,E,l)=>{var k,_,V,B;let v=Ie(r),c=Be(a,v);if(c){let O=ze,x=new Pe(c),C=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,D=(B=ue[C])==null?void 0:B.rpcUrls[0],F=x.setProvider(new Ve(D)),y=new je(F,O[C].Custody);return y?await y.checkQuorum(e,s,e,n).then(async A=>{var d,m;if((A==null?void 0:A.status)===0&&((d=A==null?void 0:A.response)!=null&&d.result)){if(((m=A==null?void 0:A.response)==null?void 0:m.result[0])===!0)return await y.signTransaction(e,s,e,n,s).then(async S=>(S==null?void 0:S.status)===0?await y.getShards(e,s,n).then(async I=>{var i,U,W,ae;if((I==null?void 0:I.status)===0&&((i=I==null?void 0:I.response)!=null&&i.result)){let Y=(U=I==null?void 0:I.response)==null?void 0:U.result.filter(Z=>Z!=="");if(Y.length>1){let Z=Y.map(o=>new Uint8Array(o.split(",").map(Number))),R=await wa(Z),z=new TextDecoder().decode(R);if(z){let o=Ie(r),g=Te(z,o),ee=new Pe(z),Q=await ee.getAddress(),te=ee.setProvider(new Ve(D)),p=await(await Ca({signer:te,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${C}/${Se[C].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[C].PAYMASTER_API_KEY})).getAccountAddress();return(W=chrome==null?void 0:chrome.storage)!=null&&W.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:p,regAddress:Q,vaultId:f,hashedVaultId:e,pk:g,channel:E})})):!((ae=chrome==null?void 0:chrome.storage)!=null&&ae.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:p,regAddress:Q,vaultId:f,hashedVaultId:e,pk:g,channel:E}))),!0}}else return!1}else return!1}).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",I),!1)):!1)}else return!1}).catch(A=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",A),!1)):!1}};import _e from"react";var Aa=e=>{var a,n;let s=e.showButton?null:setTimeout(()=>{var E,l,v,c;if(e.messageTosend)try{if((E=chrome==null?void 0:chrome.runtime)!=null&&E.sendMessage)chrome.runtime.sendMessage(e.messageTosend,k=>{k&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let k=new CustomEvent((v=e.messageTosend)==null?void 0:v.type,{detail:{value:(c=e.messageTosend)==null?void 0:c.value}});window.dispatchEvent(k)}}catch(k){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",k),me("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),f=()=>{e.setStep("6")},r=()=>{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:P.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:()=>{s&&clearTimeout(s),e.action==="invitation"&&f()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((n=e.buttonNeutText)==null?void 0:n.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{s&&clearTimeout(s),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},xe=Aa;var Ea=e=>{var Y,Z,R,z;let[s,f]=Ne(!1),[r,a]=Ne(!1),[n,E]=Ne(""),[l,v]=Ne(!0),[c,k]=Ne(!1),[_,V]=Ne(!1),[B,O]=Ne(!1),[x,C]=Ne(""),[D,F]=Ne(!1),{address:y,pk:A,vaultContract:d,setVaultData:m,vaultData:S}=ye(),I=o=>{if(o.value.length>0){let g=o.nextElementSibling;g&&g.focus()}else o.value.length===0&&o.focus()},i=o=>{let g=o.target.previousElementSibling;g&&g.focus()},U=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),g=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),Q=document.getElementById("verified-custd-mdl-otp-input-3"),te=document.getElementById("verified-custd-mdl-otp-input-4"),u=document.getElementById("verified-custd-mdl-otp-input-5"),p=document.getElementById("verified-custd-mdl-otp-input-6"),N=document.getElementById("verified-custd-mdl-otp-input-7"),j=document.getElementById("verified-custd-mdl-otp-input-8");o&&(g==null?void 0:g.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(Q==null?void 0:Q.value.length)>0&&(te==null?void 0:te.value.length)>0&&(u==null?void 0:u.value.length)>0&&(p==null?void 0:p.value.length)>0&&(N==null?void 0:N.value.length)>0&&(j==null?void 0:j.value.length)>0?(g==null?void 0:g.value)+(ee==null?void 0:ee.value)+(Q==null?void 0:Q.value)+(te==null?void 0:te.value)===(u==null?void 0:u.value)+(p==null?void 0:p.value)+(N==null?void 0:N.value)+(j==null?void 0:j.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"},W=async()=>{var o,g,ee,Q,te,u,p,N,j,X,w;if(!e.helperFunctions)E("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{E(""),a(!1);let L=document.getElementById("verified-custd-mdl-otp-input-1"),$=document.getElementById("verified-custd-mdl-otp-input-2"),q=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4"),M=document.getElementById("verified-custd-mdl-otp-input-5"),J=document.getElementById("verified-custd-mdl-otp-input-6"),ne=document.getElementById("verified-custd-mdl-otp-input-7"),re=document.getElementById("verified-custd-mdl-otp-input-8"),se=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(g=e.userNumberFmt)==null?void 0:g.replace(" ","")}`,ve=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(((Q=L==null?void 0:L.value)==null?void 0:Q.length)>0&&((te=$==null?void 0:$.value)==null?void 0:te.length)>0&&((u=q==null?void 0:q.value)==null?void 0:u.length)>0&&((p=H==null?void 0:H.value)==null?void 0:p.length)>0&&((N=M==null?void 0:M.value)==null?void 0:N.length)>0&&((j=J==null?void 0:J.value)==null?void 0:j.length)>0&&((X=ne==null?void 0:ne.value)==null?void 0:X.length)>0&&((w=re==null?void 0:re.value)==null?void 0:w.length)>0&&y&&se&&ve&&A&&d){e.setIsLoading(!0);let he=(L==null?void 0:L.value)+($==null?void 0:$.value)+(q==null?void 0:q.value)+(H==null?void 0:H.value),we=ie(se),De=ie(he);await Zt(se,we,he,De,ve,A,y,d,e.action,e.vaultData,e.txData).then(oe=>{e.setIsLoading(!1),oe?(m(oe!=null&&oe.shouldStop?{}:oe),E(""),a(!1),e.action==="invitation"?(C(he),k(!0)):oe!=null&&oe.shouldStop?oe!=null&&oe.shouldStop&&O(!0):e.setStep("5")):oe===null?(E("You are an existing user. Please input the right pin to recover your account."),a(!0)):(E("Unexpected error while creating account. Please try again later."),a(!0))})}}},ae=async o=>{var Q,te,u,p,N,j,X,w;let g=((Q=e.userEmail)==null?void 0:Q.length)>0?e.userEmail:`+${e.selectedCountry.area}${(te=e.userNumberFmt)==null?void 0:te.replace(" ","")}`,ee=((u=e.userEmail)==null?void 0:u.length)>0?"email":"sms";if((x==null?void 0:x.length)===4&&((p=e==null?void 0:e.vaultData)!=null&&p.hashedVaultId)&&((N=e.vaultData)!=null&&N.hashedVaultPin)&&g){e.setIsLoading(!0);let L=ie(g),$=ie(x);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,L,$,(j=e==null?void 0:e.vaultData)==null?void 0:j.hashedVaultId,(X=e.vaultData)==null?void 0:X.hashedVaultPin,(w=e.vaultData)==null?void 0:w.vaultId,g,o,d).then(q=>{var H,M;e.setIsLoading(!1),q&&!(S!=null&&S.isExisting)?(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 ${(H=e.vaultData)==null?void 0:H.vaultId}`:`You rejected Co-signer reject from ${(M=e.vaultData)==null?void 0:M.vaultId}`),e.setStep("5")):q&&(S!=null&&S.isExisting)&&V(!0)})}};return b.createElement(b.Fragment,null,!B&&!c&&b.createElement("div",{className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),b.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},b.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),b.createElement("div",{className:"verified-custd-mdl-otp-input-container"},b.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),b.createElement("div",{className:"verified-custd-mdl-otp-input-group"},b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}))),b.createElement("div",{className:"verified-custd-mdl-otp-input-container"},b.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),b.createElement("div",{className:"verified-custd-mdl-otp-input-group"},b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(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"})),b.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&b.createElement("p",null),r&&n===""&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(n==null?void 0:n.length)>0&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},n),!l&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!0),src:P.pinShow,alt:"show pin icon"}),l&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!1),src:P.pinHide,alt:"hide pin icon"})))),!s&&b.createElement("div",{style:{height:"30px"}}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},b.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},b.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 W();else{let g=document.getElementsByClassName("verified-custd-mdl-startup-button-active");g.length>0&&(g[0].className="verified-custd-mdl-startup-button-click",await W())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!B&&c&&b.createElement(b.Fragment,null,!_&&b.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},b.createElement("b",null,(Y=e.vaultData)==null?void 0:Y.vaultId)," has requested you to be a Co-Signer"))),b.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!D&&b.createElement(b.Fragment,null,b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),b.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."," "),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.pkicon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.encryptedIcon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:()=>{F(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),b.createElement("button",{onClick:async()=>{await ae(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),D&&b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),b.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"," ",b.createElement("b",null,(Z=e.vaultData)==null?void 0:Z.vaultId),", you will not be able to reset the PIN for them.")),b.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:async()=>{await ae(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),b.createElement("button",{onClick:()=>{F(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),_&&b.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:D?`You rejected Co-signer reject from ${(z=e.vaultData)==null?void 0:z.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),B&&b.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"You have successfully logged in your account."}))},nt=Ea;import t,{useState as de}from"react";var Sa=e=>{var p,N,j,X;let[s,f]=de(!1),[r,a]=de("1"),[n,E]=de("1"),[l,v]=de(!1),[c,k]=de("sms"),[_,V]=de(""),[B,O]=de(""),[x,C]=de(""),[D,F]=de(""),[y,A]=de(""),[d,m]=de(!1),[S,I]=de(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[i,U]=de([]),[W,ae]=de(!1),[Y,Z]=de(2),[R,z]=de(""),{pk:o,vaultData:g,vaultContract:ee}=ye(),Q=()=>{let w=document.getElementById("add-cosigner-button");w&&(i==null?void 0:i.length)>0?w.className="startup-button-active":w.className="startup-button"},te=()=>{var L,$,q,H;if(c==="sms"&&(_==null?void 0:_.length)===0){z("Invalid input, please check the phone number");return}else if(c==="sms"&&(_==null?void 0:_.length)!==10){z("Invalid input, please check the phone number");return}else if(c==="email"&&(x==null?void 0:x.length)===0){z("Invalid input, please check the email");return}else if(c==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)){z("Invalid input, please check the email");return}else if(i!=null&&i.find(M=>{var J,ne,re,se;return(M==null?void 0:M.otpChannel)==="sms"?((J=M==null?void 0:M.phoneArea)==null?void 0:J.toLowerCase())+((ne=M==null?void 0:M.number)==null?void 0:ne.toLowerCase())===((re=S.area)==null?void 0:re.toLowerCase())+(B==null?void 0:B.toLowerCase()):((se=M==null?void 0:M.email)==null?void 0:se.toLowerCase())===(x==null?void 0:x.toLowerCase())})){z(c==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(c==="sms"&&((L=S==null?void 0:S.area)==null?void 0:L.toLowerCase())+(B==null?void 0:B.toLowerCase())===(($=e.selectedCountry.area)==null?void 0:$.toLowerCase())+((q=e.userNumberFmt)==null?void 0:q.toLowerCase())){z("Invalid input, phone number is creator's phone number");return}else if(c==="email"&&(x==null?void 0:x.toLowerCase())===((H=e.userEmail)==null?void 0:H.toLowerCase())){z("Invalid input, email is creator's email");return}z("");let w=i==null?void 0:i.length;U(M=>[{name:D,email:x,number:B,phoneNumber:`+${S==null?void 0:S.area}${_}`,otpChannel:c,phoneArea:S==null?void 0:S.area,position:(M==null?void 0:M.length)+1,vaultId:c==="sms"?`+${S==null?void 0:S.area}${_}`:x},...M]),C(""),F(""),V(""),O(""),A(""),w+1===4&&v(!1)},u=async()=>{var L,$,q,H,M,J;let w=[{otpChannel:((L=e==null?void 0:e.userEmail)==null?void 0:L.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${($=e==null?void 0:e.selectedCountry)==null?void 0:$.area}${(q=e==null?void 0:e.userNumberFmt)==null?void 0:q.replace(" ","")}`,vaultId:g==null?void 0:g.vaultId},...i];(w==null?void 0:w.length)>0&&(i==null?void 0:i.length)>0&&Y&&(g!=null&&g.vaultId)&&(g!=null&&g.hashedVaultId)&&(g!=null&&g.vaultPin)&&(g!=null&&g.hashedVaultPin)&&ee&&o&&((H=e.helperFunctions)!=null&&H.sendCoSignerInvitation)&&((M=e.helperFunctions)!=null&&M.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Qt(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,w,i,((J=e==null?void 0:e.userEmail)==null?void 0:J.length)>0?"email":"sms",Y,g.vaultId,g.hashedVaultId,g.vaultPin,g.hashedVaultPin,ee,o).then(ne=>{e.setIsLoading(!1),ne&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!s&&t.createElement(t.Fragment,null,n==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{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:P.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:P.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:P.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:P.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"),f(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{E("2"),v(!1),f(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),n==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{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"},!W&&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"),((p=e.userEmail)==null?void 0:p.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((N=e.userEmail)==null?void 0:N.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!W&&i.sort((w,L)=>(w==null?void 0:w.position)-(L==null?void 0:L.position)).map((w,L)=>{var $,q;return t.createElement("div",{key:L,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"},($=Oe[w==null?void 0:w.position])==null?void 0:$.split(" ")[0],t.createElement("sup",null,(q=Oe[w==null?void 0:w.position])==null?void 0:q.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"},w==null?void 0:w.name),w.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},w.email),w.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",w==null?void 0:w.phoneArea,") ",w.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:P.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{U(H=>{var M;return(M=H==null?void 0:H.filter(J=>{var ne,re,se,ve,he,we;return(J==null?void 0:J.otpChannel)==="sms"?((ne=J==null?void 0:J.phoneArea)==null?void 0:ne.toLowerCase())+((re=J==null?void 0:J.number)==null?void 0:re.toLowerCase())!==((se=w==null?void 0:w.phoneArea)==null?void 0:se.toLowerCase())+((ve=w==null?void 0:w.number)==null?void 0:ve.toLowerCase()):((he=J==null?void 0:J.email)==null?void 0:he.toLowerCase())!==((we=w==null?void 0:w.email)==null?void 0:we.toLowerCase())}))==null?void 0:M.map((J,ne)=>(J.position=ne+1,J))})},onClick:()=>{Q()},style:{cursor:"pointer"},src:P.delete,alt:"delete"}))))})),W&&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((w,L)=>t.createElement("div",{style:L+1===Y?{}:{height:"0",width:"0",overflow:"hidden"},key:L,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(L+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:P.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:P.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((w,L)=>t.createElement("p",{style:L===(i==null?void 0:i.length)?{paddingRight:"12px"}:L===0?{paddingLeft:"12px"}:{},onClick:()=>{L+1>1&&Z(L+1)},key:L,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(L+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async w=>{if(w.target.className.includes("startup-button")&&w.target.className!=="startup-button")w.target.className="startup-button-click",await u();else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click"),await u()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&t.createElement("div",{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"},(j=Oe[(i==null?void 0:i.length)+1])==null?void 0:j.split(" ")[0],t.createElement("sup",null,(X=Oe[(i==null?void 0:i.length)+1])==null?void 0:X.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:w=>{F(w.target.value)},value:D,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"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{k("sms"),z(""),C("")},src:c==="sms"?P.selectClicked:P.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:()=>{k("email"),z(""),V(""),O(""),A("")},src:c==="email"?P.selectClicked:P.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"},c==="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:()=>{m(!d)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{m(!d)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:S.flag}),t.createElement("p",{onClick:()=>{m(!d)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",S.area),d&&t.createElement("img",{onClick:()=>{m(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!d&&t.createElement("img",{onClick:()=>{m(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),t.createElement("input",{onInputCapture:w=>{var q;w.target.value===""?A(y+" "):A(w.target.value);let L=(q=w.target.value)==null?void 0:q.replace(/\D/g,"");V(L);let $="";for(let H=0;H<(L==null?void 0:L.length);H++)$+=L[H],(H+1)%5===0&&H+1<(L==null?void 0:L.length)&&($+=" ");O($),z("")},onInput:w=>{Q()},value:B,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),d&&t.createElement(We,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:I,selected:S,searchActive:d,setSearchActive:m,contentMaxHeight:"300",contentbottomMargin:"300"}),R===""&&_.length!==10&&y.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")),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))),c==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:w=>{C(w.target.value),z("")},onInput:w=>{Q()},value:x,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>v(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{te()},onClick:()=>Q(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!W&&(i==null?void 0:i.length)<4&&t.createElement("div",{onClick:()=>v(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:P.addIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!W&&(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:P.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!W&&t.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px"}:{marginBottom:"20px"},id:"add-cosigner-button",onClick:async w=>{if(w.target.className.includes("startup-button")&&w.target.className!=="startup-button")w.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(Z(2),ae(!0),v(!1));else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(Z(2),ae(!0),v(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),s&&t.createElement(t.Fragment,null,r==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.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:()=>f(!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"))),r==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.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"))),r==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.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:()=>{E("2"),v(!1),f(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},it=Sa;var Ia=e=>{let[s,f]=fe(e.fontsLoaded||!1),[r,a]=fe(e.showLogoPage||!1),[n,E]=fe([]),[l,v]=fe("2"),[c,k]=fe(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[_,V]=fe(""),[B,O]=fe(""),[x,C]=fe(!1),[D,F]=fe(""),[y,A]=fe(""),[d,m]=fe(""),[S,I]=fe(""),[i,U]=fe(null),[W,ae]=fe(null),{setChainId:Y,setAddress:Z,setPk:R,setProvider:z,setSigner:o,setVaultContract:g,setVaultData:ee,vaultData:Q,chainId:te}=ye();return Je(()=>{let u=()=>{let p=Fe(document);f(p)};e.fontsLoaded||u()},[]),Je(()=>{(async()=>{let p=await Wt(e.chainId);Y(p.chainId),Z(p.address),R(p.pk),z(p.provider),o(p.signer),g(p.vaultContract),ee(p.vaultData)})()},[]),Je(()=>{ka(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Je(()=>{(()=>{let p=Gt.map(N=>{if(N)return{name:N==null?void 0:N.name,countryName:N==null?void 0:N.name,officialName:N==null?void 0:N.name,currencySymbol:N==null?void 0:N.currency,currencyName:N==null?void 0:N.currency,officialCurrencySymbol:N==null?void 0:N.currency,countryCode:N==null?void 0:N.code,flag:N==null?void 0:N.flag,continent:N==null?void 0:N.continent,phone_code:N==null?void 0:N.phone_code,code:N==null?void 0:N.code}}).flat();E(p==null?void 0:p.filter(N=>N!==void 0))})()},[]),le.createElement(le.Fragment,null,s&&r&&e.logoPageElement&&le.createElement(le.Fragment,null," ",e.logoPageElement),s&&!r&&le.createElement(le.Fragment,null,l==="2"&&le.createElement(et,{setStep:v,setIsLoading:e.setIsLoading,setUserNumberFmt:V,userNumberFmt:_,setUserEmail:O,userEmail:B,setSelectedCountry:k,selectedCountry:c,allCountries:n}),l==="3"&&le.createElement(at,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:_,setUserNumberFmt:V,setUserEmail:O,userEmail:B,selectedCountry:c}),l==="4"&&le.createElement(nt,{setStep:v,setIsLoading:e.setIsLoading,setShowSuccessBtn:C,setSuccessBtnText:F,setSuccessBtnNeutText:A,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:ae,userNumberFmt:_,userEmail:B,selectedCountry:c,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:m,setActionFooterText:I,helperFunctions:e.helperFunctions}),l==="5"&&le.createElement(xe,{setStep:v,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:x,buttonText:D,buttonNeutText:y,buttonFunc:i,buttonNeutFunc:W,actionHeaderText:d,actionFooterText:S}),l==="6"&&le.createElement(it,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:_,userEmail:B,selectedCountry:c,allCountries:n,helperFunctions:e.helperFunctions}),l==="7"&&e.action===""&&le.createElement(xe,{action:e.action,setStep:v,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&le.createElement(xe,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData}}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading})),!s&&le.createElement("h3",null,"Preparing Modules..."))},ot=Ia;import h,{useEffect as _a,useState as pe}from"react";var Pa=e=>{var o,g,ee,Q,te;let[s,f]=pe(e.fontsLoaded||!1),[r,a]=pe(!1),[n,E]=pe(!0),[l,v]=pe(!1),[c,k]=pe(!1),[_,V]=pe(null),[B,O]=pe(e.newChainId||be),[x,C]=pe(!1),[D,F]=pe(!1),[y,A]=pe(!1),[d,m]=pe(!1),[S,I]=pe(!1),[i,U]=pe("");_a(()=>{let u=()=>{let p=Fe(document);f(p)};e.fontsLoaded||u()},[]);let W=u=>{if(u.value.length>0){let p=u.nextElementSibling;p&&p.focus()}else u.value.length===0&&u.focus()},ae=u=>{let p=u.clipboardData.getData("text"),N=p==null?void 0:p.replace(/\D/g,""),j=document.getElementsByClassName("otp-input");if((j==null?void 0:j.length)===4&&(N==null?void 0:N.length)>0)for(let X=0;X<j.length;X++)N[X]&&(j[X].value=N[X],j[X].focus())},Y=u=>{let p=u.target.previousElementSibling;p&&p.focus()},Z=()=>{let u=document.getElementById("verified-custd-mdl-otp-button"),p=document.getElementById("verified-custd-mdl-otp-input-1"),N=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");u&&(p==null?void 0:p.value.length)>0&&(N==null?void 0:N.value.length)>0&&(j==null?void 0:j.value.length)>0&&(X==null?void 0:X.value.length)>0&&!r?u.className="verified-custd-mdl-startup-button-active":u.className="verified-custd-mdl-startup-button"},R=async()=>{var u,p,N,j,X,w;if(!e.helperFunctions)U("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{U(""),a(!1);let L=document.getElementById("verified-custd-mdl-otp-input-1"),$=document.getElementById("verified-custd-mdl-otp-input-2"),q=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4");if(((u=L==null?void 0:L.value)==null?void 0:u.length)>0&&((p=$==null?void 0:$.value)==null?void 0:p.length)>0&&((N=q==null?void 0:q.value)==null?void 0:N.length)>0&&((j=H==null?void 0:H.value)==null?void 0:j.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let M=(L==null?void 0:L.value)+($==null?void 0:$.value)+(q==null?void 0:q.value)+(H==null?void 0:H.value);await Xt(e.vaultId,e.hashedVaultId,M,ie(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(B),(w=Mt)==null?void 0:w.includes((X=e.origin)==null?void 0:X.toLowerCase())).then(async J=>{var ne,re,se,ve,he,we,De,oe,Ge,rt,st,lt,ct,ut,mt,ft,gt,pt,ht,vt,yt,bt,xt,wt,Nt,Ct,At,Et,St,kt,It,_t,Pt,Dt,Ft,Tt,Bt;e.setIsLoading(!1),J?(V(J),e.action==="getPk"&&((re=(ne=e.reqVaultData)==null?void 0:ne.vaultId)==null?void 0:re.toLowerCase())===((se=e.vaultId)==null?void 0:se.toLowerCase())?(e.setIsLoading(!0),await Rt(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(B)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),(Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("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 ea(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(ve=e.reqVaultData)==null?void 0:ve.vaultId,(he=e.reqVaultData)==null?void 0:he.hashedVaultId,(we=e.reqVaultData)==null?void 0:we.hashedVaultPin,(De=e.reqTxData)==null?void 0:De.id,Number(B)).then(async Ue=>{var Ce,Ae,Lt,Vt;e.setIsLoading(!1),!((Ce=e.reqTxData)!=null&&Ce.newUser)&&((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((Lt=e.reqTxData)!=null&&Lt.newUser)&&!((Vt=chrome==null?void 0:chrome.storage)!=null&&Vt.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),a(!0))})):e.action==="completeRecovery"&&((Ge=(oe=e.reqVaultData)==null?void 0:oe.vaultId)==null?void 0:Ge.toLowerCase())===((rt=e.vaultId)==null?void 0:rt.toLowerCase())?(e.setIsLoading(!0),await ta(e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(st=e.reqTxData)==null?void 0:st.id,e.vaultChannel,Number(B)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),Ue?k(!0):((Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),U("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((ct=(lt=e.reqVaultData)==null?void 0:lt.vaultId)==null?void 0:ct.toLowerCase())!==((ut=e.vaultId)==null?void 0:ut.toLowerCase())&&((ft=(mt=e.reqVaultData)==null?void 0:mt.coSignerId)==null?void 0:ft.toLowerCase())===((gt=e.vaultId)==null?void 0:gt.toLowerCase())?(U(""),a(!1),F(!0)):e.action==="invitation"&&((ht=(pt=e.reqVaultData)==null?void 0:pt.vaultId)==null?void 0:ht.toLowerCase())===((vt=e.vaultId)==null?void 0:vt.toLowerCase())?(U(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(yt=e.reqVaultData)==null?void 0:yt.coSignerId} account`),a(!0)):e.action==="invitation"&&((xt=(bt=e.reqVaultData)==null?void 0:bt.coSignerId)==null?void 0:xt.toLowerCase())!==((wt=e.vaultId)==null?void 0:wt.toLowerCase())?(U(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Nt=e.reqVaultData)==null?void 0:Nt.coSignerId} account`),a(!0)):e.action==="getPk"&&((At=(Ct=e.reqVaultData)==null?void 0:Ct.vaultId)==null?void 0:At.toLowerCase())!==((Et=e.vaultId)==null?void 0:Et.toLowerCase())?((St=chrome==null?void 0:chrome.storage)!=null&&St.local?await chrome.storage.local.remove("myVault"):!((kt=chrome==null?void 0:chrome.storage)!=null&&kt.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to fetch account details. please logout and login to: ${(It=e.reqVaultData)==null?void 0:It.vaultId} account`),a(!0)):e.action==="completeRecovery"&&((Pt=(_t=e.reqVaultData)==null?void 0:_t.vaultId)==null?void 0:Pt.toLowerCase())!==((Dt=e.vaultId)==null?void 0:Dt.toLowerCase())?((Ft=chrome==null?void 0:chrome.storage)!=null&&Ft.local?await chrome.storage.local.remove("myVault"):!((Tt=chrome==null?void 0:chrome.storage)!=null&&Tt.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to restore login access for this account. please logout and login to: ${(Bt=e.reqVaultData)==null?void 0:Bt.vaultId} account`),a(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)?(U("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),a(!0)):e.action===""?e.setShowDashboard(!0):(U(""),a(!1),k(!0))):(U(""),a(!0))})}}},z=async u=>{var L,$,q,H,M,J,ne,re,se,ve,he;let p=document.getElementById("verified-custd-mdl-otp-input-1"),N=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"),w=e.vaultId;if(((L=p==null?void 0:p.value)==null?void 0:L.length)>0&&(($=N==null?void 0:N.value)==null?void 0:$.length)>0&&((q=j==null?void 0:j.value)==null?void 0:q.length)>0&&((H=X==null?void 0:X.value)==null?void 0:H.length)>0&&((M=e==null?void 0:e.reqVaultData)!=null&&M.hashedVaultId)&&((J=e.reqVaultData)!=null&&J.hashedVaultPin)&&w&&((ne=e.helperFunctions)!=null&&ne.sendCreatorAcceptance)&&((re=e.helperFunctions)!=null&&re.sendCreatorRejection)){e.setIsLoading(!0);let we=(p==null?void 0:p.value)+(N==null?void 0:N.value)+(j==null?void 0:j.value)+(X==null?void 0:X.value),De=ie(w),oe=ie(we);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,De,oe,(se=e==null?void 0:e.reqVaultData)==null?void 0:se.hashedVaultId,(ve=e.reqVaultData)==null?void 0:ve.hashedVaultPin,(he=e==null?void 0:e.reqVaultData)==null?void 0:he.vaultId,w,u,null,e.encrptedPk,Number(B)).then(Ge=>{e.setIsLoading(!1),Ge&&(I(u),A(!0))})}};return h.createElement(h.Fragment,null,s&&!D&&h.createElement(h.Fragment,null,!c&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(ge,{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:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},onPaste:u=>{ae(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&i===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(i==null?void 0:i.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},i),!r&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!n&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>E(!0),src:P.pinShow,alt:"show pin icon"}),n&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>E(!1),src:P.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(Jt,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async u=>{if(u.target.className.includes("verified-custd-mdl-startup-button")&&u.target.className!=="verified-custd-mdl-startup-button")u.target.className="verified-custd-mdl-startup-button-click",await R();else{let p=document.getElementsByClassName("verified-custd-mdl-startup-button-active");p.length>0&&(p[0].className="verified-custd-mdl-startup-button-click",await R())}},className:"verified-custd-mdl-startup-button"},"Proceed"),h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},h.createElement(Le,null))))),c&&h.createElement(xe,{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: ${(o=e.reqVaultData)==null?void 0:o.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."} `})),s&&D&&h.createElement(h.Fragment,null,!y&&h.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(ge,{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,(g=e.reqVaultData)==null?void 0:g.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!d&&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:P.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:P.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:()=>{m(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await z(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),d&&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,(ee=e.reqVaultData)==null?void 0:ee.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 z(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{m(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),y&&h.createElement(xe,{messageTosend:{type:"getPk",key:"vaultData",value:_},customTextHeader:"Successful",customTextFooter:S?`You have been added as a Co-Signer for ${(Q=e.reqVaultData)==null?void 0:Q.vaultId}`:`You rejected Co-signer reject from ${(te=e.reqVaultData)==null?void 0:te.vaultId}`})),!s&&h.createElement("h3",null,"Preparing Modules..."))},dt=Pa;import{motion as Da}from"framer-motion";var Fa=e=>{var _,V,B,O,x,C,D,F,y,A,d,m,S,I,i,U,W,ae;let[s,f]=He(!0),[r,a]=He(null),[n,E]=He({}),[l,v]=He(!1),[c,k]=He(!1);return aa(()=>{(()=>{let Z=Fe(document);f(Z)})()},[]),aa(()=>{(()=>{var Z,R;if((Z=chrome==null?void 0:chrome.storage)!=null&&Z.local)chrome.storage.local.get("myVault",z=>{var o;z.myVault&&((o=JSON.parse(z.myVault))!=null&&o.vaultId)?(E(JSON.parse(z.myVault)),a(!0)):a(!1)});else if(!((R=chrome==null?void 0:chrome.storage)!=null&&R.local)&&localStorage){let z=JSON.parse(localStorage.getItem("myVault"));z&&(z!=null&&z.vaultId)?(E(z),a(!0)):a(!1)}else a(!1)})()},[]),ce.createElement(ce.Fragment,null,s&&ce.createElement(Ot,null,ce.createElement("div",{className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&ce.createElement(ce.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&ce.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),l&&ce.createElement("div",{style:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},ce.createElement(Da.img,{height:"50px",width:"50px",src:P.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),r!==null&&ce.createElement(ce.Fragment,null,!r&&ce.createElement(ot,{fontsLoaded:s,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((_=e.reqVaultData)==null?void 0:_.vId)||((V=e.reqVaultData)==null?void 0:V.vaultId)),hashedVaultId:ie(decodeURIComponent(((B=e.reqVaultData)==null?void 0:B.vId)||((O=e.reqVaultData)==null?void 0:O.vaultId))),hashedVaultPin:decodeURIComponent(((x=e.reqVaultData)==null?void 0:x.vPh)||((C=e.reqVaultData)==null?void 0:C.hashedVaultPin)),coSignerId:decodeURIComponent((D=e.reqVaultData)==null?void 0:D.cId)}:null,txData:e.txData?(y=Object.keys(e.txData))==null?void 0:y.map(Y=>(e.txData[Y]=decodeURIComponent(e.txData[Y]),e.txData))[((F=Object.keys(e.txData))==null?void 0:F.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:v,dashbordElement:e.dashbordElement}),r&&!c&&ce.createElement(dt,{fontsLoaded:s,setisOnboard:a,vaultId:n==null?void 0:n.vaultId,hashedVaultId:n==null?void 0:n.hashedVaultId,encrptedPk:n==null?void 0:n.pk,vaultAddress:n==null?void 0:n.address,vaultChannel:n==null?void 0:n.channel,origin:e.origin,title:e.title,actionText:e.actionText||Ht[e.action],setIsLoading:v,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((A=e.reqVaultData)==null?void 0:A.vId)||((d=e.reqVaultData)==null?void 0:d.vaultId)),hashedVaultId:ie(decodeURIComponent(((m=e.reqVaultData)==null?void 0:m.vId)||((S=e.reqVaultData)==null?void 0:S.vaultId))),hashedVaultPin:decodeURIComponent(((I=e.reqVaultData)==null?void 0:I.vPh)||((i=e.reqVaultData)==null?void 0:i.hashedVaultPin)),coSignerId:decodeURIComponent((U=e.reqVaultData)==null?void 0:U.cId)}:null,reqTxData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map(Y=>(e.txData[Y]=decodeURIComponent(e.txData[Y]),e.txData))[((W=Object.keys(e.txData))==null?void 0:W.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:k}),r&&c&&e.dashbordElement&&ce.createElement(e.dashbordElement,{setIsLoading:v})))),!s&&ce.createElement("h3",null,"Preparing Modules..."))},Ta=Fa;export{it as AddCoSignersPage,et as ContactPage,nt as CreatePinPage,dt as EnterPinPage,ot as FTUPage,at as OTPPage,Ta as VerifiedCustody,Be as decryptString,Te as encryptString,ie as hashTheString};
1
+ function ha(e){if(!e||typeof document>"u")return;let c=document.head||document.getElementsByTagName("head")[0],x=document.createElement("style");x.type="text/css",c.firstChild?c.insertBefore(x,c.firstChild):c.appendChild(x),x.styleSheet?x.styleSheet.cssText=e:x.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 se,{useEffect as yt,useState as Ee}from"react";import va,{createContext as ya,useContext as ba,useState as ke}from"react";var aa=ya(void 0),ct=e=>{let[c,x]=ke(null),[r,a]=ke(null),[n,N]=ke(null),[l,y]=ke(null),[s,C]=ke(null),[A,j]=ke(null),[S,k]=ke(null),[f,L]=ke(null),[U,E]=ke(null);return va.createElement(aa.Provider,{value:{chainId:c,pk:r,address:n,smAddress:l,signer:s,provider:A,vaultContract:S,vaultData:f,setChainId:x,setPk:a,setAddress:N,setSmAddress:y,setSigner:C,setProvider:j,setVaultContract:k,setVaultData:L}},e.children)},Ce=()=>{let e=ba(aa);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import me,{useEffect as rt,useState as ye}from"react";import{debounce as en}from"lodash";var Ie=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",da={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},We={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},ut={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"},at=[{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 xa,Custody as wa,Provider as Na,VerifiedWallet as mt}from"@verified-network/verified-sdk";var he={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://solemn-summer-patina.quiknode.pro/4b6351e79bcce87659ec4d393b820efff73de670/"],blockExplorerUrls:["https://etherscan.io/"],icon:F.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api.etherscan.io/api"},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://red-quaint-pallet.base-mainnet.quiknode.pro/751dd0305334e1ab29798d6d229c8d833c58544d/"],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,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api-sepolia.etherscan.io/api"},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}},Pe={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 ft from"crypto-js";import{toast as sa}from"react-toastify";import{createSmartAccountClient as Aa}from"@biconomy/account";import $e from"react";import{toMultichainNexusAccount as Ea}from"@biconomy/abstractjs";import{base as Sa,baseSepolia as Ia,gnosis as ka,mainnet as _a,polygon as Pa,sepolia as Da}from"viem/chains";import{http as Le}from"viem";var Ve=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 ia.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let n=e.createElement("link");n.rel="stylesheet",n.href=r,e.head.appendChild(n)}}),!0},nt=async(e,c)=>{var x,r,a,n,N;try{let l;if(c)l=new mt(c);else{let T=mt.generateMnemonic();l=mt.importWallet(T)}let y=xa,s=e&&((x=y[e])!=null&&x.Custody)&&((a=(r=he[e])==null?void 0:r.rpcUrls)==null?void 0:a.length)>0?e:Ie,C=(n=he[s])==null?void 0:n.rpcUrls[0],A=l.setProvider(new Na(C)),j=l.privateKey,S=new wa(A,(N=y[s])==null?void 0:N.Custody),f=await(await Aa({signer:A,bundlerUrl:`${Pe.BUNDLER_URL_FIRST_SECTION}/${s}/${Pe[s].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Pe[s].PAYMASTER_API_KEY})).getAccountAddress(),L=A,E=(await Ea({chains:[Sa,_a,Da,ka,Ia,Pa],transports:[Le(),Le(),Le(),Le(),Le(),Le()],signer:L})).addressOn(s);return{chainId:s,address:E,smAddress:f,pk:j,signer:A,provider:C,vaultContract:S,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,smAddress:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},le=e=>Ca.createHash("sha256").update(e).digest("hex").slice(0,30),Ue=(e,c)=>ft.AES.encrypt(e,c).toString(),Oe=(e,c)=>{var x=ft.AES.decrypt(e,c),r=x.toString(ft.enc.Utf8);return r};var Fa=(e,c)=>$e.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},$e.createElement("img",{style:{marginLeft:"5px"},src:F.errorAlert,alt:""}),$e.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},$e.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),$e.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},c)));var ve=(e,c)=>(sa.dismiss(),sa.error(Fa(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 ot}from"react";import qe from"react";var Ta=e=>{var c;return qe.createElement("div",{className:"verified-custd-mdl-startup-slider"},((c=e.sliderCount)==null?void 0:c.length)>0&&e.sliderCount.map((x,r)=>qe.createElement(qe.Fragment,{key:r},r<=Number(e.currentSlider)&&qe.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&qe.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},xe=Ta;import B,{useState as Ba}from"react";var La=e=>{var r;let[c,x]=Ba(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:F.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),B.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:a=>{a.target.value===""?x(null):e.type==="language"?x(e.searchContent.filter(n=>{if(n.name.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=n.name.split(""),n})):e.type==="area-code"&&x(e.searchContent.filter(n=>{var N,l;if((N=n==null?void 0:n.name)!=null&&N.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=(l=n==null?void 0:n.name)==null?void 0:l.split(""),n})),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((a,n)=>B.createElement(B.Fragment,{key:n},e.type==="area-code"&&B.createElement("div",{key:n,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"},B.createElement("img",{src:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.type==="language"&&B.createElement(B.Fragment,null,window.location.search!==`?${n}`&&B.createElement("div",{key:n,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"},B.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),window.location.search===`?${n}`&&B.createElement("div",{key:n,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"},B.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},B.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&B.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))),c&&c.length>0&&c.map((a,n)=>{var N,l,y;return B.createElement(B.Fragment,{key:n},e.type==="area-code"&&B.createElement("div",{key:n,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"},B.createElement("img",{src:a==null?void 0:a.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=a==null?void 0:a.nameArray)==null?void 0:N.length)>0&&(a==null?void 0:a.nameArray.map((s,C)=>B.createElement(B.Fragment,{key:C},!a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C,style:{color:"#B6B7C3"}},s),a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C},s)))))),e.type==="language"&&B.createElement(B.Fragment,{key:n},window.location.search!==`?${n}`&&B.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"},B.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=a.nameArray)==null?void 0:l.length)>0&&a.nameArray.map((s,C)=>B.createElement(B.Fragment,{key:C},!a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C,style:{color:"#B6B7C3"}},s),a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C},s)))),a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((y=a.nameArray)==null?void 0:y.length)>0&&a.nameArray.map((s,C)=>B.createElement(B.Fragment,{key:C},!a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C,style:{color:"#B6B7C3"}},s),a.searched.includes(s.toLowerCase())&&B.createElement("span",{key:C},s))),!a.searched.includes(a.label.toLowerCase())&&B.createElement("span",{style:{color:"#B6B7C3"}},` (${a.label})`),a.searched.includes(a.label.toLowerCase())&&B.createElement("span",null,` (${a.label})`))),window.location.search===`?${n}`&&B.createElement("div",{key:n,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"},B.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},B.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&B.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&B.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))}))))))},it=La;import De from"react";var ra=()=>De.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",De.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",De.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),la=e=>De.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",De.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var c,x;e.setIsLoading(!0),(c=chrome==null?void 0:chrome.storage)!=null&&c.local?await chrome.storage.local.remove("myVault"):!((x=chrome==null?void 0:chrome.storage)!=null&&x.local)&&localStorage&&localStorage.removeItem("myVault"),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Me=()=>De.createElement("div",{className:"verified-custd-mdl-privacy"},De.createElement("img",{alt:"Privacy Icon",src:F.privacyTip,className:"verified-custd-mdl-privacy-icon"}),De.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var Va=e=>{var S;let[c,x]=ot(""),[r,a]=ot(""),[n,N]=ot(!1),[l,y]=ot(""),{pk:s,vaultContract:C}=Ce(),A=()=>{var f,L;let k=document.getElementById("verified-custd-mdl-contact-button");k&&e.selectedCountry.area&&c.length===10||k&&((f=e.userEmail)==null?void 0:f.length)>0&&isNaN(Number(e.userEmail))&&((L=e.userEmail)!=null&&L.includes("@"))?(y(""),k.className="verified-custd-mdl-startup-button-active"):(y(""),k.className="verified-custd-mdl-startup-button")},j=async()=>{var k,f,L;if(!e.helperFunctions)y("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((k=e.userEmail)==null?void 0:k.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){y("Invalid input, please check your email");return}let U=((f=e.userEmail)==null?void 0:f.length)>0?e.userEmail:`+${e.selectedCountry.area}${c}`,E=((L=e.userEmail)==null?void 0:L.length)>0?"email":"sms";(U&&E&&s&&C||U&&E&&e.noContract)&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(E,U).then(T=>{var b;e.setIsLoading(!1),T?(y(""),e.setStep("3")):(y(E==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),ve("Oops something went wrong",((b=e.userEmail)==null?void 0:b.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))}))}};return Z.createElement("div",{className:"verified-custd-mdl-startup-language"},Z.createElement("div",{className:"verified-custd-mdl-startup-contact"},Z.createElement(xe,{sliderCount:[1,2,3],currentSlider:"0"}),Z.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},Z.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),Z.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Z.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},Z.createElement("div",{onClick:()=>{N(!n)},className:"verified-custd-mdl-st-contact-first-section"},Z.createElement("img",{onClick:()=>{N(!n)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),Z.createElement("p",{onClick:()=>{N(!n)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),n&&Z.createElement("img",{onClick:()=>{N(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!n&&Z.createElement("img",{onClick:()=>{N(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),Z.createElement("input",{onInputCapture:k=>{var U;k.target.value===""?a(r+" "):a(k.target.value);let f=(U=k.target.value)==null?void 0:U.replace(/\D/g,"");x(f);let L="";for(let E=0;E<(f==null?void 0:f.length);E++)L+=f[E],(E+1)%5===0&&E+1<(f==null?void 0:f.length)&&(L+=" ");e.setUserNumberFmt(L)},onInput:k=>{A()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),n&&Z.createElement(it,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:A,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:n,setSearchActive:N,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)))),!n&&Z.createElement(Z.Fragment,null,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:k=>{var f;e.setUserEmail((f=k.target)==null?void 0:f.value),e.setUserNumberFmt(""),x(""),a("")},onInput:k=>{A()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((S=e.userEmail)==null?void 0:S.length)>0&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!n&&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(ra,null),Z.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async k=>{if(k.target.className.includes("verified-custd-mdl-startup-button")&&k.target.className!=="verified-custd-mdl-startup-button")k.target.className="verified-custd-mdl-startup-button-click",await j();else{let f=document.getElementsByClassName("verified-custd-mdl-startup-button-active");f.length>0&&(f[0].className="verified-custd-mdl-startup-button-click",await j())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),Z.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},Z.createElement(Me,null)))))},gt=Va;import Y,{useEffect as Ua,useState as dt}from"react";var Oa=e=>{var U,E,T,b,K,q;let[c,x]=dt(!1),[r,a]=dt(60),[n,N]=dt(!1),[l,y]=dt(""),{pk:s,vaultContract:C}=Ce();Ua(()=>{if(r===0)return;let d=setInterval(()=>{a(m=>m-1)},1e3);return()=>clearInterval(d)},[r]);let A=d=>{if(d.value.length>0){let m=d.nextElementSibling;m&&m.focus()}else d.value.length===0&&d.focus()},j=d=>{let m=d.clipboardData.getData("text"),o=m==null?void 0:m.replace(/\D/g,""),_=document.getElementsByClassName("otp-input");if((_==null?void 0:_.length)===4&&(o==null?void 0:o.length)>0)for(let I=0;I<_.length;I++)o[I]&&(_[I].value=o[I],_[I].focus())},S=d=>{let m=d.target.previousElementSibling;m&&m.focus()},k=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),m=document.getElementById("verified-custd-mdl-otp-input-1"),o=document.getElementById("verified-custd-mdl-otp-input-2"),_=document.getElementById("verified-custd-mdl-otp-input-3"),I=document.getElementById("verified-custd-mdl-otp-input-4");d&&(m==null?void 0:m.value.length)>0&&(o==null?void 0:o.value.length)>0&&(_==null?void 0:_.value.length)>0&&(I==null?void 0:I.value.length)>0&&!n?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},f=async()=>{var d,m,o,_,I,re,ae,oe,ee,X;if(!e.helperFunctions)y("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let Q=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(m=e.userNumberFmt)==null?void 0:m.replace(" ","")}`,i=document.getElementById("verified-custd-mdl-otp-input-1"),p=document.getElementById("verified-custd-mdl-otp-input-2"),G=document.getElementById("verified-custd-mdl-otp-input-3"),W=document.getElementById("verified-custd-mdl-otp-input-4");if(((o=i==null?void 0:i.value)==null?void 0:o.length)>0&&((_=p==null?void 0:p.value)==null?void 0:_.length)>0&&((I=G==null?void 0:G.value)==null?void 0:I.length)>0&&((re=W==null?void 0:W.value)==null?void 0:re.length)>0&&Q&&s&&C||((ae=i==null?void 0:i.value)==null?void 0:ae.length)>0&&((oe=p==null?void 0:p.value)==null?void 0:oe.length)>0&&((ee=G==null?void 0:G.value)==null?void 0:ee.length)>0&&((X=W==null?void 0:W.value)==null?void 0:X.length)>0&&Q&&e.noContract){e.setIsLoading(!0);let R=(i==null?void 0:i.value)+(p==null?void 0:p.value)+(G==null?void 0:G.value)+(W==null?void 0:W.value);await e.helperFunctions.checkOTPVerification(Q,String(R)).then(J=>{e.setIsLoading(!1),J?e.setStep("4"):N(!0)})}}},L=async()=>{var d,m,o;if(!e.helperFunctions)y("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),N(!0);else{let _=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(m=e.userNumberFmt)==null?void 0:m.replace(" ","")}`,I=((o=e.userEmail)==null?void 0:o.length)>0?"email":"sms";_&&I&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(I,_).then(re=>{if(e.setIsLoading(!1),re){a(60),N(!1),y("");let ae=document.getElementById("verified-custd-mdl-otp-input-1"),oe=document.getElementById("verified-custd-mdl-otp-input-2"),ee=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4");ae.value="",oe.value="",ee.value="",X.value=""}else ve("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(xe,{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"," ",((U=e.userNumberFmt)==null?void 0:U.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"},((E=e.userNumberFmt)==null?void 0:E.length)>0&&Y.createElement(Y.Fragment,null,Y.createElement("span",null,"(+",(T=e.selectedCountry)==null?void 0:T.area,")")," ",Y.createElement("span",null," ",(b=e.userNumberFmt)==null?void 0:b.split(" ")[0])," ",Y.createElement("span",null," ",(K=e.userNumberFmt)==null?void 0:K.split(" ")[1])),((q=e.userEmail)==null?void 0:q.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:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),N(!1),y("")},onInput:d=>{A(d.target),k()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&S(d)},onPaste:d=>{j(d)},className:n?"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:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),N(!1),y("")},onInput:d=>{A(d.target),k()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&S(d)},className:n?"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:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),N(!1),y("")},onInput:d=>{A(d.target),k()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&S(d)},className:n?"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:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),N(!1),y("")},onInput:d=>{A(d.target),k()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&S(d)},className:n?"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"},!n&&r>5&&l===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},Y.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!n&&r<=5&&r>0&&l===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},Y.createElement("span",{style:{fontWeight:400}},"00:"),r),!n&&r===0&&l===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),n&&l===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),n&&(l==null?void 0:l.length)>0&&Y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},l),!n&&r>0&&l===""&&Y.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!n&&r===0&&l===""&&Y.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await L()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),n&&l===""&&Y.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await L()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!c&&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 d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await f();else{let m=document.getElementsByClassName("verified-custd-mdl-startup-button-active");m.length>0&&(m[0].className="verified-custd-mdl-startup-button-click",await f())}},className:"verified-custd-mdl-startup-button"},"Proceed"),Y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},Y.createElement(Me,null)))))},pt=Oa;import h,{useState as _e}from"react";import{AbiCoder as Ma,decodeBytes32String as za,encodeBytes32String as Fe}from"ethers";import{combine as Ka,split as Ha}from"shamir-secret-sharing";import{contractAddress as Je,Custody as Ze,Provider as Ke,VerifiedWallet as Be}from"@verified-network/verified-sdk";import{createSmartAccountClient as ja}from"@biconomy/account";import{toMultichainNexusAccount as Ga}from"@biconomy/abstractjs";import{base as Ya,baseSepolia as Wa,gnosis as $a,mainnet as qa,polygon as Ja,sepolia as Za}from"viem/chains";import{http as ze}from"viem";var ca=async(e,c,x,r,a,n,N,l,y,s,C,A)=>{try{let j={vaultId:e,hashedVaultId:c,vaultPin:x,hashedVaultPin:r,vaultContract:y};return await y.getCreator(c,r).then(async S=>{var k,f,L,U,E,T;if((S==null?void 0:S.status)===0)try{if(s==="invitation")return{isExisting:!0,...j};if((k=chrome==null?void 0:chrome.storage)!=null&&k.local){let b=Fe(x),K=Ue(n,b);await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:c,pk:K,channel:a})})}else if(!((f=chrome==null?void 0:chrome.storage)!=null&&f.local)&&localStorage){let b=Fe(x),K=Ue(n,b);localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:c,pk:K,channel:a}))}if((L=chrome==null?void 0:chrome.runtime)!=null&&L.sendMessage)chrome.runtime.sendMessage({type:s&&s==="connect_wallet"?"getPk":s&&s!=="connect_wallet"?s:"getPk",value:{vaultData:s&&s==="signRecovery"||s&&s==="completeRecovery"?C:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:A}});else if(!((U=chrome==null?void 0:chrome.runtime)!=null&&U.sendMessage)){let b=new CustomEvent(s&&s==="connect_wallet"?"getPk":s&&s!=="connect_wallet"?s:"getPk",{detail:{value:{vaultData:s&&s==="signRecovery"||s&&s==="completeRecovery"?C:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:A}}});window.dispatchEvent(b)}return{shouldStop:!0}}catch(b){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",b),ve("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else{if(((E=S==null?void 0:S.reason)==null?void 0:E.toLowerCase())==="invalid pin")return null;if(((T=S==null?void 0:S.reason)==null?void 0:T.toLowerCase())==="wallet not created")return await y.createVault(c,r).then(async b=>(b==null?void 0:b.status)===0?await y.confirmParticipant(c,r,c,r,!0).then(async K=>{var q,d;if((K==null?void 0:K.status)===0)try{let o=await new Be(n).getAddress(),_=Fe(x),I=Ue(n,_);return(q=chrome==null?void 0:chrome.storage)!=null&&q.local?await chrome.storage.local.set({myVault:JSON.stringify({address:N,regAddress:o,smAddress:l,vaultId:e,hashedVaultId:c,pk:I,channel:a})}):!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:N,regAddress:o,smAddress:l,vaultId:e,hashedVaultId:c,pk:I,channel:a})),j}catch(m){return ve("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",m),!1}else return ve("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: ",K),!1}):(ve("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",b),!1))}})}catch(j){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",j),ve("Oops something went wrong","Error while creating pin. Try again later"),!1}},ua=async(e,c,x,r,a,n,N,l,y,s)=>{var C,A,j,S;try{let k=Fe(x),f=Oe(a,k);if(f){let L=Je,U=new Be(f),E=l&&((C=L[l])!=null&&C.Custody)&&((j=(A=he[l])==null?void 0:A.rpcUrls)==null?void 0:j.length)>0?l:Ie,T=(S=he[E])==null?void 0:S.rpcUrls[0],b=U.setProvider(new Ke(T)),K=new Ze(b,L[E].Custody);return K?await K.getCreator(c,r).then(async q=>{var d,m,o,_;if((q==null?void 0:q.status)===0){let I=await K.getQuorum(c,r);return(I==null?void 0:I.status)===0&&((m=(d=I==null?void 0:I.response)==null?void 0:d.result)==null?void 0:m.length)>0?y&&Number((o=I==null?void 0:I.response)==null?void 0:o.result[0])>0?{address:n,vaultId:e,hashedVaultId:c,channel:N,chainId:s||E,pin:x,pk:f}:Number((_=I==null?void 0:I.response)==null?void 0:_.result[0])===0?{address:n,vaultId:e,hashedVaultId:c,channel:N,chainId:s||E,pin:x,pk:f,inCompleteVault:!0}:{address:n,vaultId:e,hashedVaultId:c,channel:N,chainId:s||E,pin:x}:(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(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",k),null}},st=async(e,c,x,r,a,n,N,l,y,s,C,A,j)=>{var k,f,L,U;let S;if(C)S=C;else{let E=Je,T=new Be(A),b=j&&((k=E[j])!=null&&k.Custody)&&((L=(f=he[j])==null?void 0:f.rpcUrls)==null?void 0:L.length)>0?j:Ie,K=(U=he[b])==null?void 0:U.rpcUrls[0],q=T.setProvider(new Ke(K));S=new Ze(q,E[b].Custody)}return S?await C.confirmParticipant(n,a,r,N,s).then(async E=>(E==null?void 0:E.status)===0?(s?await e(x,l,y):await c(x,l,y),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(E=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",E),!1)):!1},ma=async(e,c,x,r,a,n,N,l,y,s,C,A)=>{let j=Number(x.length),k=(await Ha(Uint8Array.from(A.split("").map(U=>U.charCodeAt(0))),Number(j),n)).map(U=>U.join(",")),f=[],L=[];for(let U=0;U<x.length;U++){let E=x[U];await C.addParticipant(l,s,le(E.vaultId),k[U]).then(async T=>{let b={creatorVaultId:N,vaultPin:y,creatorHashedVaultId:l,creatorHashedVaultPin:s,cosigner:E.vaultId,hashedCosigner:le(E.vaultId),cosignerVaultIdType:E.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:E.vaultId,share:k[U],...E};(T==null?void 0:T.status)===0?(L.push(b),E.vaultId!==N&&await e(E.otpChannel,E.vaultId,N,s).then(K=>{K||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):f.push(b)})}return(f==null?void 0:f.length)>0||(L==null?void 0:L.length)!==(x==null?void 0:x.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),ve("Oops somethin went wrong","error while adding co-signers"),!1):await C.defineQuorum(l,s,n.toString()).then(async U=>{if((U==null?void 0:U.status)===0){let E=r==null?void 0:r.map(T=>{var b;return{name:T==null?void 0:T.name,email:T==null?void 0:T.email,phoneNumber:T==null?void 0:T.phoneNumber,contactType:(b=String(T==null?void 0:T.otpChannel))==null?void 0:b.toUpperCase(),position:`${da[Number(T==null?void 0:T.position)]} Co-Signer`}});return await c(a,N,E,Number(n)).then(T=>{T||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),ve("Oops somethin went wrong","error while saving vault keys"),!1})},fa=async(e,c,x,r,a,n,N,l)=>{var C,A,j,S;let y=Fe(a),s=Oe(n,y);if(s){let k=Je,f=new Be(s),L=l&&((C=k[l])!=null&&C.Custody)&&((j=(A=he[l])==null?void 0:A.rpcUrls)==null?void 0:j.length)>0?l:Ie,U=(S=he[L])==null?void 0:S.rpcUrls[0],E=f.setProvider(new Ke(U)),T=new Ze(E,k[L].Custody);if(T)return await T.promptSignatures(c,x).then(async b=>{var K,q,d,m,o,_,I;if((b==null?void 0:b.status)===0&&((q=(K=b==null?void 0:b.response)==null?void 0:K.result)!=null&&q.logs)){let re=new Ma,ae=(o=(m=(d=b==null?void 0:b.response)==null?void 0:d.result)==null?void 0:m.logs)==null?void 0:o.filter(Q=>{var i,p,G,W,R;return((i=Q==null?void 0:Q.address)==null?void 0:i.toLowerCase())===((p=k[L].Custody)==null?void 0:p.toLowerCase())&&((R=(G=Q==null?void 0:Q.topics)==null?void 0:G.map(J=>J==null?void 0:J.toLowerCase()))==null?void 0:R.includes((W=oa)==null?void 0:W.toLowerCase()))}),oe=(_=ae[0])==null?void 0:_.data,ee=(I=re.decode(["bytes32","bytes32","uint256"],oe))==null?void 0:I.map((Q,i)=>i<2?za(Q):Number(Q)).flat(),X=ee[(ee==null?void 0:ee.length)-1];return await e(N,r,x,Number(X),Number(ae==null?void 0:ae.length)),!0}else return!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",b),!1))}},ga=async(e,c,x,r,a,n,N,l,y,s,C,A)=>{var k,f,L,U;let j=Fe(n),S=Oe(N,j);if(S){let E=Je,T=new Be(S),b=A&&((k=E[A])!=null&&k.Custody)&&((L=(f=he[A])==null?void 0:f.rpcUrls)==null?void 0:L.length)>0?A:Ie,K=(U=he[b])==null?void 0:U.rpcUrls[0],q=T.setProvider(new Ke(K)),d=new Ze(q,E[b].Custody);if(d)return await d.signTransaction(y,r,x,C,s).then(async m=>(m==null?void 0:m.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,a),await d.checkQuorum(y,s,x,C).then(async o=>{var _,I;return(o==null?void 0:o.status)===0&&((_=o==null?void 0:o.response)!=null&&_.result)?(((I=o==null?void 0:o.response)==null?void 0:I.result[0])===!0&&await c(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(C)),!0):!1})):!1).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",m),!1))}},pa=async(e,c,x,r,a,n,N,l)=>{var C,A,j,S;let y=Fe(r),s=Oe(a,y);if(s){let k=Je,f=new Be(s),L=l&&((C=k[l])!=null&&C.Custody)&&((j=(A=he[l])==null?void 0:A.rpcUrls)==null?void 0:j.length)>0?l:Ie,U=(S=he[L])==null?void 0:S.rpcUrls[0],E=f.setProvider(new Ke(U)),T=new Ze(E,k[L].Custody);return T?await T.checkQuorum(e,c,e,n).then(async b=>{var K,q;if((b==null?void 0:b.status)===0&&((K=b==null?void 0:b.response)!=null&&K.result)){if(((q=b==null?void 0:b.response)==null?void 0:q.result[0])===!0)return await T.signTransaction(e,c,e,n,c).then(async d=>(d==null?void 0:d.status)===0?await T.getShards(e,c,n).then(async m=>{var o,_,I,re;if((m==null?void 0:m.status)===0&&((o=m==null?void 0:m.response)!=null&&o.result)){let ae=(_=m==null?void 0:m.response)==null?void 0:_.result.filter(oe=>oe!=="");if(ae.length>1){let oe=ae.map(Q=>new Uint8Array(Q.split(",").map(Number))),ee=await Ka(oe),X=new TextDecoder().decode(ee);if(X){let Q=Fe(r),i=Ue(X,Q),p=new Be(X),G=await p.getAddress(),W=p.setProvider(new Ke(U)),J=await(await ja({signer:W,bundlerUrl:`${Pe.BUNDLER_URL_FIRST_SECTION}/${L}/${Pe[L].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Pe[L].PAYMASTER_API_KEY})).getAccountAddress(),$=W,de=(await Ga({chains:[Ya,qa,Za,$a,Wa,Ja],transports:[ze(),ze(),ze(),ze(),ze(),ze()],signer:$})).addressOn(L);return(I=chrome==null?void 0:chrome.storage)!=null&&I.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:de,regAddress:G,smAddress:J,vaultId:x,hashedVaultId:e,pk:i,channel:N})})):!((re=chrome==null?void 0:chrome.storage)!=null&&re.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:de,regAddress:G,smAddress:J,vaultId:x,hashedVaultId:e,pk:i,channel:N}))),!0}}else return!1}else return!1}).catch(m=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",m),!1)):!1)}else return!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",b),!1)):!1}};import Te from"react";var Xa=e=>{var a,n;let c=e.showButton?null:setTimeout(()=>{var N,l,y,s;if(e.messageTosend)try{if((N=chrome==null?void 0:chrome.runtime)!=null&&N.sendMessage)chrome.runtime.sendMessage(e.messageTosend,C=>{C&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let C=new CustomEvent((y=e.messageTosend)==null?void 0:y.type,{detail:{value:(s=e.messageTosend)==null?void 0:s.value}});window.dispatchEvent(C)}}catch(C){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",C),ve("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),x=()=>{e.setStep("6")},r=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return Te.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},Te.createElement("div",{className:"verified-custd-mdl-success-popup-content"},Te.createElement("img",{style:{width:"90%"},src:F.successIcon,alt:"Success Icon"}),Te.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},Te.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),Te.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&&Te.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&x()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((n=e.buttonNeutText)==null?void 0:n.length)>0&&Te.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Ae=Xa;var Qa=e=>{var oe,ee,X,Q;let[c,x]=_e(!1),[r,a]=_e(!1),[n,N]=_e(""),[l,y]=_e(!0),[s,C]=_e(!1),[A,j]=_e(!1),[S,k]=_e(!1),[f,L]=_e(""),[U,E]=_e(!1),{address:T,pk:b,vaultContract:K,setVaultData:q,vaultData:d,smAddress:m}=Ce(),o=i=>{if(i.value.length>0){let p=i.nextElementSibling;p&&p.focus()}else i.value.length===0&&i.focus()},_=i=>{let p=i.target.previousElementSibling;p&&p.focus()},I=()=>{let i=document.getElementById("verified-custd-mdl-otp-button"),p=document.getElementById("verified-custd-mdl-otp-input-1"),G=document.getElementById("verified-custd-mdl-otp-input-2"),W=document.getElementById("verified-custd-mdl-otp-input-3"),R=document.getElementById("verified-custd-mdl-otp-input-4"),J=document.getElementById("verified-custd-mdl-otp-input-5"),$=document.getElementById("verified-custd-mdl-otp-input-6"),P=document.getElementById("verified-custd-mdl-otp-input-7"),de=document.getElementById("verified-custd-mdl-otp-input-8");i&&(p==null?void 0:p.value.length)>0&&(G==null?void 0:G.value.length)>0&&(W==null?void 0:W.value.length)>0&&(R==null?void 0:R.value.length)>0&&(J==null?void 0:J.value.length)>0&&($==null?void 0:$.value.length)>0&&(P==null?void 0:P.value.length)>0&&(de==null?void 0:de.value.length)>0?(p==null?void 0:p.value)+(G==null?void 0:G.value)+(W==null?void 0:W.value)+(R==null?void 0:R.value)===(J==null?void 0:J.value)+($==null?void 0:$.value)+(P==null?void 0:P.value)+(de==null?void 0:de.value)?i.className="verified-custd-mdl-startup-button-active":(i.className="verified-custd-mdl-startup-button",a(!0)):i.className="verified-custd-mdl-startup-button"},re=async()=>{var i,p,G,W,R,J,$,P,de,v,z;if(!e.helperFunctions)N("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{N(""),a(!1);let te=document.getElementById("verified-custd-mdl-otp-input-1"),u=document.getElementById("verified-custd-mdl-otp-input-2"),w=document.getElementById("verified-custd-mdl-otp-input-3"),V=document.getElementById("verified-custd-mdl-otp-input-4"),O=document.getElementById("verified-custd-mdl-otp-input-5"),H=document.getElementById("verified-custd-mdl-otp-input-6"),ie=document.getElementById("verified-custd-mdl-otp-input-7"),D=document.getElementById("verified-custd-mdl-otp-input-8"),ne=((i=e.userEmail)==null?void 0:i.length)>0?e.userEmail:`+${e.selectedCountry.area}${(p=e.userNumberFmt)==null?void 0:p.replace(" ","")}`,ce=((G=e.userEmail)==null?void 0:G.length)>0?"email":"sms";if(((W=te==null?void 0:te.value)==null?void 0:W.length)>0&&((R=u==null?void 0:u.value)==null?void 0:R.length)>0&&((J=w==null?void 0:w.value)==null?void 0:J.length)>0&&(($=V==null?void 0:V.value)==null?void 0:$.length)>0&&((P=O==null?void 0:O.value)==null?void 0:P.length)>0&&((de=H==null?void 0:H.value)==null?void 0:de.length)>0&&((v=ie==null?void 0:ie.value)==null?void 0:v.length)>0&&((z=D==null?void 0:D.value)==null?void 0:z.length)>0&&T&&ne&&ce&&b&&K){e.setIsLoading(!0);let fe=(te==null?void 0:te.value)+(u==null?void 0:u.value)+(w==null?void 0:w.value)+(V==null?void 0:V.value),be=le(ne),M=le(fe);await ca(ne,be,fe,M,ce,b,T,m,K,e.action,e.vaultData,e.txData).then(ue=>{e.setIsLoading(!1),ue?(q(ue!=null&&ue.shouldStop?{}:ue),N(""),a(!1),e.action==="invitation"?(L(fe),C(!0)):ue!=null&&ue.shouldStop?ue!=null&&ue.shouldStop&&k(!0):e.setStep("5")):ue===null?(N("You are an existing user. Please input the right pin to recover your account."),a(!0)):(N("Unexpected error while creating account. Please try again later."),a(!0))})}}},ae=async i=>{var W,R,J,$,P,de,v,z;let p=((W=e.userEmail)==null?void 0:W.length)>0?e.userEmail:`+${e.selectedCountry.area}${(R=e.userNumberFmt)==null?void 0:R.replace(" ","")}`,G=((J=e.userEmail)==null?void 0:J.length)>0?"email":"sms";if((f==null?void 0:f.length)===4&&(($=e==null?void 0:e.vaultData)!=null&&$.hashedVaultId)&&((P=e.vaultData)!=null&&P.hashedVaultPin)&&p){e.setIsLoading(!0);let te=le(p),u=le(f);await st(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,G,te,u,(de=e==null?void 0:e.vaultData)==null?void 0:de.hashedVaultId,(v=e.vaultData)==null?void 0:v.hashedVaultPin,(z=e.vaultData)==null?void 0:z.vaultId,p,i,K).then(w=>{var V,O;e.setIsLoading(!1),w&&!(d!=null&&d.isExisting)?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(i?`You have been added as a Co-Signer for ${(V=e.vaultData)==null?void 0:V.vaultId}`:`You rejected Co-signer reject from ${(O=e.vaultData)==null?void 0:O.vaultId}`),e.setStep("5")):w&&(d!=null&&d.isExisting)&&j(!0)})}};return h.createElement(h.Fragment,null,!S&&!s&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(xe,{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"},"Create PIN"),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"}),h.createElement("input",{onInputCapture:i=>{var p;i.target.value=(p=i.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:i=>{o(i.target),I()},onKeyDown:i=>{i.key==="Backspace"&&i.target.value===""&&_(i)},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"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&h.createElement("p",null),r&&n===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(n==null?void 0:n.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},n),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>y(!0),src:F.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>y(!1),src:F.pinHide,alt:"hide pin icon"})))),!c&&h.createElement("div",{style:{height:"30px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async i=>{if(i.target.className.includes("verified-custd-mdl-startup-button")&&i.target.className!=="verified-custd-mdl-startup-button")i.target.className="verified-custd-mdl-startup-button-click",await re();else{let p=document.getElementsByClassName("verified-custd-mdl-startup-button-active");p.length>0&&(p[0].className="verified-custd-mdl-startup-button-click",await re())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!S&&s&&h.createElement(h.Fragment,null,!A&&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(xe,{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,(oe=e.vaultData)==null?void 0:oe.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!U&&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:F.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:F.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:()=>{E(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await ae(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),U&&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,(ee=e.vaultData)==null?void 0:ee.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 ae(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{E(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),A&&h.createElement(Ae,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:U?`You rejected Co-signer reject from ${(Q=e.vaultData)==null?void 0:Q.vaultId}`:`You have been added as a Co-Signer for ${(X=e.vaultData)==null?void 0:X.vaultId}`})),S&&h.createElement(Ae,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"You have successfully logged in your account."}))},ht=Qa;import t,{useState as ge}from"react";var Ra=e=>{var J,$,P,de;let[c,x]=ge(!1),[r,a]=ge("1"),[n,N]=ge("1"),[l,y]=ge(!1),[s,C]=ge("sms"),[A,j]=ge(""),[S,k]=ge(""),[f,L]=ge(""),[U,E]=ge(""),[T,b]=ge(""),[K,q]=ge(!1),[d,m]=ge(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[o,_]=ge([]),[I,re]=ge(!1),[ae,oe]=ge(2),[ee,X]=ge(""),{pk:Q,vaultData:i,vaultContract:p}=Ce(),G=()=>{let v=document.getElementById("add-cosigner-button");v&&(o==null?void 0:o.length)>0?v.className="startup-button-active":v.className="startup-button"},W=()=>{var z,te,u,w;if(s==="sms"&&(A==null?void 0:A.length)===0){X("Invalid input, please check the phone number");return}else if(s==="sms"&&(A==null?void 0:A.length)!==10){X("Invalid input, please check the phone number");return}else if(s==="email"&&(f==null?void 0:f.length)===0){X("Invalid input, please check the email");return}else if(s==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)){X("Invalid input, please check the email");return}else if(o!=null&&o.find(V=>{var O,H,ie,D;return(V==null?void 0:V.otpChannel)==="sms"?((O=V==null?void 0:V.phoneArea)==null?void 0:O.toLowerCase())+((H=V==null?void 0:V.number)==null?void 0:H.toLowerCase())===((ie=d.area)==null?void 0:ie.toLowerCase())+(S==null?void 0:S.toLowerCase()):((D=V==null?void 0:V.email)==null?void 0:D.toLowerCase())===(f==null?void 0:f.toLowerCase())})){X(s==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(s==="sms"&&((z=d==null?void 0:d.area)==null?void 0:z.toLowerCase())+(S==null?void 0:S.toLowerCase())===((te=e.selectedCountry.area)==null?void 0:te.toLowerCase())+((u=e.userNumberFmt)==null?void 0:u.toLowerCase())){X("Invalid input, phone number is creator's phone number");return}else if(s==="email"&&(f==null?void 0:f.toLowerCase())===((w=e.userEmail)==null?void 0:w.toLowerCase())){X("Invalid input, email is creator's email");return}X("");let v=o==null?void 0:o.length;_(V=>[{name:U,email:f,number:S,phoneNumber:`+${d==null?void 0:d.area}${A}`,otpChannel:s,phoneArea:d==null?void 0:d.area,position:(V==null?void 0:V.length)+1,vaultId:s==="sms"?`+${d==null?void 0:d.area}${A}`:f},...V]),L(""),E(""),j(""),k(""),b(""),v+1===4&&y(!1)},R=async()=>{var z,te,u,w,V,O;let v=[{otpChannel:((z=e==null?void 0:e.userEmail)==null?void 0:z.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(te=e==null?void 0:e.selectedCountry)==null?void 0:te.area}${(u=e==null?void 0:e.userNumberFmt)==null?void 0:u.replace(" ","")}`,vaultId:i==null?void 0:i.vaultId},...o];(v==null?void 0:v.length)>0&&(o==null?void 0:o.length)>0&&ae&&(i!=null&&i.vaultId)&&(i!=null&&i.hashedVaultId)&&(i!=null&&i.vaultPin)&&(i!=null&&i.hashedVaultPin)&&p&&Q&&((w=e.helperFunctions)!=null&&w.sendCoSignerInvitation)&&((V=e.helperFunctions)!=null&&V.sendCreatorConfirmation)&&(e.setIsLoading(!0),await ma(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,v,o,((O=e==null?void 0:e.userEmail)==null?void 0:O.length)>0?"email":"sms",ae,i.vaultId,i.hashedVaultId,i.vaultPin,i.hashedVaultPin,p,Q).then(H=>{e.setIsLoading(!1),H&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!c&&t.createElement(t.Fragment,null,n==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(xe,{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"),x(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{N("2"),y(!1),x(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),n==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(xe,{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"},!I&&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"},"(",(o==null?void 0:o.length)+1<5?(o==null?void 0:o.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"),((J=e.userEmail)==null?void 0:J.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),(($=e.userEmail)==null?void 0:$.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!I&&o.sort((v,z)=>(v==null?void 0:v.position)-(z==null?void 0:z.position)).map((v,z)=>{var te,u;return t.createElement("div",{key:z,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"},(te=We[v==null?void 0:v.position])==null?void 0:te.split(" ")[0],t.createElement("sup",null,(u=We[v==null?void 0:v.position])==null?void 0:u.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"},v==null?void 0:v.name),v.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},v.email),v.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",v==null?void 0:v.phoneArea,") ",v.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:()=>{_(w=>{var V;return(V=w==null?void 0:w.filter(O=>{var H,ie,D,ne,ce,fe;return(O==null?void 0:O.otpChannel)==="sms"?((H=O==null?void 0:O.phoneArea)==null?void 0:H.toLowerCase())+((ie=O==null?void 0:O.number)==null?void 0:ie.toLowerCase())!==((D=v==null?void 0:v.phoneArea)==null?void 0:D.toLowerCase())+((ne=v==null?void 0:v.number)==null?void 0:ne.toLowerCase()):((ce=O==null?void 0:O.email)==null?void 0:ce.toLowerCase())!==((fe=v==null?void 0:v.email)==null?void 0:fe.toLowerCase())}))==null?void 0:V.map((O,H)=>(O.position=H+1,O))})},onClick:()=>{G()},style:{cursor:"pointer"},src:F.delete,alt:"delete"}))))})),I&&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((o==null?void 0:o.length)+1).fill("1").map((v,z)=>t.createElement("div",{style:z+1===ae?{}:{height:"0",width:"0",overflow:"hidden"},key:z,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(z+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:(o==null?void 0:o.length)===1?{width:`${100/(o==null?void 0:o.length)}%`}:{width:`calc(${100/(o==null?void 0:o.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((o==null?void 0:o.length)+1).fill("1").map((v,z)=>t.createElement("p",{style:z===(o==null?void 0:o.length)?{paddingRight:"12px"}:z===0?{paddingLeft:"12px"}:{},onClick:()=>{z+1>1&&oe(z+1)},key:z,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(z+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async v=>{if(v.target.className.includes("startup-button")&&v.target.className!=="startup-button")v.target.className="startup-button-click",await R();else{let z=document.getElementsByClassName("startup-button-active");z.length>0&&(z[0].className="startup-button-click"),await R()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(o==null?void 0:o.length)<4&&t.createElement("div",{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"},(P=We[(o==null?void 0:o.length)+1])==null?void 0:P.split(" ")[0],t.createElement("sup",null,(de=We[(o==null?void 0:o.length)+1])==null?void 0:de.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:v=>{E(v.target.value)},value:U,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"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{C("sms"),X(""),L("")},src:s==="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:()=>{C("email"),X(""),j(""),k(""),b("")},src:s==="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"},s==="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:()=>{q(!K)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{q(!K)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:d.flag}),t.createElement("p",{onClick:()=>{q(!K)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",d.area),K&&t.createElement("img",{onClick:()=>{q(!K)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!K&&t.createElement("img",{onClick:()=>{q(!K)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),t.createElement("input",{onInputCapture:v=>{var u;v.target.value===""?b(T+" "):b(v.target.value);let z=(u=v.target.value)==null?void 0:u.replace(/\D/g,"");j(z);let te="";for(let w=0;w<(z==null?void 0:z.length);w++)te+=z[w],(w+1)%5===0&&w+1<(z==null?void 0:z.length)&&(te+=" ");k(te),X("")},onInput:v=>{G()},value:S,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),K&&t.createElement(it,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:G,setSelected:m,selected:d,searchActive:K,setSearchActive:q,contentMaxHeight:"300",contentbottomMargin:"300"}),ee===""&&A.length!==10&&T.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")),ee!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ee))),s==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:v=>{L(v.target.value),X("")},onInput:v=>{G()},value:f,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ee!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ee))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>y(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{W()},onClick:()=>G(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!I&&(o==null?void 0:o.length)<4&&t.createElement("div",{onClick:()=>y(!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")),!l&&!I&&(o==null?void 0:o.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")))),!I&&t.createElement("button",{style:!l&&(o==null?void 0:o.length)<4?{marginTop:"50px",marginBottom:"20px"}:{marginBottom:"20px"},id:"add-cosigner-button",onClick:async v=>{if(v.target.className.includes("startup-button")&&v.target.className!=="startup-button")v.target.className="startup-button-click",(o==null?void 0:o.length)>0&&(oe(2),re(!0),y(!1));else{let z=document.getElementsByClassName("startup-button-active");z.length>0&&(z[0].className="startup-button-click",(o==null?void 0:o.length)>0&&(oe(2),re(!0),y(!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: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:()=>x(!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"))),r==="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"))),r==="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:()=>{N("2"),y(!1),x(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},Xe=Ra;var tn=e=>{let[c,x]=ye(e.fontsLoaded||!1),[r,a]=ye(e.showLogoPage||!1),[n,N]=ye([]),[l,y]=ye("2"),[s,C]=ye(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[A,j]=ye(""),[S,k]=ye(""),[f,L]=ye(!1),[U,E]=ye(""),[T,b]=ye(""),[K,q]=ye(""),[d,m]=ye(""),[o,_]=ye(null),[I,re]=ye(null),{setChainId:ae,setAddress:oe,setSmAddress:ee,setPk:X,setProvider:Q,setSigner:i,setVaultContract:p,setVaultData:G,vaultData:W,chainId:R}=Ce();return rt(()=>{let J=()=>{let $=Ve(document);x($)};e.fontsLoaded||J()},[]),rt(()=>{(async()=>{let $=await nt(e.chainId);ae($.chainId),oe($.address),ee($.smAddress),X($.pk),Q($.provider),i($.signer),p($.vaultContract),G($.vaultData)})()},[]),rt(()=>{en(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),rt(()=>{(()=>{let $=at.map(P=>{if(P)return{name:P==null?void 0:P.name,countryName:P==null?void 0:P.name,officialName:P==null?void 0:P.name,currencySymbol:P==null?void 0:P.currency,currencyName:P==null?void 0:P.currency,officialCurrencySymbol:P==null?void 0:P.currency,countryCode:P==null?void 0:P.code,flag:P==null?void 0:P.flag,continent:P==null?void 0:P.continent,phone_code:P==null?void 0:P.phone_code,code:P==null?void 0:P.code}}).flat();N($==null?void 0:$.filter(P=>P!==void 0))})()},[]),me.createElement(me.Fragment,null,c&&r&&e.logoPageElement&&me.createElement(me.Fragment,null," ",e.logoPageElement),c&&!r&&me.createElement(me.Fragment,null,l==="2"&&me.createElement(gt,{setStep:y,setIsLoading:e.setIsLoading,setUserNumberFmt:j,userNumberFmt:A,setUserEmail:k,userEmail:S,setSelectedCountry:C,selectedCountry:s,allCountries:n,helperFunctions:e.helperFunctions}),l==="3"&&me.createElement(pt,{setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:A,setUserNumberFmt:j,setUserEmail:k,userEmail:S,selectedCountry:s,helperFunctions:e.helperFunctions}),l==="4"&&me.createElement(ht,{setStep:y,setIsLoading:e.setIsLoading,setShowSuccessBtn:L,setSuccessBtnText:E,setSuccessBtnNeutText:b,setSuccessBtnFunc:_,setSuccessBtnNeutFunc:re,userNumberFmt:A,userEmail:S,selectedCountry:s,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:q,setActionFooterText:m,helperFunctions:e.helperFunctions}),l==="5"&&me.createElement(Ae,{setStep:y,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:f,buttonText:U,buttonNeutText:T,buttonFunc:o,buttonNeutFunc:I,actionHeaderText:K,actionFooterText:d}),l==="6"&&me.createElement(Xe,{setStep:y,setIsLoading:e.setIsLoading,userNumberFmt:A,userEmail:S,selectedCountry:s,allCountries:n,helperFunctions:e.helperFunctions}),l==="7"&&e.action===""&&me.createElement(Ae,{action:e.action,setStep:y,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&me.createElement(Ae,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData}}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),l==="8"&&!e.dashbordElement&&me.createElement(me.Fragment,null)),!c&&me.createElement("h3",null,"Preparing Modules..."))},vt=tn;import g,{useEffect as an,useState as we}from"react";var nn=e=>{var P,de,v,z,te;let[c,x]=we(e.fontsLoaded||!1),[r,a]=we(!1),[n,N]=we(!0),[l,y]=we(!1),[s,C]=we(!1),[A,j]=we(null),[S,k]=we(e.newChainId||Ie),[f,L]=we(!1),[U,E]=we(!1),[T,b]=we(!1),[K,q]=we(!1),[d,m]=we(!1),[o,_]=we(""),{setChainId:I,setAddress:re,setSmAddress:ae,setPk:oe,setProvider:ee,setSigner:X,setVaultContract:Q,setVaultData:i}=Ce();an(()=>{let u=()=>{let w=Ve(document);x(w)};e.fontsLoaded||u()},[]);let p=u=>{if(u.value.length>0){let w=u.nextElementSibling;w&&w.focus()}else u.value.length===0&&u.focus()},G=u=>{let w=u.clipboardData.getData("text"),V=w==null?void 0:w.replace(/\D/g,""),O=document.getElementsByClassName("otp-input");if((O==null?void 0:O.length)===4&&(V==null?void 0:V.length)>0)for(let H=0;H<O.length;H++)V[H]&&(O[H].value=V[H],O[H].focus())},W=u=>{let w=u.target.previousElementSibling;w&&w.focus()},R=()=>{let u=document.getElementById("verified-custd-mdl-otp-button"),w=document.getElementById("verified-custd-mdl-otp-input-1"),V=document.getElementById("verified-custd-mdl-otp-input-2"),O=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4");u&&(w==null?void 0:w.value.length)>0&&(V==null?void 0:V.value.length)>0&&(O==null?void 0:O.value.length)>0&&(H==null?void 0:H.value.length)>0&&!r?u.className="verified-custd-mdl-startup-button-active":u.className="verified-custd-mdl-startup-button"},J=async()=>{var u,w,V,O,H,ie;if(!e.helperFunctions)_("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{_(""),a(!1);let D=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),ce=document.getElementById("verified-custd-mdl-otp-input-3"),fe=document.getElementById("verified-custd-mdl-otp-input-4");if(((u=D==null?void 0:D.value)==null?void 0:u.length)>0&&((w=ne==null?void 0:ne.value)==null?void 0:w.length)>0&&((V=ce==null?void 0:ce.value)==null?void 0:V.length)>0&&((O=fe==null?void 0:fe.value)==null?void 0:O.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let be=(D==null?void 0:D.value)+(ne==null?void 0:ne.value)+(ce==null?void 0:ce.value)+(fe==null?void 0:fe.value);await ua(e.vaultId,e.hashedVaultId,be,le(be),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(S),(ie=na)==null?void 0:ie.includes((H=e.origin)==null?void 0:H.toLowerCase())).then(async M=>{var ue,He,je,Ge,Ye,Qe,Re,et,tt,bt,xt,wt,Nt,Ct,At,Et,St,It,kt,_t,Pt,Dt,Ft,Tt,Bt,Lt,Vt,Ut,Ot,Mt,zt,Kt,Ht,jt,Gt,Yt,Wt,$t,qt,Jt,Zt,Xt,Qt,Rt;if(M&&!(M!=null&&M.inCompleteVault))e.setIsLoading(!1),j(M),e.action==="getPk"&&((He=(ue=e.reqVaultData)==null?void 0:ue.vaultId)==null?void 0:He.toLowerCase())===((je=e.vaultId)==null?void 0:je.toLowerCase())?(e.setIsLoading(!0),await fa(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,le(be),e.vaultId,be,e.encrptedPk,e.vaultChannel,Number(S)).then(async pe=>{var Ne,Se;e.setIsLoading(!1),(Ne=chrome==null?void 0:chrome.storage)!=null&&Ne.local?await chrome.storage.local.remove("myVault"):!((Se=chrome==null?void 0:chrome.storage)!=null&&Se.local)&&localStorage&&localStorage.removeItem("myVault"),pe?C(!0):(_("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,le(be),e.vaultId,be,e.encrptedPk,(Ge=e.reqVaultData)==null?void 0:Ge.vaultId,(Ye=e.reqVaultData)==null?void 0:Ye.hashedVaultId,(Qe=e.reqVaultData)==null?void 0:Qe.hashedVaultPin,(Re=e.reqTxData)==null?void 0:Re.id,Number(S)).then(async pe=>{var Ne,Se,ea,ta;e.setIsLoading(!1),!((Ne=e.reqTxData)!=null&&Ne.newUser)&&((Se=chrome==null?void 0:chrome.storage)!=null&&Se.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"),pe?C(!0):(_("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"&&((tt=(et=e.reqVaultData)==null?void 0:et.vaultId)==null?void 0:tt.toLowerCase())===((bt=e.vaultId)==null?void 0:bt.toLowerCase())?(e.setIsLoading(!0),await pa(e.hashedVaultId,le(be),e.vaultId,be,e.encrptedPk,(xt=e.reqTxData)==null?void 0:xt.id,e.vaultChannel,Number(S)).then(async pe=>{var Ne,Se;e.setIsLoading(!1),pe?C(!0):((Ne=chrome==null?void 0:chrome.storage)!=null&&Ne.local?await chrome.storage.local.remove("myVault"):!((Se=chrome==null?void 0:chrome.storage)!=null&&Se.local)&&localStorage&&localStorage.removeItem("myVault"),_("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((Nt=(wt=e.reqVaultData)==null?void 0:wt.vaultId)==null?void 0:Nt.toLowerCase())!==((Ct=e.vaultId)==null?void 0:Ct.toLowerCase())&&((Et=(At=e.reqVaultData)==null?void 0:At.coSignerId)==null?void 0:Et.toLowerCase())===((St=e.vaultId)==null?void 0:St.toLowerCase())?(_(""),a(!1),E(!0)):e.action==="invitation"&&((kt=(It=e.reqVaultData)==null?void 0:It.vaultId)==null?void 0:kt.toLowerCase())===((_t=e.vaultId)==null?void 0:_t.toLowerCase())?(_(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(Pt=e.reqVaultData)==null?void 0:Pt.coSignerId} account`),a(!0)):e.action==="invitation"&&((Ft=(Dt=e.reqVaultData)==null?void 0:Dt.coSignerId)==null?void 0:Ft.toLowerCase())!==((Tt=e.vaultId)==null?void 0:Tt.toLowerCase())?(_(`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"),_(`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"&&((Ht=(Kt=e.reqVaultData)==null?void 0:Kt.vaultId)==null?void 0:Ht.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"),_(`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)?(_("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.setShowDashboard(!0):(_(""),a(!1),C(!0));else if(M&&(M!=null&&M.inCompleteVault)&&(M!=null&&M.pk)){let pe=await nt(Number(S),M==null?void 0:M.pk);if(I(pe.chainId),re(pe.address),ae(pe.smAddress),oe(pe.pk),ee(pe.provider),X(pe.signer),Q(pe.vaultContract),i({vaultId:M==null?void 0:M.vaultId,hashedVaultId:M==null?void 0:M.hashedVaultId,vaultPin:M==null?void 0:M.pin,hashedVaultPin:le(M==null?void 0:M.pin),vaultContract:pe.vaultContract}),(($t=M==null?void 0:M.channel)==null?void 0:$t.toLowerCase())==="sms"){let Ne=(Jt=M==null?void 0:M.vaultId)==null?void 0:Jt.replace((qt=M==null?void 0:M.vaultId)==null?void 0:qt.slice(-10),""),Se=((Xt=(Zt=M==null?void 0:M.vaultId)==null?void 0:Zt.slice(-10))==null?void 0:Xt.slice(0,5))+" "+((Rt=(Qt=M==null?void 0:M.vaultId)==null?void 0:Qt.slice(-10))==null?void 0:Rt.slice(5));e.setSelectedCountry({area:Ne==null?void 0:Ne.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Se),e.setUserEmail("")}else e.setUserEmail(M==null?void 0:M.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else _(""),a(!0),e.setIsLoading(!1)})}}},$=async u=>{var D,ne,ce,fe,be,M,ue,He,je,Ge,Ye;let w=document.getElementById("verified-custd-mdl-otp-input-1"),V=document.getElementById("verified-custd-mdl-otp-input-2"),O=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4"),ie=e.vaultId;if(((D=w==null?void 0:w.value)==null?void 0:D.length)>0&&((ne=V==null?void 0:V.value)==null?void 0:ne.length)>0&&((ce=O==null?void 0:O.value)==null?void 0:ce.length)>0&&((fe=H==null?void 0:H.value)==null?void 0:fe.length)>0&&((be=e==null?void 0:e.reqVaultData)!=null&&be.hashedVaultId)&&((M=e.reqVaultData)!=null&&M.hashedVaultPin)&&ie&&((ue=e.helperFunctions)!=null&&ue.sendCreatorAcceptance)&&((He=e.helperFunctions)!=null&&He.sendCreatorRejection)){e.setIsLoading(!0);let Qe=(w==null?void 0:w.value)+(V==null?void 0:V.value)+(O==null?void 0:O.value)+(H==null?void 0:H.value),Re=le(ie),et=le(Qe);await st(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,Re,et,(je=e==null?void 0:e.reqVaultData)==null?void 0:je.hashedVaultId,(Ge=e.reqVaultData)==null?void 0:Ge.hashedVaultPin,(Ye=e==null?void 0:e.reqVaultData)==null?void 0:Ye.vaultId,ie,u,null,e.encrptedPk,Number(S)).then(tt=>{e.setIsLoading(!1),tt&&(m(u),b(!0))})}};return g.createElement(g.Fragment,null,c&&!U&&g.createElement(g.Fragment,null,!s&&g.createElement("div",{className:"verified-custd-mdl-startup-language"},g.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.createElement(xe,{sliderCount:[1],currentSlider:"0"}),g.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},g.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),g.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},g.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",g.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",g.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),g.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&g.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),g.createElement("div",{className:"verified-custd-mdl-otp-input-container"},g.createElement("div",{className:"verified-custd-mdl-otp-input-group"},g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{p(u.target),R()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&W(u)},onPaste:u=>{G(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{p(u.target),R()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&W(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{p(u.target),R()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&W(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{p(u.target),R()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&W(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),g.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&o===""&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(o==null?void 0:o.length)>0&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},o),!r&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!n&&g.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!0),src:F.pinShow,alt:"show pin icon"}),n&&g.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>N(!1),src:F.pinHide,alt:"hide pin icon"})))),!l&&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(la,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),g.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async u=>{if(u.target.className.includes("verified-custd-mdl-startup-button")&&u.target.className!=="verified-custd-mdl-startup-button")u.target.className="verified-custd-mdl-startup-button-click",await J();else{let w=document.getElementsByClassName("verified-custd-mdl-startup-button-active");w.length>0&&(w[0].className="verified-custd-mdl-startup-button-click",await J())}},className:"verified-custd-mdl-startup-button"},"Proceed"),g.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},g.createElement(Me,null))))),s&&g.createElement(Ae,{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:A},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: ${(P=e.reqVaultData)==null?void 0:P.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."} `})),c&&U&&g.createElement(g.Fragment,null,!T&&g.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},g.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.createElement(xe,{sliderCount:[1,2,3],currentSlider:"1"}),g.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},g.createElement("b",null,(de=e.reqVaultData)==null?void 0:de.vaultId)," has requested you to be a Co-Signer"))),g.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!K&&g.createElement(g.Fragment,null,g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),g.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."," "),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement("img",{src:F.pkicon,alt:"icon"})),g.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",g.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement("img",{src:F.encryptedIcon,alt:"icon"})),g.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",g.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement("button",{onClick:()=>{q(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),g.createElement("button",{onClick:async()=>{await $(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),K&&g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},g.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),g.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"," ",g.createElement("b",null,(v=e.reqVaultData)==null?void 0:v.vaultId),", you will not be able to reset the PIN for them.")),g.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement("button",{onClick:async()=>{await $(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),g.createElement("button",{onClick:()=>{q(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),T&&g.createElement(Ae,{messageTosend:{type:"getPk",key:"vaultData",value:A},customTextHeader:"Successful",customTextFooter:d?`You have been added as a Co-Signer for ${(z=e.reqVaultData)==null?void 0:z.vaultId}`:`You rejected Co-signer reject from ${(te=e.reqVaultData)==null?void 0:te.vaultId}`})),!c&&g.createElement("h3",null,"Preparing Modules..."))},lt=nn;import{motion as on}from"framer-motion";var dn=e=>{var d,m,o,_,I,re,ae,oe,ee,X,Q,i,p,G,W,R,J,$,P,de,v,z,te,u,w,V,O;let[c,x]=Ee(!0),[r,a]=Ee(null),[n,N]=Ee({}),[l,y]=Ee(!1),[s,C]=Ee(!1),[A,j]=Ee(!1),[S,k]=Ee([]),[f,L]=Ee(""),[U,E]=Ee(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[T,b]=Ee(""),[K,q]=Ee("");return yt(()=>{(()=>{let ie=Ve(document);x(ie)})()},[]),yt(()=>{(()=>{var ie,D;if((ie=chrome==null?void 0:chrome.storage)!=null&&ie.local)chrome.storage.local.get("myVault",ne=>{var ce;ne.myVault&&((ce=JSON.parse(ne.myVault))!=null&&ce.vaultId)?(N(JSON.parse(ne.myVault)),a(!0)):a(!1)});else if(!((D=chrome==null?void 0:chrome.storage)!=null&&D.local)&&localStorage){let ne=JSON.parse(localStorage.getItem("myVault"));ne&&(ne!=null&&ne.vaultId)?(N(ne),a(!0)):a(!1)}else a(!1)})()},[]),yt(()=>{(()=>{let ie=at.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();k(ie==null?void 0:ie.filter(D=>D!==void 0))})()},[]),se.createElement(se.Fragment,null,c&&se.createElement(ct,null,se.createElement("div",{className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&se.createElement(se.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&se.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),l&&se.createElement("div",{style:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},se.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"}})),r!==null&&se.createElement(se.Fragment,null,!r&&se.createElement(vt,{fontsLoaded:c,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((d=e.reqVaultData)==null?void 0:d.vId)||((m=e.reqVaultData)==null?void 0:m.vaultId)),hashedVaultId:le(decodeURIComponent(((o=e.reqVaultData)==null?void 0:o.vId)||((_=e.reqVaultData)==null?void 0:_.vaultId))),hashedVaultPin:decodeURIComponent(((I=e.reqVaultData)==null?void 0:I.vPh)||((re=e.reqVaultData)==null?void 0:re.hashedVaultPin)),coSignerId:decodeURIComponent((ae=e.reqVaultData)==null?void 0:ae.cId)}:null,txData:e.txData?(ee=Object.keys(e.txData))==null?void 0:ee.map(H=>(e.txData[H]=decodeURIComponent(e.txData[H]),e.txData))[((oe=Object.keys(e.txData))==null?void 0:oe.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:y,dashbordElement:e.dashbordElement,chainId:Number(e.chainId)}),r&&!s&&!A&&se.createElement(lt,{fontsLoaded:c,setisOnboard:a,vaultId:n==null?void 0:n.vaultId,hashedVaultId:n==null?void 0:n.hashedVaultId,encrptedPk:n==null?void 0:n.pk,vaultAddress:n==null?void 0:n.address,vaultChannel:n==null?void 0:n.channel,origin:e.origin,title:e.title,actionText:e.actionText||ut[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((X=e.reqVaultData)==null?void 0:X.vId)||((Q=e.reqVaultData)==null?void 0:Q.vaultId)),hashedVaultId:le(decodeURIComponent(((i=e.reqVaultData)==null?void 0:i.vId)||((p=e.reqVaultData)==null?void 0:p.vaultId))),hashedVaultPin:decodeURIComponent(((G=e.reqVaultData)==null?void 0:G.vPh)||((W=e.reqVaultData)==null?void 0:W.hashedVaultPin)),coSignerId:decodeURIComponent((R=e.reqVaultData)==null?void 0:R.cId)}:null,reqTxData:e.txData?($=Object.keys(e.txData))==null?void 0:$.map(H=>(e.txData[H]=decodeURIComponent(e.txData[H]),e.txData))[((J=Object.keys(e.txData))==null?void 0:J.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:C,setShowCompleteVault:j,setUserEmail:q,setUserNumberFmt:b,setSelectedCountry:E}),r&&s&&A&&se.createElement(lt,{fontsLoaded:c,setisOnboard:a,vaultId:n==null?void 0:n.vaultId,hashedVaultId:n==null?void 0:n.hashedVaultId,encrptedPk:n==null?void 0:n.pk,vaultAddress:n==null?void 0:n.address,vaultChannel:n==null?void 0:n.channel,origin:e.origin,title:e.title,actionText:e.actionText||ut[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((P=e.reqVaultData)==null?void 0:P.vId)||((de=e.reqVaultData)==null?void 0:de.vaultId)),hashedVaultId:le(decodeURIComponent(((v=e.reqVaultData)==null?void 0:v.vId)||((z=e.reqVaultData)==null?void 0:z.vaultId))),hashedVaultPin:decodeURIComponent(((te=e.reqVaultData)==null?void 0:te.vPh)||((u=e.reqVaultData)==null?void 0:u.hashedVaultPin)),coSignerId:decodeURIComponent((w=e.reqVaultData)==null?void 0:w.cId)}:null,reqTxData:e.txData?(O=Object.keys(e.txData))==null?void 0:O.map(H=>(e.txData[H]=decodeURIComponent(e.txData[H]),e.txData))[((V=Object.keys(e.txData))==null?void 0:V.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:C,setShowCompleteVault:j,setUserEmail:q,setUserNumberFmt:b,setSelectedCountry:E}),r&&!s&&A&&f===""&&se.createElement(Xe,{setStep:L,setIsLoading:y,userNumberFmt:T,userEmail:K,selectedCountry:U,allCountries:S,helperFunctions:e.helperFunctions}),r&&!s&&A&&f==="7"&&se.createElement(Ae,{action:e.action,setStep:L,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),r&&!s&&A&&f==="8"&&e.dashbordElement&&se.createElement(e.dashbordElement,{setIsLoading:y}),r&&!s&&A&&f==="8"&&!e.dashbordElement&&se.createElement(se.Fragment,null),r&&!A&&s&&e.dashbordElement&&se.createElement(e.dashbordElement,{setIsLoading:y}),r&&!A&&s&&!e.dashbordElement&&se.createElement(se.Fragment,null)))),!c&&se.createElement("h3",null,"Preparing Modules..."))},sn=dn;export{Xe as AddCoSignersPage,gt as ContactPage,ht as CreatePinPage,lt as EnterPinPage,vt as FTUPage,pt as OTPPage,ct as VaultContextProvider,sn as VerifiedCustody,Oe as decryptString,Ue as encryptString,le as hashTheString};
3
3
  //# sourceMappingURL=index.mjs.map