@verified-network/verified-custody 0.2.5 → 0.2.7

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