@verified-network/verified-custody 0.3.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
function Sn(e){if(!e||typeof document>"u")return;let c=document.head||document.getElementsByTagName("head")[0],p=document.createElement("style");p.type="text/css",c.firstChild?c.insertBefore(p,c.firstChild):c.appendChild(p),p.styleSheet?p.styleSheet.cssText=e:p.appendChild(document.createTextNode(e))}Sn(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
|
|
2
|
-
`);typeof chrome>"u"&&(window.chrome={});import me,{useEffect as Dt,useState as Se}from"react";import En,{createContext as An,useContext as kn,useState as Ye}from"react";var ln=An(void 0),Tt=e=>{let[c,p]=Ye(null),[s,t]=Ye(null),[a,w]=Ye(null),[l,g]=Ye(null),[m,S]=Ye(null),[N,B]=Ye(null),[F,M]=Ye(null),[v,I]=Ye(null);return En.createElement(ln.Provider,{value:{chainId:c,pk:s,address:a,signer:l,provider:m,vaultContract:N,vaultData:F,setChainId:p,setPk:t,setAddress:w,setSigner:g,setProvider:S,setVaultContract:B,setVaultData:M}},e.children)},Le=()=>{let e=kn(ln);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import xe,{useEffect as Ft,useState as Ie}from"react";import{debounce as la}from"lodash";var Oe=process.env.REACT_APP_NODE_ENV==="production"?8453:84532,ha=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",cn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],un=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],mn="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",fn={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},ht={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},vt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},P={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},At=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];import{contractAddress as In,Custody as Pn,Provider as _n,VerifiedWallet as Lt}from"@verified-network/verified-sdk";var Pe={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:P.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:P.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:P.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:P.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:P.baseIcon}};import Fn from"crypto";import Bt from"crypto-js";import{toast as gn}from"react-toastify";import yt from"react";import{toMultichainNexusAccount as Dn}from"@biconomy/abstractjs";import{base as Tn,baseSepolia as Ln,gnosis as Bn,mainnet as Vn,polygon as Un,sepolia as On}from"viem/chains";import{http as tt}from"viem";var nt=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.googleapis.com",e.head.appendChild(s)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let s=e.createElement("link");s.rel="preconnect",s.href="https://fonts.gstatic.com",e.head.appendChild(s)}return un.map(s=>{if(!e.querySelector(`link[href="${s}"]`)){let a=e.createElement("link");a.rel="stylesheet",a.href=s,e.head.appendChild(a)}}),!0},at=async(e,c)=>{var p,s,t,a,w;try{let l;if(c)l=new Lt(c);else{let z=Lt.generateMnemonic();l=Lt.importWallet(z)}let g=In,m=e&&((p=g[e])!=null&&p.Custody)&&((t=(s=Pe[e])==null?void 0:s.rpcUrls)==null?void 0:t.length)>0?e:Oe,S=(a=Pe[m])==null?void 0:a.rpcUrls[0],N=l.setProvider(new _n(S)),B=l.privateKey,F=new Pn(N,(w=g[m])==null?void 0:w.Custody),M=N,I=(await Dn({chains:[Tn,Vn,On,Bn,Ln,Un],transports:[tt(),tt(),tt(),tt(),tt(),tt()],signer:M})).addressOn(m);return{chainId:m,address:I,pk:B,signer:N,provider:S,vaultContract:F,vaultData:null}}catch(l){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",l),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},fe=e=>`0x${Fn.createHash("sha256").update(e==null?void 0:e.toLowerCase()).digest("hex")}`,Ze=(e,c)=>Bt.AES.encrypt(e,c).toString(),Re=(e,c)=>{var p=Bt.AES.decrypt(e,c),s=p.toString(Bt.enc.Utf8);return s};var Mn=(e,c)=>yt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},yt.createElement("img",{style:{marginLeft:"5px"},src:P.errorAlert,alt:""}),yt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},yt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),yt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},c)));var we=(e,c)=>(gn.dismiss(),gn.error(Mn(e,c),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));import Y,{useState as It}from"react";import bt from"react";var zn=e=>{var c;return bt.createElement("div",{className:"verified-custd-mdl-startup-slider"},((c=e.sliderCount)==null?void 0:c.length)>0&&e.sliderCount.map((p,s)=>bt.createElement(bt.Fragment,{key:s},s<=Number(e.currentSlider)&&bt.createElement("div",{key:`active-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),s>Number(e.currentSlider)&&bt.createElement("div",{key:`inactive-${s}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},De=zn;import T,{useState as Hn}from"react";var jn=e=>{var s;let[c,p]=Hn(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:P.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:t=>{t.target.value===""?p(null):e.type==="language"?p(e.searchContent.filter(a=>{if(a.name.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=a.name.split(""),a})):e.type==="area-code"&&p(e.searchContent.filter(a=>{var w,l;if((w=a==null?void 0:a.name)!=null&&w.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=(l=a==null?void 0:a.name)==null?void 0:l.split(""),a})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},T.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!c&&((s=e==null?void 0:e.searchContent)==null?void 0:s.length)>0&&e.searchContent.map((t,a)=>T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t.phone_code,flag:t.flag,name:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:P.circleClicked,alt:"Clicked Icon"}))))),c&&c.length>0&&c.map((t,a)=>{var w,l,g;return T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t==null?void 0:t.phone_code,flag:t==null?void 0:t.flag,name:t==null?void 0:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t==null?void 0:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((w=t==null?void 0:t.nameArray)==null?void 0:w.length)>0&&(t==null?void 0:t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m)))))),e.type==="language"&&T.createElement(T.Fragment,{key:a},window.location.search!==`?${a}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=t.nameArray)==null?void 0:l.length)>0&&t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m)))),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((g=t.nameArray)==null?void 0:g.length)>0&&t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m))),!t.searched.includes(t.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${t.label})`),t.searched.includes(t.label.toLowerCase())&&T.createElement("span",null,` (${t.label})`))),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:P.circleClicked,alt:"Clicked Icon"}))))}))))))},kt=jn;import Je from"react";var pn=()=>Je.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",Je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),hn=e=>Je.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",Je.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var c,p;e.setIsLoading(!0),(c=chrome==null?void 0:chrome.storage)!=null&&c.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!((p=chrome==null?void 0:chrome.storage)!=null&&p.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),it=()=>Je.createElement("div",{className:"verified-custd-mdl-privacy"},Je.createElement("img",{alt:"Privacy Icon",src:P.privacyTip,className:"verified-custd-mdl-privacy-icon"}),Je.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var Kn=e=>{var M;let[c,p]=It(""),[s,t]=It(""),[a,w]=It(!1),[l,g]=It(""),{pk:m,vaultContract:S,address:N}=Le(),B=()=>{var I,z;let v=document.getElementById("verified-custd-mdl-contact-button");v&&e.selectedCountry.area&&c.length===10||v&&((I=e.userEmail)==null?void 0:I.length)>0&&isNaN(Number(e.userEmail))&&((z=e.userEmail)!=null&&z.includes("@"))?(g(""),v.className="verified-custd-mdl-startup-button-active"):(g(""),v.className="verified-custd-mdl-startup-button")},F=async()=>{var v,I,z;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((v=e.userEmail)==null?void 0:v.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){g("Invalid input, please check your email");return}let D=((I=e.userEmail)==null?void 0:I.length)>0?e.userEmail:`+${e.selectedCountry.area}${c}`,L=((z=e.userEmail)==null?void 0:z.length)>0?"email":"sms";D&&L&&m&&S||D&&L&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(N,L,D).then(y=>{var A;e.setIsLoading(!1),y?(g(""),e.setStep("3")):(g(L==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),we("Oops something went wrong",((A=e.userEmail)==null?void 0:A.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?g(""):g("Network error. check your internet connection and try again.")}};return Y.createElement("div",{className:"verified-custd-mdl-startup-language"},Y.createElement("div",{className:"verified-custd-mdl-startup-contact"},Y.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),Y.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},e.enablePhone&&Y.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),!e.enablePhone&&Y.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your email address"),e.enablePhone&&Y.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Y.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},Y.createElement("div",{onClick:()=>{w(!a)},className:"verified-custd-mdl-st-contact-first-section"},Y.createElement("img",{onClick:()=>{w(!a)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),Y.createElement("p",{onClick:()=>{w(!a)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),a&&Y.createElement("img",{onClick:()=>{w(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!a&&Y.createElement("img",{onClick:()=>{w(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),Y.createElement("input",{onInputCapture:v=>{var D;v.target.value===""?t(s+" "):t(v.target.value);let I=(D=v.target.value)==null?void 0:D.replace(/\D/g,"");p(I);let z="";for(let L=0;L<(I==null?void 0:I.length);L++)z+=I[L],(L+1)%5===0&&L+1<(I==null?void 0:I.length)&&(z+=" ");e.setUserNumberFmt(z)},onInput:v=>{B()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),a&&Y.createElement(kt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:B,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:a,setSearchActive:w,contentMaxHeight:"300",contentbottomMargin:"300"}),c.length!==10&&s.length>10&&l===""&&Y.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Y.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&Y.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Y.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!a&&Y.createElement(Y.Fragment,null,e.enablePhone&&Y.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},Y.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),Y.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),Y.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),Y.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Y.createElement("input",{onInputCapture:v=>{var I;e.setUserEmail((I=v.target)==null?void 0:I.value),e.setUserNumberFmt(""),p(""),t("")},onInput:v=>{B()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((M=e.userEmail)==null?void 0:M.length)>0&&Y.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Y.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!a&&Y.createElement("div",{style:{height:"80px"}}),Y.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},Y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},Y.createElement(pn,null),Y.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async v=>{if(v.target.className.includes("verified-custd-mdl-startup-button")&&v.target.className!=="verified-custd-mdl-startup-button")v.target.className="verified-custd-mdl-startup-button-click",await F();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await F())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),Y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},Y.createElement(it,null)))))},Vt=Kn;import K,{useEffect as ta,useState as _t}from"react";import{AbiCoder as Gn,encodeBytes32String as Me}from"ethers";import{combine as Wn,split as $n}from"shamir-secret-sharing";import{contractAddress as xt,Custody as wt,Provider as st,VerifiedWallet as qe}from"@verified-network/verified-sdk";import{toMultichainNexusAccount as Yn}from"@biconomy/abstractjs";import{base as Zn,baseSepolia as Jn,gnosis as qn,mainnet as Xn,polygon as Qn,sepolia as Rn}from"viem/chains";import{http as ot}from"viem";var vn=async(e,c)=>{try{return await e.getCreator(c,"").then(async p=>{var s,t;if((p==null?void 0:p.status)===0)return!0;if(((s=p==null?void 0:p.reason)==null?void 0:s.toLowerCase())==="wallet not created")return!1;if(((t=p==null?void 0:p.reason)==null?void 0:t.toLowerCase())==="invalid pin")return!0})}catch{return null}},yn=async(e,c,p,s,t,a,w,l,g,m,S)=>{try{let N={vaultId:e,hashedVaultId:c,vaultPin:p,hashedVaultPin:s,vaultContract:l};return await l.getCreator(c,s).then(async B=>{var F,M,v,I,z,D,L,y;if((B==null?void 0:B.status)===0)try{let A=Me(p),V=Ze(a,A);if(g==="invitation")return{isExisting:!0,...N};if((F=chrome==null?void 0:chrome.storage)!=null&&F.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})}):!((M=chrome==null?void 0:chrome.storage)!=null&&M.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})),(v=chrome==null?void 0:chrome.runtime)!=null&&v.sendMessage)chrome.runtime.sendMessage({type:g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:s},txData:S}});else if(!((I=chrome==null?void 0:chrome.runtime)!=null&&I.sendMessage)){let k=new CustomEvent(g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",{detail:{value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:s},txData:S}}});window.dispatchEvent(k)}return g==="getPk"?{vaultId:e,hashedVaultId:c,pk:V,channel:t,shouldStop:!0}:{shouldStop:!0}}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",A),we("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((z=B==null?void 0:B.reason)==null?void 0:z.toLowerCase())==="invalid pin"){let A;return(D=chrome==null?void 0:chrome.storage)!=null&&D.local?A=await new Promise(V=>{chrome.storage.local.get(["lastPk"],k=>{V(k.lastPk)})}):!((L=chrome==null?void 0:chrome.storage)!=null&&L.local)&&localStorage&&(A=localStorage.getItem("lastPk")),g==="reset-pin"&&(m!=null&&m.hashedOldPin)&&(m!=null&&m.vaultContract)?await ea(c,m==null?void 0:m.hashedOldPin,s,m==null?void 0:m.vaultContract):A&&(A==null?void 0:A.length)>0?await l.confirmParticipant(c,s,c,s,!0).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){(k=chrome==null?void 0:chrome.storage)!=null&&k.local?await chrome.storage.local.remove("lastPk"):!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage&&localStorage.removeItem("lastPk");try{let _=await new qe(a).getAddress(),j=Me(p),ie=Ze(a,j);return(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.set({myVault:JSON.stringify({address:w,regAddress:_,vaultId:e,hashedVaultId:c,pk:ie,channel:t})}):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:w,regAddress:_,vaultId:e,hashedVaultId:c,pk:ie,channel:t})),N}catch(C){return we("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",C),!1}}else return we("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",V),!1}):null}else if(((y=B==null?void 0:B.reason)==null?void 0:y.toLowerCase())==="wallet not created")return await l.createVault(c,s).then(async A=>{var V,k;return(A==null?void 0:A.status)===0?((V=chrome==null?void 0:chrome.storage)!=null&&V.local?await chrome.storage.local.set({lastPk:a}):!((k=chrome==null?void 0:chrome.storage)!=null&&k.local)&&localStorage&&localStorage.setItem("lastPk",a),await l.confirmParticipant(c,s,c,s,!0).then(async d=>{var i,O,C,_;if((d==null?void 0:d.status)===0){(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.remove("lastPk"):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.removeItem("lastPk");try{let ie=await new qe(a).getAddress(),ne=Me(p),J=Ze(a,ne);return(C=chrome==null?void 0:chrome.storage)!=null&&C.local?await chrome.storage.local.set({myVault:JSON.stringify({address:w,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})}):!((_=chrome==null?void 0:chrome.storage)!=null&&_.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:w,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})),N}catch(j){return we("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",j),!1}}else return we("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",d),!1})):(we("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",A),!1)})})}catch(N){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",N),we("Oops something went wrong","Error while creating pin. Try again later"),!1}},bn=async(e,c,p,s,t,a,w,l,g,m)=>{var S,N,B,F;try{let M=Me(p),v=Re(t,M);if(v){let I=xt,z=new qe(v),D=l&&((S=I[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,L=(F=Pe[D])==null?void 0:F.rpcUrls[0],y=z.setProvider(new st(L)),A=new wt(y,I[D].Custody);return A?await A.getCreator(c,s).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){let C=await A.getQuorum(c,s);return(C==null?void 0:C.status)===0&&((d=(k=C==null?void 0:C.response)==null?void 0:k.result)==null?void 0:d.length)>0?g&&Number((i=C==null?void 0:C.response)==null?void 0:i.result[0])>0?{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p,pk:v}:Number((O=C==null?void 0:C.response)==null?void 0:O.result[0])===0?{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p,pk:v,inCompleteVault:!0}:{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(M){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",M),null}},Pt=async(e,c,p,s,t,a,w,l,g,m,S,N,B)=>{var M,v,I,z;let F;if(S)F=S;else{let D=xt,L=new qe(N),y=B&&((M=D[B])!=null&&M.Custody)&&((I=(v=Pe[B])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?B:Oe,A=(z=Pe[y])==null?void 0:z.rpcUrls[0],V=L.setProvider(new st(A));F=new wt(V,D[y].Custody)}return F?await F.confirmParticipant(a,t,s,w,m).then(async D=>(D==null?void 0:D.status)===0?(m?await e(p,l,g):await c(p,l,g),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(D=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",D),!1)):!1},xn=async(e,c,p,s,t,a,w,l,g,m,S,N)=>{let B=Number(p.length),M=(await $n(Uint8Array.from(N.split("").map(D=>D.charCodeAt(0))),Number(B),a)).map(D=>D.join(",")),v=Me(g),I=[],z=[];for(let D=0;D<p.length;D++){let L=p[D];await S.addParticipant(l,m,fe(L.vaultId),Ze(M[D],v)).then(async y=>{let A={creatorVaultId:w,vaultPin:g,creatorHashedVaultId:l,creatorHashedVaultPin:m,cosigner:L.vaultId,hashedCosigner:fe(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:Ze(M[D],v),...L};(y==null?void 0:y.status)===0?(z.push(A),L.vaultId!==w&&await e(L.otpChannel,L.vaultId,w,m).then(V=>{V||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):I.push(A)}),await new Promise(y=>setTimeout(y,1e3))}return(I==null?void 0:I.length)>0||(z==null?void 0:z.length)!==(p==null?void 0:p.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),we("Oops somethin went wrong","error while adding co-signers"),!1):await S.defineQuorum(l,m,a.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let L=s==null?void 0:s.map(y=>{var A;return{name:y==null?void 0:y.name,email:y==null?void 0:y.email,phoneNumber:y==null?void 0:y.phoneNumber,contactType:(A=String(y==null?void 0:y.otpChannel))==null?void 0:A.toUpperCase(),position:`${fn[Number(y==null?void 0:y.position)]} Co-Signer`}});return await c(t,w,L,Number(a)).then(y=>{y||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),we("Oops somethin went wrong","error while saving vault keys"),!1})},wn=async(e,c,p,s,t,a,w,l)=>{var S,N,B,F;let g=Me(t),m=Re(a,g);if(m){let M=xt,v=new qe(m),I=l&&((S=M[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new st(z)),L=new wt(D,M[I].Custody);if(L)return await L.promptSignatures(c,p).then(async y=>{var A,V,k,d,i,O,C;if((y==null?void 0:y.status)===0&&((V=(A=y==null?void 0:y.response)==null?void 0:A.result)!=null&&V.logs)){let _=new Gn,j=(i=(d=(k=y==null?void 0:y.response)==null?void 0:k.result)==null?void 0:d.logs)==null?void 0:i.filter(Q=>{var H,oe,R,re,o;return((H=Q==null?void 0:Q.address)==null?void 0:H.toLowerCase())===((oe=M[I].Custody)==null?void 0:oe.toLowerCase())&&((o=(R=Q==null?void 0:Q.topics)==null?void 0:R.map(E=>E==null?void 0:E.toLowerCase()))==null?void 0:o.includes((re=mn)==null?void 0:re.toLowerCase()))}),ie=(O=j[0])==null?void 0:O.data,ne=(C=_.decode(["bytes32","bytes32","uint256"],ie))==null?void 0:C.map((Q,H)=>H<2?Q:Number(Q)).flat(),J=ne[(ne==null?void 0:ne.length)-1];return await e(w,s,p,Number(J),Number(j==null?void 0:j.length)),!0}else return!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},Nn=async(e,c,p,s,t,a,w,l,g,m,S,N)=>{var M,v,I,z;let B=Me(a),F=Re(w,B);if(F){let D=xt,L=new qe(F),y=N&&((M=D[N])!=null&&M.Custody)&&((I=(v=Pe[N])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?N:Oe,A=(z=Pe[y])==null?void 0:z.rpcUrls[0],V=L.setProvider(new st(A)),k=new wt(V,D[y].Custody);if(k)return await k.signTransaction(g,s,p,S,m).then(async d=>(d==null?void 0:d.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,t),await k.checkQuorum(g,m,p,S).then(async i=>{var O,C;return(i==null?void 0:i.status)===0&&((O=i==null?void 0:i.response)!=null&&O.result)?(((C=i==null?void 0:i.response)==null?void 0:C.result[0])===!0&&await c(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(S)),!0):!1})):!1).catch(d=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",d),!1))}},Cn=async(e,c,p,s,t,a,w,l)=>{var S,N,B,F;let g=Me(s),m=Re(t,g);if(m){let M=xt,v=new qe(m),I=l&&((S=M[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new st(z)),L=new wt(D,M[I].Custody);return L?await L.checkQuorum(e,c,e,a).then(async y=>{var A,V;return(y==null?void 0:y.status)===0&&((A=y==null?void 0:y.response)!=null&&A.result)&&((V=y==null?void 0:y.response)==null?void 0:V.result[0])===!0?await L.getShards(e,c,a).then(async k=>{var d,i,O,C;if((k==null?void 0:k.status)===0&&((d=k==null?void 0:k.response)!=null&&d.result)){let _=(i=k==null?void 0:k.response)==null?void 0:i.result.filter(j=>j!=="");if(_.length>1){let j=Me(s),ne=_.map(H=>Re(H,j)).map(H=>new Uint8Array(H.split(",").map(Number))),J=await Wn(ne),Q=new TextDecoder().decode(J);if(Q){let H=Me(s),oe=Ze(Q,H),R=new qe(Q),re=await R.getAddress(),E=R.setProvider(new st(z)),te=(await Yn({chains:[Zn,Xn,Rn,qn,Jn,Qn],transports:[ot(),ot(),ot(),ot(),ot(),ot()],signer:E})).addressOn(I);return(O=chrome==null?void 0:chrome.storage)!=null&&O.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:te,regAddress:re,vaultId:p,hashedVaultId:e,pk:oe,channel:w})})):!((C=chrome==null?void 0:chrome.storage)!=null&&C.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:te,regAddress:re,vaultId:p,hashedVaultId:e,pk:oe,channel:w}))),!0}}else return!1}else return!1}).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",y),!1)):!1}},ea=async(e,c,p,s)=>await s.resetPin(e,c,p).then(async t=>(t==null?void 0:t.status)===0?await s.confirmParticipant(e,p,e,p,!0).then(w=>(w==null?void 0:w.status)===0?{}:null):null);var na=e=>{var D,L,y,A,V,k;let[c,p]=_t(!1),[s,t]=_t(60),[a,w]=_t(!1),[l,g]=_t(""),{pk:m,vaultContract:S,address:N}=Le();ta(()=>{if(s===0)return;let d=setInterval(()=>{t(i=>i-1)},1e3);return()=>clearInterval(d)},[s]);let B=d=>{if(d.value.length>0){let i=d.nextElementSibling;i&&i.focus()}else d.value.length===0&&d.focus()},F=d=>{let i=d.clipboardData.getData("text"),O=i==null?void 0:i.replace(/\D/g,""),C=document.getElementsByClassName("otp-input");if((C==null?void 0:C.length)===4&&(O==null?void 0:O.length)>0)for(let _=0;_<C.length;_++)O[_]&&(C[_].value=O[_],C[_].focus())},M=d=>{let i=d.target.previousElementSibling;i&&i.focus()},v=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),i=document.getElementById("verified-custd-mdl-otp-input-1"),O=document.getElementById("verified-custd-mdl-otp-input-2"),C=document.getElementById("verified-custd-mdl-otp-input-3"),_=document.getElementById("verified-custd-mdl-otp-input-4");d&&(i==null?void 0:i.value.length)>0&&(O==null?void 0:O.value.length)>0&&(C==null?void 0:C.value.length)>0&&(_==null?void 0:_.value.length)>0&&!a?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},I=async()=>{var d,i,O,C,_,j,ie,ne,J,Q;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),w(!0);else{let H=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,oe=document.getElementById("verified-custd-mdl-otp-input-1"),R=document.getElementById("verified-custd-mdl-otp-input-2"),re=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");if(((O=oe==null?void 0:oe.value)==null?void 0:O.length)>0&&((C=R==null?void 0:R.value)==null?void 0:C.length)>0&&((_=re==null?void 0:re.value)==null?void 0:_.length)>0&&((j=o==null?void 0:o.value)==null?void 0:j.length)>0&&H&&m&&S||((ie=oe==null?void 0:oe.value)==null?void 0:ie.length)>0&&((ne=R==null?void 0:R.value)==null?void 0:ne.length)>0&&((J=re==null?void 0:re.value)==null?void 0:J.length)>0&&((Q=o==null?void 0:o.value)==null?void 0:Q.length)>0&&H&&e.noContract){e.setIsLoading(!0);let E=(oe==null?void 0:oe.value)+(R==null?void 0:R.value)+(re==null?void 0:re.value)+(o==null?void 0:o.value);await e.helperFunctions.checkOTPVerification(N,H,String(E)).then(async ee=>{if(ee){let te=fe(H),G=!1;if(e.noContract||(G=await vn(S,te)),G===null){g("Unexpected error while fetching account details. Try again later."),w(!0);return}e.setIsExistingUser&&e.setIsExistingUser(G),e.setIsLoading(!1),e.setStep("4")}else e.setIsLoading(!1),w(!0)})}}},z=async()=>{var d,i,O;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),w(!0);else{let C=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,_=((O=e.userEmail)==null?void 0:O.length)>0?"email":"sms";C&&_&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(N,_,C).then(j=>{if(e.setIsLoading(!1),j){t(60),w(!1),g("");let ie=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),J=document.getElementById("verified-custd-mdl-otp-input-3"),Q=document.getElementById("verified-custd-mdl-otp-input-4");ie.value="",ne.value="",J.value="",Q.value=""}else we("Oops something went wrong","Unexpected error")}))}};return K.createElement("div",{className:"verified-custd-mdl-startup-language"},K.createElement("div",{className:"verified-custd-mdl-startup-contact"},K.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},K.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",K.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((D=e.userNumberFmt)==null?void 0:D.length)>0?"phone number":"email address"),K.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},K.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((L=e.userNumberFmt)==null?void 0:L.length)>0&&K.createElement(K.Fragment,null,K.createElement("span",null,"(+",(y=e.selectedCountry)==null?void 0:y.area,")")," ",K.createElement("span",null," ",(A=e.userNumberFmt)==null?void 0:A.split(" ")[0])," ",K.createElement("span",null," ",(V=e.userNumberFmt)==null?void 0:V.split(" ")[1])),((k=e.userEmail)==null?void 0:k.length)>0&&K.createElement("span",null,e.userEmail)),K.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:P.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),K.createElement("div",{className:"verified-custd-mdl-otp-input-container"},K.createElement("div",{className:"verified-custd-mdl-otp-input-group"},K.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},onPaste:d=>{F(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),K.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),K.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),K.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),K.createElement("div",{className:"verified-custd-mdl-otp-timer"},!a&&s>5&&l===""&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},K.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),s),!a&&s<=5&&s>0&&l===""&&K.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},K.createElement("span",{style:{fontWeight:400}},"00:"),s),!a&&s===0&&l===""&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),a&&l===""&&K.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),a&&(l==null?void 0:l.length)>0&&K.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},l),!a&&s>0&&l===""&&K.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!a&&s===0&&l===""&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),a&&l===""&&K.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!c&&K.createElement("div",{style:{height:"100px"}}),K.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},K.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await I();else{let i=document.getElementsByClassName("verified-custd-mdl-startup-button-active");i.length>0&&(i[0].className="verified-custd-mdl-startup-button-click",await I())}},className:"verified-custd-mdl-startup-button"},"Proceed"),K.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},K.createElement(it,null)))))},Ut=na;import h,{useState as ze}from"react";import Xe from"react";var aa=e=>{var t,a;let c=e.showButton?null:setTimeout(()=>{var w,l,g,m;if(e.messageTosend)try{if((w=chrome==null?void 0:chrome.runtime)!=null&&w.sendMessage)chrome.runtime.sendMessage(e.messageTosend,S=>{S&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let S=new CustomEvent((g=e.messageTosend)==null?void 0:g.type,{detail:{value:(m=e.messageTosend)==null?void 0:m.value}});window.dispatchEvent(S)}}catch(S){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",S),we("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),p=()=>{e.setStep("6")},s=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return Xe.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},Xe.createElement("div",{className:"verified-custd-mdl-success-popup-content"},Xe.createElement("img",{style:{width:"90%"},src:P.successIcon,alt:"Success Icon"}),Xe.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},Xe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),Xe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((t=e.buttonText)==null?void 0:t.length)>0&&Xe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&p()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((a=e.buttonNeutText)==null?void 0:a.length)>0&&Xe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&s()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Be=aa;var ia=e=>{var J,Q,H,oe,R,re;let[c,p]=ze(!1),[s,t]=ze(!1),[a,w]=ze(""),[l,g]=ze(!0),[m,S]=ze(!1),[N,B]=ze(!1),[F,M]=ze(!1),[v,I]=ze(""),[z,D]=ze(""),[L,y]=ze(!1),{address:A,pk:V,vaultContract:k,setVaultData:d,setChainId:i,vaultData:O}=Le(),C=o=>{if(o.value.length>0){let E=o.nextElementSibling;E&&E.focus()}else o.value.length===0&&o.focus()},_=o=>{let E=o.target.previousElementSibling;E&&E.focus()},j=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),E=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),te=document.getElementById("verified-custd-mdl-otp-input-3"),G=document.getElementById("verified-custd-mdl-otp-input-4"),f=document.getElementById("verified-custd-mdl-otp-input-5"),u=document.getElementById("verified-custd-mdl-otp-input-6"),Z=document.getElementById("verified-custd-mdl-otp-input-7"),q=document.getElementById("verified-custd-mdl-otp-input-8");!e.isExistingUser&&o&&(E==null?void 0:E.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(G==null?void 0:G.value.length)>0&&(f==null?void 0:f.value.length)>0&&(u==null?void 0:u.value.length)>0&&(Z==null?void 0:Z.value.length)>0&&(q==null?void 0:q.value.length)>0||e.isExistingUser&&o&&(E==null?void 0:E.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(G==null?void 0:G.value.length)>0?!e.isExistingUser&&(E==null?void 0:E.value)+(ee==null?void 0:ee.value)+(te==null?void 0:te.value)+(G==null?void 0:G.value)===(f==null?void 0:f.value)+(u==null?void 0:u.value)+(Z==null?void 0:Z.value)+(q==null?void 0:q.value)||e.isExistingUser?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",t(!0)):o.className="verified-custd-mdl-startup-button"},ie=async()=>{var o,E,ee,te,G,f,u,Z,q,ae,W,X,ge,x,U,de,ce,ue,Ve,Ee,Ae,ke,se,le,r,pe,_e,Qe,dt,lt,ct,ut,mt,ft;if(!e.helperFunctions)w("No Helper Functions. Please include all helper functions in the CreatePinPage props."),t(!0);else{w(""),t(!1);let he=document.getElementById("verified-custd-mdl-otp-input-1"),ve=document.getElementById("verified-custd-mdl-otp-input-2"),ye=document.getElementById("verified-custd-mdl-otp-input-3"),be=document.getElementById("verified-custd-mdl-otp-input-4"),He=document.getElementById("verified-custd-mdl-otp-input-5"),je=document.getElementById("verified-custd-mdl-otp-input-6"),Ke=document.getElementById("verified-custd-mdl-otp-input-7"),Ge=document.getElementById("verified-custd-mdl-otp-input-8"),We=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(E=e.userNumberFmt)==null?void 0:E.replace(" ","")}`,$e=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(!e.isExistingUser&&((te=he==null?void 0:he.value)==null?void 0:te.length)>0&&((G=ve==null?void 0:ve.value)==null?void 0:G.length)>0&&((f=ye==null?void 0:ye.value)==null?void 0:f.length)>0&&((u=be==null?void 0:be.value)==null?void 0:u.length)>0&&((Z=He==null?void 0:He.value)==null?void 0:Z.length)>0&&((q=je==null?void 0:je.value)==null?void 0:q.length)>0&&((ae=Ke==null?void 0:Ke.value)==null?void 0:ae.length)>0&&((W=Ge==null?void 0:Ge.value)==null?void 0:W.length)>0&&We&&$e&&V&&A&&k||!e.isExistingUser&&((X=he==null?void 0:he.value)==null?void 0:X.length)>0&&((ge=ve==null?void 0:ve.value)==null?void 0:ge.length)>0&&((x=ye==null?void 0:ye.value)==null?void 0:x.length)>0&&((U=be==null?void 0:be.value)==null?void 0:U.length)>0&&((de=He==null?void 0:He.value)==null?void 0:de.length)>0&&((ce=je==null?void 0:je.value)==null?void 0:ce.length)>0&&((ue=Ke==null?void 0:Ke.value)==null?void 0:ue.length)>0&&((Ve=Ge==null?void 0:Ge.value)==null?void 0:Ve.length)>0&&We&&$e&&((Ee=e.vaultData)!=null&&Ee.vaultContract)&&((Ae=e.vaultData)!=null&&Ae.hashedOldPin)||e.isExistingUser&&((ke=he==null?void 0:he.value)==null?void 0:ke.length)>0&&((se=ve==null?void 0:ve.value)==null?void 0:se.length)>0&&((le=ye==null?void 0:ye.value)==null?void 0:le.length)>0&&((r=be==null?void 0:be.value)==null?void 0:r.length)>0&&We&&$e&&V&&A&&k||e.isExistingUser&&((pe=he==null?void 0:he.value)==null?void 0:pe.length)>0&&((_e=ve==null?void 0:ve.value)==null?void 0:_e.length)>0&&((Qe=ye==null?void 0:ye.value)==null?void 0:Qe.length)>0&&((dt=be==null?void 0:be.value)==null?void 0:dt.length)>0&&We&&$e&&((lt=e.vaultData)!=null&<.vaultContract)&&((ct=e.vaultData)!=null&&ct.hashedOldPin)){e.setIsLoading(!0);let et=(he==null?void 0:he.value)+(ve==null?void 0:ve.value)+(ye==null?void 0:ye.value)+(be==null?void 0:be.value),St=fe(We),Et=fe(et);await yn(We,St,et,Et,$e,V||((ut=e.vaultData)==null?void 0:ut.pk),A||((mt=e.vaultData)==null?void 0:mt.address),k||((ft=e.vaultData)==null?void 0:ft.vaultContract),e.action,e.vaultData,e.txData).then($=>{var gt,pt;e.setIsLoading(!1),$?(d($!=null&&$.shouldStop&&($!=null&&$.vaultId)?{vaultId:$==null?void 0:$.vaultId,hashedVaultId:$==null?void 0:$.hashedVaultId,pk:$==null?void 0:$.pk,channel:$==null?void 0:$.channel}:$!=null&&$.shouldStop?{}:$),w(""),t(!1),e.action==="invitation"?(D(et),S(!0)):e.action==="reset-pin"?((gt=chrome==null?void 0:chrome.storage)!=null&>.local?chrome.storage.local.remove("myVault"):!((pt=chrome==null?void 0:chrome.storage)!=null&&pt.local)&&localStorage&&localStorage.removeItem("myVault"),I("You have successfully reset your account pin. Login with the new pin"),M(!0)):$!=null&&$.shouldStop?$!=null&&$.shouldStop&&e.action!=="getPk"?(I(""),M(!0)):$!=null&&$.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):$===null?e.action==="reset-pin"?(w("Reset pin failed. Try again later."),t(!0)):(w("You are an existing user. Please input the right pin to recover your account."),t(!0)):(w("Unexpected error while creating account. Please try again later."),t(!0))})}}},ne=async o=>{var te,G,f,u,Z,q,ae,W;let E=((te=e.userEmail)==null?void 0:te.length)>0?e.userEmail:`+${e.selectedCountry.area}${(G=e.userNumberFmt)==null?void 0:G.replace(" ","")}`,ee=((f=e.userEmail)==null?void 0:f.length)>0?"email":"sms";if((z==null?void 0:z.length)===4&&((u=e==null?void 0:e.vaultData)!=null&&u.hashedVaultId)&&((Z=e.vaultData)!=null&&Z.hashedVaultPin)&&E){e.setIsLoading(!0);let X=fe(E),ge=fe(z);await Pt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,X,ge,(q=e==null?void 0:e.vaultData)==null?void 0:q.hashedVaultId,(ae=e.vaultData)==null?void 0:ae.hashedVaultPin,(W=e.vaultData)==null?void 0:W.vaultId,E,o,k).then(x=>{var U,de;e.setIsLoading(!1),x&&!(O!=null&&O.isExisting)&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(o?`You have been added as a Co-Signer for ${(U=e.vaultData)==null?void 0:U.vaultId}`:`You rejected Co-signer reject from ${(de=e.vaultData)==null?void 0:de.vaultId}`),e.setStep("5")):x&&(O!=null&&O.isExisting)&&B(!0)})}};return h.createElement(h.Fragment,null,!F&&!m&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter PIN"),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."),e.isExistingUser&&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"}},((J=e.userEmail)==null?void 0:J.length)>0?e.userEmail:`+${e.selectedCountry.area}${(Q=e.userNumberFmt)==null?void 0:Q.replace(" ","")}`)," ","account."))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&h.createElement("p",null),s&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:P.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:P.pinHide,alt:"hide pin icon"}))),!e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&_(o)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!s&&h.createElement("p",null),s&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:P.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:P.pinHide,alt:"hide pin icon"})))),!c&&h.createElement("div",{style:{height:"30px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await ie();else{let E=document.getElementsByClassName("verified-custd-mdl-startup-button-active");E.length>0&&(E[0].className="verified-custd-mdl-startup-button-click",await ie())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!F&&m&&h.createElement(h.Fragment,null,!N&&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(De,{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,(H=e.vaultData)==null?void 0:H.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!L&&h.createElement(h.Fragment,null,h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},h.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),h.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:P.pkicon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},h.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},h.createElement("img",{src:P.encryptedIcon,alt:"icon"})),h.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",h.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),h.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},h.createElement("button",{onClick:()=>{y(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await ne(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),L&&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,(oe=e.vaultData)==null?void 0:oe.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 ne(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),N&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:L?`You rejected Co-signer reject from ${(re=e.vaultData)==null?void 0:re.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),F&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(v==null?void 0:v.length)>0?v:"You have successfully logged in your account."}))},Nt=ia;import n,{useState as Ne}from"react";var oa=e=>{var E,ee,te,G;let[c,p]=Ne(!1),[s,t]=Ne("1"),[a,w]=Ne("1"),[l,g]=Ne(!1),[m,S]=Ne("email"),[N,B]=Ne(""),[F,M]=Ne(""),[v,I]=Ne(""),[z,D]=Ne(""),[L,y]=Ne(""),[A,V]=Ne(!1),[k,d]=Ne(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[i,O]=Ne([]),[C,_]=Ne(!1),[j,ie]=Ne(2),[ne,J]=Ne(""),{pk:Q,vaultData:H,vaultContract:oe}=Le(),R=()=>{let f=document.getElementById("add-cosigner-button");f&&(i==null?void 0:i.length)>0?f.className="startup-button-active":f.className="startup-button"},re=()=>{var u,Z,q,ae;if(m==="sms"&&(N==null?void 0:N.length)===0){J("Invalid input, please check the phone number");return}else if(m==="sms"&&(N==null?void 0:N.length)!==10){J("Invalid input, please check the phone number");return}else if(m==="email"&&(v==null?void 0:v.length)===0){J("Invalid input, please check the email");return}else if(m==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){J("Invalid input, please check the email");return}else if(i!=null&&i.find(W=>{var X,ge,x,U;return(W==null?void 0:W.otpChannel)==="sms"?((X=W==null?void 0:W.phoneArea)==null?void 0:X.toLowerCase())+((ge=W==null?void 0:W.number)==null?void 0:ge.toLowerCase())===((x=k.area)==null?void 0:x.toLowerCase())+(F==null?void 0:F.toLowerCase()):((U=W==null?void 0:W.email)==null?void 0:U.toLowerCase())===(v==null?void 0:v.toLowerCase())})){J(m==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(m==="sms"&&((u=k==null?void 0:k.area)==null?void 0:u.toLowerCase())+(F==null?void 0:F.toLowerCase())===((Z=e.selectedCountry.area)==null?void 0:Z.toLowerCase())+((q=e.userNumberFmt)==null?void 0:q.toLowerCase())){J("Invalid input, phone number is creator's phone number");return}else if(m==="email"&&(v==null?void 0:v.toLowerCase())===((ae=e.userEmail)==null?void 0:ae.toLowerCase())){J("Invalid input, email is creator's email");return}J("");let f=i==null?void 0:i.length;O(W=>[{name:z,email:v,number:F,phoneNumber:`+${k==null?void 0:k.area}${N}`,otpChannel:m,phoneArea:k==null?void 0:k.area,position:(W==null?void 0:W.length)+1,vaultId:m==="sms"?`+${k==null?void 0:k.area}${N}`:v},...W]),I(""),D(""),B(""),M(""),y(""),f+1===4&&g(!1)},o=async()=>{var u,Z,q,ae,W,X;let f=[{otpChannel:((u=e==null?void 0:e.userEmail)==null?void 0:u.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(Z=e==null?void 0:e.selectedCountry)==null?void 0:Z.area}${(q=e==null?void 0:e.userNumberFmt)==null?void 0:q.replace(" ","")}`,vaultId:H==null?void 0:H.vaultId},...i];(f==null?void 0:f.length)>0&&(i==null?void 0:i.length)>0&&j&&(H!=null&&H.vaultId)&&(H!=null&&H.hashedVaultId)&&(H!=null&&H.vaultPin)&&(H!=null&&H.hashedVaultPin)&&oe&&Q&&((ae=e.helperFunctions)!=null&&ae.sendCoSignerInvitation)&&((W=e.helperFunctions)!=null&&W.sendCreatorConfirmation)&&(e.setIsLoading(!0),await xn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,f,i,((X=e==null?void 0:e.userEmail)==null?void 0:X.length)>0?"email":"sms",j,H.vaultId,H.hashedVaultId,H.vaultPin,H.hashedVaultPin,oe,Q).then(ge=>{e.setIsLoading(!1),ge&&e.setStep("7")}))};return n.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!c&&n.createElement(n.Fragment,null,a==="1"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:P.pkicon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:P.encryptedIcon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:P.supervise,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",n.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."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>{t("1"),p(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),n.createElement("button",{onClick:()=>{w("2"),g(!1),p(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),a==="2"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),n.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!C&&n.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."),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},n.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."))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((E=e.userEmail)==null?void 0:E.length)>0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((ee=e.userEmail)==null?void 0:ee.length)===0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!C&&i.sort((f,u)=>(f==null?void 0:f.position)-(u==null?void 0:u.position)).map((f,u)=>{var Z,q;return n.createElement("div",{key:u,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(Z=ht[f==null?void 0:f.position])==null?void 0:Z.split(" ")[0],n.createElement("sup",null,(q=ht[f==null?void 0:f.position])==null?void 0:q.split(" ")[1])," ","Co-Signer")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},f==null?void 0:f.name),f.otpChannel==="email"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},f.email),f.otpChannel==="sms"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",f==null?void 0:f.phoneArea,") ",f.number))),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},n.createElement("img",{style:{cursor:"pointer"},src:P.editBlack,alt:"edit"}),n.createElement("img",{onClickCapture:()=>{O(ae=>{var W;return(W=ae==null?void 0:ae.filter(X=>{var ge,x,U,de,ce,ue;return(X==null?void 0:X.otpChannel)==="sms"?((ge=X==null?void 0:X.phoneArea)==null?void 0:ge.toLowerCase())+((x=X==null?void 0:X.number)==null?void 0:x.toLowerCase())!==((U=f==null?void 0:f.phoneArea)==null?void 0:U.toLowerCase())+((de=f==null?void 0:f.number)==null?void 0:de.toLowerCase()):((ce=X==null?void 0:X.email)==null?void 0:ce.toLowerCase())!==((ue=f==null?void 0:f.email)==null?void 0:ue.toLowerCase())}))==null?void 0:W.map((X,ge)=>(X.position=ge+1,X))})},onClick:()=>{R()},style:{cursor:"pointer"},src:P.delete,alt:"delete"}))))})),C&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},n.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"),n.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.")),n.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("div",{style:u+1===j?{}:{height:"0",width:"0",overflow:"hidden"},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(u+1))," "),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:P.pointer,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},n.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:P.sliderDot,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("p",{style:u===(i==null?void 0:i.length)?{paddingRight:"12px"}:u===0?{paddingLeft:"12px"}:{},onClick:()=>{u+1>1&&ie(u+1)},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1)))))),n.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",await o();else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click"),await o()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&n.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(te=ht[(i==null?void 0:i.length)+1])==null?void 0:te.split(" ")[0],n.createElement("sup",null,(G=ht[(i==null?void 0:i.length)+1])==null?void 0:G.split(" ")[1])," ","Co-Signer"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},n.createElement("input",{onInput:f=>{D(f.target.value)},value:z,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{S("sms"),J(""),I("")},src:m==="sms"?P.selectClicked:P.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{S("email"),J(""),B(""),M(""),y("")},src:m==="email"?P.selectClicked:P.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},m==="sms"&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},n.createElement("div",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-first-section"},n.createElement("img",{onClick:()=>{V(!A)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:k.flag}),n.createElement("p",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",k.area),A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowUp}),!A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:P.arrowDown})),n.createElement("input",{onInputCapture:f=>{var q;f.target.value===""?y(L+" "):y(f.target.value);let u=(q=f.target.value)==null?void 0:q.replace(/\D/g,"");B(u);let Z="";for(let ae=0;ae<(u==null?void 0:u.length);ae++)Z+=u[ae],(ae+1)%5===0&&ae+1<(u==null?void 0:u.length)&&(Z+=" ");M(Z),J("")},onInput:f=>{R()},value:F,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),A&&n.createElement(kt,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:R,setSelected:d,selected:k,searchActive:A,setSearchActive:V,contentMaxHeight:"300",contentbottomMargin:"300"}),ne===""&&N.length!==10&&L.length>10&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))),m==="email"&&n.createElement(n.Fragment,null,n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("input",{style:{width:"100%"},onInputCapture:f=>{I(f.target.value),J("")},onInput:f=>{R()},value:v,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},n.createElement("button",{onClick:()=>g(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),n.createElement("button",{onClickCapture:()=>{re()},onClick:()=>R(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!C&&(i==null?void 0:i.length)<4&&n.createElement("div",{onClick:()=>g(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},n.createElement("img",{style:{width:"20px"},src:P.addIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!C&&(i==null?void 0:i.length)===4&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},n.createElement("img",{style:{width:"20px"},src:P.addDisableIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!C&&n.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},id:"add-cosigner-button",onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),_(!0),g(!1));else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),_(!0),g(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),c&&n.createElement(n.Fragment,null,s==="1"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon2,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),n.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."," ")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>p(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="2"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon3,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),n.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")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),s==="3"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon4,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),n.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."),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>{w("2"),g(!1),p(!1),t("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},Ct=oa;import b,{useEffect as sa,useState as Ce}from"react";import{ethers as ra}from"ethers";var da=e=>{var q,ae,W,X,ge;let[c,p]=Ce(e.fontsLoaded||!1),[s,t]=Ce(!1),[a,w]=Ce(!0),[l,g]=Ce(!1),[m,S]=Ce(!1),[N,B]=Ce(null),[F,M]=Ce(null),[v,I]=Ce(e.newChainId||Oe),[z,D]=Ce(!1),[L,y]=Ce(!1),[A,V]=Ce(!1),[k,d]=Ce(!1),[i,O]=Ce(!1),[C,_]=Ce(""),[j,ie]=Ce(!1),[ne,J]=Ce({}),{setChainId:Q,setAddress:H,setPk:oe,setProvider:R,setSigner:re,setVaultContract:o,setVaultData:E}=Le();sa(()=>{let x=()=>{let U=nt(document);p(U)};e.fontsLoaded||x()},[]);let ee=x=>{if(x.value.length>0){let U=x.nextElementSibling;U&&U.focus()}else x.value.length===0&&x.focus()},te=x=>{let U=x.clipboardData.getData("text"),de=U==null?void 0:U.replace(/\D/g,""),ce=document.getElementsByClassName("otp-input");if((ce==null?void 0:ce.length)===4&&(de==null?void 0:de.length)>0)for(let ue=0;ue<ce.length;ue++)de[ue]&&(ce[ue].value=de[ue],ce[ue].focus())},G=x=>{let U=x.target.previousElementSibling;U&&U.focus()},f=()=>{let x=document.getElementById("verified-custd-mdl-otp-button"),U=document.getElementById("verified-custd-mdl-otp-input-1"),de=document.getElementById("verified-custd-mdl-otp-input-2"),ce=document.getElementById("verified-custd-mdl-otp-input-3"),ue=document.getElementById("verified-custd-mdl-otp-input-4");x&&(U==null?void 0:U.value.length)>0&&(de==null?void 0:de.value.length)>0&&(ce==null?void 0:ce.value.length)>0&&(ue==null?void 0:ue.value.length)>0&&!s?x.className="verified-custd-mdl-startup-button-active":x.className="verified-custd-mdl-startup-button"},u=async()=>{var x,U,de,ce,ue,Ve;if(!e.helperFunctions)_("No Helper Functions. Please include all helper functions in the EnterPinPage props."),t(!0);else{_(""),t(!1);let Ee=document.getElementById("verified-custd-mdl-otp-input-1"),Ae=document.getElementById("verified-custd-mdl-otp-input-2"),ke=document.getElementById("verified-custd-mdl-otp-input-3"),se=document.getElementById("verified-custd-mdl-otp-input-4");if(((x=Ee==null?void 0:Ee.value)==null?void 0:x.length)>0&&((U=Ae==null?void 0:Ae.value)==null?void 0:U.length)>0&&((de=ke==null?void 0:ke.value)==null?void 0:de.length)>0&&((ce=se==null?void 0:se.value)==null?void 0:ce.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let le=(Ee==null?void 0:Ee.value)+(Ae==null?void 0:Ae.value)+(ke==null?void 0:ke.value)+(se==null?void 0:se.value);await bn(e.vaultId,e.hashedVaultId,le,fe(le),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(v),(Ve=cn)==null?void 0:Ve.includes((ue=e.origin)==null?void 0:ue.toLowerCase())).then(async r=>{var pe,_e,Qe,dt,lt,ct,ut,mt,ft,he,ve,ye,be,He,je,Ke,Ge,We,$e,et,St,Et,$,gt,pt,Mt,zt,Ht,jt,Kt,Gt,Wt,$t,Yt,Zt,Jt,qt,Xt,Qt,Rt,en,tn,nn,an,on,sn;if(r&&!(r!=null&&r.inCompleteVault))e.setIsLoading(!1),B(r),M(r!=null&&r.pk&&e.action!=="eth_requestAccounts"?{address:r.address,channel:r.channel,chainId:r.chainId,pk:r==null?void 0:r.pk}:{address:e.regAddress,channel:r.channel,chainId:r.chainId}),e.action==="getPk"&&((_e=(pe=e.reqVaultData)==null?void 0:pe.vaultId)==null?void 0:_e.toLowerCase())===((Qe=e.vaultId)==null?void 0:Qe.toLowerCase())?(e.setIsLoading(!0),await wn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),(Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),Fe?S(!0):(_("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),t(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Nn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(dt=e.reqVaultData)==null?void 0:dt.vaultId,(lt=e.reqVaultData)==null?void 0:lt.hashedVaultId,(ct=e.reqVaultData)==null?void 0:ct.hashedVaultPin,(ut=e.reqTxData)==null?void 0:ut.id,Number(v)).then(async Fe=>{var Te,Ue,rn,dn;e.setIsLoading(!1),!((Te=e.reqTxData)!=null&&Te.newUser)&&((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((rn=e.reqTxData)!=null&&rn.newUser)&&!((dn=chrome==null?void 0:chrome.storage)!=null&&dn.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Fe?S(!0):(_("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),t(!0))})):e.action==="completeRecovery"&&((ft=(mt=e.reqVaultData)==null?void 0:mt.vaultId)==null?void 0:ft.toLowerCase())===((he=e.vaultId)==null?void 0:he.toLowerCase())?(e.setIsLoading(!0),await Cn(e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(ve=e.reqTxData)==null?void 0:ve.id,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),Fe?S(!0):((Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),_("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),t(!0))})):e.action==="eth_sendTransaction"&&((ye=e.encrptedPk)==null?void 0:ye.length)>0&&((be=r==null?void 0:r.pin)==null?void 0:be.length)>0&&e.signTxElement?(J({chainId:v,ky:ra.encodeBytes32String(r==null?void 0:r.pin),...e.txToSign}),y(!1),ie(!0)):e.action==="invitation"&&((je=(He=e.reqVaultData)==null?void 0:He.vaultId)==null?void 0:je.toLowerCase())!==((Ke=e.vaultId)==null?void 0:Ke.toLowerCase())&&((We=(Ge=e.reqVaultData)==null?void 0:Ge.coSignerId)==null?void 0:We.toLowerCase())===(($e=e.vaultId)==null?void 0:$e.toLowerCase())?(_(""),t(!1),y(!0)):e.action==="invitation"&&((St=(et=e.reqVaultData)==null?void 0:et.vaultId)==null?void 0:St.toLowerCase())===((Et=e.vaultId)==null?void 0:Et.toLowerCase())?(_(`You cannot accept your own Co-Signer invitation. please logout and login to: ${($=e.reqVaultData)==null?void 0:$.coSignerId} account`),t(!0)):e.action==="invitation"&&((pt=(gt=e.reqVaultData)==null?void 0:gt.coSignerId)==null?void 0:pt.toLowerCase())!==((Mt=e.vaultId)==null?void 0:Mt.toLowerCase())?(_(`You cannot accept this Co-Signer invitation. please logout and login to: ${(zt=e.reqVaultData)==null?void 0:zt.coSignerId} account`),t(!0)):e.action==="getPk"&&((jt=(Ht=e.reqVaultData)==null?void 0:Ht.vaultId)==null?void 0:jt.toLowerCase())!==((Kt=e.vaultId)==null?void 0:Kt.toLowerCase())?((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local?await chrome.storage.local.remove("myVault"):!((Wt=chrome==null?void 0:chrome.storage)!=null&&Wt.local)&&localStorage&&localStorage.removeItem("myVault"),_(`You are not authorized to fetch account details. please logout and login to: ${($t=e.reqVaultData)==null?void 0:$t.vaultId} account`),t(!0)):e.action==="completeRecovery"&&((Zt=(Yt=e.reqVaultData)==null?void 0:Yt.vaultId)==null?void 0:Zt.toLowerCase())!==((Jt=e.vaultId)==null?void 0:Jt.toLowerCase())?((qt=chrome==null?void 0:chrome.storage)!=null&&qt.local?await chrome.storage.local.remove("myVault"):!((Xt=chrome==null?void 0:chrome.storage)!=null&&Xt.local)&&localStorage&&localStorage.removeItem("myVault"),_(`You are not authorized to restore login access for this account. please logout and login to: ${(Qt=e.reqVaultData)==null?void 0:Qt.vaultId} account`),t(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)||e.action==="eth_requestAccounts"&&!(e!=null&&e.vaultAddress)?(_("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),t(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(_("Incomplete account login detected. Logout and try again later"),t(!0)):(_(""),t(!1),S(!0));else if(r&&(r!=null&&r.inCompleteVault)&&(r!=null&&r.pk)){let Fe=await at(Number(v),r==null?void 0:r.pk);if(Q(Fe.chainId),H(Fe.address),oe(Fe.pk),R(Fe.provider),re(Fe.signer),o(Fe.vaultContract),E({vaultId:r==null?void 0:r.vaultId,hashedVaultId:r==null?void 0:r.hashedVaultId,vaultPin:r==null?void 0:r.pin,hashedVaultPin:fe(r==null?void 0:r.pin),vaultContract:Fe.vaultContract}),((Rt=r==null?void 0:r.channel)==null?void 0:Rt.toLowerCase())==="sms"){let Te=(tn=r==null?void 0:r.vaultId)==null?void 0:tn.replace((en=r==null?void 0:r.vaultId)==null?void 0:en.slice(-10),""),Ue=((an=(nn=r==null?void 0:r.vaultId)==null?void 0:nn.slice(-10))==null?void 0:an.slice(0,5))+" "+((sn=(on=r==null?void 0:r.vaultId)==null?void 0:on.slice(-10))==null?void 0:sn.slice(5));e.setSelectedCountry({area:Te==null?void 0:Te.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ue),e.setUserEmail("")}else e.setUserEmail(r==null?void 0:r.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else _(""),t(!0),e.setIsLoading(!1)})}}},Z=async x=>{var de,ce,ue,Ve,Ee,Ae,ke,se,le;let U=e.vaultId;if(((de=N==null?void 0:N.pin)==null?void 0:de.length)>0&&((ce=N==null?void 0:N.pk)==null?void 0:ce.length)>0&&((ue=e==null?void 0:e.reqVaultData)!=null&&ue.hashedVaultId)&&((Ve=e.reqVaultData)!=null&&Ve.hashedVaultPin)&&U&&((Ee=e.helperFunctions)!=null&&Ee.sendCreatorAcceptance)&&((Ae=e.helperFunctions)!=null&&Ae.sendCreatorRejection)){e.setIsLoading(!0);let r=N.pin,pe=fe(U),_e=fe(r);await Pt(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,pe,_e,(ke=e==null?void 0:e.reqVaultData)==null?void 0:ke.hashedVaultId,(se=e.reqVaultData)==null?void 0:se.hashedVaultPin,(le=e==null?void 0:e.reqVaultData)==null?void 0:le.vaultId,U,x,null,N.pk,Number(v)).then(Qe=>{e.setIsLoading(!1),Qe&&(O(x),V(!0))})}};return b.createElement(b.Fragment,null,c&&!L&&!j&&b.createElement(b.Fragment,null,!m&&b.createElement("div",{className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(De,{sliderCount:[1],currentSlider:"0"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},b.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),b.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},b.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",b.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",b.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),b.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&b.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),b.createElement("div",{className:"verified-custd-mdl-otp-input-container"},b.createElement("div",{className:"verified-custd-mdl-otp-input-group"},b.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&G(x)},onPaste:x=>{te(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),b.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&G(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),b.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&G(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),b.createElement("input",{onInputCapture:x=>{var U;x.target.value=(U=x.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:x=>{ee(x.target),f()},onKeyDown:x=>{x.key==="Backspace"&&x.target.value===""&&G(x)},className:s?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),b.createElement("div",{className:"verified-custd-mdl-otp-timer"},s&&C===""&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),s&&(C==null?void 0:C.length)>0&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},C),!s&&b.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!a&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>w(!0),src:P.pinShow,alt:"show pin icon"}),a&&b.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>w(!1),src:P.pinHide,alt:"hide pin icon"})))),!l&&b.createElement("div",{style:{height:"100px"}}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},b.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},b.createElement(hn,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),b.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async x=>{if(x.target.className.includes("verified-custd-mdl-startup-button")&&x.target.className!=="verified-custd-mdl-startup-button")x.target.className="verified-custd-mdl-startup-button-click",await u();else{let U=document.getElementsByClassName("verified-custd-mdl-startup-button-active");U.length>0&&(U[0].className="verified-custd-mdl-startup-button-click",await u())}},className:"verified-custd-mdl-startup-button"},"Proceed"),b.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},b.createElement(it,null))))),m&&b.createElement(Be,{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:F},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: ${(q=e.reqVaultData)==null?void 0:q.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"||e.action==="eth_requestAccounts"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),c&&L&&!j&&b.createElement(b.Fragment,null,!A&&b.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},b.createElement("div",{className:"verified-custd-mdl-startup-contact"},b.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),b.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},b.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},b.createElement("b",null,(ae=e.reqVaultData)==null?void 0:ae.vaultId)," has requested you to be a Co-Signer"))),b.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:P.addCoSignerIcon1,alt:""}),!k&&b.createElement(b.Fragment,null,b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),b.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.pkicon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},b.createElement("img",{src:P.encryptedIcon,alt:"icon"})),b.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",b.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),b.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:()=>{d(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),b.createElement("button",{onClick:async()=>{await Z(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),k&&b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},b.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},b.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),b.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",b.createElement("b",null,(W=e.reqVaultData)==null?void 0:W.vaultId),", you will not be able to reset the PIN for them.")),b.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},b.createElement("button",{onClick:async()=>{await Z(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),b.createElement("button",{onClick:()=>{d(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),A&&b.createElement(Be,{messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:i?`You have been added as a Co-Signer for ${(X=e.reqVaultData)==null?void 0:X.vaultId}`:`You rejected Co-signer reject from ${(ge=e.reqVaultData)==null?void 0:ge.vaultId}`})),c&&!L&&j&&b.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ne}),!c&&b.createElement("h3",null,"Preparing Modules..."))},rt=da;var ca=e=>{var ee,te;let[c,p]=Ie(e.fontsLoaded||!1),[s,t]=Ie(e.showLogoPage||!1),[a,w]=Ie([]),[l,g]=Ie("2"),[m,S]=Ie(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[N,B]=Ie(""),[F,M]=Ie(""),[v,I]=Ie(!1),[z,D]=Ie(""),[L,y]=Ie(""),[A,V]=Ie(""),[k,d]=Ie(""),[i,O]=Ie(null),[C,_]=Ie(null),[j,ie]=Ie(!1),{setChainId:ne,setAddress:J,setPk:Q,setProvider:H,setSigner:oe,setVaultContract:R,setVaultData:re,vaultData:o,chainId:E}=Le();return Ft(()=>{let G=()=>{let f=nt(document);p(f)};e.fontsLoaded||G()},[]),Ft(()=>{(async()=>{var Z,q;let f;(Z=chrome==null?void 0:chrome.storage)!=null&&Z.local?f=await new Promise(ae=>{chrome.storage.local.get(["lastPk"],W=>{ae(W.lastPk)})}):!((q=chrome==null?void 0:chrome.storage)!=null&&q.local)&&localStorage&&(f=localStorage.getItem("lastPk"));let u=await at(e.chainId,f&&(f==null?void 0:f.length)>0?f:void 0);ne(u.chainId),J(u.address),Q(u.pk),H(u.provider),oe(u.signer),R(u.vaultContract),re(u.vaultData)})()},[]),Ft(()=>{la(()=>{t(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Ft(()=>{(()=>{let f=At.map(u=>{if(u)return{name:u==null?void 0:u.name,countryName:u==null?void 0:u.name,officialName:u==null?void 0:u.name,currencySymbol:u==null?void 0:u.currency,currencyName:u==null?void 0:u.currency,officialCurrencySymbol:u==null?void 0:u.currency,countryCode:u==null?void 0:u.code,flag:u==null?void 0:u.flag,continent:u==null?void 0:u.continent,phone_code:u==null?void 0:u.phone_code,code:u==null?void 0:u.code}}).flat();w(f==null?void 0:f.filter(u=>u!==void 0))})()},[]),xe.createElement(xe.Fragment,null,c&&s&&e.logoPageElement&&xe.createElement(xe.Fragment,null," ",e.logoPageElement),c&&!s&&xe.createElement(xe.Fragment,null,l==="2"&&xe.createElement(Vt,{setStep:g,setIsLoading:e.setIsLoading,setUserNumberFmt:B,userNumberFmt:N,setUserEmail:M,userEmail:F,setSelectedCountry:S,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="3"&&xe.createElement(Ut,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:N,setUserNumberFmt:B,setUserEmail:M,userEmail:F,selectedCountry:m,helperFunctions:e.helperFunctions,setIsExistingUser:ie}),l==="4"&&xe.createElement(Nt,{setStep:g,setIsLoading:e.setIsLoading,setShowSuccessBtn:I,setSuccessBtnText:D,setSuccessBtnNeutText:y,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:_,userNumberFmt:N,userEmail:F,selectedCountry:m,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:V,setActionFooterText:d,helperFunctions:e.helperFunctions,isExistingUser:j}),l==="5"&&xe.createElement(Be,{setStep:g,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:v,buttonText:z,buttonNeutText:L,buttonFunc:i,buttonNeutFunc:C,actionHeaderText:A,actionFooterText:k}),l==="6"&&xe.createElement(Ct,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:N,userEmail:F,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="7"&&e.action===""&&xe.createElement(Be,{action:e.action,setStep:g,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&xe.createElement(Be,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:E}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&xe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),l==="8"&&!e.dashbordElement&&xe.createElement(xe.Fragment,null),l==="0"&&xe.createElement(rt,{fontsLoaded:c,vaultId:o==null?void 0:o.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:o==null?void 0:o.hashedVaultId,encrptedPk:o==null?void 0:o.pk,vaultAddress:o==null?void 0:o.address,vaultChannel:o==null?void 0:o.channel,actionText:vt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(E||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(G=>(e.txData[G]=decodeURIComponent(e.txData[G]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:M,setUserNumberFmt:B,setSelectedCountry:S,enablePhone:e.enablePhone})),!c&&xe.createElement("h3",null,"Preparing Modules..."))},Ot=ca;import{motion as ua}from"framer-motion";var ma=e=>{var Q,H,oe,R,re,o,E,ee,te,G,f,u,Z,q,ae,W,X,ge,x,U,de,ce,ue,Ve,Ee,Ae,ke;let[c,p]=Se(!0),[s,t]=Se(null),[a,w]=Se({}),[l,g]=Se({}),[m,S]=Se(!1),[N,B]=Se(!1),[F,M]=Se(!1),[v,I]=Se(!1),[z,D]=Se(""),[L,y]=Se([]),[A,V]=Se(""),[k,d]=Se(e.defaultCountry||{area:"1",flag:P.usaFlag,name:"United States"}),[i,O]=Se(""),[C,_]=Se(""),[j,ie]=Se(null),[ne,J]=Se(null);return Dt(()=>{(()=>{let le=nt(document);p(le)})()},[]),Dt(()=>{(()=>{var le,r;if((le=chrome==null?void 0:chrome.storage)!=null&&le.local)chrome.storage.local.get("myVault",pe=>{var _e;pe.myVault&&((_e=JSON.parse(pe.myVault))!=null&&_e.vaultId)?(w(JSON.parse(pe.myVault)),t(!0)):t(!1)});else if(!((r=chrome==null?void 0:chrome.storage)!=null&&r.local)&&localStorage){let pe=JSON.parse(localStorage.getItem("myVault"));pe&&(pe!=null&&pe.vaultId)?(w(pe),t(!0)):t(!1)}else t(!1)})()},[]),Dt(()=>{(()=>{let le=At.map(r=>{if(r)return{name:r==null?void 0:r.name,countryName:r==null?void 0:r.name,officialName:r==null?void 0:r.name,currencySymbol:r==null?void 0:r.currency,currencyName:r==null?void 0:r.currency,officialCurrencySymbol:r==null?void 0:r.currency,countryCode:r==null?void 0:r.code,flag:r==null?void 0:r.flag,continent:r==null?void 0:r.continent,phone_code:r==null?void 0:r.phone_code,code:r==null?void 0:r.code}}).flat();y(le==null?void 0:le.filter(r=>r!==void 0))})()},[]),Dt(()=>{function se(){var r,pe,_e;let le=document.querySelector("#verified-custd-out-cont");le?(ie((pe=(r=le.getBoundingClientRect())==null?void 0:r.height)==null?void 0:pe.toString()),ie((_e=le.scrollHeight)==null?void 0:_e.toString())):(ie(null),J(null))}return se(),window.addEventListener("resize",se),()=>window.removeEventListener("resize",se)},[]),me.createElement(me.Fragment,null,c&&me.createElement(Tt,null,me.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},s===null&&e.delayPageElement&&me.createElement(me.Fragment,null,e.delayPageElement," "),s===null&&!e.delayPageElement&&me.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),m&&me.createElement("div",{style:j&&ne&&window&&Number(ne)>window.innerHeight?{height:`${Number(j)+Number(ne)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},me.createElement(ua.img,{height:"50px",width:"50px",src:P.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),s!==null&&me.createElement(me.Fragment,null,!s&&me.createElement(Ot,{fontsLoaded:c,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((Q=e.reqVaultData)==null?void 0:Q.vId)||((H=e.reqVaultData)==null?void 0:H.vaultId)),hashedVaultId:fe(decodeURIComponent(((oe=e.reqVaultData)==null?void 0:oe.vId)||((R=e.reqVaultData)==null?void 0:R.vaultId))),hashedVaultPin:decodeURIComponent(((re=e.reqVaultData)==null?void 0:re.vPh)||((o=e.reqVaultData)==null?void 0:o.hashedVaultPin)),coSignerId:decodeURIComponent((E=e.reqVaultData)==null?void 0:E.cId)}:null,txData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:t,setIsLoading:S,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),s&&!N&&!F&&me.createElement(rt,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,vaultChannel:a==null?void 0:a.channel,regAddress:a==null?void 0:a.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||vt[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((G=e.reqVaultData)==null?void 0:G.vId)||((f=e.reqVaultData)==null?void 0:f.vaultId)),hashedVaultId:fe(decodeURIComponent(((u=e.reqVaultData)==null?void 0:u.vId)||((Z=e.reqVaultData)==null?void 0:Z.vaultId))),hashedVaultPin:decodeURIComponent(((q=e.reqVaultData)==null?void 0:q.vPh)||((ae=e.reqVaultData)==null?void 0:ae.hashedVaultPin)),coSignerId:decodeURIComponent((W=e.reqVaultData)==null?void 0:W.cId)}:null,reqTxData:e.txData?(ge=Object.keys(e.txData))==null?void 0:ge.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((X=Object.keys(e.txData))==null?void 0:X.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:_,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),s&&N&&F&&me.createElement(rt,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,regAddress:a==null?void 0:a.regAddress,vaultChannel:a==null?void 0:a.channel,origin:e.origin,title:e.title,actionText:e.actionText||vt[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((x=e.reqVaultData)==null?void 0:x.vId)||((U=e.reqVaultData)==null?void 0:U.vaultId)),hashedVaultId:fe(decodeURIComponent(((de=e.reqVaultData)==null?void 0:de.vId)||((ce=e.reqVaultData)==null?void 0:ce.vaultId))),hashedVaultPin:decodeURIComponent(((ue=e.reqVaultData)==null?void 0:ue.vPh)||((Ve=e.reqVaultData)==null?void 0:Ve.hashedVaultPin)),coSignerId:decodeURIComponent((Ee=e.reqVaultData)==null?void 0:Ee.cId)}:null,reqTxData:e.txData?(ke=Object.keys(e.txData))==null?void 0:ke.map(se=>(e.txData[se]=decodeURIComponent(e.txData[se]),e.txData))[((Ae=Object.keys(e.txData))==null?void 0:Ae.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:_,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),s&&!N&&F&&A===""&&me.createElement(Ct,{setStep:V,setIsLoading:S,userNumberFmt:i,userEmail:C,selectedCountry:k,allCountries:L,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),s&&!N&&F&&A==="7"&&me.createElement(Be,{action:e.action,setStep:V,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),s&&!N&&F&&A==="8"&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:S}),s&&!N&&F&&A==="8"&&!e.dashbordElement&&me.createElement(me.Fragment,null),s&&!F&&N&&!v&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:S,setShowResetPin:I,setAction:D,setUserNumberFmt:O,setUserEmail:_,setSelectedCountry:d,setVaultData:g,initWalletAndContract:at}),s&&!F&&N&&!v&&!e.dashbordElement&&me.createElement(me.Fragment,null),s&&!F&&N&&v&&me.createElement(Nt,{action:"reset-pin",setStep:V,setIsLoading:S,userNumberFmt:i,userEmail:C,vaultData:l,selectedCountry:k,helperFunctions:e.helperFunctions})))),!c&&me.createElement("h3",null,"Preparing Modules..."))},fa=ma;export{Ct as AddCoSignersPage,Vt as ContactPage,Nt as CreatePinPage,rt as EnterPinPage,Ot as FTUPage,Ut as OTPPage,Tt as VaultContextProvider,fa as VerifiedCustody,Re as decryptString,Ze as encryptString,fe as hashTheString};
|
|
1
|
+
function Cn(e){if(!e||typeof document>"u")return;let c=document.head||document.getElementsByTagName("head")[0],p=document.createElement("style");p.type="text/css",c.firstChild?c.insertBefore(p,c.firstChild):c.appendChild(p),p.styleSheet?p.styleSheet.cssText=e:p.appendChild(document.createTextNode(e))}Cn(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
|
|
2
|
+
`);typeof chrome>"u"&&(window.chrome={});import me,{useEffect as Ft,useState as Se}from"react";import Sn,{createContext as En,useContext as An,useState as Ye}from"react";var dn=En(void 0),Dt=e=>{let[c,p]=Ye(null),[r,t]=Ye(null),[a,w]=Ye(null),[l,g]=Ye(null),[m,S]=Ye(null),[N,B]=Ye(null),[F,M]=Ye(null),[v,I]=Ye(null);return Sn.createElement(dn.Provider,{value:{chainId:c,pk:r,address:a,signer:l,provider:m,vaultContract:N,vaultData:F,setChainId:p,setPk:t,setAddress:w,setSigner:g,setProvider:S,setVaultContract:B,setVaultData:M}},e.children)},Le=()=>{let e=An(dn);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import xe,{useEffect as _t,useState as Ie}from"react";import{debounce as da}from"lodash";var Oe=process.env.REACT_APP_NODE_ENV==="production"?8453:84532,pa=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",ln=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],cn=["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"],un="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",mn={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},gt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},pt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},_={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Et=[{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 kn,Custody as In,Provider as Pn,VerifiedWallet as Tt}from"@verified-network/verified-sdk";var Pe={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:_.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:_.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:_.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:_.ethereumIcon},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:_.baseIcon}};import _n from"crypto";import Lt from"crypto-js";import{toast as fn}from"react-toastify";import ht from"react";import{toMultichainNexusAccount as Fn}from"@biconomy/abstractjs";import{base as Dn,baseSepolia as Tn,gnosis as Ln,mainnet as Bn,polygon as Vn,sepolia as Un}from"viem/chains";import{http as et}from"viem";var tt=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 cn.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let a=e.createElement("link");a.rel="stylesheet",a.href=r,e.head.appendChild(a)}}),!0},nt=async(e,c)=>{var p,r,t,a,w;try{let l;if(c)l=new Tt(c);else{let z=Tt.generateMnemonic();l=Tt.importWallet(z)}let g=kn,m=e&&((p=g[e])!=null&&p.Custody)&&((t=(r=Pe[e])==null?void 0:r.rpcUrls)==null?void 0:t.length)>0?e:Oe,S=(a=Pe[m])==null?void 0:a.rpcUrls[0],N=l.setProvider(new Pn(S)),B=l.privateKey,F=new In(N,(w=g[m])==null?void 0:w.Custody),M=N,I=(await Fn({chains:[Dn,Bn,Un,Ln,Tn,Vn],transports:[et(),et(),et(),et(),et(),et()],signer:M})).addressOn(m);return{chainId:m,address:I,pk:B,signer:N,provider:S,vaultContract:F,vaultData:null}}catch(l){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",l),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},fe=e=>`0x${_n.createHash("sha256").update(e==null?void 0:e.toLowerCase()).digest("hex")}`,Ze=(e,c)=>Lt.AES.encrypt(e,c).toString(),Qe=(e,c)=>{var p=Lt.AES.decrypt(e,c),r=p.toString(Lt.enc.Utf8);return r};var On=(e,c)=>ht.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},ht.createElement("img",{style:{marginLeft:"5px"},src:_.errorAlert,alt:""}),ht.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},ht.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),ht.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},c)));var we=(e,c)=>(fn.dismiss(),fn.error(On(e,c),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));import Z,{useState as kt}from"react";import vt from"react";var Mn=e=>{var c;return vt.createElement("div",{className:"verified-custd-mdl-startup-slider"},((c=e.sliderCount)==null?void 0:c.length)>0&&e.sliderCount.map((p,r)=>vt.createElement(vt.Fragment,{key:r},r<=Number(e.currentSlider)&&vt.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&vt.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},De=Mn;import T,{useState as zn}from"react";var Hn=e=>{var r;let[c,p]=zn(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:_.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:t=>{t.target.value===""?p(null):e.type==="language"?p(e.searchContent.filter(a=>{if(a.name.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=a.name.split(""),a})):e.type==="area-code"&&p(e.searchContent.filter(a=>{var w,l;if((w=a==null?void 0:a.name)!=null&&w.toLowerCase().includes(t.target.value.toLowerCase()))return a.searched=t.target.value.toLowerCase(),a.nameArray=(l=a==null?void 0:a.name)==null?void 0:l.split(""),a})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},T.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!c&&((r=e==null?void 0:e.searchContent)==null?void 0:r.length)>0&&e.searchContent.map((t,a)=>T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t.phone_code,flag:t.flag,name:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))),c&&c.length>0&&c.map((t,a)=>{var w,l,g;return T.createElement(T.Fragment,{key:a},e.type==="area-code"&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected({area:t==null?void 0:t.phone_code,flag:t==null?void 0:t.flag,name:t==null?void 0:t.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t==null?void 0:t.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((w=t==null?void 0:t.nameArray)==null?void 0:w.length)>0&&(t==null?void 0:t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m)))))),e.type==="language"&&T.createElement(T.Fragment,{key:a},window.location.search!==`?${a}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=t.nameArray)==null?void 0:l.length)>0&&t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m)))),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((g=t.nameArray)==null?void 0:g.length)>0&&t.nameArray.map((m,S)=>T.createElement(T.Fragment,{key:S},!t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S,style:{color:"#B6B7C3"}},m),t.searched.includes(m.toLowerCase())&&T.createElement("span",{key:S},m))),!t.searched.includes(t.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${t.label})`),t.searched.includes(t.label.toLowerCase())&&T.createElement("span",null,` (${t.label})`))),window.location.search===`?${a}`&&T.createElement("div",{key:a,onClickCapture:()=>{e.setSelected(t.name)},onClick:()=>{e.setSelected(t.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:t.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name," ",`(${t.label})`),!t.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},t.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:_.circleClicked,alt:"Clicked Icon"}))))}))))))},At=Hn;import yt from"react";var gn=()=>yt.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),pn=e=>yt.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",yt.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var c,p;e.setIsLoading(!0),(c=chrome==null?void 0:chrome.storage)!=null&&c.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!((p=chrome==null?void 0:chrome.storage)!=null&&p.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account");var jn=e=>{var M;let[c,p]=kt(""),[r,t]=kt(""),[a,w]=kt(!1),[l,g]=kt(""),{pk:m,vaultContract:S,address:N}=Le(),B=()=>{var I,z;let v=document.getElementById("verified-custd-mdl-contact-button");v&&e.selectedCountry.area&&c.length===10||v&&((I=e.userEmail)==null?void 0:I.length)>0&&isNaN(Number(e.userEmail))&&((z=e.userEmail)!=null&&z.includes("@"))?(g(""),v.className="verified-custd-mdl-startup-button-active"):(g(""),v.className="verified-custd-mdl-startup-button")},F=async()=>{var v,I,z;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the ContactPage/FTUPage props.");else{if(((v=e.userEmail)==null?void 0:v.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){g("Invalid input, please check your email");return}let D=((I=e.userEmail)==null?void 0:I.length)>0?e.userEmail:`+${e.selectedCountry.area}${c}`,L=((z=e.userEmail)==null?void 0:z.length)>0?"email":"sms";D&&L&&m&&S||D&&L&&e.noContract?(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(N,L,D).then(y=>{var A;e.setIsLoading(!1),y?(g(""),e.setStep("3")):(g(L==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),we("Oops something went wrong",((A=e.userEmail)==null?void 0:A.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))})):e.noContract?g(""):g("Network error. check your internet connection and try again.")}};return Z.createElement("div",{className:"verified-custd-mdl-startup-language"},Z.createElement("div",{className:"verified-custd-mdl-startup-contact"},Z.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),Z.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},e.enablePhone&&Z.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),!e.enablePhone&&Z.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your email address"),e.enablePhone&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Z.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},Z.createElement("div",{onClick:()=>{w(!a)},className:"verified-custd-mdl-st-contact-first-section"},Z.createElement("img",{onClick:()=>{w(!a)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),Z.createElement("p",{onClick:()=>{w(!a)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),a&&Z.createElement("img",{onClick:()=>{w(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!a&&Z.createElement("img",{onClick:()=>{w(!a)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),Z.createElement("input",{onInputCapture:v=>{var D;v.target.value===""?t(r+" "):t(v.target.value);let I=(D=v.target.value)==null?void 0:D.replace(/\D/g,"");p(I);let z="";for(let L=0;L<(I==null?void 0:I.length);L++)z+=I[L],(L+1)%5===0&&L+1<(I==null?void 0:I.length)&&(z+=" ");e.setUserNumberFmt(z)},onInput:v=>{B()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),a&&Z.createElement(At,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:B,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:a,setSearchActive:w,contentMaxHeight:"300",contentbottomMargin:"300"}),c.length!==10&&r.length>10&&l===""&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!a&&Z.createElement(Z.Fragment,null,e.enablePhone&&Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),Z.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),Z.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),Z.createElement("div",{className:"verified-custd-mdl-st-contact-input"},Z.createElement("input",{onInputCapture:v=>{var I;e.setUserEmail((I=v.target)==null?void 0:I.value),e.setUserNumberFmt(""),p(""),t("")},onInput:v=>{B()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((M=e.userEmail)==null?void 0:M.length)>0&&Z.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},Z.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!a&&Z.createElement("div",{style:{height:"80px"}}),Z.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},Z.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},Z.createElement(gn,null),Z.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async v=>{if(v.target.className.includes("verified-custd-mdl-startup-button")&&v.target.className!=="verified-custd-mdl-startup-button")v.target.className="verified-custd-mdl-startup-button-click",await F();else{let I=document.getElementsByClassName("verified-custd-mdl-startup-button-active");I.length>0&&(I[0].className="verified-custd-mdl-startup-button-click",await F())}},className:"verified-custd-mdl-startup-button"},"Get OTP"))))},Bt=jn;import G,{useEffect as ea,useState as Pt}from"react";import{AbiCoder as Kn,encodeBytes32String as Me}from"ethers";import{combine as Gn,split as Wn}from"shamir-secret-sharing";import{contractAddress as bt,Custody as xt,Provider as it,VerifiedWallet as Je}from"@verified-network/verified-sdk";import{toMultichainNexusAccount as $n}from"@biconomy/abstractjs";import{base as Yn,baseSepolia as Zn,gnosis as Jn,mainnet as qn,polygon as Xn,sepolia as Qn}from"viem/chains";import{http as at}from"viem";var hn=async(e,c)=>{try{return await e.getCreator(c,"").then(async p=>{var r,t;if((p==null?void 0:p.status)===0)return!0;if(((r=p==null?void 0:p.reason)==null?void 0:r.toLowerCase())==="wallet not created")return!1;if(((t=p==null?void 0:p.reason)==null?void 0:t.toLowerCase())==="invalid pin")return!0})}catch{return null}},vn=async(e,c,p,r,t,a,w,l,g,m,S)=>{try{let N={vaultId:e,hashedVaultId:c,vaultPin:p,hashedVaultPin:r,vaultContract:l};return await l.getCreator(c,r).then(async B=>{var F,M,v,I,z,D,L,y;if((B==null?void 0:B.status)===0)try{let A=Me(p),V=Ze(a,A);if(g==="invitation")return{isExisting:!0,...N};if((F=chrome==null?void 0:chrome.storage)!=null&&F.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})}):!((M=chrome==null?void 0:chrome.storage)!=null&&M.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:c,pk:V,channel:t})),(v=chrome==null?void 0:chrome.runtime)!=null&&v.sendMessage)chrome.runtime.sendMessage({type:g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:S}});else if(!((I=chrome==null?void 0:chrome.runtime)!=null&&I.sendMessage)){let k=new CustomEvent(g&&g==="connect_wallet"||g&&g==="eth_requestAccounts"?"getPk":g&&g!=="connect_wallet"?g:"getPk",{detail:{value:{vaultData:g&&g==="signRecovery"||g&&g==="completeRecovery"?m:{vaultId:e,hashedVaultId:c,hashedVaultPin:r},txData:S}}});window.dispatchEvent(k)}return g==="getPk"?{vaultId:e,hashedVaultId:c,pk:V,channel:t,shouldStop:!0}:{shouldStop:!0}}catch(A){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",A),we("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(((z=B==null?void 0:B.reason)==null?void 0:z.toLowerCase())==="invalid pin"){let A;return(D=chrome==null?void 0:chrome.storage)!=null&&D.local?A=await new Promise(V=>{chrome.storage.local.get(["lastPk"],k=>{V(k.lastPk)})}):!((L=chrome==null?void 0:chrome.storage)!=null&&L.local)&&localStorage&&(A=localStorage.getItem("lastPk")),g==="reset-pin"&&(m!=null&&m.hashedOldPin)&&(m!=null&&m.vaultContract)?await Rn(c,m==null?void 0:m.hashedOldPin,r,m==null?void 0:m.vaultContract):A&&(A==null?void 0:A.length)>0?await l.confirmParticipant(c,r,c,r,!0).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){(k=chrome==null?void 0:chrome.storage)!=null&&k.local?await chrome.storage.local.remove("lastPk"):!((d=chrome==null?void 0:chrome.storage)!=null&&d.local)&&localStorage&&localStorage.removeItem("lastPk");try{let P=await new Je(a).getAddress(),j=Me(p),ie=Ze(a,j);return(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.set({myVault:JSON.stringify({address:w,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:t})}):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:w,regAddress:P,vaultId:e,hashedVaultId:c,pk:ie,channel:t})),N}catch(C){return we("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",C),!1}}else return we("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",V),!1}):null}else if(((y=B==null?void 0:B.reason)==null?void 0:y.toLowerCase())==="wallet not created")return await l.createVault(c,r).then(async A=>{var V,k;return(A==null?void 0:A.status)===0?((V=chrome==null?void 0:chrome.storage)!=null&&V.local?await chrome.storage.local.set({lastPk:a}):!((k=chrome==null?void 0:chrome.storage)!=null&&k.local)&&localStorage&&localStorage.setItem("lastPk",a),await l.confirmParticipant(c,r,c,r,!0).then(async d=>{var i,O,C,P;if((d==null?void 0:d.status)===0){(i=chrome==null?void 0:chrome.storage)!=null&&i.local?await chrome.storage.local.remove("lastPk"):!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage&&localStorage.removeItem("lastPk");try{let ie=await new Je(a).getAddress(),ne=Me(p),J=Ze(a,ne);return(C=chrome==null?void 0:chrome.storage)!=null&&C.local?await chrome.storage.local.set({myVault:JSON.stringify({address:w,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})}):!((P=chrome==null?void 0:chrome.storage)!=null&&P.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:w,regAddress:ie,vaultId:e,hashedVaultId:c,pk:J,channel:t})),N}catch(j){return we("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",j),!1}}else return we("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",d),!1})):(we("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",A),!1)})})}catch(N){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",N),we("Oops something went wrong","Error while creating pin. Try again later"),!1}},yn=async(e,c,p,r,t,a,w,l,g,m)=>{var S,N,B,F;try{let M=Me(p),v=Qe(t,M);if(v){let I=bt,z=new Je(v),D=l&&((S=I[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,L=(F=Pe[D])==null?void 0:F.rpcUrls[0],y=z.setProvider(new it(L)),A=new xt(y,I[D].Custody);return A?await A.getCreator(c,r).then(async V=>{var k,d,i,O;if((V==null?void 0:V.status)===0){let C=await A.getQuorum(c,r);return(C==null?void 0:C.status)===0&&((d=(k=C==null?void 0:C.response)==null?void 0:k.result)==null?void 0:d.length)>0?g&&Number((i=C==null?void 0:C.response)==null?void 0:i.result[0])>0?{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p,pk:v}:Number((O=C==null?void 0:C.response)==null?void 0:O.result[0])===0?{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p,pk:v,inCompleteVault:!0}:{address:a,vaultId:e,hashedVaultId:c,channel:w,chainId:m||D,pin:p}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(M){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",M),null}},It=async(e,c,p,r,t,a,w,l,g,m,S,N,B)=>{var M,v,I,z;let F;if(S)F=S;else{let D=bt,L=new Je(N),y=B&&((M=D[B])!=null&&M.Custody)&&((I=(v=Pe[B])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?B:Oe,A=(z=Pe[y])==null?void 0:z.rpcUrls[0],V=L.setProvider(new it(A));F=new xt(V,D[y].Custody)}return F?await F.confirmParticipant(a,t,r,w,m).then(async D=>(D==null?void 0:D.status)===0?(m?await e(p,l,g):await c(p,l,g),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(D=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",D),!1)):!1},bn=async(e,c,p,r,t,a,w,l,g,m,S,N)=>{let B=Number(p.length),M=(await Wn(Uint8Array.from(N.split("").map(D=>D.charCodeAt(0))),Number(B),a)).map(D=>D.join(",")),v=Me(g),I=[],z=[];for(let D=0;D<p.length;D++){let L=p[D];await S.addParticipant(l,m,fe(L.vaultId),Ze(M[D],v)).then(async y=>{let A={creatorVaultId:w,vaultPin:g,creatorHashedVaultId:l,creatorHashedVaultPin:m,cosigner:L.vaultId,hashedCosigner:fe(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:Ze(M[D],v),...L};(y==null?void 0:y.status)===0?(z.push(A),L.vaultId!==w&&await e(L.otpChannel,L.vaultId,w,m).then(V=>{V||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):I.push(A)}),await new Promise(y=>setTimeout(y,1e3))}return(I==null?void 0:I.length)>0||(z==null?void 0:z.length)!==(p==null?void 0:p.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),we("Oops somethin went wrong","error while adding co-signers"),!1):await S.defineQuorum(l,m,a.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let L=r==null?void 0:r.map(y=>{var A;return{name:y==null?void 0:y.name,email:y==null?void 0:y.email,phoneNumber:y==null?void 0:y.phoneNumber,contactType:(A=String(y==null?void 0:y.otpChannel))==null?void 0:A.toUpperCase(),position:`${mn[Number(y==null?void 0:y.position)]} Co-Signer`}});return await c(t,w,L,Number(a)).then(y=>{y||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),we("Oops somethin went wrong","error while saving vault keys"),!1})},xn=async(e,c,p,r,t,a,w,l)=>{var S,N,B,F;let g=Me(t),m=Qe(a,g);if(m){let M=bt,v=new Je(m),I=l&&((S=M[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new it(z)),L=new xt(D,M[I].Custody);if(L)return await L.promptSignatures(c,p).then(async y=>{var A,V,k,d,i,O,C;if((y==null?void 0:y.status)===0&&((V=(A=y==null?void 0:y.response)==null?void 0:A.result)!=null&&V.logs)){let P=new Kn,j=(i=(d=(k=y==null?void 0:y.response)==null?void 0:k.result)==null?void 0:d.logs)==null?void 0:i.filter(Q=>{var H,oe,R,se,o;return((H=Q==null?void 0:Q.address)==null?void 0:H.toLowerCase())===((oe=M[I].Custody)==null?void 0:oe.toLowerCase())&&((o=(R=Q==null?void 0:Q.topics)==null?void 0:R.map(E=>E==null?void 0:E.toLowerCase()))==null?void 0:o.includes((se=un)==null?void 0:se.toLowerCase()))}),ie=(O=j[0])==null?void 0:O.data,ne=(C=P.decode(["bytes32","bytes32","uint256"],ie))==null?void 0:C.map((Q,H)=>H<2?Q:Number(Q)).flat(),J=ne[(ne==null?void 0:ne.length)-1];return await e(w,r,p,Number(J),Number(j==null?void 0:j.length)),!0}else return!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},wn=async(e,c,p,r,t,a,w,l,g,m,S,N)=>{var M,v,I,z;let B=Me(a),F=Qe(w,B);if(F){let D=bt,L=new Je(F),y=N&&((M=D[N])!=null&&M.Custody)&&((I=(v=Pe[N])==null?void 0:v.rpcUrls)==null?void 0:I.length)>0?N:Oe,A=(z=Pe[y])==null?void 0:z.rpcUrls[0],V=L.setProvider(new it(A)),k=new xt(V,D[y].Custody);if(k)return await k.signTransaction(g,r,p,S,m).then(async d=>(d==null?void 0:d.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,t),await k.checkQuorum(g,m,p,S).then(async i=>{var O,C;return(i==null?void 0:i.status)===0&&((O=i==null?void 0:i.response)!=null&&O.result)?(((C=i==null?void 0:i.response)==null?void 0:C.result[0])===!0&&await c(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(S)),!0):!1})):!1).catch(d=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",d),!1))}},Nn=async(e,c,p,r,t,a,w,l)=>{var S,N,B,F;let g=Me(r),m=Qe(t,g);if(m){let M=bt,v=new Je(m),I=l&&((S=M[l])!=null&&S.Custody)&&((B=(N=Pe[l])==null?void 0:N.rpcUrls)==null?void 0:B.length)>0?l:Oe,z=(F=Pe[I])==null?void 0:F.rpcUrls[0],D=v.setProvider(new it(z)),L=new xt(D,M[I].Custody);return L?await L.checkQuorum(e,c,e,a).then(async y=>{var A,V;return(y==null?void 0:y.status)===0&&((A=y==null?void 0:y.response)!=null&&A.result)&&((V=y==null?void 0:y.response)==null?void 0:V.result[0])===!0?await L.getShards(e,c,a).then(async k=>{var d,i,O,C;if((k==null?void 0:k.status)===0&&((d=k==null?void 0:k.response)!=null&&d.result)){let P=(i=k==null?void 0:k.response)==null?void 0:i.result.filter(j=>j!=="");if(P.length>1){let j=Me(r),ne=P.map(H=>Qe(H,j)).map(H=>new Uint8Array(H.split(",").map(Number))),J=await Gn(ne),Q=new TextDecoder().decode(J);if(Q){let H=Me(r),oe=Ze(Q,H),R=new Je(Q),se=await R.getAddress(),E=R.setProvider(new it(z)),te=(await $n({chains:[Yn,qn,Qn,Jn,Zn,Xn],transports:[at(),at(),at(),at(),at(),at()],signer:E})).addressOn(I);return(O=chrome==null?void 0:chrome.storage)!=null&&O.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:te,regAddress:se,vaultId:p,hashedVaultId:e,pk:oe,channel:w})})):!((C=chrome==null?void 0:chrome.storage)!=null&&C.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:te,regAddress:se,vaultId:p,hashedVaultId:e,pk:oe,channel:w}))),!0}}else return!1}else return!1}).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",y),!1)):!1}},Rn=async(e,c,p,r)=>await r.resetPin(e,c,p).then(async t=>(t==null?void 0:t.status)===0?await r.confirmParticipant(e,p,e,p,!0).then(w=>(w==null?void 0:w.status)===0?{}:null):null);var ta=e=>{var D,L,y,A,V,k;let[c,p]=Pt(!1),[r,t]=Pt(60),[a,w]=Pt(!1),[l,g]=Pt(""),{pk:m,vaultContract:S,address:N}=Le();ea(()=>{if(r===0)return;let d=setInterval(()=>{t(i=>i-1)},1e3);return()=>clearInterval(d)},[r]);let B=d=>{if(d.value.length>0){let i=d.nextElementSibling;i&&i.focus()}else d.value.length===0&&d.focus()},F=d=>{let i=d.clipboardData.getData("text"),O=i==null?void 0:i.replace(/\D/g,""),C=document.getElementsByClassName("otp-input");if((C==null?void 0:C.length)===4&&(O==null?void 0:O.length)>0)for(let P=0;P<C.length;P++)O[P]&&(C[P].value=O[P],C[P].focus())},M=d=>{let i=d.target.previousElementSibling;i&&i.focus()},v=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),i=document.getElementById("verified-custd-mdl-otp-input-1"),O=document.getElementById("verified-custd-mdl-otp-input-2"),C=document.getElementById("verified-custd-mdl-otp-input-3"),P=document.getElementById("verified-custd-mdl-otp-input-4");d&&(i==null?void 0:i.value.length)>0&&(O==null?void 0:O.value.length)>0&&(C==null?void 0:C.value.length)>0&&(P==null?void 0:P.value.length)>0&&!a?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},I=async()=>{var d,i,O,C,P,j,ie,ne,J,Q;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),w(!0);else{let H=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,oe=document.getElementById("verified-custd-mdl-otp-input-1"),R=document.getElementById("verified-custd-mdl-otp-input-2"),se=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");if(((O=oe==null?void 0:oe.value)==null?void 0:O.length)>0&&((C=R==null?void 0:R.value)==null?void 0:C.length)>0&&((P=se==null?void 0:se.value)==null?void 0:P.length)>0&&((j=o==null?void 0:o.value)==null?void 0:j.length)>0&&H&&m&&S||((ie=oe==null?void 0:oe.value)==null?void 0:ie.length)>0&&((ne=R==null?void 0:R.value)==null?void 0:ne.length)>0&&((J=se==null?void 0:se.value)==null?void 0:J.length)>0&&((Q=o==null?void 0:o.value)==null?void 0:Q.length)>0&&H&&e.noContract){e.setIsLoading(!0);let E=(oe==null?void 0:oe.value)+(R==null?void 0:R.value)+(se==null?void 0:se.value)+(o==null?void 0:o.value);await e.helperFunctions.checkOTPVerification(N,H,String(E)).then(async ee=>{if(ee){let te=fe(H),K=!1;if(e.noContract||(K=await hn(S,te)),K===null){g("Unexpected error while fetching account details. Try again later."),w(!0);return}e.setIsExistingUser&&e.setIsExistingUser(K),e.setIsLoading(!1),e.setStep("4")}else e.setIsLoading(!1),w(!0)})}}},z=async()=>{var d,i,O;if(!e.helperFunctions)g("No Helper Functions. Please include all helper functions in the OTPPage/FTUPage props."),w(!0);else{let C=((d=e.userEmail)==null?void 0:d.length)>0?e.userEmail:`+${e.selectedCountry.area}${(i=e.userNumberFmt)==null?void 0:i.replace(" ","")}`,P=((O=e.userEmail)==null?void 0:O.length)>0?"email":"sms";C&&P&&(e.setIsLoading(!0),await e.helperFunctions.sendOTPVerification(N,P,C).then(j=>{if(e.setIsLoading(!1),j){t(60),w(!1),g("");let ie=document.getElementById("verified-custd-mdl-otp-input-1"),ne=document.getElementById("verified-custd-mdl-otp-input-2"),J=document.getElementById("verified-custd-mdl-otp-input-3"),Q=document.getElementById("verified-custd-mdl-otp-input-4");ie.value="",ne.value="",J.value="",Q.value=""}else we("Oops something went wrong","Unexpected error")}))}};return G.createElement("div",{className:"verified-custd-mdl-startup-language"},G.createElement("div",{className:"verified-custd-mdl-startup-contact"},G.createElement(De,{sliderCount:[1,2,3],currentSlider:"0"}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},G.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),G.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},G.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",G.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((D=e.userNumberFmt)==null?void 0:D.length)>0?"phone number":"email address"),G.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},G.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((L=e.userNumberFmt)==null?void 0:L.length)>0&&G.createElement(G.Fragment,null,G.createElement("span",null,"(+",(y=e.selectedCountry)==null?void 0:y.area,")")," ",G.createElement("span",null," ",(A=e.userNumberFmt)==null?void 0:A.split(" ")[0])," ",G.createElement("span",null," ",(V=e.userNumberFmt)==null?void 0:V.split(" ")[1])),((k=e.userEmail)==null?void 0:k.length)>0&&G.createElement("span",null,e.userEmail)),G.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:_.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),G.createElement("div",{className:"verified-custd-mdl-otp-input-container"},G.createElement("div",{className:"verified-custd-mdl-otp-input-group"},G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},onPaste:d=>{F(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),G.createElement("input",{onInputCapture:d=>{var i;d.target.value=(i=d.target.value)==null?void 0:i.replace(/\D/g,""),w(!1),g("")},onInput:d=>{B(d.target),v()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&M(d)},className:a?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),G.createElement("div",{className:"verified-custd-mdl-otp-timer"},!a&&r>5&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},G.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!a&&r<=5&&r>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},G.createElement("span",{style:{fontWeight:400}},"00:"),r),!a&&r===0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),a&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),a&&(l==null?void 0:l.length)>0&&G.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},l),!a&&r>0&&l===""&&G.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!a&&r===0&&l===""&&G.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),a&&l===""&&G.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let i=0;i<d.length;i++)d[i].value="";await z()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!c&&G.createElement("div",{style:{height:"100px"}}),G.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},G.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},G.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await I();else{let i=document.getElementsByClassName("verified-custd-mdl-startup-button-active");i.length>0&&(i[0].className="verified-custd-mdl-startup-button-click",await I())}},className:"verified-custd-mdl-startup-button"},"Proceed"))))},Vt=ta;import h,{useState as ze}from"react";import qe from"react";var na=e=>{var t,a;let c=e.showButton?null:setTimeout(()=>{var w,l,g,m;if(e.messageTosend)try{if((w=chrome==null?void 0:chrome.runtime)!=null&&w.sendMessage)chrome.runtime.sendMessage(e.messageTosend,S=>{S&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let S=new CustomEvent((g=e.messageTosend)==null?void 0:g.type,{detail:{value:(m=e.messageTosend)==null?void 0:m.value}});window.dispatchEvent(S)}}catch(S){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",S),we("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),p=()=>{e.setStep("6")},r=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return qe.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},qe.createElement("div",{className:"verified-custd-mdl-success-popup-content"},qe.createElement("img",{style:{width:"90%"},src:_.successIcon,alt:"Success Icon"}),qe.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},qe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),qe.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((t=e.buttonText)==null?void 0:t.length)>0&&qe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&p()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((a=e.buttonNeutText)==null?void 0:a.length)>0&&qe.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{c&&clearTimeout(c),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},Be=na;var aa=e=>{var J,Q,H,oe,R,se;let[c,p]=ze(!1),[r,t]=ze(!1),[a,w]=ze(""),[l,g]=ze(!0),[m,S]=ze(!1),[N,B]=ze(!1),[F,M]=ze(!1),[v,I]=ze(""),[z,D]=ze(""),[L,y]=ze(!1),{address:A,pk:V,vaultContract:k,setVaultData:d,setChainId:i,vaultData:O}=Le(),C=o=>{if(o.value.length>0){let E=o.nextElementSibling;E&&E.focus()}else o.value.length===0&&o.focus()},P=o=>{let E=o.target.previousElementSibling;E&&E.focus()},j=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),E=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),te=document.getElementById("verified-custd-mdl-otp-input-3"),K=document.getElementById("verified-custd-mdl-otp-input-4"),f=document.getElementById("verified-custd-mdl-otp-input-5"),u=document.getElementById("verified-custd-mdl-otp-input-6"),Y=document.getElementById("verified-custd-mdl-otp-input-7"),q=document.getElementById("verified-custd-mdl-otp-input-8");!e.isExistingUser&&o&&(E==null?void 0:E.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(K==null?void 0:K.value.length)>0&&(f==null?void 0:f.value.length)>0&&(u==null?void 0:u.value.length)>0&&(Y==null?void 0:Y.value.length)>0&&(q==null?void 0:q.value.length)>0||e.isExistingUser&&o&&(E==null?void 0:E.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(te==null?void 0:te.value.length)>0&&(K==null?void 0:K.value.length)>0?!e.isExistingUser&&(E==null?void 0:E.value)+(ee==null?void 0:ee.value)+(te==null?void 0:te.value)+(K==null?void 0:K.value)===(f==null?void 0:f.value)+(u==null?void 0:u.value)+(Y==null?void 0:Y.value)+(q==null?void 0:q.value)||e.isExistingUser?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",t(!0)):o.className="verified-custd-mdl-startup-button"},ie=async()=>{var o,E,ee,te,K,f,u,Y,q,ae,W,X,ge,b,U,de,ce,ue,Ve,Ee,Ae,ke,re,le,s,pe,_e,Xe,rt,st,dt,lt,ct,ut;if(!e.helperFunctions)w("No Helper Functions. Please include all helper functions in the CreatePinPage props."),t(!0);else{w(""),t(!1);let he=document.getElementById("verified-custd-mdl-otp-input-1"),ve=document.getElementById("verified-custd-mdl-otp-input-2"),ye=document.getElementById("verified-custd-mdl-otp-input-3"),be=document.getElementById("verified-custd-mdl-otp-input-4"),He=document.getElementById("verified-custd-mdl-otp-input-5"),je=document.getElementById("verified-custd-mdl-otp-input-6"),Ke=document.getElementById("verified-custd-mdl-otp-input-7"),Ge=document.getElementById("verified-custd-mdl-otp-input-8"),We=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(E=e.userNumberFmt)==null?void 0:E.replace(" ","")}`,$e=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(!e.isExistingUser&&((te=he==null?void 0:he.value)==null?void 0:te.length)>0&&((K=ve==null?void 0:ve.value)==null?void 0:K.length)>0&&((f=ye==null?void 0:ye.value)==null?void 0:f.length)>0&&((u=be==null?void 0:be.value)==null?void 0:u.length)>0&&((Y=He==null?void 0:He.value)==null?void 0:Y.length)>0&&((q=je==null?void 0:je.value)==null?void 0:q.length)>0&&((ae=Ke==null?void 0:Ke.value)==null?void 0:ae.length)>0&&((W=Ge==null?void 0:Ge.value)==null?void 0:W.length)>0&&We&&$e&&V&&A&&k||!e.isExistingUser&&((X=he==null?void 0:he.value)==null?void 0:X.length)>0&&((ge=ve==null?void 0:ve.value)==null?void 0:ge.length)>0&&((b=ye==null?void 0:ye.value)==null?void 0:b.length)>0&&((U=be==null?void 0:be.value)==null?void 0:U.length)>0&&((de=He==null?void 0:He.value)==null?void 0:de.length)>0&&((ce=je==null?void 0:je.value)==null?void 0:ce.length)>0&&((ue=Ke==null?void 0:Ke.value)==null?void 0:ue.length)>0&&((Ve=Ge==null?void 0:Ge.value)==null?void 0:Ve.length)>0&&We&&$e&&((Ee=e.vaultData)!=null&&Ee.vaultContract)&&((Ae=e.vaultData)!=null&&Ae.hashedOldPin)||e.isExistingUser&&((ke=he==null?void 0:he.value)==null?void 0:ke.length)>0&&((re=ve==null?void 0:ve.value)==null?void 0:re.length)>0&&((le=ye==null?void 0:ye.value)==null?void 0:le.length)>0&&((s=be==null?void 0:be.value)==null?void 0:s.length)>0&&We&&$e&&V&&A&&k||e.isExistingUser&&((pe=he==null?void 0:he.value)==null?void 0:pe.length)>0&&((_e=ve==null?void 0:ve.value)==null?void 0:_e.length)>0&&((Xe=ye==null?void 0:ye.value)==null?void 0:Xe.length)>0&&((rt=be==null?void 0:be.value)==null?void 0:rt.length)>0&&We&&$e&&((st=e.vaultData)!=null&&st.vaultContract)&&((dt=e.vaultData)!=null&&dt.hashedOldPin)){e.setIsLoading(!0);let Re=(he==null?void 0:he.value)+(ve==null?void 0:ve.value)+(ye==null?void 0:ye.value)+(be==null?void 0:be.value),Ct=fe(We),St=fe(Re);await vn(We,Ct,Re,St,$e,V||((lt=e.vaultData)==null?void 0:lt.pk),A||((ct=e.vaultData)==null?void 0:ct.address),k||((ut=e.vaultData)==null?void 0:ut.vaultContract),e.action,e.vaultData,e.txData).then($=>{var mt,ft;e.setIsLoading(!1),$?(d($!=null&&$.shouldStop&&($!=null&&$.vaultId)?{vaultId:$==null?void 0:$.vaultId,hashedVaultId:$==null?void 0:$.hashedVaultId,pk:$==null?void 0:$.pk,channel:$==null?void 0:$.channel}:$!=null&&$.shouldStop?{}:$),w(""),t(!1),e.action==="invitation"?(D(Re),S(!0)):e.action==="reset-pin"?((mt=chrome==null?void 0:chrome.storage)!=null&&mt.local?chrome.storage.local.remove("myVault"):!((ft=chrome==null?void 0:chrome.storage)!=null&&ft.local)&&localStorage&&localStorage.removeItem("myVault"),I("You have successfully reset your account pin. Login with the new pin"),M(!0)):$!=null&&$.shouldStop?$!=null&&$.shouldStop&&e.action!=="getPk"?(I(""),M(!0)):$!=null&&$.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):$===null?e.action==="reset-pin"?(w("Reset pin failed. Try again later."),t(!0)):(w("You are an existing user. Please input the right pin to recover your account."),t(!0)):(w("Unexpected error while creating account. Please try again later."),t(!0))})}}},ne=async o=>{var te,K,f,u,Y,q,ae,W;let E=((te=e.userEmail)==null?void 0:te.length)>0?e.userEmail:`+${e.selectedCountry.area}${(K=e.userNumberFmt)==null?void 0:K.replace(" ","")}`,ee=((f=e.userEmail)==null?void 0:f.length)>0?"email":"sms";if((z==null?void 0:z.length)===4&&((u=e==null?void 0:e.vaultData)!=null&&u.hashedVaultId)&&((Y=e.vaultData)!=null&&Y.hashedVaultPin)&&E){e.setIsLoading(!0);let X=fe(E),ge=fe(z);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,X,ge,(q=e==null?void 0:e.vaultData)==null?void 0:q.hashedVaultId,(ae=e.vaultData)==null?void 0:ae.hashedVaultPin,(W=e.vaultData)==null?void 0:W.vaultId,E,o,k).then(b=>{var U,de;e.setIsLoading(!1),b&&!(O!=null&&O.isExisting)&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(o?`You have been added as a Co-Signer for ${(U=e.vaultData)==null?void 0:U.vaultId}`:`You rejected Co-signer reject from ${(de=e.vaultData)==null?void 0:de.vaultId}`),e.setStep("5")):b&&(O!=null&&O.isExisting)&&B(!0)})}};return h.createElement(h.Fragment,null,!F&&!m&&h.createElement("div",{className:"verified-custd-mdl-startup-language"},h.createElement("div",{className:"verified-custd-mdl-startup-contact"},h.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter PIN"),h.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."),e.isExistingUser&&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"}},((J=e.userEmail)==null?void 0:J.length)>0?e.userEmail:`+${e.selectedCountry.area}${(Q=e.userNumberFmt)==null?void 0:Q.replace(" ","")}`)," ","account."))),h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&h.createElement("p",null),r&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:_.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:_.pinHide,alt:"hide pin icon"}))),!e.isExistingUser&&h.createElement("div",{className:"verified-custd-mdl-otp-input-container"},h.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),h.createElement("div",{className:"verified-custd-mdl-otp-input-group"},h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),h.createElement("input",{onInputCapture:o=>{var E;o.target.value=(E=o.target.value)==null?void 0:E.replace(/\D/g,""),t(!1)},onInput:o=>{C(o.target),j()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&P(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),h.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&h.createElement("p",null),r&&a===""&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(a==null?void 0:a.length)>0&&h.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},a),!l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!0),src:_.pinShow,alt:"show pin icon"}),l&&h.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>g(!1),src:_.pinHide,alt:"hide pin icon"})))),!c&&h.createElement("div",{style:{height:"30px"}}),h.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},h.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},h.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await ie();else{let E=document.getElementsByClassName("verified-custd-mdl-startup-button-active");E.length>0&&(E[0].className="verified-custd-mdl-startup-button-click",await ie())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!F&&m&&h.createElement(h.Fragment,null,!N&&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(De,{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,(H=e.vaultData)==null?void 0:H.vaultId)," has requested you to be a Co-Signer"))),h.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!L&&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:_.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:_.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:()=>{y(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),h.createElement("button",{onClick:async()=>{await ne(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),L&&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,(oe=e.vaultData)==null?void 0:oe.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 ne(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),h.createElement("button",{onClick:()=>{y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),N&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:L?`You rejected Co-signer reject from ${(se=e.vaultData)==null?void 0:se.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),F&&h.createElement(Be,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:(v==null?void 0:v.length)>0?v:"You have successfully logged in your account."}))},wt=aa;import n,{useState as Ne}from"react";var ia=e=>{var E,ee,te,K;let[c,p]=Ne(!1),[r,t]=Ne("1"),[a,w]=Ne("1"),[l,g]=Ne(!1),[m,S]=Ne("email"),[N,B]=Ne(""),[F,M]=Ne(""),[v,I]=Ne(""),[z,D]=Ne(""),[L,y]=Ne(""),[A,V]=Ne(!1),[k,d]=Ne(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=Ne([]),[C,P]=Ne(!1),[j,ie]=Ne(2),[ne,J]=Ne(""),{pk:Q,vaultData:H,vaultContract:oe}=Le(),R=()=>{let f=document.getElementById("add-cosigner-button");f&&(i==null?void 0:i.length)>0?f.className="startup-button-active":f.className="startup-button"},se=()=>{var u,Y,q,ae;if(m==="sms"&&(N==null?void 0:N.length)===0){J("Invalid input, please check the phone number");return}else if(m==="sms"&&(N==null?void 0:N.length)!==10){J("Invalid input, please check the phone number");return}else if(m==="email"&&(v==null?void 0:v.length)===0){J("Invalid input, please check the email");return}else if(m==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(v)){J("Invalid input, please check the email");return}else if(i!=null&&i.find(W=>{var X,ge,b,U;return(W==null?void 0:W.otpChannel)==="sms"?((X=W==null?void 0:W.phoneArea)==null?void 0:X.toLowerCase())+((ge=W==null?void 0:W.number)==null?void 0:ge.toLowerCase())===((b=k.area)==null?void 0:b.toLowerCase())+(F==null?void 0:F.toLowerCase()):((U=W==null?void 0:W.email)==null?void 0:U.toLowerCase())===(v==null?void 0:v.toLowerCase())})){J(m==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(m==="sms"&&((u=k==null?void 0:k.area)==null?void 0:u.toLowerCase())+(F==null?void 0:F.toLowerCase())===((Y=e.selectedCountry.area)==null?void 0:Y.toLowerCase())+((q=e.userNumberFmt)==null?void 0:q.toLowerCase())){J("Invalid input, phone number is creator's phone number");return}else if(m==="email"&&(v==null?void 0:v.toLowerCase())===((ae=e.userEmail)==null?void 0:ae.toLowerCase())){J("Invalid input, email is creator's email");return}J("");let f=i==null?void 0:i.length;O(W=>[{name:z,email:v,number:F,phoneNumber:`+${k==null?void 0:k.area}${N}`,otpChannel:m,phoneArea:k==null?void 0:k.area,position:(W==null?void 0:W.length)+1,vaultId:m==="sms"?`+${k==null?void 0:k.area}${N}`:v},...W]),I(""),D(""),B(""),M(""),y(""),f+1===4&&g(!1)},o=async()=>{var u,Y,q,ae,W,X;let f=[{otpChannel:((u=e==null?void 0:e.userEmail)==null?void 0:u.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(Y=e==null?void 0:e.selectedCountry)==null?void 0:Y.area}${(q=e==null?void 0:e.userNumberFmt)==null?void 0:q.replace(" ","")}`,vaultId:H==null?void 0:H.vaultId},...i];(f==null?void 0:f.length)>0&&(i==null?void 0:i.length)>0&&j&&(H!=null&&H.vaultId)&&(H!=null&&H.hashedVaultId)&&(H!=null&&H.vaultPin)&&(H!=null&&H.hashedVaultPin)&&oe&&Q&&((ae=e.helperFunctions)!=null&&ae.sendCoSignerInvitation)&&((W=e.helperFunctions)!=null&&W.sendCreatorConfirmation)&&(e.setIsLoading(!0),await bn(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,f,i,((X=e==null?void 0:e.userEmail)==null?void 0:X.length)>0?"email":"sms",j,H.vaultId,H.hashedVaultId,H.vaultPin,H.hashedVaultPin,oe,Q).then(ge=>{e.setIsLoading(!1),ge&&e.setStep("7")}))};return n.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!c&&n.createElement(n.Fragment,null,a==="1"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.pkicon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.encryptedIcon,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",n.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},n.createElement("img",{src:_.supervise,alt:"icon"})),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",n.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."))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>{t("1"),p(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),n.createElement("button",{onClick:()=>{w("2"),g(!1),p(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),a==="2"&&n.createElement(n.Fragment,null," ",n.createElement("div",{className:"verified-custd-mdl-startup-contact"},n.createElement(De,{sliderCount:[1,2,3],currentSlider:"2"}),n.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},n.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),n.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!C&&n.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."),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},n.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."))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((E=e.userEmail)==null?void 0:E.length)>0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((ee=e.userEmail)==null?void 0:ee.length)===0&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!C&&i.sort((f,u)=>(f==null?void 0:f.position)-(u==null?void 0:u.position)).map((f,u)=>{var Y,q;return n.createElement("div",{key:u,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(Y=gt[f==null?void 0:f.position])==null?void 0:Y.split(" ")[0],n.createElement("sup",null,(q=gt[f==null?void 0:f.position])==null?void 0:q.split(" ")[1])," ","Co-Signer")),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},f==null?void 0:f.name),f.otpChannel==="email"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},f.email),f.otpChannel==="sms"&&n.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",f==null?void 0:f.phoneArea,") ",f.number))),n.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},n.createElement("img",{style:{cursor:"pointer"},src:_.editBlack,alt:"edit"}),n.createElement("img",{onClickCapture:()=>{O(ae=>{var W;return(W=ae==null?void 0:ae.filter(X=>{var ge,b,U,de,ce,ue;return(X==null?void 0:X.otpChannel)==="sms"?((ge=X==null?void 0:X.phoneArea)==null?void 0:ge.toLowerCase())+((b=X==null?void 0:X.number)==null?void 0:b.toLowerCase())!==((U=f==null?void 0:f.phoneArea)==null?void 0:U.toLowerCase())+((de=f==null?void 0:f.number)==null?void 0:de.toLowerCase()):((ce=X==null?void 0:X.email)==null?void 0:ce.toLowerCase())!==((ue=f==null?void 0:f.email)==null?void 0:ue.toLowerCase())}))==null?void 0:W.map((X,ge)=>(X.position=ge+1,X))})},onClick:()=>{R()},style:{cursor:"pointer"},src:_.delete,alt:"delete"}))))})),C&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},n.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"),n.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.")),n.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("div",{style:u+1===j?{}:{height:"0",width:"0",overflow:"hidden"},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(u+1))," "),n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:_.pointer,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},n.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},n.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:_.sliderDot,alt:""})))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((f,u)=>n.createElement("p",{style:u===(i==null?void 0:i.length)?{paddingRight:"12px"}:u===0?{paddingLeft:"12px"}:{},onClick:()=>{u+1>1&&ie(u+1)},key:u,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(u+1)))))),n.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",await o();else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click"),await o()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&n.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(te=gt[(i==null?void 0:i.length)+1])==null?void 0:te.split(" ")[0],n.createElement("sup",null,(K=gt[(i==null?void 0:i.length)+1])==null?void 0:K.split(" ")[1])," ","Co-Signer"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},n.createElement("input",{onInput:f=>{D(f.target.value)},value:z,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{S("sms"),J(""),I("")},src:m==="sms"?_.selectClicked:_.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},n.createElement("img",{onClick:()=>{S("email"),J(""),B(""),M(""),y("")},src:m==="email"?_.selectClicked:_.select,alt:""}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},m==="sms"&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},n.createElement("div",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-first-section"},n.createElement("img",{onClick:()=>{V(!A)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:k.flag}),n.createElement("p",{onClick:()=>{V(!A)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",k.area),A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowUp}),!A&&n.createElement("img",{onClick:()=>{V(!A)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:_.arrowDown})),n.createElement("input",{onInputCapture:f=>{var q;f.target.value===""?y(L+" "):y(f.target.value);let u=(q=f.target.value)==null?void 0:q.replace(/\D/g,"");B(u);let Y="";for(let ae=0;ae<(u==null?void 0:u.length);ae++)Y+=u[ae],(ae+1)%5===0&&ae+1<(u==null?void 0:u.length)&&(Y+=" ");M(Y),J("")},onInput:f=>{R()},value:F,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),A&&n.createElement(At,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:R,setSelected:d,selected:k,searchActive:A,setSearchActive:V,contentMaxHeight:"300",contentbottomMargin:"300"}),ne===""&&N.length!==10&&L.length>10&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))),m==="email"&&n.createElement(n.Fragment,null,n.createElement("div",{className:"verified-custd-mdl-st-contact-input"},n.createElement("input",{style:{width:"100%"},onInputCapture:f=>{I(f.target.value),J("")},onInput:f=>{R()},value:v,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ne!==""&&n.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},n.createElement("p",{className:"verified-custd-mdl-input-error-text"},ne))))),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},n.createElement("button",{onClick:()=>g(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),n.createElement("button",{onClickCapture:()=>{se()},onClick:()=>R(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!C&&(i==null?void 0:i.length)<4&&n.createElement("div",{onClick:()=>g(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},n.createElement("img",{style:{width:"20px"},src:_.addIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!C&&(i==null?void 0:i.length)===4&&n.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},n.createElement("img",{style:{width:"20px"},src:_.addDisableIcon,alt:"add icon"}),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!C&&n.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},id:"add-cosigner-button",onClick:async f=>{if(f.target.className.includes("startup-button")&&f.target.className!=="startup-button")f.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),P(!0),g(!1));else{let u=document.getElementsByClassName("startup-button-active");u.length>0&&(u[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(ie(2),P(!0),g(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),c&&n.createElement(n.Fragment,null,r==="1"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon2,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),n.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."," ")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>p(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="2"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon3,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),n.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")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>t("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="3"&&n.createElement(n.Fragment,null,n.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon4,alt:""}),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},n.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),n.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."),n.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),n.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},n.createElement("button",{onClick:()=>t("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),n.createElement("button",{onClick:()=>{w("2"),g(!1),p(!1),t("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},Nt=ia;import x,{useEffect as oa,useState as Ce}from"react";import{ethers as ra}from"ethers";var sa=e=>{var q,ae,W,X,ge;let[c,p]=Ce(e.fontsLoaded||!1),[r,t]=Ce(!1),[a,w]=Ce(!0),[l,g]=Ce(!1),[m,S]=Ce(!1),[N,B]=Ce(null),[F,M]=Ce(null),[v,I]=Ce(e.newChainId||Oe),[z,D]=Ce(!1),[L,y]=Ce(!1),[A,V]=Ce(!1),[k,d]=Ce(!1),[i,O]=Ce(!1),[C,P]=Ce(""),[j,ie]=Ce(!1),[ne,J]=Ce({}),{setChainId:Q,setAddress:H,setPk:oe,setProvider:R,setSigner:se,setVaultContract:o,setVaultData:E}=Le();oa(()=>{let b=()=>{let U=tt(document);p(U)};e.fontsLoaded||b()},[]);let ee=b=>{if(b.value.length>0){let U=b.nextElementSibling;U&&U.focus()}else b.value.length===0&&b.focus()},te=b=>{let U=b.clipboardData.getData("text"),de=U==null?void 0:U.replace(/\D/g,""),ce=document.getElementsByClassName("otp-input");if((ce==null?void 0:ce.length)===4&&(de==null?void 0:de.length)>0)for(let ue=0;ue<ce.length;ue++)de[ue]&&(ce[ue].value=de[ue],ce[ue].focus())},K=b=>{let U=b.target.previousElementSibling;U&&U.focus()},f=()=>{let b=document.getElementById("verified-custd-mdl-otp-button"),U=document.getElementById("verified-custd-mdl-otp-input-1"),de=document.getElementById("verified-custd-mdl-otp-input-2"),ce=document.getElementById("verified-custd-mdl-otp-input-3"),ue=document.getElementById("verified-custd-mdl-otp-input-4");b&&(U==null?void 0:U.value.length)>0&&(de==null?void 0:de.value.length)>0&&(ce==null?void 0:ce.value.length)>0&&(ue==null?void 0:ue.value.length)>0&&!r?b.className="verified-custd-mdl-startup-button-active":b.className="verified-custd-mdl-startup-button"},u=async()=>{var b,U,de,ce,ue,Ve;if(!e.helperFunctions)P("No Helper Functions. Please include all helper functions in the EnterPinPage props."),t(!0);else{P(""),t(!1);let Ee=document.getElementById("verified-custd-mdl-otp-input-1"),Ae=document.getElementById("verified-custd-mdl-otp-input-2"),ke=document.getElementById("verified-custd-mdl-otp-input-3"),re=document.getElementById("verified-custd-mdl-otp-input-4");if(((b=Ee==null?void 0:Ee.value)==null?void 0:b.length)>0&&((U=Ae==null?void 0:Ae.value)==null?void 0:U.length)>0&&((de=ke==null?void 0:ke.value)==null?void 0:de.length)>0&&((ce=re==null?void 0:re.value)==null?void 0:ce.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let le=(Ee==null?void 0:Ee.value)+(Ae==null?void 0:Ae.value)+(ke==null?void 0:ke.value)+(re==null?void 0:re.value);await yn(e.vaultId,e.hashedVaultId,le,fe(le),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(v),(Ve=ln)==null?void 0:Ve.includes((ue=e.origin)==null?void 0:ue.toLowerCase())).then(async s=>{var pe,_e,Xe,rt,st,dt,lt,ct,ut,he,ve,ye,be,He,je,Ke,Ge,We,$e,Re,Ct,St,$,mt,ft,Ot,Mt,zt,Ht,jt,Kt,Gt,Wt,$t,Yt,Zt,Jt,qt,Xt,Qt,Rt,en,tn,nn,an,on;if(s&&!(s!=null&&s.inCompleteVault))e.setIsLoading(!1),B(s),M(s!=null&&s.pk&&e.action!=="eth_requestAccounts"?{address:s.address,channel:s.channel,chainId:s.chainId,pk:s==null?void 0:s.pk}:{address:e.regAddress,channel:s.channel,chainId:s.chainId}),e.action==="getPk"&&((_e=(pe=e.reqVaultData)==null?void 0:pe.vaultId)==null?void 0:_e.toLowerCase())===((Xe=e.vaultId)==null?void 0:Xe.toLowerCase())?(e.setIsLoading(!0),await xn(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),(Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),Fe?S(!0):(P("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),t(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await wn(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(rt=e.reqVaultData)==null?void 0:rt.vaultId,(st=e.reqVaultData)==null?void 0:st.hashedVaultId,(dt=e.reqVaultData)==null?void 0:dt.hashedVaultPin,(lt=e.reqTxData)==null?void 0:lt.id,Number(v)).then(async Fe=>{var Te,Ue,rn,sn;e.setIsLoading(!1),!((Te=e.reqTxData)!=null&&Te.newUser)&&((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((rn=e.reqTxData)!=null&&rn.newUser)&&!((sn=chrome==null?void 0:chrome.storage)!=null&&sn.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Fe?S(!0):(P("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),t(!0))})):e.action==="completeRecovery"&&((ut=(ct=e.reqVaultData)==null?void 0:ct.vaultId)==null?void 0:ut.toLowerCase())===((he=e.vaultId)==null?void 0:he.toLowerCase())?(e.setIsLoading(!0),await Nn(e.hashedVaultId,fe(le),e.vaultId,le,e.encrptedPk,(ve=e.reqTxData)==null?void 0:ve.id,e.vaultChannel,Number(v)).then(async Fe=>{var Te,Ue;e.setIsLoading(!1),Fe?S(!0):((Te=chrome==null?void 0:chrome.storage)!=null&&Te.local?await chrome.storage.local.remove("myVault"):!((Ue=chrome==null?void 0:chrome.storage)!=null&&Ue.local)&&localStorage&&localStorage.removeItem("myVault"),P("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),t(!0))})):e.action==="eth_sendTransaction"&&((ye=e.encrptedPk)==null?void 0:ye.length)>0&&((be=s==null?void 0:s.pin)==null?void 0:be.length)>0&&e.signTxElement?(J({chainId:v,ky:ra.encodeBytes32String(s==null?void 0:s.pin),...e.txToSign}),y(!1),ie(!0)):e.action==="invitation"&&((je=(He=e.reqVaultData)==null?void 0:He.vaultId)==null?void 0:je.toLowerCase())!==((Ke=e.vaultId)==null?void 0:Ke.toLowerCase())&&((We=(Ge=e.reqVaultData)==null?void 0:Ge.coSignerId)==null?void 0:We.toLowerCase())===(($e=e.vaultId)==null?void 0:$e.toLowerCase())?(P(""),t(!1),y(!0)):e.action==="invitation"&&((Ct=(Re=e.reqVaultData)==null?void 0:Re.vaultId)==null?void 0:Ct.toLowerCase())===((St=e.vaultId)==null?void 0:St.toLowerCase())?(P(`You cannot accept your own Co-Signer invitation. please logout and login to: ${($=e.reqVaultData)==null?void 0:$.coSignerId} account`),t(!0)):e.action==="invitation"&&((ft=(mt=e.reqVaultData)==null?void 0:mt.coSignerId)==null?void 0:ft.toLowerCase())!==((Ot=e.vaultId)==null?void 0:Ot.toLowerCase())?(P(`You cannot accept this Co-Signer invitation. please logout and login to: ${(Mt=e.reqVaultData)==null?void 0:Mt.coSignerId} account`),t(!0)):e.action==="getPk"&&((Ht=(zt=e.reqVaultData)==null?void 0:zt.vaultId)==null?void 0:Ht.toLowerCase())!==((jt=e.vaultId)==null?void 0:jt.toLowerCase())?((Kt=chrome==null?void 0:chrome.storage)!=null&&Kt.local?await chrome.storage.local.remove("myVault"):!((Gt=chrome==null?void 0:chrome.storage)!=null&&Gt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to fetch account details. please logout and login to: ${(Wt=e.reqVaultData)==null?void 0:Wt.vaultId} account`),t(!0)):e.action==="completeRecovery"&&((Yt=($t=e.reqVaultData)==null?void 0:$t.vaultId)==null?void 0:Yt.toLowerCase())!==((Zt=e.vaultId)==null?void 0:Zt.toLowerCase())?((Jt=chrome==null?void 0:chrome.storage)!=null&&Jt.local?await chrome.storage.local.remove("myVault"):!((qt=chrome==null?void 0:chrome.storage)!=null&&qt.local)&&localStorage&&localStorage.removeItem("myVault"),P(`You are not authorized to restore login access for this account. please logout and login to: ${(Xt=e.reqVaultData)==null?void 0:Xt.vaultId} account`),t(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)||e.action==="eth_requestAccounts"&&!(e!=null&&e.vaultAddress)?(P("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),t(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(P("Incomplete account login detected. Logout and try again later"),t(!0)):(P(""),t(!1),S(!0));else if(s&&(s!=null&&s.inCompleteVault)&&(s!=null&&s.pk)){let Fe=await nt(Number(v),s==null?void 0:s.pk);if(Q(Fe.chainId),H(Fe.address),oe(Fe.pk),R(Fe.provider),se(Fe.signer),o(Fe.vaultContract),E({vaultId:s==null?void 0:s.vaultId,hashedVaultId:s==null?void 0:s.hashedVaultId,vaultPin:s==null?void 0:s.pin,hashedVaultPin:fe(s==null?void 0:s.pin),vaultContract:Fe.vaultContract}),((Qt=s==null?void 0:s.channel)==null?void 0:Qt.toLowerCase())==="sms"){let Te=(en=s==null?void 0:s.vaultId)==null?void 0:en.replace((Rt=s==null?void 0:s.vaultId)==null?void 0:Rt.slice(-10),""),Ue=((nn=(tn=s==null?void 0:s.vaultId)==null?void 0:tn.slice(-10))==null?void 0:nn.slice(0,5))+" "+((on=(an=s==null?void 0:s.vaultId)==null?void 0:an.slice(-10))==null?void 0:on.slice(5));e.setSelectedCountry({area:Te==null?void 0:Te.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ue),e.setUserEmail("")}else e.setUserEmail(s==null?void 0:s.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else P(""),t(!0),e.setIsLoading(!1)})}}},Y=async b=>{var de,ce,ue,Ve,Ee,Ae,ke,re,le;let U=e.vaultId;if(((de=N==null?void 0:N.pin)==null?void 0:de.length)>0&&((ce=N==null?void 0:N.pk)==null?void 0:ce.length)>0&&((ue=e==null?void 0:e.reqVaultData)!=null&&ue.hashedVaultId)&&((Ve=e.reqVaultData)!=null&&Ve.hashedVaultPin)&&U&&((Ee=e.helperFunctions)!=null&&Ee.sendCreatorAcceptance)&&((Ae=e.helperFunctions)!=null&&Ae.sendCreatorRejection)){e.setIsLoading(!0);let s=N.pin,pe=fe(U),_e=fe(s);await It(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,pe,_e,(ke=e==null?void 0:e.reqVaultData)==null?void 0:ke.hashedVaultId,(re=e.reqVaultData)==null?void 0:re.hashedVaultPin,(le=e==null?void 0:e.reqVaultData)==null?void 0:le.vaultId,U,b,null,N.pk,Number(v)).then(Xe=>{e.setIsLoading(!1),Xe&&(O(b),V(!0))})}};return x.createElement(x.Fragment,null,c&&!L&&!j&&x.createElement(x.Fragment,null,!m&&x.createElement("div",{className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(De,{sliderCount:[1],currentSlider:"0"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},x.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),x.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},x.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",x.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",x.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),x.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&x.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),x.createElement("div",{className:"verified-custd-mdl-otp-input-container"},x.createElement("div",{className:"verified-custd-mdl-otp-input-group"},x.createElement("input",{onInputCapture:b=>{var U;b.target.value=(U=b.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:b=>{ee(b.target),f()},onKeyDown:b=>{b.key==="Backspace"&&b.target.value===""&&K(b)},onPaste:b=>{te(b)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),x.createElement("input",{onInputCapture:b=>{var U;b.target.value=(U=b.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:b=>{ee(b.target),f()},onKeyDown:b=>{b.key==="Backspace"&&b.target.value===""&&K(b)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),x.createElement("input",{onInputCapture:b=>{var U;b.target.value=(U=b.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:b=>{ee(b.target),f()},onKeyDown:b=>{b.key==="Backspace"&&b.target.value===""&&K(b)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),x.createElement("input",{onInputCapture:b=>{var U;b.target.value=(U=b.target.value)==null?void 0:U.replace(/\D/g,""),t(!1)},onInput:b=>{ee(b.target),f()},onKeyDown:b=>{b.key==="Backspace"&&b.target.value===""&&K(b)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:a?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),x.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&C===""&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(C==null?void 0:C.length)>0&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},C),!r&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!a&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>w(!0),src:_.pinShow,alt:"show pin icon"}),a&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>w(!1),src:_.pinHide,alt:"hide pin icon"})))),!l&&x.createElement("div",{style:{height:"100px"}}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},x.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},x.createElement(pn,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),x.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async b=>{if(b.target.className.includes("verified-custd-mdl-startup-button")&&b.target.className!=="verified-custd-mdl-startup-button")b.target.className="verified-custd-mdl-startup-button-click",await u();else{let U=document.getElementsByClassName("verified-custd-mdl-startup-button-active");U.length>0&&(U[0].className="verified-custd-mdl-startup-button-click",await u())}},className:"verified-custd-mdl-startup-button"},"Proceed")))),m&&x.createElement(Be,{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:F},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: ${(q=e.reqVaultData)==null?void 0:q.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"||e.action==="eth_requestAccounts"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),c&&L&&!j&&x.createElement(x.Fragment,null,!A&&x.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(De,{sliderCount:[1,2,3],currentSlider:"1"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},x.createElement("b",null,(ae=e.reqVaultData)==null?void 0:ae.vaultId)," has requested you to be a Co-Signer"))),x.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:_.addCoSignerIcon1,alt:""}),!k&&x.createElement(x.Fragment,null,x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),x.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:_.pkicon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:_.encryptedIcon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:()=>{d(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),x.createElement("button",{onClick:async()=>{await Y(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),k&&x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),x.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",x.createElement("b",null,(W=e.reqVaultData)==null?void 0:W.vaultId),", you will not be able to reset the PIN for them.")),x.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:async()=>{await Y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),x.createElement("button",{onClick:()=>{d(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),A&&x.createElement(Be,{messageTosend:{type:"getPk",key:"vaultData",value:N},customTextHeader:"Successful",customTextFooter:i?`You have been added as a Co-Signer for ${(X=e.reqVaultData)==null?void 0:X.vaultId}`:`You rejected Co-signer reject from ${(ge=e.reqVaultData)==null?void 0:ge.vaultId}`})),c&&!L&&j&&x.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:ne}),!c&&x.createElement("h3",null,"Preparing Modules..."))},ot=sa;var la=e=>{var ee,te;let[c,p]=Ie(e.fontsLoaded||!1),[r,t]=Ie(e.showLogoPage||!1),[a,w]=Ie([]),[l,g]=Ie("2"),[m,S]=Ie(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[N,B]=Ie(""),[F,M]=Ie(""),[v,I]=Ie(!1),[z,D]=Ie(""),[L,y]=Ie(""),[A,V]=Ie(""),[k,d]=Ie(""),[i,O]=Ie(null),[C,P]=Ie(null),[j,ie]=Ie(!1),{setChainId:ne,setAddress:J,setPk:Q,setProvider:H,setSigner:oe,setVaultContract:R,setVaultData:se,vaultData:o,chainId:E}=Le();return _t(()=>{let K=()=>{let f=tt(document);p(f)};e.fontsLoaded||K()},[]),_t(()=>{(async()=>{var Y,q;let f;(Y=chrome==null?void 0:chrome.storage)!=null&&Y.local?f=await new Promise(ae=>{chrome.storage.local.get(["lastPk"],W=>{ae(W.lastPk)})}):!((q=chrome==null?void 0:chrome.storage)!=null&&q.local)&&localStorage&&(f=localStorage.getItem("lastPk"));let u=await nt(e.chainId,f&&(f==null?void 0:f.length)>0?f:void 0);ne(u.chainId),J(u.address),Q(u.pk),H(u.provider),oe(u.signer),R(u.vaultContract),se(u.vaultData)})()},[]),_t(()=>{da(()=>{t(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),_t(()=>{(()=>{let f=Et.map(u=>{if(u)return{name:u==null?void 0:u.name,countryName:u==null?void 0:u.name,officialName:u==null?void 0:u.name,currencySymbol:u==null?void 0:u.currency,currencyName:u==null?void 0:u.currency,officialCurrencySymbol:u==null?void 0:u.currency,countryCode:u==null?void 0:u.code,flag:u==null?void 0:u.flag,continent:u==null?void 0:u.continent,phone_code:u==null?void 0:u.phone_code,code:u==null?void 0:u.code}}).flat();w(f==null?void 0:f.filter(u=>u!==void 0))})()},[]),xe.createElement(xe.Fragment,null,c&&r&&e.logoPageElement&&xe.createElement(xe.Fragment,null," ",e.logoPageElement),c&&!r&&xe.createElement(xe.Fragment,null,l==="2"&&xe.createElement(Bt,{setStep:g,setIsLoading:e.setIsLoading,setUserNumberFmt:B,userNumberFmt:N,setUserEmail:M,userEmail:F,setSelectedCountry:S,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="3"&&xe.createElement(Vt,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:N,setUserNumberFmt:B,setUserEmail:M,userEmail:F,selectedCountry:m,helperFunctions:e.helperFunctions,setIsExistingUser:ie}),l==="4"&&xe.createElement(wt,{setStep:g,setIsLoading:e.setIsLoading,setShowSuccessBtn:I,setSuccessBtnText:D,setSuccessBtnNeutText:y,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:P,userNumberFmt:N,userEmail:F,selectedCountry:m,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:V,setActionFooterText:d,helperFunctions:e.helperFunctions,isExistingUser:j}),l==="5"&&xe.createElement(Be,{setStep:g,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:v,buttonText:z,buttonNeutText:L,buttonFunc:i,buttonNeutFunc:C,actionHeaderText:A,actionFooterText:k}),l==="6"&&xe.createElement(Nt,{setStep:g,setIsLoading:e.setIsLoading,userNumberFmt:N,userEmail:F,selectedCountry:m,allCountries:a,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),l==="7"&&e.action===""&&xe.createElement(Be,{action:e.action,setStep:g,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&xe.createElement(Be,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:E}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&xe.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),l==="8"&&!e.dashbordElement&&xe.createElement(xe.Fragment,null),l==="0"&&xe.createElement(ot,{fontsLoaded:c,vaultId:o==null?void 0:o.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:o==null?void 0:o.hashedVaultId,encrptedPk:o==null?void 0:o.pk,vaultAddress:o==null?void 0:o.address,vaultChannel:o==null?void 0:o.channel,actionText:pt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(E||e.chainId),action:"getPk",reqVaultData:o,reqTxData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(K=>(e.txData[K]=decodeURIComponent(e.txData[K]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,helperFunctions:e.helperFunctions,setUserEmail:M,setUserNumberFmt:B,setSelectedCountry:S,enablePhone:e.enablePhone})),!c&&xe.createElement("h3",null,"Preparing Modules..."))},Ut=la;import{motion as ca}from"framer-motion";var ua=e=>{var Q,H,oe,R,se,o,E,ee,te,K,f,u,Y,q,ae,W,X,ge,b,U,de,ce,ue,Ve,Ee,Ae,ke;let[c,p]=Se(!0),[r,t]=Se(null),[a,w]=Se({}),[l,g]=Se({}),[m,S]=Se(!1),[N,B]=Se(!1),[F,M]=Se(!1),[v,I]=Se(!1),[z,D]=Se(""),[L,y]=Se([]),[A,V]=Se(""),[k,d]=Se(e.defaultCountry||{area:"1",flag:_.usaFlag,name:"United States"}),[i,O]=Se(""),[C,P]=Se(""),[j,ie]=Se(null),[ne,J]=Se(null);return Ft(()=>{(()=>{let le=tt(document);p(le)})()},[]),Ft(()=>{(()=>{var le,s;if((le=chrome==null?void 0:chrome.storage)!=null&&le.local)chrome.storage.local.get("myVault",pe=>{var _e;pe.myVault&&((_e=JSON.parse(pe.myVault))!=null&&_e.vaultId)?(w(JSON.parse(pe.myVault)),t(!0)):t(!1)});else if(!((s=chrome==null?void 0:chrome.storage)!=null&&s.local)&&localStorage){let pe=JSON.parse(localStorage.getItem("myVault"));pe&&(pe!=null&&pe.vaultId)?(w(pe),t(!0)):t(!1)}else t(!1)})()},[]),Ft(()=>{(()=>{let le=Et.map(s=>{if(s)return{name:s==null?void 0:s.name,countryName:s==null?void 0:s.name,officialName:s==null?void 0:s.name,currencySymbol:s==null?void 0:s.currency,currencyName:s==null?void 0:s.currency,officialCurrencySymbol:s==null?void 0:s.currency,countryCode:s==null?void 0:s.code,flag:s==null?void 0:s.flag,continent:s==null?void 0:s.continent,phone_code:s==null?void 0:s.phone_code,code:s==null?void 0:s.code}}).flat();y(le==null?void 0:le.filter(s=>s!==void 0))})()},[]),Ft(()=>{function re(){var s,pe,_e;let le=document.querySelector("#verified-custd-out-cont");le?(ie((pe=(s=le.getBoundingClientRect())==null?void 0:s.height)==null?void 0:pe.toString()),ie((_e=le.scrollHeight)==null?void 0:_e.toString())):(ie(null),J(null))}return re(),window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),me.createElement(me.Fragment,null,c&&me.createElement(Dt,null,me.createElement("div",{id:"verified-custd-out-cont",className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&me.createElement(me.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&me.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),m&&me.createElement("div",{style:j&&ne&&window&&Number(ne)>window.innerHeight?{height:`${Number(j)+Number(ne)}px`}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},me.createElement(ca.img,{height:"50px",width:"50px",src:_.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),r!==null&&me.createElement(me.Fragment,null,!r&&me.createElement(Ut,{fontsLoaded:c,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((Q=e.reqVaultData)==null?void 0:Q.vId)||((H=e.reqVaultData)==null?void 0:H.vaultId)),hashedVaultId:fe(decodeURIComponent(((oe=e.reqVaultData)==null?void 0:oe.vId)||((R=e.reqVaultData)==null?void 0:R.vaultId))),hashedVaultPin:decodeURIComponent(((se=e.reqVaultData)==null?void 0:se.vPh)||((o=e.reqVaultData)==null?void 0:o.hashedVaultPin)),coSignerId:decodeURIComponent((E=e.reqVaultData)==null?void 0:E.cId)}:null,txData:e.txData?(te=Object.keys(e.txData))==null?void 0:te.map(re=>(e.txData[re]=decodeURIComponent(e.txData[re]),e.txData))[((ee=Object.keys(e.txData))==null?void 0:ee.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:t,setIsLoading:S,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone}),r&&!N&&!F&&me.createElement(ot,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,vaultChannel:a==null?void 0:a.channel,regAddress:a==null?void 0:a.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((K=e.reqVaultData)==null?void 0:K.vId)||((f=e.reqVaultData)==null?void 0:f.vaultId)),hashedVaultId:fe(decodeURIComponent(((u=e.reqVaultData)==null?void 0:u.vId)||((Y=e.reqVaultData)==null?void 0:Y.vaultId))),hashedVaultPin:decodeURIComponent(((q=e.reqVaultData)==null?void 0:q.vPh)||((ae=e.reqVaultData)==null?void 0:ae.hashedVaultPin)),coSignerId:decodeURIComponent((W=e.reqVaultData)==null?void 0:W.cId)}:null,reqTxData:e.txData?(ge=Object.keys(e.txData))==null?void 0:ge.map(re=>(e.txData[re]=decodeURIComponent(e.txData[re]),e.txData))[((X=Object.keys(e.txData))==null?void 0:X.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),r&&N&&F&&me.createElement(ot,{fontsLoaded:c,setisOnboard:t,vaultId:a==null?void 0:a.vaultId,hashedVaultId:a==null?void 0:a.hashedVaultId,encrptedPk:a==null?void 0:a.pk,vaultAddress:a==null?void 0:a.address,regAddress:a==null?void 0:a.regAddress,vaultChannel:a==null?void 0:a.channel,origin:e.origin,title:e.title,actionText:e.actionText||pt[e.action],setIsLoading:S,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((b=e.reqVaultData)==null?void 0:b.vId)||((U=e.reqVaultData)==null?void 0:U.vaultId)),hashedVaultId:fe(decodeURIComponent(((de=e.reqVaultData)==null?void 0:de.vId)||((ce=e.reqVaultData)==null?void 0:ce.vaultId))),hashedVaultPin:decodeURIComponent(((ue=e.reqVaultData)==null?void 0:ue.vPh)||((Ve=e.reqVaultData)==null?void 0:Ve.hashedVaultPin)),coSignerId:decodeURIComponent((Ee=e.reqVaultData)==null?void 0:Ee.cId)}:null,reqTxData:e.txData?(ke=Object.keys(e.txData))==null?void 0:ke.map(re=>(e.txData[re]=decodeURIComponent(e.txData[re]),e.txData))[((Ae=Object.keys(e.txData))==null?void 0:Ae.length)-1]:null,txToSign:e.txToSign?e.txToSign:null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:B,setShowCompleteVault:M,setUserEmail:P,setUserNumberFmt:O,setSelectedCountry:d,enablePhone:e.enablePhone}),r&&!N&&F&&A===""&&me.createElement(Nt,{setStep:V,setIsLoading:S,userNumberFmt:i,userEmail:C,selectedCountry:k,allCountries:L,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),r&&!N&&F&&A==="7"&&me.createElement(Be,{action:e.action,setStep:V,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),r&&!N&&F&&A==="8"&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:S}),r&&!N&&F&&A==="8"&&!e.dashbordElement&&me.createElement(me.Fragment,null),r&&!F&&N&&!v&&e.dashbordElement&&me.createElement(e.dashbordElement,{setIsLoading:S,setShowResetPin:I,setAction:D,setUserNumberFmt:O,setUserEmail:P,setSelectedCountry:d,setVaultData:g,initWalletAndContract:nt}),r&&!F&&N&&!v&&!e.dashbordElement&&me.createElement(me.Fragment,null),r&&!F&&N&&v&&me.createElement(wt,{action:"reset-pin",setStep:V,setIsLoading:S,userNumberFmt:i,userEmail:C,vaultData:l,selectedCountry:k,helperFunctions:e.helperFunctions})))),!c&&me.createElement("h3",null,"Preparing Modules..."))},ma=ua;export{Nt as AddCoSignersPage,Bt as ContactPage,wt as CreatePinPage,ot as EnterPinPage,Ut as FTUPage,Vt as OTPPage,Dt as VaultContextProvider,ma as VerifiedCustody,Qe as decryptString,Ze as encryptString,fe as hashTheString};
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|