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