@verified-network/verified-custody 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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),[I,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:I,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/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"},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],I=m.setProvider(new oa(E)),B=m.privateKey,P=new ia(I,(S=h[u])==null?void 0:S.Custody),w=await(await ra({signer:I,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:I,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 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 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=()=>ke.createElement("div",{className:"verified-custd-mdl-privacy"},ke.createElement("img",{alt:"Privacy Icon",src:L.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 P,V;let[c,p]=$e(""),[r,a]=$e(""),[n,S]=$e(!1),[m,h]=$e(""),{pk:u,vaultContract:E}=ye(),I=()=>{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=>{I()},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:I,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=>{I()},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,""),k=document.getElementsByClassName("otp-input");if((k==null?void 0:k.length)===4&&(A==null?void 0:A.length)>0)for(let i=0;i<k.length;i++)A[i]&&(k[i].value=A[i],k[i].focus())},I=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"),k=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&&(k==null?void 0:k.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"),k=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=k==null?void 0:k.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)+(k==null?void 0:k.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,k,i;let d=((A=e.userEmail)==null?void 0:A.length)>0?e.userEmail:`+${e.selectedCountry.area}${(k=e.userNumberFmt)==null?void 0:k.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===""&&I(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===""&&I(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===""&&I(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===""&&I(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 Ie}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 I={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,...I};if((P=chrome==null?void 0:chrome.storage)!=null&&P.local){let b=Ie(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=Ie(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=Ie(p),k=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:k,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:k,channel:a})),I}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(I){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",I),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,I,B;try{let P=Ie(p),V=Te(a,P);if(V){let w=Ke,C=new Ve(V),_=h&&((u=w[h])!=null&&u.Custody)&&((I=(E=le[h])==null?void 0:E.rpcUrls)==null?void 0:I.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,I,B)=>{var V,w,C,_;let P;if(E)P=E;else{let T=Ke,b=new Ve(I),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,I)=>{let B=Number(p.length),V=(await ya(Uint8Array.from(I.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,I,B,P;let h=Ie(a),u=Te(n,h);if(u){let V=Ke,w=new Ve(u),C=m&&((E=V[m])!=null&&E.Custody)&&((B=(I=le[m])==null?void 0:I.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,k,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=(k=(A=N==null?void 0:N.response)==null?void 0:A.result)==null?void 0:k.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,I)=>{var V,w,C,_;let B=Ie(n),P=Te(S,B);if(P){let T=Ke,b=new Ve(P),N=I&&((V=T[I])!=null&&V.Custody)&&((C=(w=le[I])==null?void 0:w.rpcUrls)==null?void 0:C.length)>0?I: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 k=>(k==null?void 0:k.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(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",k),!1))}},Xt=async(e,c,p,r,a,n,S,m)=>{var E,I,B,P;let h=Ie(r),u=Te(a,h);if(u){let V=Ke,w=new Ve(u),C=m&&((E=V[m])!=null&&E.Custody)&&((B=(I=le[m])==null?void 0:I.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 k=>{var i,U,M,te;if((k==null?void 0:k.status)===0&&((i=k==null?void 0:k.response)!=null&&i.result)){let Z=(U=k==null?void 0:k.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=Ie(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(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!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),[I,B]=Ne(!1),[P,V]=Ne(!1),[w,C]=Ne(""),[_,T]=Ne(!1),{address:b,pk:N,vaultContract:d,setVaultData:g,vaultData:A}=ye(),k=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=>{k(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=>{k(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=>{k(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=>{k(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=>{k(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=>{k(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=>{k(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=>{k(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,!I&&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")))))),I&&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"),[I,B]=de(""),[P,V]=de(""),[w,C]=de(""),[_,T]=de(""),[b,N]=de(""),[d,g]=de(!1),[A,k]=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"&&(I==null?void 0:I.length)===0){X("Invalid input, please check the phone number");return}else if(u==="sms"&&(I==null?void 0:I.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}${I}`,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}${I}`: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:k,selected:A,searchActive:d,setSearchActive:g,contentMaxHeight:"300",contentbottomMargin:"300"}),R===""&&I.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"}),[I,B]=ue(""),[P,V]=ue(""),[w,C]=ue(!1),[_,T]=ue(""),[b,N]=ue(""),[d,g]=ue(""),[A,k]=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:I,setUserEmail:V,userEmail:P,setSelectedCountry:E,selectedCountry:u,allCountries:n}),m==="3"&&ge.createElement(tt,{setStep:h,setIsLoading:e.setIsLoading,userNumberFmt:I,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:I,userEmail:P,selectedCountry:u,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:g,setActionFooterText:k,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:I,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),[I,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,k]=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,kt,It,_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"&&((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)):(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&&(k(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:I},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:I},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 ka}from"framer-motion";var Ia=e=>{var u,E,I,B,P,V,w,C,_,T,b,N,d,g,A,k,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(ka.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(((I=e.reqVaultData)==null?void 0:I.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((k=e.reqVaultData)==null?void 0:k.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=Ia;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 na(e){if(!e||typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.type="text/css",s.firstChild?s.insertBefore(f,s.firstChild):s.appendChild(f),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e))}na(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}
|
|
2
|
+
`);typeof chrome>"u"&&(window.chrome={});import ce,{useEffect as aa,useState as He}from"react";import ia,{createContext as oa,useContext as da,useState as Ee}from"react";var Ut=oa(void 0),Ot=e=>{let[s,f]=Ee(null),[r,a]=Ee(null),[n,E]=Ee(null),[l,v]=Ee(null),[c,k]=Ee(null),[_,V]=Ee(null),[B,O]=Ee(null),[x,C]=Ee(null);return ia.createElement(Ut.Provider,{value:{chainId:s,pk:r,address:n,signer:l,provider:c,vaultContract:_,vaultData:B,setChainId:f,setPk:a,setAddress:E,setSigner:v,setProvider:k,setVaultContract:V,setVaultData:O}},e.children)},ye=()=>{let e=da(Ut);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import le,{useEffect as Je,useState as fe}from"react";import{debounce as ka}from"lodash";var be=process.env.REACT_APP_NODE_ENV==="production"?8453:11155111,Va=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Mt=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Kt=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],zt="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ze="23o7dHkKdIMtjnft5q/J4mqpdBqqOOuajepmYqY0eAi9TaqQYsVSBA==",Xe="https://verified.azurewebsites.net/api/otpsender",jt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},Oe={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Ht={connect_wallet:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access"},P={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg"},Gt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];import{contractAddress as ra,Custody as sa,Provider as la,VerifiedWallet as Qe}from"@verified-network/verified-sdk";var ue={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://solemn-summer-patina.quiknode.pro/${process.env.REACT_APP_QUIKNODE_KEY}/`],blockExplorerUrls:["https://etherscan.io/"],icon:P.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api.etherscan.io/api"},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://red-quaint-pallet.base-mainnet.quiknode.pro/${process.env.REACT_APP_QUICKNODE_KEY}/`],blockExplorerUrls:["https://basescan.org/"],Icon:P.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:P.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:P.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api-sepolia.etherscan.io/api"},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:P.baseIcon}},Se={BUNDLER_URL_FIRST_SECTION:"https://bundler.biconomy.io/api/v2",11155111:{PAYMASTER_API_KEY:"BuFP2-5w-.5b3daf3a-d044-4dda-819c-4c4d8431df88",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},137:{PAYMASTER_API_KEY:"lDHvYk50N.30a2522e-0a9d-444b-b949-19194c1f237a",BUNDLER_API_KEY:"dewj2189.wh1289hU-7E49-45ic-af80-JkuxGCYRV"},84532:{PAYMASTER_API_KEY:"jSBI-WRji.99a4dda1-1c20-42ea-9409-2724f9a0ca7e",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},1:{PAYMASTER_API_KEY:"ap7LOqALI.bf68e672-47ce-40f8-8b62-ea508dcf5852",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},8453:{PAYMASTER_API_KEY:"glRQsmuYh.5d9372ab-5063-4ecd-ac63-643fef624a73",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},100:{PAYMASTER_API_KEY:"eUYghbvi4.317a2d6d-6ee7-4a0c-b91f-43ba2699f65b",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"}};import ca from"crypto";import Re from"crypto-js";import{toast as Yt}from"react-toastify";import{createSmartAccountClient as ua}from"@biconomy/account";import Me from"react";var Fe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.googleapis.com",e.head.appendChild(r)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.gstatic.com",e.head.appendChild(r)}return Kt.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let n=e.createElement("link");n.rel="stylesheet",n.href=r,e.head.appendChild(n)}}),!0},Wt=async(e,s)=>{var f,r,a,n,E;try{let l;if(s)l=new Qe(s);else{let C=Qe.generateMnemonic();l=Qe.importWallet(C)}let v=ra,c=e&&((f=v[e])!=null&&f.Custody)&&((a=(r=ue[e])==null?void 0:r.rpcUrls)==null?void 0:a.length)>0?e:be,k=(n=ue[c])==null?void 0:n.rpcUrls[0],_=l.setProvider(new la(k)),V=l.privateKey,B=new sa(_,(E=v[c])==null?void 0:E.Custody),x=await(await ua({signer:_,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${c}/${Se[c].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[c].PAYMASTER_API_KEY})).getAccountAddress();return{chainId:c,address:x,pk:V,signer:_,provider:k,vaultContract:B,vaultData:null}}catch(l){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",l),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},Ye=async(e,s)=>{try{let f=JSON.stringify({action:"start",recipient:e,channel:s}),a=await(await fetch(Xe,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Ze},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f),!1}},$t=async(e,s)=>{try{let f=JSON.stringify({action:"verify",recipient:e,code:s}),a=await(await fetch(Xe,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Ze},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f==null?void 0:f.message),!1}},ie=e=>ca.createHash("sha256").update(e).digest("hex").slice(0,30),Te=(e,s)=>Re.AES.encrypt(e,s).toString(),Be=(e,s)=>{var f=Re.AES.decrypt(e,s),r=f.toString(Re.enc.Utf8);return r};var ma=(e,s)=>Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},Me.createElement("img",{style:{marginLeft:"5px"},src:P.errorAlert,alt:""}),Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},s)));var me=(e,s)=>(Yt.dismiss(),Yt.error(ma(e,s),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));import G,{useState as $e}from"react";import Ke from"react";var fa=e=>{var s;return Ke.createElement("div",{className:"verified-custd-mdl-startup-slider"},((s=e.sliderCount)==null?void 0:s.length)>0&&e.sliderCount.map((f,r)=>Ke.createElement(Ke.Fragment,{key:r},r<=Number(e.currentSlider)&&Ke.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&Ke.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},ge=fa;import T,{useState as ga}from"react";var pa=e=>{var r;let[s,f]=ga(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:P.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:a=>{a.target.value===""?f(null):e.type==="language"?f(e.searchContent.filter(n=>{if(n.name.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=n.name.split(""),n})):e.type==="area-code"&&f(e.searchContent.filter(n=>{var E,l;if((E=n==null?void 0:n.name)!=null&&E.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=(l=n==null?void 0:n.name)==null?void 0:l.split(""),n})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},T.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!s&&((r=e==null?void 0:e.searchContent)==null?void 0:r.length)>0&&e.searchContent.map((a,n)=>T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected({area:a.phone_code,flag:a.flag,name:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),window.location.search===`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:P.circleClicked,alt:"Clicked Icon"}))))),s&&s.length>0&&s.map((a,n)=>{var E,l,v;return T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected({area:a==null?void 0:a.phone_code,flag:a==null?void 0:a.flag,name:a==null?void 0:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a==null?void 0:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((E=a==null?void 0:a.nameArray)==null?void 0:E.length)>0&&(a==null?void 0:a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c)))))),e.type==="language"&&T.createElement(T.Fragment,{key:n},window.location.search!==`?${n}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=a.nameArray)==null?void 0:l.length)>0&&a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c)))),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((v=a.nameArray)==null?void 0:v.length)>0&&a.nameArray.map((c,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},c),a.searched.includes(c.toLowerCase())&&T.createElement("span",{key:k},c))),!a.searched.includes(a.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${a.label})`),a.searched.includes(a.label.toLowerCase())&&T.createElement("span",null,` (${a.label})`))),window.location.search===`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:P.circleClicked,alt:"Clicked Icon"}))))}))))))},We=pa;import ke from"react";var qt=()=>ke.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),Jt=e=>ke.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var s,f;e.setIsLoading(!0),(s=chrome==null?void 0:chrome.storage)!=null&&s.local?await chrome.storage.local.remove("myVault"):!((f=chrome==null?void 0:chrome.storage)!=null&&f.local)&&localStorage&&localStorage.removeItem("myVault"),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Le=()=>ke.createElement("div",{className:"verified-custd-mdl-privacy"},ke.createElement("img",{alt:"Privacy Icon",src:P.privacyTip,className:"verified-custd-mdl-privacy-icon"}),ke.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var ha=e=>{var B,O;let[s,f]=$e(""),[r,a]=$e(""),[n,E]=$e(!1),[l,v]=$e(""),{pk:c,vaultContract:k}=ye(),_=()=>{var C,D;let x=document.getElementById("verified-custd-mdl-contact-button");x&&e.selectedCountry.area&&s.length===10||x&&((C=e.userEmail)==null?void 0:C.length)>0&&isNaN(Number(e.userEmail))&&((D=e.userEmail)!=null&&D.includes("@"))?(v(""),x.className="verified-custd-mdl-startup-button-active"):(v(""),x.className="verified-custd-mdl-startup-button")},V=async()=>{var D,F,y;if(((D=e.userEmail)==null?void 0:D.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){v("Invalid input, please check your email");return}let x=((F=e.userEmail)==null?void 0:F.length)>0?e.userEmail:`+${e.selectedCountry.area}${s}`,C=((y=e.userEmail)==null?void 0:y.length)>0?"email":"sms";x&&C&&c&&k&&(e.setIsLoading(!0),await Ye(x,C).then(A=>{var d;e.setIsLoading(!1),A?(v(""),e.setStep("3")):(v(C==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),me("Oops something went wrong",((d=e.userEmail)==null?void 0:d.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))}))};return G.createElement("div",{className:"verified-custd-mdl-startup-language"},G.createElement("div",{className:"verified-custd-mdl-startup-contact"},G.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},G.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),G.createElement("div",{className:"verified-custd-mdl-st-contact-input"},G.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},G.createElement("div",{onClick:()=>{E(!n)},className:"verified-custd-mdl-st-contact-first-section"},G.createElement("img",{onClick:()=>{E(!n)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),G.createElement("p",{onClick:()=>{E(!n)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),n&&G.createElement("img",{onClick:()=>{E(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!n&&G.createElement("img",{onClick:()=>{E(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),G.createElement("input",{onInputCapture:x=>{var F;x.target.value===""?a(r+" "):a(x.target.value);let C=(F=x.target.value)==null?void 0:F.replace(/\D/g,"");f(C);let D="";for(let y=0;y<(C==null?void 0:C.length);y++)D+=C[y],(y+1)%5===0&&y+1<(C==null?void 0:C.length)&&(D+=" ");e.setUserNumberFmt(D)},onInput:x=>{_()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),n&&G.createElement(We,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:_,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:n,setSearchActive:E,contentMaxHeight:"300",contentbottomMargin:"300"}),s.length!==10&&r.length>10&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&((B=e.userEmail)==null?void 0:B.length)===0&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!n&&G.createElement(G.Fragment,null,G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),G.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),G.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),G.createElement("div",{className:"verified-custd-mdl-st-contact-input"},G.createElement("input",{onInputCapture:x=>{var C;e.setUserEmail((C=x.target)==null?void 0:C.value),e.setUserNumberFmt(""),f(""),a("")},onInput:x=>{_()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((O=e.userEmail)==null?void 0:O.length)>0&&G.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},G.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!n&&G.createElement("div",{style:{height:"80px"}}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},G.createElement(qt,null),G.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async x=>{if(x.target.className.includes("verified-custd-mdl-startup-button")&&x.target.className!=="verified-custd-mdl-startup-button")x.target.className="verified-custd-mdl-startup-button-click",await V();else{let C=document.getElementsByClassName("verified-custd-mdl-startup-button-active");C.length>0&&(C[0].className="verified-custd-mdl-startup-button-click",await V())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},G.createElement(Le,null)))))},et=ha;import K,{useEffect as va,useState as tt}from"react";var ya=e=>{var x,C,D,F,y,A;let[s,f]=tt(!1),[r,a]=tt(60),[n,E]=tt(!1),{pk:l,vaultContract:v}=ye();va(()=>{if(r===0)return;let d=setInterval(()=>{a(m=>m-1)},1e3);return()=>clearInterval(d)},[r]);let c=d=>{if(d.value.length>0){let m=d.nextElementSibling;m&&m.focus()}else d.value.length===0&&d.focus()},k=d=>{let m=d.clipboardData.getData("text"),S=m==null?void 0:m.replace(/\D/g,""),I=document.getElementsByClassName("otp-input");if((I==null?void 0:I.length)===4&&(S==null?void 0:S.length)>0)for(let i=0;i<I.length;i++)S[i]&&(I[i].value=S[i],I[i].focus())},_=d=>{let m=d.target.previousElementSibling;m&&m.focus()},V=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),m=document.getElementById("verified-custd-mdl-otp-input-1"),S=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");d&&(m==null?void 0:m.value.length)>0&&(S==null?void 0:S.value.length)>0&&(I==null?void 0:I.value.length)>0&&(i==null?void 0:i.value.length)>0&&!n?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},B=async()=>{var U,W,ae,Y,Z,R;let d=((U=e.userEmail)==null?void 0:U.length)>0?e.userEmail:`+${e.selectedCountry.area}${(W=e.userNumberFmt)==null?void 0:W.replace(" ","")}`,m=document.getElementById("verified-custd-mdl-otp-input-1"),S=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");if(((ae=m==null?void 0:m.value)==null?void 0:ae.length)>0&&((Y=S==null?void 0:S.value)==null?void 0:Y.length)>0&&((Z=I==null?void 0:I.value)==null?void 0:Z.length)>0&&((R=i==null?void 0:i.value)==null?void 0:R.length)>0&&d&&l&&v){e.setIsLoading(!0);let z=(m==null?void 0:m.value)+(S==null?void 0:S.value)+(I==null?void 0:I.value)+(i==null?void 0:i.value);await $t(d,String(z)).then(o=>{e.setIsLoading(!1),o?e.setStep("4"):E(!0)})}},O=async()=>{var S,I,i;let d=((S=e.userEmail)==null?void 0:S.length)>0?e.userEmail:`+${e.selectedCountry.area}${(I=e.userNumberFmt)==null?void 0:I.replace(" ","")}`,m=((i=e.userEmail)==null?void 0:i.length)>0?"email":"sms";d&&m&&(e.setIsLoading(!0),await Ye(d,m).then(U=>{if(e.setIsLoading(!1),U){a(60),E(!1);let W=document.getElementById("verified-custd-mdl-otp-input-1"),ae=document.getElementById("verified-custd-mdl-otp-input-2"),Y=document.getElementById("verified-custd-mdl-otp-input-3"),Z=document.getElementById("verified-custd-mdl-otp-input-4");W.value="",ae.value="",Y.value="",Z.value=""}else me("Oops something went wrong","Unexpected error")}))};return K.createElement("div",{className:"verified-custd-mdl-startup-language"},K.createElement("div",{className:"verified-custd-mdl-startup-contact"},K.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},K.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",K.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((x=e.userNumberFmt)==null?void 0:x.length)>0?"phone number":"email address"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((C=e.userNumberFmt)==null?void 0:C.length)>0&&K.createElement(K.Fragment,null,K.createElement("span",null,"(+",(D=e.selectedCountry)==null?void 0:D.area,")")," ",K.createElement("span",null," ",(F=e.userNumberFmt)==null?void 0:F.split(" ")[0])," ",K.createElement("span",null," ",(y=e.userNumberFmt)==null?void 0:y.split(" ")[1])),((A=e.userEmail)==null?void 0:A.length)>0&&K.createElement("span",null,e.userEmail)),K.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:P.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),K.createElement("div",{className:"verified-custd-mdl-otp-input-container"},K.createElement("div",{className:"verified-custd-mdl-otp-input-group"},K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},onPaste:d=>{k(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),K.createElement("input",{onInputCapture:d=>{var m;d.target.value=(m=d.target.value)==null?void 0:m.replace(/\D/g,""),E(!1)},onInput:d=>{c(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),K.createElement("div",{className:"verified-custd-mdl-otp-timer"},!n&&r>5&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},K.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!n&&r<=5&&r>0&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},K.createElement("span",{style:{fontWeight:400}},"00:"),r),!n&&r===0&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),n&&K.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),!n&&r>0&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!n&&r===0&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),n&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let m=0;m<d.length;m++)d[m].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!s&&K.createElement("div",{style:{height:"100px"}}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},K.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await B();else{let m=document.getElementsByClassName("verified-custd-mdl-startup-button-active");m.length>0&&(m[0].className="verified-custd-mdl-startup-button-click",await B())}},className:"verified-custd-mdl-startup-button"},"Proceed"),K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},K.createElement(Le,null)))))},at=ya;import b,{useState as Ne}from"react";import{AbiCoder as ba,decodeBytes32String as xa,encodeBytes32String as Ie}from"ethers";import{combine as wa,split as Na}from"shamir-secret-sharing";import{contractAddress as ze,Custody as je,Provider as Ve,VerifiedWallet as Pe}from"@verified-network/verified-sdk";import{createSmartAccountClient as Ca}from"@biconomy/account";var Zt=async(e,s,f,r,a,n,E,l,v,c,k)=>{try{let _={vaultId:e,hashedVaultId:s,vaultPin:f,hashedVaultPin:r,vaultContract:l};return await l.getCreator(s,r).then(async V=>{var B,O,x,C,D,F;if((V==null?void 0:V.status)===0)try{if(v==="invitation")return{isExisting:!0,..._};if((B=chrome==null?void 0:chrome.storage)!=null&&B.local){let y=Ie(f),A=Te(n,y);await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:s,pk:A,channel:a})})}else if(!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage){let y=Ie(f),A=Te(n,y);localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:s,pk:A,channel:a}))}if((x=chrome==null?void 0:chrome.runtime)!=null&&x.sendMessage)chrome.runtime.sendMessage({type:v&&v==="connect_wallet"?"getPk":v&&v!=="connect_wallet"?v:"getPk",value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?c:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}});else if(!((C=chrome==null?void 0:chrome.runtime)!=null&&C.sendMessage)){let y=new CustomEvent(v&&v==="connect_wallet"?"getPk":v&&v!=="connect_wallet"?v:"getPk",{detail:{value:{vaultData:v&&v==="signRecovery"||v&&v==="completeRecovery"?c:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}}});window.dispatchEvent(y)}return{shouldStop:!0}}catch(y){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",y),me("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else{if(((D=V==null?void 0:V.reason)==null?void 0:D.toLowerCase())==="invalid pin")return null;if(((F=V==null?void 0:V.reason)==null?void 0:F.toLowerCase())==="wallet not created")return await l.createVault(s,r).then(async y=>(y==null?void 0:y.status)===0?await l.confirmParticipant(s,r,s,r,!0).then(async A=>{var d,m;if((A==null?void 0:A.status)===0)try{let I=await new Pe(n).getAddress(),i=Ie(f),U=Te(n,i);return(d=chrome==null?void 0:chrome.storage)!=null&&d.local?await chrome.storage.local.set({myVault:JSON.stringify({address:E,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})}):!((m=chrome==null?void 0:chrome.storage)!=null&&m.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:E,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})),_}catch(S){return me("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",S),!1}else return me("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",A),!1}):(me("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",y),!1))}})}catch(_){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",_),me("Oops something went wrong","Error while creating pin. Try again later"),!1}},Xt=async(e,s,f,r,a,n,E,l,v,c)=>{var k,_,V,B;try{let O=Ie(f),x=Be(a,O);if(x){let C=ze,D=new Pe(x),F=l&&((k=C[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,y=(B=ue[F])==null?void 0:B.rpcUrls[0],A=D.setProvider(new Ve(y)),d=new je(A,C[F].Custody);return d?await d.getCreator(s,r).then(async m=>(m==null?void 0:m.status)===0?v?{address:n,vaultId:e,hashedVaultId:s,channel:E,chainId:c||F,pin:f,pk:x}:{address:n,vaultId:e,hashedVaultId:s,channel:E,chainId:c||F,pin:f}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(O){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",O),null}},qe=async(e,s,f,r,a,n,E,l,v,c,k,_,V)=>{var O,x,C,D;let B;if(k)B=k;else{let F=ze,y=new Pe(_),A=V&&((O=F[V])!=null&&O.Custody)&&((C=(x=ue[V])==null?void 0:x.rpcUrls)==null?void 0:C.length)>0?V:be,d=(D=ue[A])==null?void 0:D.rpcUrls[0],m=y.setProvider(new Ve(d));B=new je(m,F[A].Custody)}return B?await k.confirmParticipant(n,a,r,E,c).then(async F=>(F==null?void 0:F.status)===0?(c?await e(f,l,v):await s(f,l,v),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(F=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",F),!1)):!1},Qt=async(e,s,f,r,a,n,E,l,v,c,k,_)=>{let V=Number(f.length),O=(await Na(Uint8Array.from(_.split("").map(D=>D.charCodeAt(0))),Number(V),n)).map(D=>D.join(",")),x=[],C=[];for(let D=0;D<f.length;D++){let F=f[D];await k.addParticipant(l,c,ie(F.vaultId),O[D]).then(async y=>{let A={creatorVaultId:E,vaultPin:v,creatorHashedVaultId:l,creatorHashedVaultPin:c,cosigner:F.vaultId,hashedCosigner:ie(F.vaultId),cosignerVaultIdType:F.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:F.vaultId,share:O[D],...F};(y==null?void 0:y.status)===0?(C.push(A),F.vaultId!==E&&await e(F.otpChannel,F.vaultId,E,c).then(d=>{d||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):x.push(A)})}return(x==null?void 0:x.length)>0||(C==null?void 0:C.length)!==(f==null?void 0:f.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),me("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(l,c,n.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let F=r==null?void 0:r.map(y=>{var A;return{name:y==null?void 0:y.name,email:y==null?void 0:y.email,phoneNumber:y==null?void 0:y.phoneNumber,contactType:(A=String(y==null?void 0:y.otpChannel))==null?void 0:A.toUpperCase(),position:`${jt[Number(y==null?void 0:y.position)]} Co-Signer`}});return await s(a,E,F,Number(n)).then(y=>{y||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),me("Oops somethin went wrong","error while saving vault keys"),!1})},Rt=async(e,s,f,r,a,n,E,l)=>{var k,_,V,B;let v=Ie(a),c=Be(n,v);if(c){let O=ze,x=new Pe(c),C=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,D=(B=ue[C])==null?void 0:B.rpcUrls[0],F=x.setProvider(new Ve(D)),y=new je(F,O[C].Custody);if(y)return await y.promptSignatures(s,f).then(async A=>{var d,m,S,I,i,U,W;if((A==null?void 0:A.status)===0&&((m=(d=A==null?void 0:A.response)==null?void 0:d.result)!=null&&m.logs)){let ae=new ba,Y=(i=(I=(S=A==null?void 0:A.response)==null?void 0:S.result)==null?void 0:I.logs)==null?void 0:i.filter(o=>{var g,ee,Q,te,u;return((g=o==null?void 0:o.address)==null?void 0:g.toLowerCase())===((ee=O[C].Custody)==null?void 0:ee.toLowerCase())&&((u=(Q=o==null?void 0:o.topics)==null?void 0:Q.map(p=>p==null?void 0:p.toLowerCase()))==null?void 0:u.includes((te=zt)==null?void 0:te.toLowerCase()))}),Z=(U=Y[0])==null?void 0:U.data,R=(W=ae.decode(["bytes32","bytes32","uint256"],Z))==null?void 0:W.map((o,g)=>g<2?xa(o):Number(o)).flat(),z=R[(R==null?void 0:R.length)-1];return await e(E,r,f,Number(z),Number(Y==null?void 0:Y.length)),!0}else return!1}).catch(A=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",A),!1))}},ea=async(e,s,f,r,a,n,E,l,v,c,k,_)=>{var O,x,C,D;let V=Ie(n),B=Be(E,V);if(B){let F=ze,y=new Pe(B),A=_&&((O=F[_])!=null&&O.Custody)&&((C=(x=ue[_])==null?void 0:x.rpcUrls)==null?void 0:C.length)>0?_:be,d=(D=ue[A])==null?void 0:D.rpcUrls[0],m=y.setProvider(new Ve(d)),S=new je(m,F[A].Custody);if(S)return await S.signTransaction(v,r,f,k,c).then(async I=>(I==null?void 0:I.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,a),await S.checkQuorum(v,c,f,k).then(async i=>{var U,W;return(i==null?void 0:i.status)===0&&((U=i==null?void 0:i.response)!=null&&U.result)?(((W=i==null?void 0:i.response)==null?void 0:W.result[0])===!0&&await s(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(k)),!0):!1})):!1).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",I),!1))}},ta=async(e,s,f,r,a,n,E,l)=>{var k,_,V,B;let v=Ie(r),c=Be(a,v);if(c){let O=ze,x=new Pe(c),C=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,D=(B=ue[C])==null?void 0:B.rpcUrls[0],F=x.setProvider(new Ve(D)),y=new je(F,O[C].Custody);return y?await y.checkQuorum(e,s,e,n).then(async A=>{var d,m;if((A==null?void 0:A.status)===0&&((d=A==null?void 0:A.response)!=null&&d.result)){if(((m=A==null?void 0:A.response)==null?void 0:m.result[0])===!0)return await y.signTransaction(e,s,e,n,s).then(async S=>(S==null?void 0:S.status)===0?await y.getShards(e,s,n).then(async I=>{var i,U,W,ae;if((I==null?void 0:I.status)===0&&((i=I==null?void 0:I.response)!=null&&i.result)){let Y=(U=I==null?void 0:I.response)==null?void 0:U.result.filter(Z=>Z!=="");if(Y.length>1){let Z=Y.map(o=>new Uint8Array(o.split(",").map(Number))),R=await wa(Z),z=new TextDecoder().decode(R);if(z){let o=Ie(r),g=Te(z,o),ee=new Pe(z),Q=await ee.getAddress(),te=ee.setProvider(new Ve(D)),p=await(await Ca({signer:te,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${C}/${Se[C].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[C].PAYMASTER_API_KEY})).getAccountAddress();return(W=chrome==null?void 0:chrome.storage)!=null&&W.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:p,regAddress:Q,vaultId:f,hashedVaultId:e,pk:g,channel:E})})):!((ae=chrome==null?void 0:chrome.storage)!=null&&ae.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:p,regAddress:Q,vaultId:f,hashedVaultId:e,pk:g,channel:E}))),!0}}else return!1}else return!1}).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",I),!1)):!1)}else return!1}).catch(A=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",A),!1)):!1}};import _e from"react";var Aa=e=>{var a,n;let s=e.showButton?null:setTimeout(()=>{var E,l,v,c;if(e.messageTosend)try{if((E=chrome==null?void 0:chrome.runtime)!=null&&E.sendMessage)chrome.runtime.sendMessage(e.messageTosend,k=>{k&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let k=new CustomEvent((v=e.messageTosend)==null?void 0:v.type,{detail:{value:(c=e.messageTosend)==null?void 0:c.value}});window.dispatchEvent(k)}}catch(k){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",k),me("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),f=()=>{e.setStep("6")},r=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return _e.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},_e.createElement("div",{className:"verified-custd-mdl-success-popup-content"},_e.createElement("img",{style:{width:"90%"},src:P.successIcon,alt:"Success Icon"}),_e.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((a=e.buttonText)==null?void 0:a.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{s&&clearTimeout(s),e.action==="invitation"&&f()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((n=e.buttonNeutText)==null?void 0:n.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{s&&clearTimeout(s),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},xe=Aa;var Ea=e=>{var Y,Z,R,z;let[s,f]=Ne(!1),[r,a]=Ne(!1),[n,E]=Ne(""),[l,v]=Ne(!0),[c,k]=Ne(!1),[_,V]=Ne(!1),[B,O]=Ne(!1),[x,C]=Ne(""),[D,F]=Ne(!1),{address:y,pk:A,vaultContract:d,setVaultData:m,vaultData:S}=ye(),I=o=>{if(o.value.length>0){let g=o.nextElementSibling;g&&g.focus()}else o.value.length===0&&o.focus()},i=o=>{let g=o.target.previousElementSibling;g&&g.focus()},U=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),g=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),Q=document.getElementById("verified-custd-mdl-otp-input-3"),te=document.getElementById("verified-custd-mdl-otp-input-4"),u=document.getElementById("verified-custd-mdl-otp-input-5"),p=document.getElementById("verified-custd-mdl-otp-input-6"),N=document.getElementById("verified-custd-mdl-otp-input-7"),j=document.getElementById("verified-custd-mdl-otp-input-8");o&&(g==null?void 0:g.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(Q==null?void 0:Q.value.length)>0&&(te==null?void 0:te.value.length)>0&&(u==null?void 0:u.value.length)>0&&(p==null?void 0:p.value.length)>0&&(N==null?void 0:N.value.length)>0&&(j==null?void 0:j.value.length)>0?(g==null?void 0:g.value)+(ee==null?void 0:ee.value)+(Q==null?void 0:Q.value)+(te==null?void 0:te.value)===(u==null?void 0:u.value)+(p==null?void 0:p.value)+(N==null?void 0:N.value)+(j==null?void 0:j.value)?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",a(!0)):o.className="verified-custd-mdl-startup-button"},W=async()=>{var o,g,ee,Q,te,u,p,N,j,X,w;if(!e.helperFunctions)E("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{E(""),a(!1);let L=document.getElementById("verified-custd-mdl-otp-input-1"),$=document.getElementById("verified-custd-mdl-otp-input-2"),q=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4"),M=document.getElementById("verified-custd-mdl-otp-input-5"),J=document.getElementById("verified-custd-mdl-otp-input-6"),ne=document.getElementById("verified-custd-mdl-otp-input-7"),re=document.getElementById("verified-custd-mdl-otp-input-8"),se=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(g=e.userNumberFmt)==null?void 0:g.replace(" ","")}`,ve=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(((Q=L==null?void 0:L.value)==null?void 0:Q.length)>0&&((te=$==null?void 0:$.value)==null?void 0:te.length)>0&&((u=q==null?void 0:q.value)==null?void 0:u.length)>0&&((p=H==null?void 0:H.value)==null?void 0:p.length)>0&&((N=M==null?void 0:M.value)==null?void 0:N.length)>0&&((j=J==null?void 0:J.value)==null?void 0:j.length)>0&&((X=ne==null?void 0:ne.value)==null?void 0:X.length)>0&&((w=re==null?void 0:re.value)==null?void 0:w.length)>0&&y&&se&&ve&&A&&d){e.setIsLoading(!0);let he=(L==null?void 0:L.value)+($==null?void 0:$.value)+(q==null?void 0:q.value)+(H==null?void 0:H.value),we=ie(se),De=ie(he);await Zt(se,we,he,De,ve,A,y,d,e.action,e.vaultData,e.txData).then(oe=>{e.setIsLoading(!1),oe?(m(oe!=null&&oe.shouldStop?{}:oe),E(""),a(!1),e.action==="invitation"?(C(he),k(!0)):oe!=null&&oe.shouldStop?oe!=null&&oe.shouldStop&&O(!0):e.setStep("5")):oe===null?(E("You are an existing user. Please input the right pin to recover your account."),a(!0)):(E("Unexpected error while creating account. Please try again later."),a(!0))})}}},ae=async o=>{var Q,te,u,p,N,j,X,w;let g=((Q=e.userEmail)==null?void 0:Q.length)>0?e.userEmail:`+${e.selectedCountry.area}${(te=e.userNumberFmt)==null?void 0:te.replace(" ","")}`,ee=((u=e.userEmail)==null?void 0:u.length)>0?"email":"sms";if((x==null?void 0:x.length)===4&&((p=e==null?void 0:e.vaultData)!=null&&p.hashedVaultId)&&((N=e.vaultData)!=null&&N.hashedVaultPin)&&g){e.setIsLoading(!0);let L=ie(g),$=ie(x);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,L,$,(j=e==null?void 0:e.vaultData)==null?void 0:j.hashedVaultId,(X=e.vaultData)==null?void 0:X.hashedVaultPin,(w=e.vaultData)==null?void 0:w.vaultId,g,o,d).then(q=>{var H,M;e.setIsLoading(!1),q&&!(S!=null&&S.isExisting)?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(o?`You have been added as a Co-Signer for ${(H=e.vaultData)==null?void 0:H.vaultId}`:`You rejected Co-signer reject from ${(M=e.vaultData)==null?void 0:M.vaultId}`),e.setStep("5")):q&&(S!=null&&S.isExisting)&&V(!0)})}};return b.createElement(b.Fragment,null,!B&&!c&&b.createElement("div",{className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),b.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},b.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),b.createElement("div",{className:"verified-custd-mdl-otp-input-container"},b.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),b.createElement("div",{className:"verified-custd-mdl-otp-input-group"},b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"}))),b.createElement("div",{className:"verified-custd-mdl-otp-input-container"},b.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),b.createElement("div",{className:"verified-custd-mdl-otp-input-group"},b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),b.createElement("input",{onInputCapture:o=>{var g;o.target.value=(g=o.target.value)==null?void 0:g.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),b.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&b.createElement("p",null),r&&n===""&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(n==null?void 0:n.length)>0&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},n),!l&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!0),src:P.pinShow,alt:"show pin icon"}),l&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>v(!1),src:P.pinHide,alt:"hide pin icon"})))),!s&&b.createElement("div",{style:{height:"30px"}}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},b.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},b.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await W();else{let g=document.getElementsByClassName("verified-custd-mdl-startup-button-active");g.length>0&&(g[0].className="verified-custd-mdl-startup-button-click",await W())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!B&&c&&b.createElement(b.Fragment,null,!_&&b.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},b.createElement("b",null,(Y=e.vaultData)==null?void 0:Y.vaultId)," has requested you to be a Co-Signer"))),b.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!D&&b.createElement(b.Fragment,null,b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),b.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.pkicon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.encryptedIcon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:()=>{F(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),b.createElement("button",{onClick:async()=>{await ae(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),D&&b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),b.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",b.createElement("b",null,(Z=e.vaultData)==null?void 0:Z.vaultId),", you will not be able to reset the PIN for them.")),b.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:async()=>{await ae(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),b.createElement("button",{onClick:()=>{F(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),_&&b.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:D?`You rejected Co-signer reject from ${(z=e.vaultData)==null?void 0:z.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),B&&b.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"You have successfully logged in your account."}))},nt=Ea;import t,{useState as de}from"react";var Sa=e=>{var p,N,j,X;let[s,f]=de(!1),[r,a]=de("1"),[n,E]=de("1"),[l,v]=de(!1),[c,k]=de("sms"),[_,V]=de(""),[B,O]=de(""),[x,C]=de(""),[D,F]=de(""),[y,A]=de(""),[d,m]=de(!1),[S,I]=de(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[i,U]=de([]),[W,ae]=de(!1),[Y,Z]=de(2),[R,z]=de(""),{pk:o,vaultData:g,vaultContract:ee}=ye(),Q=()=>{let w=document.getElementById("add-cosigner-button");w&&(i==null?void 0:i.length)>0?w.className="startup-button-active":w.className="startup-button"},te=()=>{var L,$,q,H;if(c==="sms"&&(_==null?void 0:_.length)===0){z("Invalid input, please check the phone number");return}else if(c==="sms"&&(_==null?void 0:_.length)!==10){z("Invalid input, please check the phone number");return}else if(c==="email"&&(x==null?void 0:x.length)===0){z("Invalid input, please check the email");return}else if(c==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(x)){z("Invalid input, please check the email");return}else if(i!=null&&i.find(M=>{var J,ne,re,se;return(M==null?void 0:M.otpChannel)==="sms"?((J=M==null?void 0:M.phoneArea)==null?void 0:J.toLowerCase())+((ne=M==null?void 0:M.number)==null?void 0:ne.toLowerCase())===((re=S.area)==null?void 0:re.toLowerCase())+(B==null?void 0:B.toLowerCase()):((se=M==null?void 0:M.email)==null?void 0:se.toLowerCase())===(x==null?void 0:x.toLowerCase())})){z(c==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(c==="sms"&&((L=S==null?void 0:S.area)==null?void 0:L.toLowerCase())+(B==null?void 0:B.toLowerCase())===(($=e.selectedCountry.area)==null?void 0:$.toLowerCase())+((q=e.userNumberFmt)==null?void 0:q.toLowerCase())){z("Invalid input, phone number is creator's phone number");return}else if(c==="email"&&(x==null?void 0:x.toLowerCase())===((H=e.userEmail)==null?void 0:H.toLowerCase())){z("Invalid input, email is creator's email");return}z("");let w=i==null?void 0:i.length;U(M=>[{name:D,email:x,number:B,phoneNumber:`+${S==null?void 0:S.area}${_}`,otpChannel:c,phoneArea:S==null?void 0:S.area,position:(M==null?void 0:M.length)+1,vaultId:c==="sms"?`+${S==null?void 0:S.area}${_}`:x},...M]),C(""),F(""),V(""),O(""),A(""),w+1===4&&v(!1)},u=async()=>{var L,$,q,H,M,J;let w=[{otpChannel:((L=e==null?void 0:e.userEmail)==null?void 0:L.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${($=e==null?void 0:e.selectedCountry)==null?void 0:$.area}${(q=e==null?void 0:e.userNumberFmt)==null?void 0:q.replace(" ","")}`,vaultId:g==null?void 0:g.vaultId},...i];(w==null?void 0:w.length)>0&&(i==null?void 0:i.length)>0&&Y&&(g!=null&&g.vaultId)&&(g!=null&&g.hashedVaultId)&&(g!=null&&g.vaultPin)&&(g!=null&&g.hashedVaultPin)&&ee&&o&&((H=e.helperFunctions)!=null&&H.sendCoSignerInvitation)&&((M=e.helperFunctions)!=null&&M.sendCreatorConfirmation)&&(e.setIsLoading(!0),await Qt(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,w,i,((J=e==null?void 0:e.userEmail)==null?void 0:J.length)>0?"email":"sms",Y,g.vaultId,g.hashedVaultId,g.vaultPin,g.hashedVaultPin,ee,o).then(ne=>{e.setIsLoading(!1),ne&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!s&&t.createElement(t.Fragment,null,n==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:P.pkicon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:P.encryptedIcon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:P.supervise,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>{a("1"),f(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{E("2"),v(!1),f(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),n==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!W&&t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((p=e.userEmail)==null?void 0:p.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((N=e.userEmail)==null?void 0:N.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!W&&i.sort((w,L)=>(w==null?void 0:w.position)-(L==null?void 0:L.position)).map((w,L)=>{var $,q;return t.createElement("div",{key:L,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},($=Oe[w==null?void 0:w.position])==null?void 0:$.split(" ")[0],t.createElement("sup",null,(q=Oe[w==null?void 0:w.position])==null?void 0:q.split(" ")[1])," ","Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},w==null?void 0:w.name),w.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},w.email),w.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",w==null?void 0:w.phoneArea,") ",w.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:P.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{U(H=>{var M;return(M=H==null?void 0:H.filter(J=>{var ne,re,se,ve,he,we;return(J==null?void 0:J.otpChannel)==="sms"?((ne=J==null?void 0:J.phoneArea)==null?void 0:ne.toLowerCase())+((re=J==null?void 0:J.number)==null?void 0:re.toLowerCase())!==((se=w==null?void 0:w.phoneArea)==null?void 0:se.toLowerCase())+((ve=w==null?void 0:w.number)==null?void 0:ve.toLowerCase()):((he=J==null?void 0:J.email)==null?void 0:he.toLowerCase())!==((we=w==null?void 0:w.email)==null?void 0:we.toLowerCase())}))==null?void 0:M.map((J,ne)=>(J.position=ne+1,J))})},onClick:()=>{Q()},style:{cursor:"pointer"},src:P.delete,alt:"delete"}))))})),W&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),t.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((w,L)=>t.createElement("div",{style:L+1===Y?{}:{height:"0",width:"0",overflow:"hidden"},key:L,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(L+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:P.pointer,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:P.sliderDot,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((w,L)=>t.createElement("p",{style:L===(i==null?void 0:i.length)?{paddingRight:"12px"}:L===0?{paddingLeft:"12px"}:{},onClick:()=>{L+1>1&&Z(L+1)},key:L,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(L+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async w=>{if(w.target.className.includes("startup-button")&&w.target.className!=="startup-button")w.target.className="startup-button-click",await u();else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click"),await u()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(j=Oe[(i==null?void 0:i.length)+1])==null?void 0:j.split(" ")[0],t.createElement("sup",null,(X=Oe[(i==null?void 0:i.length)+1])==null?void 0:X.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:w=>{F(w.target.value)},value:D,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{k("sms"),z(""),C("")},src:c==="sms"?P.selectClicked:P.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{k("email"),z(""),V(""),O(""),A("")},src:c==="email"?P.selectClicked:P.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},c==="sms"&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.createElement("div",{onClick:()=>{m(!d)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{m(!d)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:S.flag}),t.createElement("p",{onClick:()=>{m(!d)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",S.area),d&&t.createElement("img",{onClick:()=>{m(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!d&&t.createElement("img",{onClick:()=>{m(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),t.createElement("input",{onInputCapture:w=>{var q;w.target.value===""?A(y+" "):A(w.target.value);let L=(q=w.target.value)==null?void 0:q.replace(/\D/g,"");V(L);let $="";for(let H=0;H<(L==null?void 0:L.length);H++)$+=L[H],(H+1)%5===0&&H+1<(L==null?void 0:L.length)&&($+=" ");O($),z("")},onInput:w=>{Q()},value:B,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),d&&t.createElement(We,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:I,selected:S,searchActive:d,setSearchActive:m,contentMaxHeight:"300",contentbottomMargin:"300"}),R===""&&_.length!==10&&y.length>10&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))),c==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:w=>{C(w.target.value),z("")},onInput:w=>{Q()},value:x,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>v(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{te()},onClick:()=>Q(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!W&&(i==null?void 0:i.length)<4&&t.createElement("div",{onClick:()=>v(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:P.addIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!W&&(i==null?void 0:i.length)===4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.createElement("img",{style:{width:"20px"},src:P.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!W&&t.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px"}:{marginBottom:"20px"},id:"add-cosigner-button",onClick:async w=>{if(w.target.className.includes("startup-button")&&w.target.className!=="startup-button")w.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(Z(2),ae(!0),v(!1));else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(Z(2),ae(!0),v(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),s&&t.createElement(t.Fragment,null,r==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon2,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>f(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon3,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon4,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>{E("2"),v(!1),f(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},it=Sa;var Ia=e=>{let[s,f]=fe(e.fontsLoaded||!1),[r,a]=fe(e.showLogoPage||!1),[n,E]=fe([]),[l,v]=fe("2"),[c,k]=fe(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[_,V]=fe(""),[B,O]=fe(""),[x,C]=fe(!1),[D,F]=fe(""),[y,A]=fe(""),[d,m]=fe(""),[S,I]=fe(""),[i,U]=fe(null),[W,ae]=fe(null),{setChainId:Y,setAddress:Z,setPk:R,setProvider:z,setSigner:o,setVaultContract:g,setVaultData:ee,vaultData:Q,chainId:te}=ye();return Je(()=>{let u=()=>{let p=Fe(document);f(p)};e.fontsLoaded||u()},[]),Je(()=>{(async()=>{let p=await Wt(e.chainId);Y(p.chainId),Z(p.address),R(p.pk),z(p.provider),o(p.signer),g(p.vaultContract),ee(p.vaultData)})()},[]),Je(()=>{ka(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Je(()=>{(()=>{let p=Gt.map(N=>{if(N)return{name:N==null?void 0:N.name,countryName:N==null?void 0:N.name,officialName:N==null?void 0:N.name,currencySymbol:N==null?void 0:N.currency,currencyName:N==null?void 0:N.currency,officialCurrencySymbol:N==null?void 0:N.currency,countryCode:N==null?void 0:N.code,flag:N==null?void 0:N.flag,continent:N==null?void 0:N.continent,phone_code:N==null?void 0:N.phone_code,code:N==null?void 0:N.code}}).flat();E(p==null?void 0:p.filter(N=>N!==void 0))})()},[]),le.createElement(le.Fragment,null,s&&r&&e.logoPageElement&&le.createElement(le.Fragment,null," ",e.logoPageElement),s&&!r&&le.createElement(le.Fragment,null,l==="2"&&le.createElement(et,{setStep:v,setIsLoading:e.setIsLoading,setUserNumberFmt:V,userNumberFmt:_,setUserEmail:O,userEmail:B,setSelectedCountry:k,selectedCountry:c,allCountries:n}),l==="3"&&le.createElement(at,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:_,setUserNumberFmt:V,setUserEmail:O,userEmail:B,selectedCountry:c}),l==="4"&&le.createElement(nt,{setStep:v,setIsLoading:e.setIsLoading,setShowSuccessBtn:C,setSuccessBtnText:F,setSuccessBtnNeutText:A,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:ae,userNumberFmt:_,userEmail:B,selectedCountry:c,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:m,setActionFooterText:I,helperFunctions:e.helperFunctions}),l==="5"&&le.createElement(xe,{setStep:v,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:x,buttonText:D,buttonNeutText:y,buttonFunc:i,buttonNeutFunc:W,actionHeaderText:d,actionFooterText:S}),l==="6"&&le.createElement(it,{setStep:v,setIsLoading:e.setIsLoading,userNumberFmt:_,userEmail:B,selectedCountry:c,allCountries:n,helperFunctions:e.helperFunctions}),l==="7"&&e.action===""&&le.createElement(xe,{action:e.action,setStep:v,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&le.createElement(xe,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData}}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading})),!s&&le.createElement("h3",null,"Preparing Modules..."))},ot=Ia;import h,{useEffect as _a,useState as pe}from"react";var Pa=e=>{var o,g,ee,Q,te;let[s,f]=pe(e.fontsLoaded||!1),[r,a]=pe(!1),[n,E]=pe(!0),[l,v]=pe(!1),[c,k]=pe(!1),[_,V]=pe(null),[B,O]=pe(e.newChainId||be),[x,C]=pe(!1),[D,F]=pe(!1),[y,A]=pe(!1),[d,m]=pe(!1),[S,I]=pe(!1),[i,U]=pe("");_a(()=>{let u=()=>{let p=Fe(document);f(p)};e.fontsLoaded||u()},[]);let W=u=>{if(u.value.length>0){let p=u.nextElementSibling;p&&p.focus()}else u.value.length===0&&u.focus()},ae=u=>{let p=u.clipboardData.getData("text"),N=p==null?void 0:p.replace(/\D/g,""),j=document.getElementsByClassName("otp-input");if((j==null?void 0:j.length)===4&&(N==null?void 0:N.length)>0)for(let X=0;X<j.length;X++)N[X]&&(j[X].value=N[X],j[X].focus())},Y=u=>{let p=u.target.previousElementSibling;p&&p.focus()},Z=()=>{let u=document.getElementById("verified-custd-mdl-otp-button"),p=document.getElementById("verified-custd-mdl-otp-input-1"),N=document.getElementById("verified-custd-mdl-otp-input-2"),j=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4");u&&(p==null?void 0:p.value.length)>0&&(N==null?void 0:N.value.length)>0&&(j==null?void 0:j.value.length)>0&&(X==null?void 0:X.value.length)>0&&!r?u.className="verified-custd-mdl-startup-button-active":u.className="verified-custd-mdl-startup-button"},R=async()=>{var u,p,N,j,X,w;if(!e.helperFunctions)U("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{U(""),a(!1);let L=document.getElementById("verified-custd-mdl-otp-input-1"),$=document.getElementById("verified-custd-mdl-otp-input-2"),q=document.getElementById("verified-custd-mdl-otp-input-3"),H=document.getElementById("verified-custd-mdl-otp-input-4");if(((u=L==null?void 0:L.value)==null?void 0:u.length)>0&&((p=$==null?void 0:$.value)==null?void 0:p.length)>0&&((N=q==null?void 0:q.value)==null?void 0:N.length)>0&&((j=H==null?void 0:H.value)==null?void 0:j.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let M=(L==null?void 0:L.value)+($==null?void 0:$.value)+(q==null?void 0:q.value)+(H==null?void 0:H.value);await Xt(e.vaultId,e.hashedVaultId,M,ie(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(B),(w=Mt)==null?void 0:w.includes((X=e.origin)==null?void 0:X.toLowerCase())).then(async J=>{var ne,re,se,ve,he,we,De,oe,Ge,rt,st,lt,ct,ut,mt,ft,gt,pt,ht,vt,yt,bt,xt,wt,Nt,Ct,At,Et,St,kt,It,_t,Pt,Dt,Ft,Tt,Bt;e.setIsLoading(!1),J?(V(J),e.action==="getPk"&&((re=(ne=e.reqVaultData)==null?void 0:ne.vaultId)==null?void 0:re.toLowerCase())===((se=e.vaultId)==null?void 0:se.toLowerCase())?(e.setIsLoading(!0),await Rt(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(B)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),(Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),a(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await ea(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(ve=e.reqVaultData)==null?void 0:ve.vaultId,(he=e.reqVaultData)==null?void 0:he.hashedVaultId,(we=e.reqVaultData)==null?void 0:we.hashedVaultPin,(De=e.reqTxData)==null?void 0:De.id,Number(B)).then(async Ue=>{var Ce,Ae,Lt,Vt;e.setIsLoading(!1),!((Ce=e.reqTxData)!=null&&Ce.newUser)&&((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((Lt=e.reqTxData)!=null&&Lt.newUser)&&!((Vt=chrome==null?void 0:chrome.storage)!=null&&Vt.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),a(!0))})):e.action==="completeRecovery"&&((Ge=(oe=e.reqVaultData)==null?void 0:oe.vaultId)==null?void 0:Ge.toLowerCase())===((rt=e.vaultId)==null?void 0:rt.toLowerCase())?(e.setIsLoading(!0),await ta(e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(st=e.reqTxData)==null?void 0:st.id,e.vaultChannel,Number(B)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),Ue?k(!0):((Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),U("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((ct=(lt=e.reqVaultData)==null?void 0:lt.vaultId)==null?void 0:ct.toLowerCase())!==((ut=e.vaultId)==null?void 0:ut.toLowerCase())&&((ft=(mt=e.reqVaultData)==null?void 0:mt.coSignerId)==null?void 0:ft.toLowerCase())===((gt=e.vaultId)==null?void 0:gt.toLowerCase())?(U(""),a(!1),F(!0)):e.action==="invitation"&&((ht=(pt=e.reqVaultData)==null?void 0:pt.vaultId)==null?void 0:ht.toLowerCase())===((vt=e.vaultId)==null?void 0:vt.toLowerCase())?(U(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(yt=e.reqVaultData)==null?void 0:yt.coSignerId} account`),a(!0)):e.action==="invitation"&&((xt=(bt=e.reqVaultData)==null?void 0:bt.coSignerId)==null?void 0:xt.toLowerCase())!==((wt=e.vaultId)==null?void 0:wt.toLowerCase())?(U(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Nt=e.reqVaultData)==null?void 0:Nt.coSignerId} account`),a(!0)):e.action==="getPk"&&((At=(Ct=e.reqVaultData)==null?void 0:Ct.vaultId)==null?void 0:At.toLowerCase())!==((Et=e.vaultId)==null?void 0:Et.toLowerCase())?((St=chrome==null?void 0:chrome.storage)!=null&&St.local?await chrome.storage.local.remove("myVault"):!((kt=chrome==null?void 0:chrome.storage)!=null&&kt.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to fetch account details. please logout and login to: ${(It=e.reqVaultData)==null?void 0:It.vaultId} account`),a(!0)):e.action==="completeRecovery"&&((Pt=(_t=e.reqVaultData)==null?void 0:_t.vaultId)==null?void 0:Pt.toLowerCase())!==((Dt=e.vaultId)==null?void 0:Dt.toLowerCase())?((Ft=chrome==null?void 0:chrome.storage)!=null&&Ft.local?await chrome.storage.local.remove("myVault"):!((Tt=chrome==null?void 0:chrome.storage)!=null&&Tt.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to restore login access for this account. please logout and login to: ${(Bt=e.reqVaultData)==null?void 0:Bt.vaultId} account`),a(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)?(U("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),a(!0)):e.action===""?e.setShowDashboard(!0):(U(""),a(!1),k(!0))):(U(""),a(!0))})}}},z=async u=>{var L,$,q,H,M,J,ne,re,se,ve,he;let p=document.getElementById("verified-custd-mdl-otp-input-1"),N=document.getElementById("verified-custd-mdl-otp-input-2"),j=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4"),w=e.vaultId;if(((L=p==null?void 0:p.value)==null?void 0:L.length)>0&&(($=N==null?void 0:N.value)==null?void 0:$.length)>0&&((q=j==null?void 0:j.value)==null?void 0:q.length)>0&&((H=X==null?void 0:X.value)==null?void 0:H.length)>0&&((M=e==null?void 0:e.reqVaultData)!=null&&M.hashedVaultId)&&((J=e.reqVaultData)!=null&&J.hashedVaultPin)&&w&&((ne=e.helperFunctions)!=null&&ne.sendCreatorAcceptance)&&((re=e.helperFunctions)!=null&&re.sendCreatorRejection)){e.setIsLoading(!0);let we=(p==null?void 0:p.value)+(N==null?void 0:N.value)+(j==null?void 0:j.value)+(X==null?void 0:X.value),De=ie(w),oe=ie(we);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,De,oe,(se=e==null?void 0:e.reqVaultData)==null?void 0:se.hashedVaultId,(ve=e.reqVaultData)==null?void 0:ve.hashedVaultPin,(he=e==null?void 0:e.reqVaultData)==null?void 0:he.vaultId,w,u,null,e.encrptedPk,Number(B)).then(Ge=>{e.setIsLoading(!1),Ge&&(I(u),A(!0))})}};return h.createElement(h.Fragment,null,s&&!D&&h.createElement(h.Fragment,null,!c&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(ge,{sliderCount:[1],currentSlider:"0"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},h.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},h.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",h.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",h.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),h.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},onPaste:u=>{ae(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:u=>{var p;u.target.value=(p=u.target.value)==null?void 0:p.replace(/\D/g,""),a(!1)},onInput:u=>{W(u.target),Z()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&Y(u)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&i===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(i==null?void 0:i.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},i),!r&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!n&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>E(!0),src:P.pinShow,alt:"show pin icon"}),n&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>E(!1),src:P.pinHide,alt:"hide pin icon"})))),!l&&h.createElement("div",{style:{height:"100px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement(Jt,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async u=>{if(u.target.className.includes("verified-custd-mdl-startup-button")&&u.target.className!=="verified-custd-mdl-startup-button")u.target.className="verified-custd-mdl-startup-button-click",await R();else{let p=document.getElementsByClassName("verified-custd-mdl-startup-button-active");p.length>0&&(p[0].className="verified-custd-mdl-startup-button-click",await R())}},className:"verified-custd-mdl-startup-button"},"Proceed"),h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},h.createElement(Le,null))))),c&&h.createElement(xe,{messageTosend:e.action==="getPk"?{type:"closePopup",key:"",value:""}:e.action==="signRecovery"?{type:"closePopup",key:"",value:""}:e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:_},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${(o=e.reqVaultData)==null?void 0:o.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),s&&D&&h.createElement(h.Fragment,null,!y&&h.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},h.createElement("b",null,(g=e.reqVaultData)==null?void 0:g.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!d&&h.createElement(h.Fragment,null,h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},h.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),h.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:P.pkicon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:P.encryptedIcon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},h.createElement("button",{onClick:()=>{m(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await z(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),d&&h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},h.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),h.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",h.createElement("b",null,(ee=e.reqVaultData)==null?void 0:ee.vaultId),", you will not be able to reset the PIN for them.")),h.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},h.createElement("button",{onClick:async()=>{await z(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{m(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),y&&h.createElement(xe,{messageTosend:{type:"getPk",key:"vaultData",value:_},customTextHeader:"Successful",customTextFooter:S?`You have been added as a Co-Signer for ${(Q=e.reqVaultData)==null?void 0:Q.vaultId}`:`You rejected Co-signer reject from ${(te=e.reqVaultData)==null?void 0:te.vaultId}`})),!s&&h.createElement("h3",null,"Preparing Modules..."))},dt=Pa;import{motion as Da}from"framer-motion";var Fa=e=>{var _,V,B,O,x,C,D,F,y,A,d,m,S,I,i,U,W,ae;let[s,f]=He(!0),[r,a]=He(null),[n,E]=He({}),[l,v]=He(!1),[c,k]=He(!1);return aa(()=>{(()=>{let Z=Fe(document);f(Z)})()},[]),aa(()=>{(()=>{var Z,R;if((Z=chrome==null?void 0:chrome.storage)!=null&&Z.local)chrome.storage.local.get("myVault",z=>{var o;z.myVault&&((o=JSON.parse(z.myVault))!=null&&o.vaultId)?(E(JSON.parse(z.myVault)),a(!0)):a(!1)});else if(!((R=chrome==null?void 0:chrome.storage)!=null&&R.local)&&localStorage){let z=JSON.parse(localStorage.getItem("myVault"));z&&(z!=null&&z.vaultId)?(E(z),a(!0)):a(!1)}else a(!1)})()},[]),ce.createElement(ce.Fragment,null,s&&ce.createElement(Ot,null,ce.createElement("div",{className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&ce.createElement(ce.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&ce.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),l&&ce.createElement("div",{style:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},ce.createElement(Da.img,{height:"50px",width:"50px",src:P.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),r!==null&&ce.createElement(ce.Fragment,null,!r&&ce.createElement(ot,{fontsLoaded:s,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((_=e.reqVaultData)==null?void 0:_.vId)||((V=e.reqVaultData)==null?void 0:V.vaultId)),hashedVaultId:ie(decodeURIComponent(((B=e.reqVaultData)==null?void 0:B.vId)||((O=e.reqVaultData)==null?void 0:O.vaultId))),hashedVaultPin:decodeURIComponent(((x=e.reqVaultData)==null?void 0:x.vPh)||((C=e.reqVaultData)==null?void 0:C.hashedVaultPin)),coSignerId:decodeURIComponent((D=e.reqVaultData)==null?void 0:D.cId)}:null,txData:e.txData?(y=Object.keys(e.txData))==null?void 0:y.map(Y=>(e.txData[Y]=decodeURIComponent(e.txData[Y]),e.txData))[((F=Object.keys(e.txData))==null?void 0:F.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:v,dashbordElement:e.dashbordElement}),r&&!c&&ce.createElement(dt,{fontsLoaded:s,setisOnboard:a,vaultId:n==null?void 0:n.vaultId,hashedVaultId:n==null?void 0:n.hashedVaultId,encrptedPk:n==null?void 0:n.pk,vaultAddress:n==null?void 0:n.address,vaultChannel:n==null?void 0:n.channel,origin:e.origin,title:e.title,actionText:e.actionText||Ht[e.action],setIsLoading:v,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((A=e.reqVaultData)==null?void 0:A.vId)||((d=e.reqVaultData)==null?void 0:d.vaultId)),hashedVaultId:ie(decodeURIComponent(((m=e.reqVaultData)==null?void 0:m.vId)||((S=e.reqVaultData)==null?void 0:S.vaultId))),hashedVaultPin:decodeURIComponent(((I=e.reqVaultData)==null?void 0:I.vPh)||((i=e.reqVaultData)==null?void 0:i.hashedVaultPin)),coSignerId:decodeURIComponent((U=e.reqVaultData)==null?void 0:U.cId)}:null,reqTxData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map(Y=>(e.txData[Y]=decodeURIComponent(e.txData[Y]),e.txData))[((W=Object.keys(e.txData))==null?void 0:W.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:k}),r&&c&&e.dashbordElement&&ce.createElement(e.dashbordElement,{setIsLoading:v})))),!s&&ce.createElement("h3",null,"Preparing Modules..."))},Ta=Fa;export{it as AddCoSignersPage,et as ContactPage,nt as CreatePinPage,dt as EnterPinPage,ot as FTUPage,at as OTPPage,Ta as VerifiedCustody,Be as decryptString,Te as encryptString,ie as hashTheString};
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|