@verified-network/verified-custody 0.2.7 → 0.2.9
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 +6 -3
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
function Rt(e){if(!e||typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.type="text/css",s.firstChild?s.insertBefore(f,s.firstChild):s.appendChild(f),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e))}Rt(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}
|
|
2
|
-
`);typeof chrome>"u"&&(window.chrome={});import ce,{useEffect as Qt,useState as He}from"react";import ea,{createContext as ta,useContext as aa,useState as Ee}from"react";var Bt=ta(void 0),Lt=e=>{let[s,f]=Ee(null),[r,a]=Ee(null),[n,S]=Ee(null),[l,p]=Ee(null),[u,k]=Ee(null),[_,V]=Ee(null),[F,O]=Ee(null),[w,A]=Ee(null);return ea.createElement(Bt.Provider,{value:{chainId:s,pk:r,address:n,signer:l,provider:u,vaultContract:_,vaultData:F,setChainId:f,setPk:a,setAddress:S,setSigner:p,setProvider:k,setVaultContract:V,setVaultData:O}},e.children)},ye=()=>{let e=aa(Bt);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import le,{useEffect as Je,useState as fe}from"react";import{debounce as Ca}from"lodash";var be=process.env.REACT_APP_NODE_ENV==="production"?8453:11155111,Fa=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Vt=["https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap","https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap"],Ut="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Ze="https://verify-1740-4at0oa.twil.io",Ot={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},Oe={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Mt={connect_wallet:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access"},D={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg"},Kt=[{name:"Afghanistan",code:"AF",currency:"AFN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/af.webp",phone_code:"93"},{name:"Albania",code:"AL",currency:"ALL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/al.webp",phone_code:"355"},{name:"Algeria",code:"DZ",currency:"DZD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dz.webp",phone_code:"213"},{name:"American Samoa",code:"AS",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/as.webp",phone_code:"1-684"},{name:"Andorra",code:"AD",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ad.webp",phone_code:"376"},{name:"Angola",code:"AO",currency:"AOA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ao.webp",phone_code:"244"},{name:"Anguilla",code:"AI",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ai.webp",phone_code:"1-264"},{name:"Antarctica",code:"AQ",currency:"N/A",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/aq.webp",phone_code:"N/A"},{name:"Antigua and Barbuda",code:"AG",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ag.webp",phone_code:"1-268"},{name:"Argentina",code:"AR",currency:"ARS",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ar.webp",phone_code:"54"},{name:"Armenia",code:"AM",currency:"AMD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/am.webp",phone_code:"374"},{name:"Aruba",code:"AW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/aw.webp",phone_code:"297"},{name:"Australia",code:"AU",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/au.webp",phone_code:"61"},{name:"Austria",code:"AT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/at.webp",phone_code:"43"},{name:"Azerbaijan",code:"AZ",currency:"AZN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/az.webp",phone_code:"994"},{name:"Bahamas",code:"BS",currency:"BSD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bs.webp",phone_code:"1-242"},{name:"Bahrain",code:"BH",currency:"BHD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bh.webp",phone_code:"973"},{name:"Bangladesh",code:"BD",currency:"BDT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bd.webp",phone_code:"880"},{name:"Barbados",code:"BB",currency:"BBD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bb.webp",phone_code:"1-246"},{name:"Belarus",code:"BY",currency:"BYR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/by.webp",phone_code:"375"},{name:"Belgium",code:"BE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/be.webp",phone_code:"32"},{name:"Belize",code:"BZ",currency:"BZD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bz.webp",phone_code:"501"},{name:"Benin",code:"BJ",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bj.webp",phone_code:"229"},{name:"Bermuda",code:"BM",currency:"BMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bm.webp",phone_code:"1-441"},{name:"Bhutan",code:"BT",currency:"BTN",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bt.webp",phone_code:"975"},{name:"Bolivia",code:"BO",currency:"BOB",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/bo.webp",phone_code:"591"},{name:"Bosnia and Herzegovina",code:"BA",currency:"BAM",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ba.webp",phone_code:"387"},{name:"Botswana",code:"BW",currency:"BWP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bw.webp",phone_code:"267"},{name:"Brazil",code:"BR",currency:"BRL",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/br.webp",phone_code:"55"},{name:"British Indian Ocean Territory",code:"IO",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/io.webp",phone_code:"246"},{name:"Brunei Darussalam",code:"BN",currency:"BND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/bn.webp",phone_code:"673"},{name:"Bulgaria",code:"BG",currency:"BGN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/bg.webp",phone_code:"359"},{name:"Burkina Faso",code:"BF",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bf.webp",phone_code:"226"},{name:"Burundi",code:"BI",currency:"BIF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/bi.webp",phone_code:"257"},{name:"Cambodia",code:"KH",currency:"KHR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kh.webp",phone_code:"855"},{name:"Cameroon",code:"CM",currency:"CFA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cm.webp",phone_code:"237"},{name:"Canada",code:"CA",currency:"CAD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ca.webp",phone_code:"1"},{name:"Cape Verde",code:"CV",currency:"CVE",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cv.webp",phone_code:"238"},{name:"Cayman Islands",code:"KY",currency:"KYD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ky.webp",phone_code:"1-345"},{name:"Central African Republic",code:"CF",currency:"XAF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cf.webp",phone_code:"236"},{name:"Chad",code:"TD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/td.webp",phone_code:"235"},{name:"Chile",code:"CL",currency:"CLP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/cl.webp",phone_code:"56"},{name:"China",code:"CN",currency:"CNY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/cn.webp",phone_code:"86"},{name:"Christmas Island",code:"CX",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cx.webp",phone_code:"61"},{name:"Cocos (Keeling) Islands",code:"CC",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/cc.webp",phone_code:"61"},{name:"Colombia",code:"CO",currency:"COP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/co.webp",phone_code:"57"},{name:"Comoros",code:"KM",currency:"KMF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/km.webp",phone_code:"269"},{name:"Congo (Congo-Brazzaville)",code:"CG",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cg.webp",phone_code:"242"},{name:"Congo (Democratic Republic of the Congo)",code:"CD",currency:"CDF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/cd.webp",phone_code:"243"},{name:"Cook Islands",code:"CK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ck.webp",phone_code:"682"},{name:"Costa Rica",code:"CR",currency:"CRC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cr.webp",phone_code:"506"},{name:"Croatia",code:"HR",currency:"HRK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hr.webp",phone_code:"385"},{name:"Cuba",code:"CU",currency:"CUP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cu.webp",phone_code:"53"},{name:"Cura\xE7ao",code:"CW",currency:"AWG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/cw.webp",phone_code:"599"},{name:"Cyprus",code:"CY",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cy.webp",phone_code:"357"},{name:"Czech Republic",code:"CZ",currency:"CZK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/cz.webp",phone_code:"420"},{name:"Denmark",code:"DK",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/dk.webp",phone_code:"45"},{name:"Djibouti",code:"DJ",currency:"DJF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/dj.webp",phone_code:"253"},{name:"Dominica",code:"DM",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/dm.webp",phone_code:"1-767"},{name:"Dominican Republic",code:"DO",currency:"DOP",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/do.webp",phone_code:"1-809"},{name:"Ecuador",code:"EC",currency:"USD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ec.webp",phone_code:"593"},{name:"Egypt",code:"EG",currency:"EGP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eg.webp",phone_code:"20"},{name:"El Salvador",code:"SV",currency:"SVC",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sv.webp",phone_code:"503"},{name:"Equatorial Guinea",code:"GQ",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gq.webp",phone_code:"240"},{name:"Eritrea",code:"ER",currency:"ERN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/er.webp",phone_code:"291"},{name:"Estonia",code:"EE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ee.webp",phone_code:"372"},{name:"Eswatini",code:"SZ",currency:"SZL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sz.webp",phone_code:"268"},{name:"Ethiopia",code:"ET",currency:"ETB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/et.webp",phone_code:"251"},{name:"Falkland Islands",code:"FK",currency:"FKP",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/fk.webp",phone_code:"500"},{name:"Faroe Islands",code:"FO",currency:"DKK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fo.webp",phone_code:"298"},{name:"Fiji",code:"FJ",currency:"FJD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fj.webp",phone_code:"679"},{name:"Finland",code:"FI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fi.webp",phone_code:"358"},{name:"France",code:"FR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/fr.webp",phone_code:"33"},{name:"Gabon",code:"GA",currency:"GAB",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ga.webp",phone_code:"241"},{name:"Gambia",code:"GM",currency:"GMD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gm.webp",phone_code:"220"},{name:"Georgia",code:"GE",currency:"GEL",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ge.webp",phone_code:"995"},{name:"Germany",code:"DE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/de.webp",phone_code:"49"},{name:"Ghana",code:"GH",currency:"GHS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gh.webp",phone_code:"233"},{name:"Greece",code:"GR",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gr.webp",phone_code:"30"},{name:"Greenland",code:"GL",currency:"DKK",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gl.webp",phone_code:"299"},{name:"Grenada",code:"GD",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gd.webp",phone_code:"1-473"},{name:"Guadeloupe",code:"GP",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gp.webp",phone_code:"590"},{name:"Guam",code:"GU",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/gu.webp",phone_code:"1-671"},{name:"Guatemala",code:"GT",currency:"GTQ",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/gt.webp",phone_code:"502"},{name:"Guinea",code:"GN",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gn.webp",phone_code:"224"},{name:"Guinea-Bissau",code:"GW",currency:"GNF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/gw.webp",phone_code:"245"},{name:"Guyana",code:"GY",currency:"GYD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/gy.webp",phone_code:"592"},{name:"Haiti",code:"HT",currency:"HTG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ht.webp",phone_code:"509"},{name:"Heard Island and McDonald Islands",code:"HM",currency:"AUD",continent:"Australia",flag:"https://flagpedia.net/data/flags/h80/hm.webp",phone_code:"61"},{name:"Honduras",code:"HN",currency:"HNL",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/hn.webp",phone_code:"504"},{name:"Hong Kong",code:"HK",currency:"HKD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/hk.webp",phone_code:"852"},{name:"Hungary",code:"HU",currency:"HUF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/hu.webp",phone_code:"36"},{name:"Iceland",code:"IS",currency:"ISK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/is.webp",phone_code:"354"},{name:"India",code:"IN",currency:"INR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/in.webp",phone_code:"91"},{name:"Indonesia",code:"ID",currency:"IDR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/id.webp",phone_code:"62"},{name:"Iran",code:"IR",currency:"IRR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ir.webp",phone_code:"98"},{name:"Iraq",code:"IQ",currency:"IQD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/iq.webp",phone_code:"964"},{name:"Ireland",code:"IE",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ie.webp",phone_code:"353"},{name:"Israel",code:"IL",currency:"ILS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/il.webp",phone_code:"972"},{name:"Italy",code:"IT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/it.webp",phone_code:"39"},{name:"Jamaica",code:"JM",currency:"JMD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/jm.webp",phone_code:"1-876"},{name:"Japan",code:"JP",currency:"JPY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jp.webp",phone_code:"81"},{name:"Jordan",code:"JO",currency:"JOD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/jo.webp",phone_code:"962"},{name:"Kazakhstan",code:"KZ",currency:"KZT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kz.webp",phone_code:"7"},{name:"Kenya",code:"KE",currency:"KES",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ke.webp",phone_code:"254"},{name:"Kiribati",code:"KI",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ki.webp",phone_code:"686"},{name:"Korea (North)",code:"KP",currency:"KPW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kp.webp",phone_code:"850"},{name:"Korea (South)",code:"KR",currency:"KRW",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kr.webp",phone_code:"82"},{name:"Kuwait",code:"KW",currency:"KWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kw.webp",phone_code:"965"},{name:"Kyrgyzstan",code:"KG",currency:"KGS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/kg.webp",phone_code:"996"},{name:"Laos",code:"LA",currency:"LAK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/la.webp",phone_code:"856"},{name:"Latvia",code:"LV",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lv.webp",phone_code:"371"},{name:"Lebanon",code:"LB",currency:"LBP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lb.webp",phone_code:"961"},{name:"Lesotho",code:"LS",currency:"LSL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ls.webp",phone_code:"266"},{name:"Liberia",code:"LR",currency:"LRD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/lr.webp",phone_code:"231"},{name:"Libya",code:"LY",currency:"LYD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ly.webp",phone_code:"218"},{name:"Liechtenstein",code:"LI",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/li.webp",phone_code:"423"},{name:"Lithuania",code:"LT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lt.webp",phone_code:"370"},{name:"Luxembourg",code:"LU",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/lu.webp",phone_code:"352"},{name:"Macau",code:"MO",currency:"MOP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mo.webp",phone_code:"853"},{name:"Madagascar",code:"MG",currency:"MGA",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mg.webp",phone_code:"261"},{name:"Malawi",code:"MW",currency:"MWK",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mw.webp",phone_code:"265"},{name:"Malaysia",code:"MY",currency:"MYR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/my.webp",phone_code:"60"},{name:"Maldives",code:"MV",currency:"MVR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mv.webp",phone_code:"960"},{name:"Mali",code:"ML",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ml.webp",phone_code:"223"},{name:"Malta",code:"MT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mt.webp",phone_code:"356"},{name:"Marshall Islands",code:"MH",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mh.webp",phone_code:"692"},{name:"Martinique",code:"MQ",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mq.webp",phone_code:"596"},{name:"Mauritania",code:"MR",currency:"MRU",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mr.webp",phone_code:"222"},{name:"Mauritius",code:"MU",currency:"MUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mu.webp",phone_code:"230"},{name:"Mayotte",code:"YT",currency:"EUR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/yt.webp",phone_code:"269"},{name:"Mexico",code:"MX",currency:"MXN",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mx.webp",phone_code:"52"},{name:"Micronesia",code:"FM",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/fm.webp",phone_code:"691"},{name:"Moldova",code:"MD",currency:"MDL",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/md.webp",phone_code:"373"},{name:"Monaco",code:"MC",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mc.webp",phone_code:"377"},{name:"Mongolia",code:"MN",currency:"MNT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mn.webp",phone_code:"976"},{name:"Montenegro",code:"ME",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/me.webp",phone_code:"382"},{name:"Montserrat",code:"MS",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ms.webp",phone_code:"1-664"},{name:"Morocco",code:"MA",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ma.webp",phone_code:"212"},{name:"Mozambique",code:"MZ",currency:"MZN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/mz.webp",phone_code:"258"},{name:"Myanmar",code:"MM",currency:"MMK",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/mm.webp",phone_code:"95"},{name:"Namibia",code:"NA",currency:"NAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/na.webp",phone_code:"264"},{name:"Nauru",code:"NR",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nr.webp",phone_code:"674"},{name:"Nepal",code:"NP",currency:"NPR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/np.webp",phone_code:"977"},{name:"Netherlands",code:"NL",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/nl.webp",phone_code:"31"},{name:"New Caledonia",code:"NC",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nc.webp",phone_code:"687"},{name:"New Zealand",code:"NZ",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nz.webp",phone_code:"64"},{name:"Nicaragua",code:"NI",currency:"NIO",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/ni.webp",phone_code:"505"},{name:"Niger",code:"NE",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ne.webp",phone_code:"227"},{name:"Nigeria",code:"NG",currency:"NGN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ng.webp",phone_code:"234"},{name:"Niue",code:"NU",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nu.webp",phone_code:"683"},{name:"Norfolk Island",code:"NF",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/nf.webp",phone_code:"672"},{name:"North Macedonia",code:"MK",currency:"MKD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/mk.webp",phone_code:"389"},{name:"Northern Mariana Islands",code:"MP",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/mp.webp",phone_code:"1-670"},{name:"Norway",code:"NO",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/no.webp",phone_code:"47"},{name:"Oman",code:"OM",currency:"OMR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/om.webp",phone_code:"968"},{name:"Pakistan",code:"PK",currency:"PKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/pk.webp",phone_code:"92"},{name:"Palau",code:"PW",currency:"USD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pw.webp",phone_code:"680"},{name:"Panama",code:"PA",currency:"PAB",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pa.webp",phone_code:"507"},{name:"Papua New Guinea",code:"PG",currency:"PGK",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pg.webp",phone_code:"675"},{name:"Paraguay",code:"PY",currency:"PYG",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/py.webp",phone_code:"595"},{name:"Peru",code:"PE",currency:"PEN",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/pe.webp",phone_code:"51"},{name:"Philippines",code:"PH",currency:"PHP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ph.webp",phone_code:"63"},{name:"Pitcairn Islands",code:"PN",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/pn.webp",phone_code:"64"},{name:"Poland",code:"PL",currency:"PLN",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pl.webp",phone_code:"48"},{name:"Portugal",code:"PT",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/pt.webp",phone_code:"351"},{name:"Puerto Rico",code:"PR",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pr.webp",phone_code:"1-787"},{name:"Qatar",code:"QA",currency:"QAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/qa.webp",phone_code:"974"},{name:"Romania",code:"RO",currency:"RON",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ro.webp",phone_code:"40"},{name:"Russia",code:"RU",currency:"RUB",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ru.webp",phone_code:"7"},{name:"Rwanda",code:"RW",currency:"RWF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/rw.webp",phone_code:"250"},{name:"Saint Barth\xE9lemy",code:"BL",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/bl.webp",phone_code:"590"},{name:"Saint Helena",code:"SH",currency:"SHP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sh.webp",phone_code:"290"},{name:"Saint Kitts and Nevis",code:"KN",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/kn.webp",phone_code:"1-869"},{name:"Saint Lucia",code:"LC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/lc.webp",phone_code:"1-758"},{name:"Saint Martin",code:"MF",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/mf.webp",phone_code:"590"},{name:"Saint Pierre and Miquelon",code:"PM",currency:"EUR",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/pm.webp",phone_code:"508"},{name:"Saint Vincent and the Grenadines",code:"VC",currency:"XCD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/vc.webp",phone_code:"1-784"},{name:"Samoa",code:"WS",currency:"WST",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/ws.webp",phone_code:"685"},{name:"San Marino",code:"SM",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"378"},{name:"Sao Tome and Principe",code:"ST",currency:"STN",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/st.webp",phone_code:"239"},{name:"Saudi Arabia",code:"SA",currency:"SAR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sa.webp",phone_code:"966"},{name:"Senegal",code:"SN",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sn.webp",phone_code:"221"},{name:"Serbia",code:"RS",currency:"RSD",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/rs.webp",phone_code:"381"},{name:"Seychelles",code:"SC",currency:"SCR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sc.webp",phone_code:"248"},{name:"Sierra Leone",code:"SL",currency:"SLL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sl.webp",phone_code:"232"},{name:"Singapore",code:"SG",currency:"SGD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sg.webp",phone_code:"65"},{name:"Sint Eustatius",code:"SX",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sx.webp",phone_code:"599"},{name:"Sint Maarten",code:"SM",currency:"ANG",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/sm.webp",phone_code:"1-721"},{name:"Slovakia",code:"SK",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sk.webp",phone_code:"421"},{name:"Slovenia",code:"SI",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/si.webp",phone_code:"386"},{name:"Solomon Islands",code:"SB",currency:"SBD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/sb.webp",phone_code:"677"},{name:"Somalia",code:"SO",currency:"SOS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/so.webp",phone_code:"252"},{name:"South Africa",code:"ZA",currency:"ZAR",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/za.webp",phone_code:"27"},{name:"South Georgia and the South Sandwich Islands",code:"GS",currency:"GBP",continent:"Antarctica",flag:"https://flagpedia.net/data/flags/h80/gs.webp",phone_code:"500"},{name:"South Sudan",code:"SS",currency:"SSP",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ss.webp",phone_code:"211"},{name:"Spain",code:"ES",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/es.webp",phone_code:"34"},{name:"Sri Lanka",code:"LK",currency:"LKR",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/lk.webp",phone_code:"94"},{name:"Sudan",code:"SD",currency:"SDG",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/sd.webp",phone_code:"249"},{name:"Suriname",code:"SR",currency:"SRD",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/sr.webp",phone_code:"597"},{name:"Svalbard and Jan Mayen",code:"SJ",currency:"NOK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/sj.webp",phone_code:"47"},{name:"Sweden",code:"SE",currency:"SEK",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/se.webp",phone_code:"46"},{name:"Switzerland",code:"CH",currency:"CHF",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ch.webp",phone_code:"41"},{name:"Syria",code:"SY",currency:"SYP",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/sy.webp",phone_code:"963"},{name:"Taiwan",code:"TW",currency:"TWD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tw.webp",phone_code:"886"},{name:"Tajikistan",code:"TJ",currency:"TJS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tj.webp",phone_code:"992"},{name:"Tanzania",code:"TZ",currency:"TZS",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tz.webp",phone_code:"255"},{name:"Thailand",code:"TH",currency:"THB",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/th.webp",phone_code:"66"},{name:"Timor-Leste",code:"TL",currency:"USD",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tl.webp",phone_code:"670"},{name:"Togo",code:"TG",currency:"XOF",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tg.webp",phone_code:"228"},{name:"Tokelau",code:"TK",currency:"NZD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tk.webp",phone_code:"690"},{name:"Tonga",code:"TO",currency:"TOP",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/to.webp",phone_code:"676"},{name:"Trinidad and Tobago",code:"TT",currency:"TTD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/tt.webp",phone_code:"1-868"},{name:"Tunisia",code:"TN",currency:"TND",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/tn.webp",phone_code:"216"},{name:"Turkey",code:"TR",currency:"TRY",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tr.webp",phone_code:"90"},{name:"Turkmenistan",code:"TM",currency:"TMT",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/tm.webp",phone_code:"993"},{name:"Tuvalu",code:"TV",currency:"AUD",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/tv.webp",phone_code:"688"},{name:"Uganda",code:"UG",currency:"UGX",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/ug.webp",phone_code:"256"},{name:"Ukraine",code:"UA",currency:"UAH",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/ua.webp",phone_code:"380"},{name:"United Arab Emirates",code:"AE",currency:"AED",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ae.webp",phone_code:"971"},{name:"United Kingdom",code:"GB",currency:"GBP",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/gb.webp",phone_code:"44"},{name:"United States",code:"US",currency:"USD",continent:"North America",flag:"https://flagpedia.net/data/flags/h80/us.webp",phone_code:"1"},{name:"Uruguay",code:"UY",currency:"UYU",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/uy.webp",phone_code:"598"},{name:"Uzbekistan",code:"UZ",currency:"UZS",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/uz.webp",phone_code:"998"},{name:"Vanuatu",code:"VU",currency:"VUV",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/vu.webp",phone_code:"678"},{name:"Vatican City",code:"VA",currency:"EUR",continent:"Europe",flag:"https://flagpedia.net/data/flags/h80/va.webp",phone_code:"379"},{name:"Venezuela",code:"VE",currency:"VES",continent:"South America",flag:"https://flagpedia.net/data/flags/h80/ve.webp",phone_code:"58"},{name:"Vietnam",code:"VN",currency:"VND",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/vn.webp",phone_code:"84"},{name:"Wallis and Futuna",code:"WF",currency:"XPF",continent:"Oceania",flag:"https://flagpedia.net/data/flags/h80/wf.webp",phone_code:"681"},{name:"Western Sahara",code:"EH",currency:"MAD",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/eh.webp",phone_code:"212"},{name:"Yemen",code:"YE",currency:"YER",continent:"Asia",flag:"https://flagpedia.net/data/flags/h80/ye.webp",phone_code:"967"},{name:"Zambia",code:"ZM",currency:"ZMW",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zm.webp",phone_code:"260"},{name:"Zimbabwe",code:"ZW",currency:"ZWL",continent:"Africa",flag:"https://flagpedia.net/data/flags/h80/zw.webp",phone_code:"263"}];import{contractAddress as na,Custody as ia,Provider as oa,VerifiedWallet as Xe}from"@verified-network/verified-sdk";var ue={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://solemn-summer-patina.quiknode.pro/${process.env.REACT_APP_QUIKNODE_KEY}/`],blockExplorerUrls:["https://etherscan.io/"],icon:D.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api.etherscan.io/api"},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://red-quaint-pallet.base-mainnet.quiknode.pro/${process.env.REACT_APP_QUICKNODE_KEY}/`],blockExplorerUrls:["https://basescan.org/"],Icon:D.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:D.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:D.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api-sepolia.etherscan.io/api"},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:D.baseIcon}},Se={BUNDLER_URL_FIRST_SECTION:"https://bundler.biconomy.io/api/v2",11155111:{PAYMASTER_API_KEY:"BuFP2-5w-.5b3daf3a-d044-4dda-819c-4c4d8431df88",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},137:{PAYMASTER_API_KEY:"lDHvYk50N.30a2522e-0a9d-444b-b949-19194c1f237a",BUNDLER_API_KEY:"dewj2189.wh1289hU-7E49-45ic-af80-JkuxGCYRV"},84532:{PAYMASTER_API_KEY:"jSBI-WRji.99a4dda1-1c20-42ea-9409-2724f9a0ca7e",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},1:{PAYMASTER_API_KEY:"ap7LOqALI.bf68e672-47ce-40f8-8b62-ea508dcf5852",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},8453:{PAYMASTER_API_KEY:"glRQsmuYh.5d9372ab-5063-4ecd-ac63-643fef624a73",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},100:{PAYMASTER_API_KEY:"eUYghbvi4.317a2d6d-6ee7-4a0c-b91f-43ba2699f65b",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"}};import da from"crypto";import Qe from"crypto-js";import{toast as zt}from"react-toastify";import{createSmartAccountClient as ra}from"@biconomy/account";import Me from"react";var Fe=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.googleapis.com",e.head.appendChild(r)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let r=e.createElement("link");r.rel="preconnect",r.href="https://fonts.gstatic.com",e.head.appendChild(r)}return Vt.map(r=>{if(!e.querySelector(`link[href="${r}"]`)){let n=e.createElement("link");n.rel="stylesheet",n.href=r,e.head.appendChild(n)}}),!0},jt=async(e,s)=>{var f,r,a,n,S;try{let l;if(s)l=new Xe(s);else{let A=Xe.generateMnemonic();l=Xe.importWallet(A)}let p=na,u=e&&((f=p[e])!=null&&f.Custody)&&((a=(r=ue[e])==null?void 0:r.rpcUrls)==null?void 0:a.length)>0?e:be,k=(n=ue[u])==null?void 0:n.rpcUrls[0],_=l.setProvider(new oa(k)),V=l.privateKey,F=new ia(_,(S=p[u])==null?void 0:S.Custody),w=await(await ra({signer:_,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${u}/${Se[u].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[u].PAYMASTER_API_KEY})).getAccountAddress();return{chainId:u,address:w,pk:V,signer:_,provider:k,vaultContract:F,vaultData:null}}catch(l){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",l),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},Ye=async(e,s)=>{try{let f=JSON.stringify({to:e,channel:s});return(await(await fetch(`${Ze}/start-verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:f})).json()).success}catch(f){return console.error(f),!1}},Ht=async(e,s)=>{try{let f=JSON.stringify({to:e,code:s});return(await(await fetch(`${Ze}/check-verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:f})).json()).success}catch(f){return console.error(f==null?void 0:f.message),!1}},ie=e=>da.createHash("sha256").update(e).digest("hex").slice(0,30),Te=(e,s)=>Qe.AES.encrypt(e,s).toString(),Be=(e,s)=>{var f=Qe.AES.decrypt(e,s),r=f.toString(Qe.enc.Utf8);return r};var sa=(e,s)=>Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},Me.createElement("img",{style:{marginLeft:"5px"},src:D.errorAlert,alt:""}),Me.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),Me.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},s)));var me=(e,s)=>(zt.dismiss(),zt.error(sa(e,s),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));import H,{useState as We}from"react";import Ke from"react";var la=e=>{var s;return Ke.createElement("div",{className:"verified-custd-mdl-startup-slider"},((s=e.sliderCount)==null?void 0:s.length)>0&&e.sliderCount.map((f,r)=>Ke.createElement(Ke.Fragment,{key:r},r<=Number(e.currentSlider)&&Ke.createElement("div",{key:`active-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),r>Number(e.currentSlider)&&Ke.createElement("div",{key:`inactive-${r}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},ge=la;import T,{useState as ca}from"react";var ua=e=>{var r;let[s,f]=ca(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:D.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:a=>{a.target.value===""?f(null):e.type==="language"?f(e.searchContent.filter(n=>{if(n.name.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=n.name.split(""),n})):e.type==="area-code"&&f(e.searchContent.filter(n=>{var S,l;if((S=n==null?void 0:n.name)!=null&&S.toLowerCase().includes(a.target.value.toLowerCase()))return n.searched=a.target.value.toLowerCase(),n.nameArray=(l=n==null?void 0:n.name)==null?void 0:l.split(""),n})),e.handleButtonDisplay()},type:"text",className:"verified-custd-mdl-ms-search-box-content",placeholder:"Search"})),T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-content"},T.createElement("div",{style:e.contentMaxHeight?{maxHeight:`${e.contentMaxHeight}px`}:{},className:"verified-custd-mdl-ms-search-content-container"},!s&&((r=e==null?void 0:e.searchContent)==null?void 0:r.length)>0&&e.searchContent.map((a,n)=>T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected({area:a.phone_code,flag:a.flag,name:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),window.location.search===`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:D.circleClicked,alt:"Clicked Icon"}))))),s&&s.length>0&&s.map((a,n)=>{var S,l,p;return T.createElement(T.Fragment,{key:n},e.type==="area-code"&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected({area:a==null?void 0:a.phone_code,flag:a==null?void 0:a.flag,name:a==null?void 0:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a==null?void 0:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((S=a==null?void 0:a.nameArray)==null?void 0:S.length)>0&&(a==null?void 0:a.nameArray.map((u,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},u),a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k},u)))))),e.type==="language"&&T.createElement(T.Fragment,{key:n},window.location.search!==`?${n}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((l=a.nameArray)==null?void 0:l.length)>0&&a.nameArray.map((u,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},u),a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k},u)))),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((p=a.nameArray)==null?void 0:p.length)>0&&a.nameArray.map((u,k)=>T.createElement(T.Fragment,{key:k},!a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k,style:{color:"#B6B7C3"}},u),a.searched.includes(u.toLowerCase())&&T.createElement("span",{key:k},u))),!a.searched.includes(a.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${a.label})`),a.searched.includes(a.label.toLowerCase())&&T.createElement("span",null,` (${a.label})`))),window.location.search===`?${n}`&&T.createElement("div",{key:n,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:D.circleClicked,alt:"Clicked Icon"}))))}))))))},$e=ua;import ke from"react";var Gt=()=>ke.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),Yt=e=>ke.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var s,f;e.setIsLoading(!0),(s=chrome==null?void 0:chrome.storage)!=null&&s.local?await chrome.storage.local.remove("myVault"):!((f=chrome==null?void 0:chrome.storage)!=null&&f.local)&&localStorage&&localStorage.removeItem("myVault"),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Le=()=>ke.createElement("div",{className:"verified-custd-mdl-privacy"},ke.createElement("img",{alt:"Privacy Icon",src:D.privacyTip,className:"verified-custd-mdl-privacy-icon"}),ke.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var ma=e=>{var F,O;let[s,f]=We(""),[r,a]=We(""),[n,S]=We(!1),[l,p]=We(""),{pk:u,vaultContract:k}=ye(),_=()=>{var A,P;let w=document.getElementById("verified-custd-mdl-contact-button");w&&e.selectedCountry.area&&s.length===10||w&&((A=e.userEmail)==null?void 0:A.length)>0&&isNaN(Number(e.userEmail))&&((P=e.userEmail)!=null&&P.includes("@"))?(p(""),w.className="verified-custd-mdl-startup-button-active"):(p(""),w.className="verified-custd-mdl-startup-button")},V=async()=>{var P,L,b;if(((P=e.userEmail)==null?void 0:P.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){p("Invalid input, please check your email");return}let w=((L=e.userEmail)==null?void 0:L.length)>0?e.userEmail:`+${e.selectedCountry.area}${s}`,A=((b=e.userEmail)==null?void 0:b.length)>0?"email":"sms";w&&A&&u&&k&&(e.setIsLoading(!0),await Ye(w,A).then(C=>{var d;e.setIsLoading(!1),C?(p(""),e.setStep("3")):(p(A==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),me("Oops something went wrong",((d=e.userEmail)==null?void 0:d.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))}))};return H.createElement("div",{className:"verified-custd-mdl-startup-language"},H.createElement("div",{className:"verified-custd-mdl-startup-contact"},H.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),H.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},H.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),H.createElement("div",{className:"verified-custd-mdl-st-contact-input"},H.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},H.createElement("div",{onClick:()=>{S(!n)},className:"verified-custd-mdl-st-contact-first-section"},H.createElement("img",{onClick:()=>{S(!n)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),H.createElement("p",{onClick:()=>{S(!n)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),n&&H.createElement("img",{onClick:()=>{S(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowUp}),!n&&H.createElement("img",{onClick:()=>{S(!n)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowDown})),H.createElement("input",{onInputCapture:w=>{var L;w.target.value===""?a(r+" "):a(w.target.value);let A=(L=w.target.value)==null?void 0:L.replace(/\D/g,"");f(A);let P="";for(let b=0;b<(A==null?void 0:A.length);b++)P+=A[b],(b+1)%5===0&&b+1<(A==null?void 0:A.length)&&(P+=" ");e.setUserNumberFmt(P)},onInput:w=>{_()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),n&&H.createElement($e,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:_,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:n,setSearchActive:S,contentMaxHeight:"300",contentbottomMargin:"300"}),s.length!==10&&r.length>10&&H.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},H.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(l==null?void 0:l.length)>0&&((F=e.userEmail)==null?void 0:F.length)===0&&H.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},H.createElement("p",{className:"verified-custd-mdl-input-error-text"},l)))),!n&&H.createElement(H.Fragment,null,H.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},H.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),H.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),H.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),H.createElement("div",{className:"verified-custd-mdl-st-contact-input"},H.createElement("input",{onInputCapture:w=>{var A;e.setUserEmail((A=w.target)==null?void 0:A.value),e.setUserNumberFmt(""),f(""),a("")},onInput:w=>{_()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(l==null?void 0:l.length)>0&&((O=e.userEmail)==null?void 0:O.length)>0&&H.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},H.createElement("p",{className:"verified-custd-mdl-input-error-text"},l))))),!n&&H.createElement("div",{style:{height:"80px"}}),H.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},H.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},H.createElement(Gt,null),H.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async w=>{if(w.target.className.includes("verified-custd-mdl-startup-button")&&w.target.className!=="verified-custd-mdl-startup-button")w.target.className="verified-custd-mdl-startup-button-click",await V();else{let A=document.getElementsByClassName("verified-custd-mdl-startup-button-active");A.length>0&&(A[0].className="verified-custd-mdl-startup-button-click",await V())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),H.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},H.createElement(Le,null)))))},Re=ma;import M,{useEffect as fa,useState as et}from"react";var ga=e=>{var w,A,P,L,b,C;let[s,f]=et(!1),[r,a]=et(60),[n,S]=et(!1),{pk:l,vaultContract:p}=ye();fa(()=>{if(r===0)return;let d=setInterval(()=>{a(g=>g-1)},1e3);return()=>clearInterval(d)},[r]);let u=d=>{if(d.value.length>0){let g=d.nextElementSibling;g&&g.focus()}else d.value.length===0&&d.focus()},k=d=>{let g=d.clipboardData.getData("text"),E=g==null?void 0:g.replace(/\D/g,""),I=document.getElementsByClassName("otp-input");if((I==null?void 0:I.length)===4&&(E==null?void 0:E.length)>0)for(let i=0;i<I.length;i++)E[i]&&(I[i].value=E[i],I[i].focus())},_=d=>{let g=d.target.previousElementSibling;g&&g.focus()},V=()=>{let d=document.getElementById("verified-custd-mdl-otp-button"),g=document.getElementById("verified-custd-mdl-otp-input-1"),E=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");d&&(g==null?void 0:g.value.length)>0&&(E==null?void 0:E.value.length)>0&&(I==null?void 0:I.value.length)>0&&(i==null?void 0:i.value.length)>0&&!n?d.className="verified-custd-mdl-startup-button-active":d.className="verified-custd-mdl-startup-button"},F=async()=>{var U,Y,ae,G,X,R;let d=((U=e.userEmail)==null?void 0:U.length)>0?e.userEmail:`+${e.selectedCountry.area}${(Y=e.userNumberFmt)==null?void 0:Y.replace(" ","")}`,g=document.getElementById("verified-custd-mdl-otp-input-1"),E=document.getElementById("verified-custd-mdl-otp-input-2"),I=document.getElementById("verified-custd-mdl-otp-input-3"),i=document.getElementById("verified-custd-mdl-otp-input-4");if(((ae=g==null?void 0:g.value)==null?void 0:ae.length)>0&&((G=E==null?void 0:E.value)==null?void 0:G.length)>0&&((X=I==null?void 0:I.value)==null?void 0:X.length)>0&&((R=i==null?void 0:i.value)==null?void 0:R.length)>0&&d&&l&&p){e.setIsLoading(!0);let K=(g==null?void 0:g.value)+(E==null?void 0:E.value)+(I==null?void 0:I.value)+(i==null?void 0:i.value);await Ht(d,String(K)).then(o=>{e.setIsLoading(!1),o?e.setStep("4"):S(!0)})}},O=async()=>{var E,I,i;let d=((E=e.userEmail)==null?void 0:E.length)>0?e.userEmail:`+${e.selectedCountry.area}${(I=e.userNumberFmt)==null?void 0:I.replace(" ","")}`,g=((i=e.userEmail)==null?void 0:i.length)>0?"email":"sms";d&&g&&(e.setIsLoading(!0),await Ye(d,g).then(U=>{if(e.setIsLoading(!1),U){a(60),S(!1);let Y=document.getElementById("verified-custd-mdl-otp-input-1"),ae=document.getElementById("verified-custd-mdl-otp-input-2"),G=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4");Y.value="",ae.value="",G.value="",X.value=""}else me("Oops something went wrong","Unexpected error")}))};return M.createElement("div",{className:"verified-custd-mdl-startup-language"},M.createElement("div",{className:"verified-custd-mdl-startup-contact"},M.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),M.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},M.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),M.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},M.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",M.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((w=e.userNumberFmt)==null?void 0:w.length)>0?"phone number":"email address"),M.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},M.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((A=e.userNumberFmt)==null?void 0:A.length)>0&&M.createElement(M.Fragment,null,M.createElement("span",null,"(+",(P=e.selectedCountry)==null?void 0:P.area,")")," ",M.createElement("span",null," ",(L=e.userNumberFmt)==null?void 0:L.split(" ")[0])," ",M.createElement("span",null," ",(b=e.userNumberFmt)==null?void 0:b.split(" ")[1])),((C=e.userEmail)==null?void 0:C.length)>0&&M.createElement("span",null,e.userEmail)),M.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:D.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),M.createElement("div",{className:"verified-custd-mdl-otp-input-container"},M.createElement("div",{className:"verified-custd-mdl-otp-input-group"},M.createElement("input",{onInputCapture:d=>{var g;d.target.value=(g=d.target.value)==null?void 0:g.replace(/\D/g,""),S(!1)},onInput:d=>{u(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},onPaste:d=>{k(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),M.createElement("input",{onInputCapture:d=>{var g;d.target.value=(g=d.target.value)==null?void 0:g.replace(/\D/g,""),S(!1)},onInput:d=>{u(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),M.createElement("input",{onInputCapture:d=>{var g;d.target.value=(g=d.target.value)==null?void 0:g.replace(/\D/g,""),S(!1)},onInput:d=>{u(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),M.createElement("input",{onInputCapture:d=>{var g;d.target.value=(g=d.target.value)==null?void 0:g.replace(/\D/g,""),S(!1)},onInput:d=>{u(d.target),V()},onKeyDown:d=>{d.key==="Backspace"&&d.target.value===""&&_(d)},className:n?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),M.createElement("div",{className:"verified-custd-mdl-otp-timer"},!n&&r>5&&M.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},M.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),r),!n&&r<=5&&r>0&&M.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},M.createElement("span",{style:{fontWeight:400}},"00:"),r),!n&&r===0&&M.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),n&&M.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),!n&&r>0&&M.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!n&&r===0&&M.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let g=0;g<d.length;g++)d[g].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),n&&M.createElement("p",{onClick:async()=>{let d=document.getElementsByClassName("otp-input");if(d)for(let g=0;g<d.length;g++)d[g].value="";await O()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!s&&M.createElement("div",{style:{height:"100px"}}),M.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},M.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},M.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async d=>{if(d.target.className.includes("verified-custd-mdl-startup-button")&&d.target.className!=="verified-custd-mdl-startup-button")d.target.className="verified-custd-mdl-startup-button-click",await F();else{let g=document.getElementsByClassName("verified-custd-mdl-startup-button-active");g.length>0&&(g[0].className="verified-custd-mdl-startup-button-click",await F())}},className:"verified-custd-mdl-startup-button"},"Proceed"),M.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},M.createElement(Le,null)))))},tt=ga;import x,{useState as Ne}from"react";import{AbiCoder as pa,decodeBytes32String as ha,encodeBytes32String as Ie}from"ethers";import{combine as va,split as ya}from"shamir-secret-sharing";import{contractAddress as ze,Custody as je,Provider as Ve,VerifiedWallet as Pe}from"@verified-network/verified-sdk";import{createSmartAccountClient as ba}from"@biconomy/account";var $t=async(e,s,f,r,a,n,S,l,p,u,k)=>{try{let _={vaultId:e,hashedVaultId:s,vaultPin:f,hashedVaultPin:r,vaultContract:l};return await l.getCreator(s,r).then(async V=>{var F,O,w,A,P,L;if((V==null?void 0:V.status)===0)try{if(p==="invitation")return{isExisting:!0,..._};if((F=chrome==null?void 0:chrome.storage)!=null&&F.local){let b=Ie(f),C=Te(n,b);await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:s,pk:C,channel:a})})}else if(!((O=chrome==null?void 0:chrome.storage)!=null&&O.local)&&localStorage){let b=Ie(f),C=Te(n,b);localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:s,pk:C,channel:a}))}if((w=chrome==null?void 0:chrome.runtime)!=null&&w.sendMessage)chrome.runtime.sendMessage({type:p&&p==="connect_wallet"?"getPk":p&&p!=="connect_wallet"?p:"getPk",value:{vaultData:p&&p==="signRecovery"||p&&p==="completeRecovery"?u:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}});else if(!((A=chrome==null?void 0:chrome.runtime)!=null&&A.sendMessage)){let b=new CustomEvent(p&&p==="connect_wallet"?"getPk":p&&p!=="connect_wallet"?p:"getPk",{detail:{value:{vaultData:p&&p==="signRecovery"||p&&p==="completeRecovery"?u:{vaultId:e,hashedVaultId:s,hashedVaultPin:r},txData:k}}});window.dispatchEvent(b)}return{shouldStop:!0}}catch(b){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",b),me("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else{if(((P=V==null?void 0:V.reason)==null?void 0:P.toLowerCase())==="invalid pin")return null;if(((L=V==null?void 0:V.reason)==null?void 0:L.toLowerCase())==="wallet not created")return await l.createVault(s,r).then(async b=>(b==null?void 0:b.status)===0?await l.confirmParticipant(s,r,s,r,!0).then(async C=>{var d,g;if((C==null?void 0:C.status)===0)try{let I=await new Pe(n).getAddress(),i=Ie(f),U=Te(n,i);return(d=chrome==null?void 0:chrome.storage)!=null&&d.local?await chrome.storage.local.set({myVault:JSON.stringify({address:S,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})}):!((g=chrome==null?void 0:chrome.storage)!=null&&g.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:S,regAddress:I,vaultId:e,hashedVaultId:s,pk:U,channel:a})),_}catch(E){return me("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",E),!1}else return me("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",C),!1}):(me("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",b),!1))}})}catch(_){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",_),me("Oops something went wrong","Error while creating pin. Try again later"),!1}},Wt=async(e,s,f,r,a,n,S,l,p)=>{var u,k,_,V;try{let F=Ie(f),O=Be(a,F);if(O){let w=ze,A=new Pe(O),P=l&&((u=w[l])!=null&&u.Custody)&&((_=(k=ue[l])==null?void 0:k.rpcUrls)==null?void 0:_.length)>0?l:be,L=(V=ue[P])==null?void 0:V.rpcUrls[0],b=A.setProvider(new Ve(L)),C=new je(b,w[P].Custody);return C?await C.getCreator(s,r).then(async d=>(d==null?void 0:d.status)===0?{address:n,vaultId:e,hashedVaultId:s,channel:S,chainId:p||P,pin:f}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(F){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",F),null}},qe=async(e,s,f,r,a,n,S,l,p,u,k,_,V)=>{var O,w,A,P;let F;if(k)F=k;else{let L=ze,b=new Pe(_),C=V&&((O=L[V])!=null&&O.Custody)&&((A=(w=ue[V])==null?void 0:w.rpcUrls)==null?void 0:A.length)>0?V:be,d=(P=ue[C])==null?void 0:P.rpcUrls[0],g=b.setProvider(new Ve(d));F=new je(g,L[C].Custody)}return F?await k.confirmParticipant(n,a,r,S,u).then(async L=>(L==null?void 0:L.status)===0?(u?await e(f,l,p):await s(f,l,p),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(L=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",L),!1)):!1},qt=async(e,s,f,r,a,n,S,l,p,u,k,_)=>{let V=Number(f.length),O=(await ya(Uint8Array.from(_.split("").map(P=>P.charCodeAt(0))),Number(V),n)).map(P=>P.join(",")),w=[],A=[];for(let P=0;P<f.length;P++){let L=f[P];await k.addParticipant(l,u,ie(L.vaultId),O[P]).then(async b=>{let C={creatorVaultId:S,vaultPin:p,creatorHashedVaultId:l,creatorHashedVaultPin:u,cosigner:L.vaultId,hashedCosigner:ie(L.vaultId),cosignerVaultIdType:L.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:L.vaultId,share:O[P],...L};(b==null?void 0:b.status)===0?(A.push(C),L.vaultId!==S&&await e(L.otpChannel,L.vaultId,S,u).then(d=>{d||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):w.push(C)})}return(w==null?void 0:w.length)>0||(A==null?void 0:A.length)!==(f==null?void 0:f.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),me("Oops somethin went wrong","error while adding co-signers"),!1):await k.defineQuorum(l,u,n.toString()).then(async P=>{if((P==null?void 0:P.status)===0){let L=r==null?void 0:r.map(b=>{var C;return{name:b==null?void 0:b.name,email:b==null?void 0:b.email,phoneNumber:b==null?void 0:b.phoneNumber,contactType:(C=String(b==null?void 0:b.otpChannel))==null?void 0:C.toUpperCase(),position:`${Ot[Number(b==null?void 0:b.position)]} Co-Signer`}});return await s(a,S,L,Number(n)).then(b=>{b||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),me("Oops somethin went wrong","error while saving vault keys"),!1})},Jt=async(e,s,f,r,a,n,S,l)=>{var k,_,V,F;let p=Ie(a),u=Be(n,p);if(u){let O=ze,w=new Pe(u),A=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,P=(F=ue[A])==null?void 0:F.rpcUrls[0],L=w.setProvider(new Ve(P)),b=new je(L,O[A].Custody);if(b)return await b.promptSignatures(s,f).then(async C=>{var d,g,E,I,i,U,Y;if((C==null?void 0:C.status)===0&&((g=(d=C==null?void 0:C.response)==null?void 0:d.result)!=null&&g.logs)){let ae=new pa,G=(i=(I=(E=C==null?void 0:C.response)==null?void 0:E.result)==null?void 0:I.logs)==null?void 0:i.filter(o=>{var m,ee,Q,te,c;return((m=o==null?void 0:o.address)==null?void 0:m.toLowerCase())===((ee=O[A].Custody)==null?void 0:ee.toLowerCase())&&((c=(Q=o==null?void 0:o.topics)==null?void 0:Q.map(h=>h==null?void 0:h.toLowerCase()))==null?void 0:c.includes((te=Ut)==null?void 0:te.toLowerCase()))}),X=(U=G[0])==null?void 0:U.data,R=(Y=ae.decode(["bytes32","bytes32","uint256"],X))==null?void 0:Y.map((o,m)=>m<2?ha(o):Number(o)).flat(),K=R[(R==null?void 0:R.length)-1];return await e(S,r,f,Number(K),Number(G==null?void 0:G.length)),!0}else return!1}).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",C),!1))}},Zt=async(e,s,f,r,a,n,S,l,p,u,k,_)=>{var O,w,A,P;let V=Ie(n),F=Be(S,V);if(F){let L=ze,b=new Pe(F),C=_&&((O=L[_])!=null&&O.Custody)&&((A=(w=ue[_])==null?void 0:w.rpcUrls)==null?void 0:A.length)>0?_:be,d=(P=ue[C])==null?void 0:P.rpcUrls[0],g=b.setProvider(new Ve(d)),E=new je(g,L[C].Custody);if(E)return await E.signTransaction(p,r,f,k,u).then(async I=>(I==null?void 0:I.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,a),await E.checkQuorum(p,u,f,k).then(async i=>{var U,Y;return(i==null?void 0:i.status)===0&&((U=i==null?void 0:i.response)!=null&&U.result)?(((Y=i==null?void 0:i.response)==null?void 0:Y.result[0])===!0&&await s(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l)?"email":"sms",l,Number(k)),!0):!1})):!1).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",I),!1))}},Xt=async(e,s,f,r,a,n,S,l)=>{var k,_,V,F;let p=Ie(r),u=Be(a,p);if(u){let O=ze,w=new Pe(u),A=l&&((k=O[l])!=null&&k.Custody)&&((V=(_=ue[l])==null?void 0:_.rpcUrls)==null?void 0:V.length)>0?l:be,P=(F=ue[A])==null?void 0:F.rpcUrls[0],L=w.setProvider(new Ve(P)),b=new je(L,O[A].Custody);return b?await b.checkQuorum(e,s,e,n).then(async C=>{var d,g;if((C==null?void 0:C.status)===0&&((d=C==null?void 0:C.response)!=null&&d.result)){if(((g=C==null?void 0:C.response)==null?void 0:g.result[0])===!0)return await b.signTransaction(e,s,e,n,s).then(async E=>(E==null?void 0:E.status)===0?await b.getShards(e,s,n).then(async I=>{var i,U,Y,ae;if((I==null?void 0:I.status)===0&&((i=I==null?void 0:I.response)!=null&&i.result)){let G=(U=I==null?void 0:I.response)==null?void 0:U.result.filter(X=>X!=="");if(G.length>1){let X=G.map(o=>new Uint8Array(o.split(",").map(Number))),R=await va(X),K=new TextDecoder().decode(R);if(K){let o=Ie(r),m=Te(K,o),ee=new Pe(K),Q=await ee.getAddress(),te=ee.setProvider(new Ve(P)),h=await(await ba({signer:te,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${A}/${Se[A].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[A].PAYMASTER_API_KEY})).getAccountAddress();return(Y=chrome==null?void 0:chrome.storage)!=null&&Y.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:Q,vaultId:f,hashedVaultId:e,pk:m,channel:S})})):!((ae=chrome==null?void 0:chrome.storage)!=null&&ae.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:Q,vaultId:f,hashedVaultId:e,pk:m,channel:S}))),!0}}else return!1}else return!1}).catch(I=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",I),!1)):!1)}else return!1}).catch(C=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",C),!1)):!1}};import _e from"react";var xa=e=>{var a,n;let s=e.showButton?null:setTimeout(()=>{var S,l,p,u;if(e.messageTosend)try{if((S=chrome==null?void 0:chrome.runtime)!=null&&S.sendMessage)chrome.runtime.sendMessage(e.messageTosend,k=>{k&&e.action!=="signRecovery"&&window.close()});else if(!((l=chrome==null?void 0:chrome.runtime)!=null&&l.sendMessage)){let k=new CustomEvent((p=e.messageTosend)==null?void 0:p.type,{detail:{value:(u=e.messageTosend)==null?void 0:u.value}});window.dispatchEvent(k)}}catch(k){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",k),me("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),f=()=>{e.setStep("6")},r=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return _e.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},_e.createElement("div",{className:"verified-custd-mdl-success-popup-content"},_e.createElement("img",{style:{width:"90%"},src:D.successIcon,alt:"Success Icon"}),_e.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((a=e.buttonText)==null?void 0:a.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{s&&clearTimeout(s),e.action==="invitation"&&f()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((n=e.buttonNeutText)==null?void 0:n.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{s&&clearTimeout(s),e.action==="invitation"&&r()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},xe=xa;var wa=e=>{var G,X,R,K;let[s,f]=Ne(!1),[r,a]=Ne(!1),[n,S]=Ne(""),[l,p]=Ne(!0),[u,k]=Ne(!1),[_,V]=Ne(!1),[F,O]=Ne(!1),[w,A]=Ne(""),[P,L]=Ne(!1),{address:b,pk:C,vaultContract:d,setVaultData:g,vaultData:E}=ye(),I=o=>{if(o.value.length>0){let m=o.nextElementSibling;m&&m.focus()}else o.value.length===0&&o.focus()},i=o=>{let m=o.target.previousElementSibling;m&&m.focus()},U=()=>{let o=document.getElementById("verified-custd-mdl-otp-button"),m=document.getElementById("verified-custd-mdl-otp-input-1"),ee=document.getElementById("verified-custd-mdl-otp-input-2"),Q=document.getElementById("verified-custd-mdl-otp-input-3"),te=document.getElementById("verified-custd-mdl-otp-input-4"),c=document.getElementById("verified-custd-mdl-otp-input-5"),h=document.getElementById("verified-custd-mdl-otp-input-6"),N=document.getElementById("verified-custd-mdl-otp-input-7"),z=document.getElementById("verified-custd-mdl-otp-input-8");o&&(m==null?void 0:m.value.length)>0&&(ee==null?void 0:ee.value.length)>0&&(Q==null?void 0:Q.value.length)>0&&(te==null?void 0:te.value.length)>0&&(c==null?void 0:c.value.length)>0&&(h==null?void 0:h.value.length)>0&&(N==null?void 0:N.value.length)>0&&(z==null?void 0:z.value.length)>0?(m==null?void 0:m.value)+(ee==null?void 0:ee.value)+(Q==null?void 0:Q.value)+(te==null?void 0:te.value)===(c==null?void 0:c.value)+(h==null?void 0:h.value)+(N==null?void 0:N.value)+(z==null?void 0:z.value)?o.className="verified-custd-mdl-startup-button-active":(o.className="verified-custd-mdl-startup-button",a(!0)):o.className="verified-custd-mdl-startup-button"},Y=async()=>{var o,m,ee,Q,te,c,h,N,z,$,v;if(!e.helperFunctions)S("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{S(""),a(!1);let B=document.getElementById("verified-custd-mdl-otp-input-1"),q=document.getElementById("verified-custd-mdl-otp-input-2"),W=document.getElementById("verified-custd-mdl-otp-input-3"),J=document.getElementById("verified-custd-mdl-otp-input-4"),j=document.getElementById("verified-custd-mdl-otp-input-5"),Z=document.getElementById("verified-custd-mdl-otp-input-6"),ne=document.getElementById("verified-custd-mdl-otp-input-7"),re=document.getElementById("verified-custd-mdl-otp-input-8"),se=((o=e.userEmail)==null?void 0:o.length)>0?e.userEmail:`+${e.selectedCountry.area}${(m=e.userNumberFmt)==null?void 0:m.replace(" ","")}`,ve=((ee=e.userEmail)==null?void 0:ee.length)>0?"email":"sms";if(((Q=B==null?void 0:B.value)==null?void 0:Q.length)>0&&((te=q==null?void 0:q.value)==null?void 0:te.length)>0&&((c=W==null?void 0:W.value)==null?void 0:c.length)>0&&((h=J==null?void 0:J.value)==null?void 0:h.length)>0&&((N=j==null?void 0:j.value)==null?void 0:N.length)>0&&((z=Z==null?void 0:Z.value)==null?void 0:z.length)>0&&(($=ne==null?void 0:ne.value)==null?void 0:$.length)>0&&((v=re==null?void 0:re.value)==null?void 0:v.length)>0&&b&&se&&ve&&C&&d){e.setIsLoading(!0);let he=(B==null?void 0:B.value)+(q==null?void 0:q.value)+(W==null?void 0:W.value)+(J==null?void 0:J.value),we=ie(se),De=ie(he);await $t(se,we,he,De,ve,C,b,d,e.action,e.vaultData,e.txData).then(oe=>{e.setIsLoading(!1),oe?(g(oe!=null&&oe.shouldStop?{}:oe),S(""),a(!1),e.action==="invitation"?(A(he),k(!0)):oe!=null&&oe.shouldStop?oe!=null&&oe.shouldStop&&O(!0):e.setStep("5")):oe===null?(S("You are an existing user. Please input the right pin to recover your account."),a(!0)):(S("Unexpected error while creating account. Please try again later."),a(!0))})}}},ae=async o=>{var Q,te,c,h,N,z,$,v;let m=((Q=e.userEmail)==null?void 0:Q.length)>0?e.userEmail:`+${e.selectedCountry.area}${(te=e.userNumberFmt)==null?void 0:te.replace(" ","")}`,ee=((c=e.userEmail)==null?void 0:c.length)>0?"email":"sms";if((w==null?void 0:w.length)===4&&((h=e==null?void 0:e.vaultData)!=null&&h.hashedVaultId)&&((N=e.vaultData)!=null&&N.hashedVaultPin)&&m){e.setIsLoading(!0);let B=ie(m),q=ie(w);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,ee,B,q,(z=e==null?void 0:e.vaultData)==null?void 0:z.hashedVaultId,($=e.vaultData)==null?void 0:$.hashedVaultPin,(v=e.vaultData)==null?void 0:v.vaultId,m,o,d).then(W=>{var J,j;e.setIsLoading(!1),W&&!(E!=null&&E.isExisting)?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(o?`You have been added as a Co-Signer for ${(J=e.vaultData)==null?void 0:J.vaultId}`:`You rejected Co-signer reject from ${(j=e.vaultData)==null?void 0:j.vaultId}`),e.setStep("5")):W&&(E!=null&&E.isExisting)&&V(!0)})}};return x.createElement(x.Fragment,null,!F&&!u&&x.createElement("div",{className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),x.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},x.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),x.createElement("div",{className:"verified-custd-mdl-otp-input-container"},x.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),x.createElement("div",{className:"verified-custd-mdl-otp-input-group"},x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"}))),x.createElement("div",{className:"verified-custd-mdl-otp-input-container"},x.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),x.createElement("div",{className:"verified-custd-mdl-otp-input-group"},x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),x.createElement("input",{onInputCapture:o=>{var m;o.target.value=(m=o.target.value)==null?void 0:m.replace(/\D/g,""),a(!1)},onInput:o=>{I(o.target),U()},onKeyDown:o=>{o.key==="Backspace"&&o.target.value===""&&i(o)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:l?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),x.createElement("div",{className:"verified-custd-mdl-otp-timer"},!r&&x.createElement("p",null),r&&n===""&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(n==null?void 0:n.length)>0&&x.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},n),!l&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>p(!0),src:D.pinShow,alt:"show pin icon"}),l&&x.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>p(!1),src:D.pinHide,alt:"hide pin icon"})))),!s&&x.createElement("div",{style:{height:"30px"}}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},x.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},x.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async o=>{if(o.target.className.includes("verified-custd-mdl-startup-button")&&o.target.className!=="verified-custd-mdl-startup-button")o.target.className="verified-custd-mdl-startup-button-click",await Y();else{let m=document.getElementsByClassName("verified-custd-mdl-startup-button-active");m.length>0&&(m[0].className="verified-custd-mdl-startup-button-click",await Y())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!F&&u&&x.createElement(x.Fragment,null,!_&&x.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},x.createElement("div",{className:"verified-custd-mdl-startup-contact"},x.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),x.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},x.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},x.createElement("b",null,(G=e.vaultData)==null?void 0:G.vaultId)," has requested you to be a Co-Signer"))),x.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),!P&&x.createElement(x.Fragment,null,x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),x.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:D.pkicon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},x.createElement("img",{src:D.encryptedIcon,alt:"icon"})),x.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",x.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),x.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:()=>{L(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),x.createElement("button",{onClick:async()=>{await ae(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),P&&x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},x.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},x.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),x.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",x.createElement("b",null,(X=e.vaultData)==null?void 0:X.vaultId),", you will not be able to reset the PIN for them.")),x.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},x.createElement("button",{onClick:async()=>{await ae(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),x.createElement("button",{onClick:()=>{L(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),_&&x.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:P?`You rejected Co-signer reject from ${(K=e.vaultData)==null?void 0:K.vaultId}`:`You have been added as a Co-Signer for ${(R=e.vaultData)==null?void 0:R.vaultId}`})),F&&x.createElement(xe,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"You have successfully logged in your account."}))},at=wa;import t,{useState as de}from"react";var Na=e=>{var h,N,z,$;let[s,f]=de(!1),[r,a]=de("1"),[n,S]=de("1"),[l,p]=de(!1),[u,k]=de("sms"),[_,V]=de(""),[F,O]=de(""),[w,A]=de(""),[P,L]=de(""),[b,C]=de(""),[d,g]=de(!1),[E,I]=de(e.defaultCountry||{area:"1",flag:D.usaFlag,name:"United States"}),[i,U]=de([]),[Y,ae]=de(!1),[G,X]=de(2),[R,K]=de(""),{pk:o,vaultData:m,vaultContract:ee}=ye(),Q=()=>{let v=document.getElementById("add-cosigner-button");v&&(i==null?void 0:i.length)>0?v.className="startup-button-active":v.className="startup-button"},te=()=>{var B,q,W,J;if(u==="sms"&&(_==null?void 0:_.length)===0){K("Invalid input, please check the phone number");return}else if(u==="sms"&&(_==null?void 0:_.length)!==10){K("Invalid input, please check the phone number");return}else if(u==="email"&&(w==null?void 0:w.length)===0){K("Invalid input, please check the email");return}else if(u==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(w)){K("Invalid input, please check the email");return}else if(i!=null&&i.find(j=>{var Z,ne,re,se;return(j==null?void 0:j.otpChannel)==="sms"?((Z=j==null?void 0:j.phoneArea)==null?void 0:Z.toLowerCase())+((ne=j==null?void 0:j.number)==null?void 0:ne.toLowerCase())===((re=E.area)==null?void 0:re.toLowerCase())+(F==null?void 0:F.toLowerCase()):((se=j==null?void 0:j.email)==null?void 0:se.toLowerCase())===(w==null?void 0:w.toLowerCase())})){K(u==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(u==="sms"&&((B=E==null?void 0:E.area)==null?void 0:B.toLowerCase())+(F==null?void 0:F.toLowerCase())===((q=e.selectedCountry.area)==null?void 0:q.toLowerCase())+((W=e.userNumberFmt)==null?void 0:W.toLowerCase())){K("Invalid input, phone number is creator's phone number");return}else if(u==="email"&&(w==null?void 0:w.toLowerCase())===((J=e.userEmail)==null?void 0:J.toLowerCase())){K("Invalid input, email is creator's email");return}K("");let v=i==null?void 0:i.length;U(j=>[{name:P,email:w,number:F,phoneNumber:`+${E==null?void 0:E.area}${_}`,otpChannel:u,phoneArea:E==null?void 0:E.area,position:(j==null?void 0:j.length)+1,vaultId:u==="sms"?`+${E==null?void 0:E.area}${_}`:w},...j]),A(""),L(""),V(""),O(""),C(""),v+1===4&&p(!1)},c=async()=>{var B,q,W,J,j,Z;let v=[{otpChannel:((B=e==null?void 0:e.userEmail)==null?void 0:B.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(q=e==null?void 0:e.selectedCountry)==null?void 0:q.area}${(W=e==null?void 0:e.userNumberFmt)==null?void 0:W.replace(" ","")}`,vaultId:m==null?void 0:m.vaultId},...i];(v==null?void 0:v.length)>0&&(i==null?void 0:i.length)>0&&G&&(m!=null&&m.vaultId)&&(m!=null&&m.hashedVaultId)&&(m!=null&&m.vaultPin)&&(m!=null&&m.hashedVaultPin)&&ee&&o&&((J=e.helperFunctions)!=null&&J.sendCoSignerInvitation)&&((j=e.helperFunctions)!=null&&j.sendCreatorConfirmation)&&(e.setIsLoading(!0),await qt(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,v,i,((Z=e==null?void 0:e.userEmail)==null?void 0:Z.length)>0?"email":"sms",G,m.vaultId,m.hashedVaultId,m.vaultPin,m.hashedVaultPin,ee,o).then(ne=>{e.setIsLoading(!1),ne&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!s&&t.createElement(t.Fragment,null,n==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.pkicon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.encryptedIcon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:D.supervise,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>{a("1"),f(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{S("2"),p(!1),f(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),n==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!Y&&t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(i==null?void 0:i.length)+1<5?(i==null?void 0:i.length)+1:5,"/5)")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((h=e.userEmail)==null?void 0:h.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((N=e.userEmail)==null?void 0:N.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Y&&i.sort((v,B)=>(v==null?void 0:v.position)-(B==null?void 0:B.position)).map((v,B)=>{var q,W;return t.createElement("div",{key:B,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(q=Oe[v==null?void 0:v.position])==null?void 0:q.split(" ")[0],t.createElement("sup",null,(W=Oe[v==null?void 0:v.position])==null?void 0:W.split(" ")[1])," ","Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},v==null?void 0:v.name),v.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},v.email),v.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",v==null?void 0:v.phoneArea,") ",v.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:D.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{U(J=>{var j;return(j=J==null?void 0:J.filter(Z=>{var ne,re,se,ve,he,we;return(Z==null?void 0:Z.otpChannel)==="sms"?((ne=Z==null?void 0:Z.phoneArea)==null?void 0:ne.toLowerCase())+((re=Z==null?void 0:Z.number)==null?void 0:re.toLowerCase())!==((se=v==null?void 0:v.phoneArea)==null?void 0:se.toLowerCase())+((ve=v==null?void 0:v.number)==null?void 0:ve.toLowerCase()):((he=Z==null?void 0:Z.email)==null?void 0:he.toLowerCase())!==((we=v==null?void 0:v.email)==null?void 0:we.toLowerCase())}))==null?void 0:j.map((Z,ne)=>(Z.position=ne+1,Z))})},onClick:()=>{Q()},style:{cursor:"pointer"},src:D.delete,alt:"delete"}))))})),Y&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),t.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((v,B)=>t.createElement("div",{style:B+1===G?{}:{height:"0",width:"0",overflow:"hidden"},key:B,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(B+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:D.pointer,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.createElement("div",{style:(i==null?void 0:i.length)===1?{width:`${100/(i==null?void 0:i.length)}%`}:{width:`calc(${100/(i==null?void 0:i.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:D.sliderDot,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((i==null?void 0:i.length)+1).fill("1").map((v,B)=>t.createElement("p",{style:B===(i==null?void 0:i.length)?{paddingRight:"12px"}:B===0?{paddingLeft:"12px"}:{},onClick:()=>{B+1>1&&X(B+1)},key:B,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(B+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async v=>{if(v.target.className.includes("startup-button")&&v.target.className!=="startup-button")v.target.className="startup-button-click",await c();else{let B=document.getElementsByClassName("startup-button-active");B.length>0&&(B[0].className="startup-button-click"),await c()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),l&&(i==null?void 0:i.length)<4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(z=Oe[(i==null?void 0:i.length)+1])==null?void 0:z.split(" ")[0],t.createElement("sup",null,($=Oe[(i==null?void 0:i.length)+1])==null?void 0:$.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:v=>{L(v.target.value)},value:P,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{k("sms"),K(""),A("")},src:u==="sms"?D.selectClicked:D.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{k("email"),K(""),V(""),O(""),C("")},src:u==="email"?D.selectClicked:D.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},u==="sms"&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.createElement("div",{onClick:()=>{g(!d)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{g(!d)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:E.flag}),t.createElement("p",{onClick:()=>{g(!d)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",E.area),d&&t.createElement("img",{onClick:()=>{g(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowUp}),!d&&t.createElement("img",{onClick:()=>{g(!d)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:D.arrowDown})),t.createElement("input",{onInputCapture:v=>{var W;v.target.value===""?C(b+" "):C(v.target.value);let B=(W=v.target.value)==null?void 0:W.replace(/\D/g,"");V(B);let q="";for(let J=0;J<(B==null?void 0:B.length);J++)q+=B[J],(J+1)%5===0&&J+1<(B==null?void 0:B.length)&&(q+=" ");O(q),K("")},onInput:v=>{Q()},value:F,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),d&&t.createElement($e,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:I,selected:E,searchActive:d,setSearchActive:g,contentMaxHeight:"300",contentbottomMargin:"300"}),R===""&&_.length!==10&&b.length>10&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))),u==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:v=>{A(v.target.value),K("")},onInput:v=>{Q()},value:w,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),R!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},R))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>p(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{te()},onClick:()=>Q(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!l&&!Y&&(i==null?void 0:i.length)<4&&t.createElement("div",{onClick:()=>p(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:D.addIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!l&&!Y&&(i==null?void 0:i.length)===4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.createElement("img",{style:{width:"20px"},src:D.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!Y&&t.createElement("button",{style:!l&&(i==null?void 0:i.length)<4?{marginTop:"50px",marginBottom:"20px"}:{marginBottom:"20px"},id:"add-cosigner-button",onClick:async v=>{if(v.target.className.includes("startup-button")&&v.target.className!=="startup-button")v.target.className="startup-button-click",(i==null?void 0:i.length)>0&&(X(2),ae(!0),p(!1));else{let B=document.getElementsByClassName("startup-button-active");B.length>0&&(B[0].className="startup-button-click",(i==null?void 0:i.length)>0&&(X(2),ae(!0),p(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),s&&t.createElement(t.Fragment,null,r==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon2,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>f(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon3,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),r==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon4,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>{S("2"),p(!1),f(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},nt=Na;var Aa=e=>{let[s,f]=fe(e.fontsLoaded||!1),[r,a]=fe(e.showLogoPage||!1),[n,S]=fe([]),[l,p]=fe("2"),[u,k]=fe(e.defaultCountry||{area:"1",flag:D.usaFlag,name:"United States"}),[_,V]=fe(""),[F,O]=fe(""),[w,A]=fe(!1),[P,L]=fe(""),[b,C]=fe(""),[d,g]=fe(""),[E,I]=fe(""),[i,U]=fe(null),[Y,ae]=fe(null),{setChainId:G,setAddress:X,setPk:R,setProvider:K,setSigner:o,setVaultContract:m,setVaultData:ee,vaultData:Q,chainId:te}=ye();return Je(()=>{let c=()=>{let h=Fe(document);f(h)};e.fontsLoaded||c()},[]),Je(()=>{(async()=>{let h=await jt(e.chainId);G(h.chainId),X(h.address),R(h.pk),K(h.provider),o(h.signer),m(h.vaultContract),ee(h.vaultData)})()},[]),Je(()=>{Ca(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Je(()=>{(()=>{let h=Kt.map(N=>{if(N)return{name:N==null?void 0:N.name,countryName:N==null?void 0:N.name,officialName:N==null?void 0:N.name,currencySymbol:N==null?void 0:N.currency,currencyName:N==null?void 0:N.currency,officialCurrencySymbol:N==null?void 0:N.currency,countryCode:N==null?void 0:N.code,flag:N==null?void 0:N.flag,continent:N==null?void 0:N.continent,phone_code:N==null?void 0:N.phone_code,code:N==null?void 0:N.code}}).flat();S(h==null?void 0:h.filter(N=>N!==void 0))})()},[]),le.createElement(le.Fragment,null,s&&r&&e.logoPageElement&&le.createElement(le.Fragment,null," ",e.logoPageElement),s&&!r&&le.createElement(le.Fragment,null,l==="2"&&le.createElement(Re,{setStep:p,setIsLoading:e.setIsLoading,setUserNumberFmt:V,userNumberFmt:_,setUserEmail:O,userEmail:F,setSelectedCountry:k,selectedCountry:u,allCountries:n}),l==="3"&&le.createElement(tt,{setStep:p,setIsLoading:e.setIsLoading,userNumberFmt:_,setUserNumberFmt:V,setUserEmail:O,userEmail:F,selectedCountry:u}),l==="4"&&le.createElement(at,{setStep:p,setIsLoading:e.setIsLoading,setShowSuccessBtn:A,setSuccessBtnText:L,setSuccessBtnNeutText:C,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:ae,userNumberFmt:_,userEmail:F,selectedCountry:u,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:g,setActionFooterText:I,helperFunctions:e.helperFunctions}),l==="5"&&le.createElement(xe,{setStep:p,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:w,buttonText:P,buttonNeutText:b,buttonFunc:i,buttonNeutFunc:Y,actionHeaderText:d,actionFooterText:E}),l==="6"&&le.createElement(nt,{setStep:p,setIsLoading:e.setIsLoading,userNumberFmt:_,userEmail:F,selectedCountry:u,allCountries:n,helperFunctions:e.helperFunctions}),l==="7"&&e.action===""&&le.createElement(xe,{action:e.action,setStep:p,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="7"&&e.action!==""&&le.createElement(xe,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData}}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),l==="8"&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading})),!s&&le.createElement("h3",null,"Preparing Modules..."))},it=Aa;import y,{useEffect as Ea,useState as pe}from"react";var Sa=e=>{var o,m,ee,Q,te;let[s,f]=pe(e.fontsLoaded||!1),[r,a]=pe(!1),[n,S]=pe(!0),[l,p]=pe(!1),[u,k]=pe(!1),[_,V]=pe(null),[F,O]=pe(e.newChainId||be),[w,A]=pe(!1),[P,L]=pe(!1),[b,C]=pe(!1),[d,g]=pe(!1),[E,I]=pe(!1),[i,U]=pe("");Ea(()=>{let c=()=>{let h=Fe(document);f(h)};e.fontsLoaded||c()},[]);let Y=c=>{if(c.value.length>0){let h=c.nextElementSibling;h&&h.focus()}else c.value.length===0&&c.focus()},ae=c=>{let h=c.clipboardData.getData("text"),N=h==null?void 0:h.replace(/\D/g,""),z=document.getElementsByClassName("otp-input");if((z==null?void 0:z.length)===4&&(N==null?void 0:N.length)>0)for(let $=0;$<z.length;$++)N[$]&&(z[$].value=N[$],z[$].focus())},G=c=>{let h=c.target.previousElementSibling;h&&h.focus()},X=()=>{let c=document.getElementById("verified-custd-mdl-otp-button"),h=document.getElementById("verified-custd-mdl-otp-input-1"),N=document.getElementById("verified-custd-mdl-otp-input-2"),z=document.getElementById("verified-custd-mdl-otp-input-3"),$=document.getElementById("verified-custd-mdl-otp-input-4");c&&(h==null?void 0:h.value.length)>0&&(N==null?void 0:N.value.length)>0&&(z==null?void 0:z.value.length)>0&&($==null?void 0:$.value.length)>0&&!r?c.className="verified-custd-mdl-startup-button-active":c.className="verified-custd-mdl-startup-button"},R=async()=>{var c,h,N,z;if(!e.helperFunctions)U("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{U(""),a(!1);let $=document.getElementById("verified-custd-mdl-otp-input-1"),v=document.getElementById("verified-custd-mdl-otp-input-2"),B=document.getElementById("verified-custd-mdl-otp-input-3"),q=document.getElementById("verified-custd-mdl-otp-input-4");if(((c=$==null?void 0:$.value)==null?void 0:c.length)>0&&((h=v==null?void 0:v.value)==null?void 0:h.length)>0&&((N=B==null?void 0:B.value)==null?void 0:N.length)>0&&((z=q==null?void 0:q.value)==null?void 0:z.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let W=($==null?void 0:$.value)+(v==null?void 0:v.value)+(B==null?void 0:B.value)+(q==null?void 0:q.value);await Wt(e.vaultId,e.hashedVaultId,W,ie(W),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(F)).then(async J=>{var j,Z,ne,re,se,ve,he,we,De,oe,Ge,dt,rt,st,lt,ct,ut,mt,ft,gt,pt,ht,vt,yt,bt,xt,wt,Nt,Ct,At,Et,St,kt,It,_t,Pt,Dt;e.setIsLoading(!1),J?(V(J),e.action==="getPk"&&((Z=(j=e.reqVaultData)==null?void 0:j.vaultId)==null?void 0:Z.toLowerCase())===((ne=e.vaultId)==null?void 0:ne.toLowerCase())?(e.setIsLoading(!0),await Jt(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,ie(W),e.vaultId,W,e.encrptedPk,e.vaultChannel,Number(F)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),(Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),a(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Zt(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,ie(W),e.vaultId,W,e.encrptedPk,(re=e.reqVaultData)==null?void 0:re.vaultId,(se=e.reqVaultData)==null?void 0:se.hashedVaultId,(ve=e.reqVaultData)==null?void 0:ve.hashedVaultPin,(he=e.reqTxData)==null?void 0:he.id,Number(F)).then(async Ue=>{var Ce,Ae,Ft,Tt;e.setIsLoading(!1),!((Ce=e.reqTxData)!=null&&Ce.newUser)&&((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((Ft=e.reqTxData)!=null&&Ft.newUser)&&!((Tt=chrome==null?void 0:chrome.storage)!=null&&Tt.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ue?k(!0):(U("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),a(!0))})):e.action==="completeRecovery"&&((De=(we=e.reqVaultData)==null?void 0:we.vaultId)==null?void 0:De.toLowerCase())===((oe=e.vaultId)==null?void 0:oe.toLowerCase())?(e.setIsLoading(!0),await Xt(e.hashedVaultId,ie(W),e.vaultId,W,e.encrptedPk,(Ge=e.reqTxData)==null?void 0:Ge.id,e.vaultChannel,Number(F)).then(async Ue=>{var Ce,Ae;e.setIsLoading(!1),Ue?k(!0):((Ce=chrome==null?void 0:chrome.storage)!=null&&Ce.local?await chrome.storage.local.remove("myVault"):!((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local)&&localStorage&&localStorage.removeItem("myVault"),U("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((rt=(dt=e.reqVaultData)==null?void 0:dt.vaultId)==null?void 0:rt.toLowerCase())!==((st=e.vaultId)==null?void 0:st.toLowerCase())&&((ct=(lt=e.reqVaultData)==null?void 0:lt.coSignerId)==null?void 0:ct.toLowerCase())===((ut=e.vaultId)==null?void 0:ut.toLowerCase())?(U(""),a(!1),L(!0)):e.action==="invitation"&&((ft=(mt=e.reqVaultData)==null?void 0:mt.vaultId)==null?void 0:ft.toLowerCase())===((gt=e.vaultId)==null?void 0:gt.toLowerCase())?(U(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(pt=e.reqVaultData)==null?void 0:pt.coSignerId} account`),a(!0)):e.action==="invitation"&&((vt=(ht=e.reqVaultData)==null?void 0:ht.coSignerId)==null?void 0:vt.toLowerCase())!==((yt=e.vaultId)==null?void 0:yt.toLowerCase())?(U(`You cannot accept this Co-Signer invitation. please logout and login to: ${(bt=e.reqVaultData)==null?void 0:bt.coSignerId} account`),a(!0)):e.action==="getPk"&&((wt=(xt=e.reqVaultData)==null?void 0:xt.vaultId)==null?void 0:wt.toLowerCase())!==((Nt=e.vaultId)==null?void 0:Nt.toLowerCase())?((Ct=chrome==null?void 0:chrome.storage)!=null&&Ct.local?await chrome.storage.local.remove("myVault"):!((At=chrome==null?void 0:chrome.storage)!=null&&At.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to fetch account details. please logout and login to: ${(Et=e.reqVaultData)==null?void 0:Et.vaultId} account`),a(!0)):e.action==="completeRecovery"&&((kt=(St=e.reqVaultData)==null?void 0:St.vaultId)==null?void 0:kt.toLowerCase())!==((It=e.vaultId)==null?void 0:It.toLowerCase())?((_t=chrome==null?void 0:chrome.storage)!=null&&_t.local?await chrome.storage.local.remove("myVault"):!((Pt=chrome==null?void 0:chrome.storage)!=null&&Pt.local)&&localStorage&&localStorage.removeItem("myVault"),U(`You are not authorized to restore login access for this account. please logout and login to: ${(Dt=e.reqVaultData)==null?void 0:Dt.vaultId} account`),a(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)?(U("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),a(!0)):e.action===""?e.setShowDashboard(!0):(U(""),a(!1),k(!0))):(U(""),a(!0))})}}},K=async c=>{var B,q,W,J,j,Z,ne,re,se,ve,he;let h=document.getElementById("verified-custd-mdl-otp-input-1"),N=document.getElementById("verified-custd-mdl-otp-input-2"),z=document.getElementById("verified-custd-mdl-otp-input-3"),$=document.getElementById("verified-custd-mdl-otp-input-4"),v=e.vaultId;if(((B=h==null?void 0:h.value)==null?void 0:B.length)>0&&((q=N==null?void 0:N.value)==null?void 0:q.length)>0&&((W=z==null?void 0:z.value)==null?void 0:W.length)>0&&((J=$==null?void 0:$.value)==null?void 0:J.length)>0&&((j=e==null?void 0:e.reqVaultData)!=null&&j.hashedVaultId)&&((Z=e.reqVaultData)!=null&&Z.hashedVaultPin)&&v&&((ne=e.helperFunctions)!=null&&ne.sendCreatorAcceptance)&&((re=e.helperFunctions)!=null&&re.sendCreatorRejection)){e.setIsLoading(!0);let we=(h==null?void 0:h.value)+(N==null?void 0:N.value)+(z==null?void 0:z.value)+($==null?void 0:$.value),De=ie(v),oe=ie(we);await qe(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,De,oe,(se=e==null?void 0:e.reqVaultData)==null?void 0:se.hashedVaultId,(ve=e.reqVaultData)==null?void 0:ve.hashedVaultPin,(he=e==null?void 0:e.reqVaultData)==null?void 0:he.vaultId,v,c,null,e.encrptedPk,Number(F)).then(Ge=>{e.setIsLoading(!1),Ge&&(I(c),C(!0))})}};return y.createElement(y.Fragment,null,s&&!P&&y.createElement(y.Fragment,null,!u&&y.createElement("div",{className:"verified-custd-mdl-startup-language"},y.createElement("div",{className:"verified-custd-mdl-startup-contact"},y.createElement(ge,{sliderCount:[1],currentSlider:"0"}),y.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},y.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},y.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),y.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},y.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",y.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",y.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),y.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&y.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),y.createElement("div",{className:"verified-custd-mdl-otp-input-container"},y.createElement("div",{className:"verified-custd-mdl-otp-input-group"},y.createElement("input",{onInputCapture:c=>{var h;c.target.value=(h=c.target.value)==null?void 0:h.replace(/\D/g,""),a(!1)},onInput:c=>{Y(c.target),X()},onKeyDown:c=>{c.key==="Backspace"&&c.target.value===""&&G(c)},onPaste:c=>{ae(c)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),y.createElement("input",{onInputCapture:c=>{var h;c.target.value=(h=c.target.value)==null?void 0:h.replace(/\D/g,""),a(!1)},onInput:c=>{Y(c.target),X()},onKeyDown:c=>{c.key==="Backspace"&&c.target.value===""&&G(c)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),y.createElement("input",{onInputCapture:c=>{var h;c.target.value=(h=c.target.value)==null?void 0:h.replace(/\D/g,""),a(!1)},onInput:c=>{Y(c.target),X()},onKeyDown:c=>{c.key==="Backspace"&&c.target.value===""&&G(c)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),y.createElement("input",{onInputCapture:c=>{var h;c.target.value=(h=c.target.value)==null?void 0:h.replace(/\D/g,""),a(!1)},onInput:c=>{Y(c.target),X()},onKeyDown:c=>{c.key==="Backspace"&&c.target.value===""&&G(c)},className:r?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:n?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),y.createElement("div",{className:"verified-custd-mdl-otp-timer"},r&&i===""&&y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),r&&(i==null?void 0:i.length)>0&&y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},i),!r&&y.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!n&&y.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>S(!0),src:D.pinShow,alt:"show pin icon"}),n&&y.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>S(!1),src:D.pinHide,alt:"hide pin icon"})))),!l&&y.createElement("div",{style:{height:"100px"}}),y.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},y.createElement(Yt,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),y.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async c=>{if(c.target.className.includes("verified-custd-mdl-startup-button")&&c.target.className!=="verified-custd-mdl-startup-button")c.target.className="verified-custd-mdl-startup-button-click",await R();else{let h=document.getElementsByClassName("verified-custd-mdl-startup-button-active");h.length>0&&(h[0].className="verified-custd-mdl-startup-button-click",await R())}},className:"verified-custd-mdl-startup-button"},"Proceed"),y.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},y.createElement(Le,null))))),u&&y.createElement(xe,{messageTosend:e.action==="getPk"?{type:"closePopup",key:"",value:""}:e.action==="signRecovery"?{type:"closePopup",key:"",value:""}:e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:_},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${(o=e.reqVaultData)==null?void 0:o.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e==null?void 0:e.vaultId} account`:`Congratulations! You have successfully ${e.action==="connect_wallet"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),s&&P&&y.createElement(y.Fragment,null,!b&&y.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},y.createElement("div",{className:"verified-custd-mdl-startup-contact"},y.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),y.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},y.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},y.createElement("b",null,(m=e.reqVaultData)==null?void 0:m.vaultId)," has requested you to be a Co-Signer"))),y.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:D.addCoSignerIcon1,alt:""}),!d&&y.createElement(y.Fragment,null,y.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},y.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),y.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),y.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},y.createElement("img",{src:D.pkicon,alt:"icon"})),y.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",y.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),y.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},y.createElement("img",{src:D.encryptedIcon,alt:"icon"})),y.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",y.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),y.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},y.createElement("button",{onClick:()=>{g(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),y.createElement("button",{onClick:async()=>{await K(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),d&&y.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},y.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},y.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),y.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",y.createElement("b",null,(ee=e.reqVaultData)==null?void 0:ee.vaultId),", you will not be able to reset the PIN for them.")),y.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},y.createElement("button",{onClick:async()=>{await K(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),y.createElement("button",{onClick:()=>{g(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),b&&y.createElement(xe,{messageTosend:{type:"getPk",key:"vaultData",value:_},customTextHeader:"Successful",customTextFooter:E?`You have been added as a Co-Signer for ${(Q=e.reqVaultData)==null?void 0:Q.vaultId}`:`You rejected Co-signer reject from ${(te=e.reqVaultData)==null?void 0:te.vaultId}`})),!s&&y.createElement("h3",null,"Preparing Modules..."))},ot=Sa;import{motion as ka}from"framer-motion";var Ia=e=>{var _,V,F,O,w,A,P,L,b,C,d,g,E,I,i,U,Y,ae;let[s,f]=He(!0),[r,a]=He(null),[n,S]=He({}),[l,p]=He(!1),[u,k]=He(!1);return Qt(()=>{(()=>{let X=Fe(document);f(X)})()},[]),Qt(()=>{(()=>{var X,R;if((X=chrome==null?void 0:chrome.storage)!=null&&X.local)chrome.storage.local.get("myVault",K=>{var o;K.myVault&&((o=JSON.parse(K.myVault))!=null&&o.vaultId)?(S(JSON.parse(K.myVault)),a(!0)):a(!1)});else if(!((R=chrome==null?void 0:chrome.storage)!=null&&R.local)&&localStorage){let K=JSON.parse(localStorage.getItem("myVault"));K&&(K!=null&&K.vaultId)?(S(K),a(!0)):a(!1)}else a(!1)})()},[]),ce.createElement(ce.Fragment,null,s&&ce.createElement(Lt,null,ce.createElement("div",{className:"verified-custd-mdl-container"},r===null&&e.delayPageElement&&ce.createElement(ce.Fragment,null,e.delayPageElement," "),r===null&&!e.delayPageElement&&ce.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),l&&ce.createElement("div",{style:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},ce.createElement(ka.img,{height:"50px",width:"50px",src:D.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),r!==null&&ce.createElement(ce.Fragment,null,!r&&ce.createElement(it,{fontsLoaded:s,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((_=e.reqVaultData)==null?void 0:_.vId)||((V=e.reqVaultData)==null?void 0:V.vaultId)),hashedVaultId:ie(decodeURIComponent(((F=e.reqVaultData)==null?void 0:F.vId)||((O=e.reqVaultData)==null?void 0:O.vaultId))),hashedVaultPin:decodeURIComponent(((w=e.reqVaultData)==null?void 0:w.vPh)||((A=e.reqVaultData)==null?void 0:A.hashedVaultPin)),coSignerId:decodeURIComponent((P=e.reqVaultData)==null?void 0:P.cId)}:null,txData:e.txData?(b=Object.keys(e.txData))==null?void 0:b.map(G=>(e.txData[G]=decodeURIComponent(e.txData[G]),e.txData))[((L=Object.keys(e.txData))==null?void 0:L.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:p,dashbordElement:e.dashbordElement}),r&&!u&&ce.createElement(ot,{fontsLoaded:s,setisOnboard:a,vaultId:n==null?void 0:n.vaultId,hashedVaultId:n==null?void 0:n.hashedVaultId,encrptedPk:n==null?void 0:n.pk,vaultAddress:n==null?void 0:n.address,vaultChannel:n==null?void 0:n.channel,origin:e.origin,title:e.title,actionText:e.actionText||Mt[e.action],setIsLoading:p,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((C=e.reqVaultData)==null?void 0:C.vId)||((d=e.reqVaultData)==null?void 0:d.vaultId)),hashedVaultId:ie(decodeURIComponent(((g=e.reqVaultData)==null?void 0:g.vId)||((E=e.reqVaultData)==null?void 0:E.vaultId))),hashedVaultPin:decodeURIComponent(((I=e.reqVaultData)==null?void 0:I.vPh)||((i=e.reqVaultData)==null?void 0:i.hashedVaultPin)),coSignerId:decodeURIComponent((U=e.reqVaultData)==null?void 0:U.cId)}:null,reqTxData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map(G=>(e.txData[G]=decodeURIComponent(e.txData[G]),e.txData))[((Y=Object.keys(e.txData))==null?void 0:Y.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:k}),r&&u&&e.dashbordElement&&ce.createElement(e.dashbordElement,{setIsLoading:p})))),!s&&ce.createElement("h3",null,"Preparing Modules..."))},_a=Ia;export{nt as AddCoSignersPage,Re as ContactPage,at as CreatePinPage,ot as EnterPinPage,it as FTUPage,tt as OTPPage,_a as VerifiedCustody,Be as decryptString,Te as encryptString,ie as hashTheString};
|
|
1
|
+
function oa(e){if(!e||typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],f=document.createElement("style");f.type="text/css",l.firstChild?l.insertBefore(f,l.firstChild):l.appendChild(f),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(document.createTextNode(e))}oa(`textarea:focus,input:focus{outline:none;border:none}input{appearance:textfield;-moz-appearance:textfield;outline:none;border:none;margin:0}input::placeholder{margin:0}input[type=password]::-ms-reveal{display:none}input[type=password]::-moz-password-toggle{display:none}input[type=password]::-webkit-contacts-auto-fill-button{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}::-webkit-scrollbar{width:5px;height:4px}::-webkit-scrollbar-thumb{height:4px;width:5px;background-color:var(--Neutral-200, #d8d9df);border-radius:4px}::-webkit-scrollbar-thumb:hover{background-color:var(--Neutral-200, #d8d9df)}::-webkit-scrollbar-track{background:transparent;height:4px;width:5px;cursor:pointer}p{margin:0}.verified-custd-mdl-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px;overflow-y:auto;overflow-x:hidden;position:relative}.verified-custd-mdl-startup-outter{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#643fff,#381ab7)}.verified-custd-mdl-startup-outter-norm{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--common-white_states-main, #fff)}.verified-custd-mdl-startup{width:650px;height:fit-content;display:flex;justify-content:center;align-items:center;flex-direction:column;overflow-x:hidden;overflow-y:auto;padding-bottom:20px;border:1px solid #0F122E;border-radius:10px;position:relative}.verified-custd-mdl-loading-screen{border-radius:10px;min-height:100%;width:100%;flex-shrink:0;background:#0000004d;z-index:10;display:flex;justify-content:center;align-items:center;overflow:auto;bottom:-10px;top:0;position:absolute}.verified-custd-mdl-startup-icon-container{width:76.119%;display:flex;justify-content:center;align-items:center;position:relative;flex-direction:column;height:298px}.verified-custd-mdl-startup-icon-shadow{position:absolute;bottom:10px;right:70px;width:48.5%}.verified-custd-mdl-startup-text-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:12px;margin-right:20px;margin-left:20px}.verified-custd-mdl-startup-text-header{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Manrope;font-size:2.1rem;font-style:normal;font-weight:700;line-height:2.8125rem;margin:0}.verified-custd-mdl-startup-text-footer{color:var(--Neutral-White-100, var(--common-white_states-main, #fff));font-family:Roboto;font-size:.9rem;font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8}.verified-custd-mdl-ftu-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;margin:20px;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none}.verified-custd-mdl-startup-language{background:var(--common-white_states-main, #fff);height:100%;width:90%;max-width:700px}.verified-custd-mdl-startup-language-content-container{display:inline-flex;flex-direction:column;align-items:flex-start;gap:32px;width:100%}.verified-custd-mdl-st-language-content{display:flex;flex-direction:column;align-items:flex-start;gap:20px;align-self:stretch;width:100%}.verified-custd-mdl-st-language-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1.5rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch}.verified-custd-mdl-ms-search-content:hover{border-radius:var(--space-8px, 8px);border:1px solid var(--secondary-electric-violet-300, #9da3ff);background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-st-contact-input{display:flex;flex-direction:column;align-items:flex-start;gap:14px;width:100%}.verified-custd-mdl-st-contact-first-section{display:flex;width:150px;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-selection-icon{display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:24px;cursor:pointer;user-select:none;overflow:hidden;width:28px;height:28px}.verified-custd-mdl-st-contact-selection-text{color:var(--Neutral-950, #0c0c0e);text-align:right;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:500;line-height:140%;width:40px;flex-shrink:0;cursor:pointer;user-select:none}.verified-custd-mdl-custom-blank-page{height:0}.verified-custd-mdl-startup-otp-text{display:flex;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-startup-otp-header-text{align-self:stretch;color:var(--Neutral-600, #5b5d6e);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:400;line-height:150%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-group{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-otp-input{display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-input-red{border-radius:8px;border:1px solid var(--Error-600, #E23636);background:var(--Neutral-50, #F7F7F8);display:flex;padding:20px 12px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);flex:1 0 0;align-self:stretch;width:25%;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-incorrect-text{color:var(--Error-600, #E23636);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:140%;max-width:200px;word-wrap:break-word}.verified-custd-mdl-otp-timer{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-otp-timer-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-timer-text-red{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-otp-resend-text-active{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:500;line-height:140%;cursor:pointer;user-select:none}.verified-custd-mdl-st-otp-icon{cursor:pointer;user-select:none}.verified-custd-mdl-startup-button{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;opacity:0verified-custd-mdl-5;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-startup-button-active{display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:var(--space-8px, 8px);background:var(--primary-bitter-lemon-500, #cfe600);cursor:pointer;user-select:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;border:none;width:90%;max-width:500px}.verified-custd-mdl-otp-input[type=password]{font-weight:900}.verified-custd-mdl-startup-button-click{border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-950, #0c0c0e);cursor:pointer;user-select:none;display:inline-flex;padding:14px;justify-content:center;align-items:center;gap:var(--space-8px, 8px);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;outline:none;width:90%;background:transparent;max-width:500px}.verified-custd-mdl-pin-input-container-text{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-button-text{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-slider{display:flex;width:335px;align-items:center;gap:12px;border-radius:4px;width:100%}.verified-custd-mdl-startup-slider-line{height:4px;flex-shrink:0;border-radius:var(--space-8px, 8px);background:var(--Neutral-100, #eeeef0)}.verified-custd-mdl-startup-slider-line-active{height:4px;flex:1 0 0;border-radius:var(--space-8px, 8px);background:var(--secondary-electric-violet-600, #603ff4)}.verified-custd-mdl-startup-contact{display:inline-flex;flex-direction:column;align-items:flex-start;gap:20px;width:100%}.verified-custd-mdl-startup-contact-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-startup-contact-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:1rem;font-style:normal;font-weight:700;line-height:100%;align-self:stretch;max-width:100%;word-wrap:break-word}.verified-custd-mdl-st-contact-content-container{display:flex;align-items:flex-start;gap:var(--space-8px, 8px);width:100%}.verified-custd-mdl-st-contact-dropdown{cursor:pointer;user-select:none}.verified-custd-mdl-st-contact-second-section{display:flex;width:100%;height:44px;padding-left:6px;align-items:center;border-radius:var(--space-8px, 8px);background:var(--Neutral-50, #f7f7f8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-st-contact-second-section::placeholder{color:var(--Neutral-300, #b6b7c3);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-startup-contact-footer{display:inline-flex;flex-direction:column;align-items:center;gap:12px;width:100%;margin-top:16px}.verified-custd-mdl-st-contact-footer-first-section{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;width:100%}.verified-custd-mdl-st-contact-footer-second-section{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}.verified-custd-mdl-st-contact-input-error{display:flex;align-items:center;gap:4px}.verified-custd-mdl-input-error-text{color:var(--Error-600, #e23636);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;margin:0}.verified-custd-mdl-mobille-startup-search-box-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-mobile-startup-search-box{display:flex;height:40px;align-items:center;gap:6px;border-radius:6px;border:1px solid var(--Neutral-200, #d8d9df);background:var(--Neutral-50, #f7f7f8);width:100%;overflow:hidden}.verified-custd-mdl-ms-search-box-content{height:100%;width:100%;background:transparent;color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-ms-search-box-content::placeholder{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-mobile-startup-search-content{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:16px;border-radius:var(--space-8px, 8px);border:1px solid var(--Neutral-50, #f7f7f8);background:var(--common-white_states-main, #fff)}.verified-custd-mdl-ms-search-content-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;overflow-x:hidden;overflow-y:auto}.verified-custd-mdl-ms-search-content{display:flex;padding:var(--space-8px, 8px);align-items:center;gap:19px;align-self:stretch;cursor:pointer;user-select:none;height:34px;margin-bottom:5px;border:1px solid transparent}.verified-custd-mdl-ms-search-content-active{display:flex;padding:var(--space-8px, 8px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:6px;background:var(--Success-50, #f1f8ed);cursor:pointer;user-select:none}.verified-custd-mdl-ms-search-content-text-container{display:flex;align-items:center;gap:19px}.verified-custd-mdl-ms-search-content-icon{display:flex;width:28px;height:28px;justify-content:center;align-items:center;border-radius:24px;border:1px solid rgba(0,0,0,.05);background:var(--common-white_states-main, #fff);box-shadow:0 1px 4px #eee}.verified-custd-mdl-ms-search-content-text{color:var(--Neutral-950, #0c0c0e);font-family:Roboto;font-size:.775rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-terms-and-condition{color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.6rem;font-style:normal;font-weight:400;line-height:140%}.verified-custd-mdl-privacy{display:flex;align-items:center;gap:4px;margin-bottom:20px}.verified-custd-mdl-privacy-text{color:var(--Neutral-800, #40414c);font-family:Roboto;font-size:.5rem;font-style:normal;font-weight:400;line-height:1.25rem;letter-spacing:.01563rem}.verified-custd-mdl-p-p-payment-portal-amount-info-separator{display:flex;align-items:center;gap:6px;align-self:stretch;justify-content:center}.verified-custd-mdl-p-p-payment-portal-line{width:50%;height:1px;background:#eeeef0}.verified-custd-mdl-p-payment-portal-separator-text{color:var(--Neutral-700, #4a4a5a);font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%;opacity:.6}.verified-custd-mdl-startup-otp-footer{display:flex;align-items:center;gap:4px;width:100%;overflow:hidden}.verified-custd-mdl-startup-otp-footer-text{color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:.8rem;font-style:normal;font-weight:600;line-height:100%;max-width:100%;word-wrap:break-word}.verified-custd-mdl-otp-input-container{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.verified-custd-mdl-general-web-toast-error{display:flex;align-items:center;gap:12px}.verified-custd-mdl-general-web-toast-error-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-error-title{margin:0;color:var(--Neutral-950, #0c0c0e);font-family:Manrope;font-size:1rem;font-style:normal;font-weight:600;line-height:100%;align-self:stretch}.verified-custd-mdl-general-web-toast-error-label{align-self:stretch;color:var(--Neutral-400, #8f91a1);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-general-web-toast-success{display:flex;padding:12px;justify-content:space-between;align-items:center;align-self:stretch;border-radius:8px;background:var(--Success-50, #f1f8ed);width:100%;height:55px;max-height:55px}.verified-custd-mdl-general-web-toast-success-cont{display:flex;align-items:center;gap:12px;width:100%}.verified-custd-mdl-general-web-toast-success-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:6px}.verified-custd-mdl-general-web-toast-success-link{display:flex;align-items:center}.verified-custd-mdl-general-web-toast-success-link-text{color:var(--secondary-electric-violet-600, #603ff4);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font}.verified-custd-mdl-success-popup-content-container{display:flex;width:28.4375%;padding:24px;flex-direction:column;align-items:center;background:var(--common-white_states-main, #fff);box-shadow:0 4px 19px #0000001f;height:100%}.verified-custd-mdl-success-popup-content{display:flex;width:100%;flex-direction:column;align-items:center;gap:32px}.verified-custd-mdl-success-popup-content-text{display:flex;flex-direction:column;align-items:center;gap:12px;align-self:stretch}.verified-custd-mdl-success-popup-content-text-header{color:var(--Neutral-950, #0c0c0e);text-align:center;font-family:Manrope;font-size:1.5rem;font-style:normal;font-weight:800;line-height:140%}.verified-custd-mdl-success-popup-content-text-footer{color:var(--Neutral-600, #5b5d6e);text-align:center;font-family:Roboto;font-size:1rem;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-icon{width:90%;max-width:90%;max-height:250px;height:250px}.verified-custd-mdl-add-cosigner-body{display:inline-flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-body-text-cont{display:flex;align-items:center;gap:10px;width:100%}.verified-custd-mdl-add-cosigner-body-text-icon{display:flex;padding:8px;align-items:center;gap:10px;border-radius:24px;background:var(--secondary-electric-violet-200, #C2C7FF);overflow:hidden;justify-content:center;width:20px;height:20px}.verified-custd-mdl-add-cosigner-body-text-label{width:76.1%;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-body-text-label-bold{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-buttons-cont{display:inline-flex;padding:10px;align-items:flex-start;gap:10px;background:transparent;display:flex;justify-content:space-between}.verified-custd-mdl-add-cosigner-button-neut{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;background:transparent;border-radius:8px;border:1px solid var(--Neutral-950, #0C0C0E);color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-button-action{width:45%;display:flex;padding:14px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background:var(--primary-bitter-lemon-500, #CFE600);border:none;color:var(--Neutral-950, #0C0C0E);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;cursor:pointer}.verified-custd-mdl-add-cosigner-more-body{display:inline-flex;padding:15px;flex-direction:column;align-items:flex-start;gap:12px;border-radius:8px;background:var(--secondary-electric-violet-50, #ECEFFF)}.verified-custd-mdl-add-cosigner-more-header-cont{display:flex;flex-direction:column;align-items:flex-start;gap:32px}.verified-custd-mdl-add-cosigner-more-title-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-add-cosigner-header-text{align-self:stretch;color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-more-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:18px;font-style:normal;font-weight:700;line-height:120%;margin:0}.verified-custd-mdl-add-cosigner-more-label{color:var(--Neutral-700, #4A4A5A);font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-more-label-link{align-self:stretch;color:var(--secondary-electric-violet-700, #4E2BD7);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:150%;text-decoration-line:underline;text-decoration-style:solid;text-decoration-skip-ink:none;text-decoration-thickness:auto;text-underline-offset:auto;text-underline-position:from-font;cursor:pointer;margin:0}.verified-custd-mdl-add-cosigner-header-info-cont{display:flex;padding:10px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:8px;background:var(--Accent-100, #FFF9C1)}.verified-custd-mdl-add-cosigner-header-info-text{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-header-info-text-bold{color:var(--Accent-800, #89490A);font-family:Roboto;font-size:10px;font-style:normal;font-weight:700;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:20px}.verified-custd-mdl-add-cosigner-step2-body-header{display:flex;width:100%;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-step2-body-header-first-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:.8rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-body-header-second-text{color:var(--Neutral-950, #0C0C0E);text-align:right;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%}.verified-custd-mdl-add-cosigner-step2-body-content-header{display:flex;padding-top:14px;justify-content:center;align-items:center;position:relative;width:100%;flex-direction:column}.verified-custd-mdl-add-cosigner-step2-body-content-header-cont{display:flex;width:100%;padding:12px;flex-direction:column;align-items:flex-start;gap:16px}.verified-custd-mdl-add-cosigner-step2-body-content-header-label{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;position:absolute;left:12px;top:-14px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-body-content-header-label-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-body-content-header-body{justify-content:space-between;align-self:stretch;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-50, #F7F7F8);position:relative;display:flex;padding:12px;align-items:flex-start;gap:16px}.verified-custd-mdl-a-c-2-b-content-header-body-header-cont{display:flex;align-items:center;gap:12px}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.verified-custd-mdl-a-c-2-b-content-header-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:16px;font-style:normal;font-weight:500;line-height:150%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-label{color:var(--Neutral-400, #8F91A1);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;max-width:150px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}
|
|
2
|
+
`);typeof chrome>"u"&&(window.chrome={});import ce,{useEffect as ia,useState as We}from"react";import sa,{createContext as ra,useContext as da,useState as Ne}from"react";var Mt=ra(void 0),Kt=e=>{let[l,f]=Ne(null),[d,a]=Ne(null),[i,A]=Ne(null),[c,k]=Ne(null),[r,C]=Ne(null),[I,U]=Ne(null),[S,K]=Ne(null),[p,x]=Ne(null),[D,_]=Ne(null);return sa.createElement(Mt.Provider,{value:{chainId:l,pk:d,address:i,smAddress:c,signer:r,provider:I,vaultContract:S,vaultData:p,setChainId:f,setPk:a,setAddress:A,setSmAddress:k,setSigner:C,setProvider:U,setVaultContract:K,setVaultData:x}},e.children)},be=()=>{let e=da(Mt);if(e)return e;throw Error("useVaultStore must be used within VaultContextProvider")};import le,{useEffect as Xe,useState as fe}from"react";import{debounce as Ha}from"lodash";var xe=process.env.REACT_APP_NODE_ENV==="production"?8453:11155111,Qa=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",zt=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],jt=["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"],Ht="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Qe="23o7dHkKdIMtjnft5q/J4mqpdBqqOOuajepmYqY0eAi9TaqQYsVSBA==",Re="https://verified.azurewebsites.net/api/otpsender",Gt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},ze={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},Yt={connect_wallet:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access"},F={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg"},Wt=[{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 la,Custody as ca,Provider as ua,VerifiedWallet as et}from"@verified-network/verified-sdk";var ue={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://solemn-summer-patina.quiknode.pro/${process.env.REACT_APP_QUIKNODE_KEY}/`],blockExplorerUrls:["https://etherscan.io/"],icon:F.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api.etherscan.io/api"},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:[`https://red-quaint-pallet.base-mainnet.quiknode.pro/${process.env.REACT_APP_QUICKNODE_KEY}/`],blockExplorerUrls:["https://basescan.org/"],Icon:F.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:F.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.public.blastapi.io"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:F.ethereumIcon,explorerApiKey:"M8SGUPC8CXRTER5GGTSSXW7C9A1ZINWWYA",explorerApiUrl:"https://api-sepolia.etherscan.io/api"},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:F.baseIcon}},Se={BUNDLER_URL_FIRST_SECTION:"https://bundler.biconomy.io/api/v2",11155111:{PAYMASTER_API_KEY:"BuFP2-5w-.5b3daf3a-d044-4dda-819c-4c4d8431df88",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},137:{PAYMASTER_API_KEY:"lDHvYk50N.30a2522e-0a9d-444b-b949-19194c1f237a",BUNDLER_API_KEY:"dewj2189.wh1289hU-7E49-45ic-af80-JkuxGCYRV"},84532:{PAYMASTER_API_KEY:"jSBI-WRji.99a4dda1-1c20-42ea-9409-2724f9a0ca7e",BUNDLER_API_KEY:"nJPK7B3ru.dd7f7861-190d-41bd-af80-6877f74b8f44"},1:{PAYMASTER_API_KEY:"ap7LOqALI.bf68e672-47ce-40f8-8b62-ea508dcf5852",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},8453:{PAYMASTER_API_KEY:"glRQsmuYh.5d9372ab-5063-4ecd-ac63-643fef624a73",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"},100:{PAYMASTER_API_KEY:"eUYghbvi4.317a2d6d-6ee7-4a0c-b91f-43ba2699f65b",BUNDLER_API_KEY:"dewj402.wh1289hU-7E49-85b-af80-t6XmQ4yJs"}};import ma from"crypto";import tt from"crypto-js";import{toast as $t}from"react-toastify";import{createSmartAccountClient as fa}from"@biconomy/account";import je from"react";import{toMultichainNexusAccount as ga}from"@biconomy/abstractjs";import{base as pa,baseSepolia as ha,gnosis as va,mainnet as ya,polygon as ba,sepolia as xa}from"viem/chains";import{http as Te}from"viem";var Be=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let d=e.createElement("link");d.rel="preconnect",d.href="https://fonts.googleapis.com",e.head.appendChild(d)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let d=e.createElement("link");d.rel="preconnect",d.href="https://fonts.gstatic.com",e.head.appendChild(d)}return jt.map(d=>{if(!e.querySelector(`link[href="${d}"]`)){let i=e.createElement("link");i.rel="stylesheet",i.href=d,e.head.appendChild(i)}}),!0},qt=async(e,l)=>{var f,d,a,i,A;try{let c;if(l)c=new et(l);else{let N=et.generateMnemonic();c=et.importWallet(N)}let k=la,r=e&&((f=k[e])!=null&&f.Custody)&&((a=(d=ue[e])==null?void 0:d.rpcUrls)==null?void 0:a.length)>0?e:xe,C=(i=ue[r])==null?void 0:i.rpcUrls[0],I=c.setProvider(new ua(C)),U=c.privateKey,S=new ca(I,(A=k[r])==null?void 0:A.Custody),p=await(await fa({signer:I,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${r}/${Se[r].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[r].PAYMASTER_API_KEY})).getAccountAddress(),x=I,_=(await ga({chains:[pa,ya,xa,va,ha,ba],transports:[Te(),Te(),Te(),Te(),Te(),Te()],signer:x})).addressOn(r);return{chainId:r,address:_,smAddress:p,pk:U,signer:I,provider:C,vaultContract:S,vaultData:null}}catch(c){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",c),{chainId:null,address:null,smAddress:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},$e=async(e,l)=>{try{let f=JSON.stringify({action:"start",recipient:e,channel:l}),a=await(await fetch(Re,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Qe},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f),!1}},Jt=async(e,l)=>{try{let f=JSON.stringify({action:"verify",recipient:e,code:l}),a=await(await fetch(Re,{method:"POST",headers:{"Content-Type":"application/json","x-functions-key":Qe},body:f})).json();return a==null?void 0:a.status}catch(f){return console.error(f==null?void 0:f.message),!1}},ie=e=>ma.createHash("sha256").update(e).digest("hex").slice(0,30),Le=(e,l)=>tt.AES.encrypt(e,l).toString(),Ve=(e,l)=>{var f=tt.AES.decrypt(e,l),d=f.toString(tt.enc.Utf8);return d};var wa=(e,l)=>je.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},je.createElement("img",{style:{marginLeft:"5px"},src:F.errorAlert,alt:""}),je.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},je.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),je.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},l)));var me=(e,l)=>($t.dismiss(),$t.error(wa(e,l),{closeButton:!1,position:"top-center",autoClose:3e3,hideProgressBar:!1,pauseOnHover:!1,draggable:!1,closeOnClick:!1,style:{background:"#fef2f2",width:"600px",height:"67px",maxHeight:"67px",position:"absolute",top:"5px",right:"5px",borderRadius:"8px"},icon:!1}));import W,{useState as Je}from"react";import He from"react";var Na=e=>{var l;return He.createElement("div",{className:"verified-custd-mdl-startup-slider"},((l=e.sliderCount)==null?void 0:l.length)>0&&e.sliderCount.map((f,d)=>He.createElement(He.Fragment,{key:d},d<=Number(e.currentSlider)&&He.createElement("div",{key:`active-${d}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line-active"}),d>Number(e.currentSlider)&&He.createElement("div",{key:`inactive-${d}`,style:{width:`${100/e.sliderCount.length}%`},className:"verified-custd-mdl-startup-slider-line"}))))},ge=Na;import T,{useState as Ca}from"react";var Aa=e=>{var d;let[l,f]=Ca(null);return T.createElement("div",{className:"verified-custd-mdl-startup-language-content-container"},T.createElement("div",{className:"verified-custd-mdl-st-language-content"},e.headerText&&T.createElement("p",{className:"verified-custd-mdl-st-language-text"},e.headerText),T.createElement("div",{className:"verified-custd-mdl-mobille-startup-search-box-container"},T.createElement("div",{className:"verified-custd-mdl-mobile-startup-search-box"},T.createElement("img",{style:{paddingLeft:"6px"},src:F.search,alt:"Search Icon",className:"verified-custd-mdl-mobile-search-icon"}),T.createElement("input",{onInputCapture:()=>{e.type==="language"&&e.setSelected("")},onInput:a=>{a.target.value===""?f(null):e.type==="language"?f(e.searchContent.filter(i=>{if(i.name.toLowerCase().includes(a.target.value.toLowerCase()))return i.searched=a.target.value.toLowerCase(),i.nameArray=i.name.split(""),i})):e.type==="area-code"&&f(e.searchContent.filter(i=>{var A,c;if((A=i==null?void 0:i.name)!=null&&A.toLowerCase().includes(a.target.value.toLowerCase()))return i.searched=a.target.value.toLowerCase(),i.nameArray=(c=i==null?void 0:i.name)==null?void 0:c.split(""),i})),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"},!l&&((d=e==null?void 0:e.searchContent)==null?void 0:d.length)>0&&e.searchContent.map((a,i)=>T.createElement(T.Fragment,{key:i},e.type==="area-code"&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected({area:a.phone_code,flag:a.flag,name:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.type==="language"&&T.createElement(T.Fragment,null,window.location.search!==`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),window.location.search===`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))),l&&l.length>0&&l.map((a,i)=>{var A,c,k;return T.createElement(T.Fragment,{key:i},e.type==="area-code"&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected({area:a==null?void 0:a.phone_code,flag:a==null?void 0:a.flag,name:a==null?void 0:a.name})},onClick:()=>{e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a==null?void 0:a.flag,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((A=a==null?void 0:a.nameArray)==null?void 0:A.length)>0&&(a==null?void 0:a.nameArray.map((r,C)=>T.createElement(T.Fragment,{key:C},!a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C,style:{color:"#B6B7C3"}},r),a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C},r)))))),e.type==="language"&&T.createElement(T.Fragment,{key:i},window.location.search!==`?${i}`&&T.createElement("div",{onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((c=a.nameArray)==null?void 0:c.length)>0&&a.nameArray.map((r,C)=>T.createElement(T.Fragment,{key:C},!a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C,style:{color:"#B6B7C3"}},r),a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C},r)))),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},((k=a.nameArray)==null?void 0:k.length)>0&&a.nameArray.map((r,C)=>T.createElement(T.Fragment,{key:C},!a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C,style:{color:"#B6B7C3"}},r),a.searched.includes(r.toLowerCase())&&T.createElement("span",{key:C},r))),!a.searched.includes(a.label.toLowerCase())&&T.createElement("span",{style:{color:"#B6B7C3"}},` (${a.label})`),a.searched.includes(a.label.toLowerCase())&&T.createElement("span",null,` (${a.label})`))),window.location.search===`?${i}`&&T.createElement("div",{key:i,onClickCapture:()=>{e.setSelected(a.name)},onClick:()=>{e.setSelected(a.name),e.setSearchActive&&e.setSearchActive(!e.setSearchActive),e.handleButtonDisplay()},className:"verified-custd-mdl-ms-search-content-active"},T.createElement("div",{className:"verified-custd-mdl-ms-search-content-text-container"},T.createElement("img",{src:a.icon,alt:"Search Result Icon",className:"verified-custd-mdl-ms-search-content-icon"}),a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name," ",`(${a.label})`),!a.label&&T.createElement("p",{className:"verified-custd-mdl-ms-search-content-text"},a.name)),e.selected&&e.selected.length>0&&T.createElement("img",{src:F.circleClicked,alt:"Clicked Icon"}))))}))))))},qe=Aa;import ke from"react";var Zt=()=>ke.createElement("p",{className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"T&C")," and"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"}},"Privacy Policy.")),Xt=e=>ke.createElement("p",{style:{fontSize:"0.7rem"},className:"verified-custd-mdl-terms-and-condition"},"Want to access a different account? Click"," ",ke.createElement("span",{style:{color:"#603FF4",cursor:"pointer"},onClick:async()=>{var l,f;e.setIsLoading(!0),(l=chrome==null?void 0:chrome.storage)!=null&&l.local?await chrome.storage.local.remove("myVault"):!((f=chrome==null?void 0:chrome.storage)!=null&&f.local)&&localStorage&&localStorage.removeItem("myVault"),e.setisOnboard&&e.setisOnboard(!1),e.setIsLoading(!1)}},"Logout")," ","to logout and login/create another account"),Ue=()=>ke.createElement("div",{className:"verified-custd-mdl-privacy"},ke.createElement("img",{alt:"Privacy Icon",src:F.privacyTip,className:"verified-custd-mdl-privacy-icon"}),ke.createElement("p",{className:"verified-custd-mdl-privacy-text"},"Trusted by 10M+ Investors globally"));var Ea=e=>{var S,K;let[l,f]=Je(""),[d,a]=Je(""),[i,A]=Je(!1),[c,k]=Je(""),{pk:r,vaultContract:C}=be(),I=()=>{var x,D;let p=document.getElementById("verified-custd-mdl-contact-button");p&&e.selectedCountry.area&&l.length===10||p&&((x=e.userEmail)==null?void 0:x.length)>0&&isNaN(Number(e.userEmail))&&((D=e.userEmail)!=null&&D.includes("@"))?(k(""),p.className="verified-custd-mdl-startup-button-active"):(k(""),p.className="verified-custd-mdl-startup-button")},U=async()=>{var D,_,N;if(((D=e.userEmail)==null?void 0:D.length)>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){k("Invalid input, please check your email");return}let p=((_=e.userEmail)==null?void 0:_.length)>0?e.userEmail:`+${e.selectedCountry.area}${l}`,x=((N=e.userEmail)==null?void 0:N.length)>0?"email":"sms";p&&x&&r&&C&&(e.setIsLoading(!0),await $e(p,x).then(b=>{var s;e.setIsLoading(!1),b?(k(""),e.setStep("3")):(k(x==="email"?"Error while sending otp to your email. Try again later.":"Error while sending otp to your phone number. Try again later."),me("Oops something went wrong",((s=e.userEmail)==null?void 0:s.length)>0?"Input a valid email and try again.":"Input a valid phone number and try again."))}))};return W.createElement("div",{className:"verified-custd-mdl-startup-language"},W.createElement("div",{className:"verified-custd-mdl-startup-contact"},W.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),W.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},W.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter your phone number"),W.createElement("div",{className:"verified-custd-mdl-st-contact-input"},W.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},W.createElement("div",{onClick:()=>{A(!i)},className:"verified-custd-mdl-st-contact-first-section"},W.createElement("img",{onClick:()=>{A(!i)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:e.selectedCountry.flag}),W.createElement("p",{onClick:()=>{A(!i)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),i&&W.createElement("img",{onClick:()=>{A(!i)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!i&&W.createElement("img",{onClick:()=>{A(!i)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),W.createElement("input",{onInputCapture:p=>{var _;p.target.value===""?a(d+" "):a(p.target.value);let x=(_=p.target.value)==null?void 0:_.replace(/\D/g,"");f(x);let D="";for(let N=0;N<(x==null?void 0:x.length);N++)D+=x[N],(N+1)%5===0&&N+1<(x==null?void 0:x.length)&&(D+=" ");e.setUserNumberFmt(D)},onInput:p=>{I()},value:e.userNumberFmt,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your phone number"})),i&&W.createElement(qe,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:I,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:i,setSearchActive:A,contentMaxHeight:"300",contentbottomMargin:"300"}),l.length!==10&&d.length>10&&W.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),(c==null?void 0:c.length)>0&&((S=e.userEmail)==null?void 0:S.length)===0&&W.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.createElement("p",{className:"verified-custd-mdl-input-error-text"},c)))),!i&&W.createElement(W.Fragment,null,W.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator"},W.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"}),W.createElement("p",{className:"verified-custd-mdl-p-payment-portal-separator-text"},"OR"),W.createElement("div",{className:"verified-custd-mdl-p-p-payment-portal-line"})),W.createElement("div",{className:"verified-custd-mdl-st-contact-input"},W.createElement("input",{onInputCapture:p=>{var x;e.setUserEmail((x=p.target)==null?void 0:x.value),e.setUserNumberFmt(""),f(""),a("")},onInput:p=>{I()},type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address"}),(c==null?void 0:c.length)>0&&((K=e.userEmail)==null?void 0:K.length)>0&&W.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},W.createElement("p",{className:"verified-custd-mdl-input-error-text"},c))))),!i&&W.createElement("div",{style:{height:"80px"}}),W.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},W.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},W.createElement(Zt,null),W.createElement("button",{id:"verified-custd-mdl-contact-button",onClick:async p=>{if(p.target.className.includes("verified-custd-mdl-startup-button")&&p.target.className!=="verified-custd-mdl-startup-button")p.target.className="verified-custd-mdl-startup-button-click",await U();else{let x=document.getElementsByClassName("verified-custd-mdl-startup-button-active");x.length>0&&(x[0].className="verified-custd-mdl-startup-button-click",await U())}},className:"verified-custd-mdl-startup-button"},"Get OTP"),W.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},W.createElement(Ue,null)))))},at=Ea;import H,{useEffect as Sa,useState as nt}from"react";var ka=e=>{var p,x,D,_,N,b;let[l,f]=nt(!1),[d,a]=nt(60),[i,A]=nt(!1),{pk:c,vaultContract:k}=be();Sa(()=>{if(d===0)return;let s=setInterval(()=>{a(m=>m-1)},1e3);return()=>clearInterval(s)},[d]);let r=s=>{if(s.value.length>0){let m=s.nextElementSibling;m&&m.focus()}else s.value.length===0&&s.focus()},C=s=>{let m=s.clipboardData.getData("text"),E=m==null?void 0:m.replace(/\D/g,""),B=document.getElementsByClassName("otp-input");if((B==null?void 0:B.length)===4&&(E==null?void 0:E.length)>0)for(let o=0;o<B.length;o++)E[o]&&(B[o].value=E[o],B[o].focus())},I=s=>{let m=s.target.previousElementSibling;m&&m.focus()},U=()=>{let s=document.getElementById("verified-custd-mdl-otp-button"),m=document.getElementById("verified-custd-mdl-otp-input-1"),E=document.getElementById("verified-custd-mdl-otp-input-2"),B=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");s&&(m==null?void 0:m.value.length)>0&&(E==null?void 0:E.value.length)>0&&(B==null?void 0:B.value.length)>0&&(o==null?void 0:o.value.length)>0&&!i?s.className="verified-custd-mdl-startup-button-active":s.className="verified-custd-mdl-startup-button"},S=async()=>{var O,z,ae,$,X,ee;let s=((O=e.userEmail)==null?void 0:O.length)>0?e.userEmail:`+${e.selectedCountry.area}${(z=e.userNumberFmt)==null?void 0:z.replace(" ","")}`,m=document.getElementById("verified-custd-mdl-otp-input-1"),E=document.getElementById("verified-custd-mdl-otp-input-2"),B=document.getElementById("verified-custd-mdl-otp-input-3"),o=document.getElementById("verified-custd-mdl-otp-input-4");if(((ae=m==null?void 0:m.value)==null?void 0:ae.length)>0&&(($=E==null?void 0:E.value)==null?void 0:$.length)>0&&((X=B==null?void 0:B.value)==null?void 0:X.length)>0&&((ee=o==null?void 0:o.value)==null?void 0:ee.length)>0&&s&&c&&k){e.setIsLoading(!0);let G=(m==null?void 0:m.value)+(E==null?void 0:E.value)+(B==null?void 0:B.value)+(o==null?void 0:o.value);await Jt(s,String(G)).then(Q=>{e.setIsLoading(!1),Q?e.setStep("4"):A(!0)})}},K=async()=>{var E,B,o;let s=((E=e.userEmail)==null?void 0:E.length)>0?e.userEmail:`+${e.selectedCountry.area}${(B=e.userNumberFmt)==null?void 0:B.replace(" ","")}`,m=((o=e.userEmail)==null?void 0:o.length)>0?"email":"sms";s&&m&&(e.setIsLoading(!0),await $e(s,m).then(O=>{if(e.setIsLoading(!1),O){a(60),A(!1);let z=document.getElementById("verified-custd-mdl-otp-input-1"),ae=document.getElementById("verified-custd-mdl-otp-input-2"),$=document.getElementById("verified-custd-mdl-otp-input-3"),X=document.getElementById("verified-custd-mdl-otp-input-4");z.value="",ae.value="",$.value="",X.value=""}else me("Oops something went wrong","Unexpected error")}))};return H.createElement("div",{className:"verified-custd-mdl-startup-language"},H.createElement("div",{className:"verified-custd-mdl-startup-contact"},H.createElement(ge,{sliderCount:[1,2,3],currentSlider:"0"}),H.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},H.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),H.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},H.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Enter ",H.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit OTP")," (One Time Password) sent to your"," ",((p=e.userNumberFmt)==null?void 0:p.length)>0?"phone number":"email address"),H.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},H.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},((x=e.userNumberFmt)==null?void 0:x.length)>0&&H.createElement(H.Fragment,null,H.createElement("span",null,"(+",(D=e.selectedCountry)==null?void 0:D.area,")")," ",H.createElement("span",null," ",(_=e.userNumberFmt)==null?void 0:_.split(" ")[0])," ",H.createElement("span",null," ",(N=e.userNumberFmt)==null?void 0:N.split(" ")[1])),((b=e.userEmail)==null?void 0:b.length)>0&&H.createElement("span",null,e.userEmail)),H.createElement("img",{onClick:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")},src:F.editBlue,alt:"edit-icon",className:"verified-custd-mdl-st-otp-icon"})))),H.createElement("div",{className:"verified-custd-mdl-otp-input-container"},H.createElement("div",{className:"verified-custd-mdl-otp-input-group"},H.createElement("input",{onInputCapture:s=>{var m;s.target.value=(m=s.target.value)==null?void 0:m.replace(/\D/g,""),A(!1)},onInput:s=>{r(s.target),U()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&I(s)},onPaste:s=>{C(s)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),H.createElement("input",{onInputCapture:s=>{var m;s.target.value=(m=s.target.value)==null?void 0:m.replace(/\D/g,""),A(!1)},onInput:s=>{r(s.target),U()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&I(s)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),H.createElement("input",{onInputCapture:s=>{var m;s.target.value=(m=s.target.value)==null?void 0:m.replace(/\D/g,""),A(!1)},onInput:s=>{r(s.target),U()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&I(s)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),H.createElement("input",{onInputCapture:s=>{var m;s.target.value=(m=s.target.value)==null?void 0:m.replace(/\D/g,""),A(!1)},onInput:s=>{r(s.target),U()},onKeyDown:s=>{s.key==="Backspace"&&s.target.value===""&&I(s)},className:i?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),H.createElement("div",{className:"verified-custd-mdl-otp-timer"},!i&&d>5&&H.createElement("p",{className:"verified-custd-mdl-otp-timer-text"},H.createElement("span",{style:{color:"#717286",fontWeight:400}},"00:"),d),!i&&d<=5&&d>0&&H.createElement("p",{className:"verified-custd-mdl-otp-timer-text-red"},H.createElement("span",{style:{fontWeight:400}},"00:"),d),!i&&d===0&&H.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),i&&H.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),!i&&d>0&&H.createElement("p",{className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!i&&d===0&&H.createElement("p",{onClick:async()=>{let s=document.getElementsByClassName("otp-input");if(s)for(let m=0;m<s.length;m++)s[m].value="";await K()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP"),i&&H.createElement("p",{onClick:async()=>{let s=document.getElementsByClassName("otp-input");if(s)for(let m=0;m<s.length;m++)s[m].value="";await K()},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")))),!l&&H.createElement("div",{style:{height:"100px"}}),H.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},H.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},H.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async s=>{if(s.target.className.includes("verified-custd-mdl-startup-button")&&s.target.className!=="verified-custd-mdl-startup-button")s.target.className="verified-custd-mdl-startup-button-click",await S();else{let m=document.getElementsByClassName("verified-custd-mdl-startup-button-active");m.length>0&&(m[0].className="verified-custd-mdl-startup-button-click",await S())}},className:"verified-custd-mdl-startup-button"},"Proceed"),H.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},H.createElement(Ue,null)))))},it=ka;import v,{useState as Ce}from"react";import{AbiCoder as Ia,decodeBytes32String as _a,encodeBytes32String as Ie}from"ethers";import{combine as Pa,split as Da}from"shamir-secret-sharing";import{contractAddress as Ge,Custody as Ye,Provider as Me,VerifiedWallet as Pe}from"@verified-network/verified-sdk";import{createSmartAccountClient as Fa}from"@biconomy/account";import{toMultichainNexusAccount as Ta}from"@biconomy/abstractjs";import{base as Ba,baseSepolia as La,gnosis as Va,mainnet as Ua,polygon as Oa,sepolia as Ma}from"viem/chains";import{http as Oe}from"viem";var Qt=async(e,l,f,d,a,i,A,c,k,r,C,I)=>{try{let U={vaultId:e,hashedVaultId:l,vaultPin:f,hashedVaultPin:d,vaultContract:k};return await k.getCreator(l,d).then(async S=>{var K,p,x,D,_,N;if((S==null?void 0:S.status)===0)try{if(r==="invitation")return{isExisting:!0,...U};if((K=chrome==null?void 0:chrome.storage)!=null&&K.local){let b=Ie(f),s=Le(i,b);await chrome.storage.local.set({myVault:JSON.stringify({vaultId:e,hashedVaultId:l,pk:s,channel:a})})}else if(!((p=chrome==null?void 0:chrome.storage)!=null&&p.local)&&localStorage){let b=Ie(f),s=Le(i,b);localStorage.setItem("myVault",JSON.stringify({vaultId:e,hashedVaultId:l,pk:s,channel:a}))}if((x=chrome==null?void 0:chrome.runtime)!=null&&x.sendMessage)chrome.runtime.sendMessage({type:r&&r==="connect_wallet"?"getPk":r&&r!=="connect_wallet"?r:"getPk",value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?C:{vaultId:e,hashedVaultId:l,hashedVaultPin:d},txData:I}});else if(!((D=chrome==null?void 0:chrome.runtime)!=null&&D.sendMessage)){let b=new CustomEvent(r&&r==="connect_wallet"?"getPk":r&&r!=="connect_wallet"?r:"getPk",{detail:{value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?C:{vaultId:e,hashedVaultId:l,hashedVaultPin:d},txData:I}}});window.dispatchEvent(b)}return{shouldStop:!0}}catch(b){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",b),me("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else{if(((_=S==null?void 0:S.reason)==null?void 0:_.toLowerCase())==="invalid pin")return null;if(((N=S==null?void 0:S.reason)==null?void 0:N.toLowerCase())==="wallet not created")return await k.createVault(l,d).then(async b=>(b==null?void 0:b.status)===0?await k.confirmParticipant(l,d,l,d,!0).then(async s=>{var m,E;if((s==null?void 0:s.status)===0)try{let o=await new Pe(i).getAddress(),O=Ie(f),z=Le(i,O);return(m=chrome==null?void 0:chrome.storage)!=null&&m.local?await chrome.storage.local.set({myVault:JSON.stringify({address:A,regAddress:o,smAddress:c,vaultId:e,hashedVaultId:l,pk:z,channel:a})}):!((E=chrome==null?void 0:chrome.storage)!=null&&E.local)&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:A,regAddress:o,smAddress:c,vaultId:e,hashedVaultId:l,pk:z,channel:a})),U}catch(B){return me("Oops something went wrong","Error savingr new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",B),!1}else return me("Oops something went wrong","Error creating pin for new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",s),!1}):(me("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",b),!1))}})}catch(U){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",U),me("Oops something went wrong","Error while creating pin. Try again later"),!1}},Rt=async(e,l,f,d,a,i,A,c,k,r)=>{var C,I,U,S;try{let K=Ie(f),p=Ve(a,K);if(p){let x=Ge,D=new Pe(p),_=c&&((C=x[c])!=null&&C.Custody)&&((U=(I=ue[c])==null?void 0:I.rpcUrls)==null?void 0:U.length)>0?c:xe,N=(S=ue[_])==null?void 0:S.rpcUrls[0],b=D.setProvider(new Me(N)),s=new Ye(b,x[_].Custody);return s?await s.getCreator(l,d).then(async m=>(m==null?void 0:m.status)===0?k?{address:i,vaultId:e,hashedVaultId:l,channel:A,chainId:r||_,pin:f,pk:p}:{address:i,vaultId:e,hashedVaultId:l,channel:A,chainId:r||_,pin:f}:(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Invalid pin"),null)):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error ggetting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(K){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",K),null}},Ze=async(e,l,f,d,a,i,A,c,k,r,C,I,U)=>{var K,p,x,D;let S;if(C)S=C;else{let _=Ge,N=new Pe(I),b=U&&((K=_[U])!=null&&K.Custody)&&((x=(p=ue[U])==null?void 0:p.rpcUrls)==null?void 0:x.length)>0?U:xe,s=(D=ue[b])==null?void 0:D.rpcUrls[0],m=N.setProvider(new Me(s));S=new Ye(m,_[b].Custody)}return S?await C.confirmParticipant(i,a,d,A,r).then(async _=>(_==null?void 0:_.status)===0?(r?await e(f,c,k):await l(f,c,k),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(_=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",_),!1)):!1},ea=async(e,l,f,d,a,i,A,c,k,r,C,I)=>{let U=Number(f.length),K=(await Da(Uint8Array.from(I.split("").map(D=>D.charCodeAt(0))),Number(U),i)).map(D=>D.join(",")),p=[],x=[];for(let D=0;D<f.length;D++){let _=f[D];await C.addParticipant(c,r,ie(_.vaultId),K[D]).then(async N=>{let b={creatorVaultId:A,vaultPin:k,creatorHashedVaultId:c,creatorHashedVaultPin:r,cosigner:_.vaultId,hashedCosigner:ie(_.vaultId),cosignerVaultIdType:_.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:_.vaultId,share:K[D],..._};(N==null?void 0:N.status)===0?(x.push(b),_.vaultId!==A&&await e(_.otpChannel,_.vaultId,A,r).then(s=>{s||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):p.push(b)})}return(p==null?void 0:p.length)>0||(x==null?void 0:x.length)!==(f==null?void 0:f.length)?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),me("Oops somethin went wrong","error while adding co-signers"),!1):await C.defineQuorum(c,r,i.toString()).then(async D=>{if((D==null?void 0:D.status)===0){let _=d==null?void 0:d.map(N=>{var b;return{name:N==null?void 0:N.name,email:N==null?void 0:N.email,phoneNumber:N==null?void 0:N.phoneNumber,contactType:(b=String(N==null?void 0:N.otpChannel))==null?void 0:b.toUpperCase(),position:`${Gt[Number(N==null?void 0:N.position)]} Co-Signer`}});return await l(a,A,_,Number(i)).then(N=>{N||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while saving vault keys"),me("Oops somethin went wrong","error while saving vault keys"),!1})},ta=async(e,l,f,d,a,i,A,c)=>{var C,I,U,S;let k=Ie(a),r=Ve(i,k);if(r){let K=Ge,p=new Pe(r),x=c&&((C=K[c])!=null&&C.Custody)&&((U=(I=ue[c])==null?void 0:I.rpcUrls)==null?void 0:U.length)>0?c:xe,D=(S=ue[x])==null?void 0:S.rpcUrls[0],_=p.setProvider(new Me(D)),N=new Ye(_,K[x].Custody);if(N)return await N.promptSignatures(l,f).then(async b=>{var s,m,E,B,o,O,z;if((b==null?void 0:b.status)===0&&((m=(s=b==null?void 0:b.response)==null?void 0:s.result)!=null&&m.logs)){let ae=new Ia,$=(o=(B=(E=b==null?void 0:b.response)==null?void 0:E.result)==null?void 0:B.logs)==null?void 0:o.filter(Q=>{var n,P,R,te,u;return((n=Q==null?void 0:Q.address)==null?void 0:n.toLowerCase())===((P=K[x].Custody)==null?void 0:P.toLowerCase())&&((u=(R=Q==null?void 0:Q.topics)==null?void 0:R.map(w=>w==null?void 0:w.toLowerCase()))==null?void 0:u.includes((te=Ht)==null?void 0:te.toLowerCase()))}),X=(O=$[0])==null?void 0:O.data,ee=(z=ae.decode(["bytes32","bytes32","uint256"],X))==null?void 0:z.map((Q,n)=>n<2?_a(Q):Number(Q)).flat(),G=ee[(ee==null?void 0:ee.length)-1];return await e(A,d,f,Number(G),Number($==null?void 0:$.length)),!0}else return!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",b),!1))}},aa=async(e,l,f,d,a,i,A,c,k,r,C,I)=>{var K,p,x,D;let U=Ie(i),S=Ve(A,U);if(S){let _=Ge,N=new Pe(S),b=I&&((K=_[I])!=null&&K.Custody)&&((x=(p=ue[I])==null?void 0:p.rpcUrls)==null?void 0:x.length)>0?I:xe,s=(D=ue[b])==null?void 0:D.rpcUrls[0],m=N.setProvider(new Me(s)),E=new Ye(m,_[b].Custody);if(E)return await E.signTransaction(k,d,f,C,r).then(async B=>(B==null?void 0:B.status)===0?(await e(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,a),await E.checkQuorum(k,r,f,C).then(async o=>{var O,z;return(o==null?void 0:o.status)===0&&((O=o==null?void 0:o.response)!=null&&O.result)?(((z=o==null?void 0:o.response)==null?void 0:z.result[0])===!0&&await l(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(c)?"email":"sms",c,Number(C)),!0):!1})):!1).catch(B=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",B),!1))}},na=async(e,l,f,d,a,i,A,c)=>{var C,I,U,S;let k=Ie(d),r=Ve(a,k);if(r){let K=Ge,p=new Pe(r),x=c&&((C=K[c])!=null&&C.Custody)&&((U=(I=ue[c])==null?void 0:I.rpcUrls)==null?void 0:U.length)>0?c:xe,D=(S=ue[x])==null?void 0:S.rpcUrls[0],_=p.setProvider(new Me(D)),N=new Ye(_,K[x].Custody);return N?await N.checkQuorum(e,l,e,i).then(async b=>{var s,m;if((b==null?void 0:b.status)===0&&((s=b==null?void 0:b.response)!=null&&s.result)){if(((m=b==null?void 0:b.response)==null?void 0:m.result[0])===!0)return await N.signTransaction(e,l,e,i,l).then(async E=>(E==null?void 0:E.status)===0?await N.getShards(e,l,i).then(async B=>{var o,O,z,ae;if((B==null?void 0:B.status)===0&&((o=B==null?void 0:B.response)!=null&&o.result)){let $=(O=B==null?void 0:B.response)==null?void 0:O.result.filter(X=>X!=="");if($.length>1){let X=$.map(Q=>new Uint8Array(Q.split(",").map(Number))),ee=await Pa(X),G=new TextDecoder().decode(ee);if(G){let Q=Ie(d),n=Le(G,Q),P=new Pe(G),R=await P.getAddress(),te=P.setProvider(new Me(D)),w=await(await Fa({signer:te,bundlerUrl:`${Se.BUNDLER_URL_FIRST_SECTION}/${x}/${Se[x].BUNDLER_API_KEY}`,biconomyPaymasterApiKey:Se[x].PAYMASTER_API_KEY})).getAccountAddress(),V=te,j=(await Ta({chains:[Ba,Ua,Ma,Va,La,Oa],transports:[Oe(),Oe(),Oe(),Oe(),Oe(),Oe()],signer:V})).addressOn(x);return(z=chrome==null?void 0:chrome.storage)!=null&&z.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.set({myVault:JSON.stringify({address:j,regAddress:R,smAddress:w,vaultId:f,hashedVaultId:e,pk:n,channel:A})})):!((ae=chrome==null?void 0:chrome.storage)!=null&&ae.local)&&localStorage&&(localStorage.removeItem("myVault"),localStorage.setItem("myVault",JSON.stringify({address:j,regAddress:R,smAddress:w,vaultId:f,hashedVaultId:e,pk:n,channel:A}))),!0}}else return!1}else return!1}).catch(B=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",B),!1)):!1)}else return!1}).catch(b=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",b),!1)):!1}};import _e from"react";var Ka=e=>{var a,i;let l=e.showButton?null:setTimeout(()=>{var A,c,k,r;if(e.messageTosend)try{if((A=chrome==null?void 0:chrome.runtime)!=null&&A.sendMessage)chrome.runtime.sendMessage(e.messageTosend,C=>{C&&e.action!=="signRecovery"&&window.close()});else if(!((c=chrome==null?void 0:chrome.runtime)!=null&&c.sendMessage)){let C=new CustomEvent((k=e.messageTosend)==null?void 0:k.type,{detail:{value:(r=e.messageTosend)==null?void 0:r.value}});window.dispatchEvent(C)}}catch(C){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",C),me("Oops something went wrong","Unexpected error. Try again later")}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime?e.timeoutTime:3e3),f=()=>{e.setStep("6")},d=()=>{chrome.tabs?chrome.tabs.update({url:"https://wallet.verified.network"}):window.location.href="https://wallet.verified.network"};return _e.createElement("div",{style:{alignContent:"center",justifyContent:"center",position:"relative",height:"100%",width:"90%"},className:"verified-custd-mdl-success-popup-content-container"},_e.createElement("div",{className:"verified-custd-mdl-success-popup-content"},_e.createElement("img",{style:{width:"90%"},src:F.successIcon,alt:"Success Icon"}),_e.createElement("div",{className:"verified-custd-mdl-success-popup-content-text"},_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-header"},e!=null&&e.showButton?e.actionHeaderText:e.customTextHeader),_e.createElement("p",{className:"verified-custd-mdl-success-popup-content-text-footer"},e!=null&&e.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&((a=e.buttonText)==null?void 0:a.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{l&&clearTimeout(l),e.action==="invitation"&&f()},className:"verified-custd-mdl-startup-button-active"},e.buttonText),e.showButton&&((i=e.buttonNeutText)==null?void 0:i.length)>0&&_e.createElement("button",{style:{marginTop:"10px",fontSize:"14px"},onClick:()=>{l&&clearTimeout(l),e.action==="invitation"&&d()},className:"verified-custd-mdl-startup-button-click"},e.buttonNeutText))},we=Ka;var za=e=>{var X,ee,G,Q;let[l,f]=Ce(!1),[d,a]=Ce(!1),[i,A]=Ce(""),[c,k]=Ce(!0),[r,C]=Ce(!1),[I,U]=Ce(!1),[S,K]=Ce(!1),[p,x]=Ce(""),[D,_]=Ce(!1),{address:N,pk:b,vaultContract:s,setVaultData:m,vaultData:E,smAddress:B}=be(),o=n=>{if(n.value.length>0){let P=n.nextElementSibling;P&&P.focus()}else n.value.length===0&&n.focus()},O=n=>{let P=n.target.previousElementSibling;P&&P.focus()},z=()=>{let n=document.getElementById("verified-custd-mdl-otp-button"),P=document.getElementById("verified-custd-mdl-otp-input-1"),R=document.getElementById("verified-custd-mdl-otp-input-2"),te=document.getElementById("verified-custd-mdl-otp-input-3"),u=document.getElementById("verified-custd-mdl-otp-input-4"),w=document.getElementById("verified-custd-mdl-otp-input-5"),V=document.getElementById("verified-custd-mdl-otp-input-6"),h=document.getElementById("verified-custd-mdl-otp-input-7"),j=document.getElementById("verified-custd-mdl-otp-input-8");n&&(P==null?void 0:P.value.length)>0&&(R==null?void 0:R.value.length)>0&&(te==null?void 0:te.value.length)>0&&(u==null?void 0:u.value.length)>0&&(w==null?void 0:w.value.length)>0&&(V==null?void 0:V.value.length)>0&&(h==null?void 0:h.value.length)>0&&(j==null?void 0:j.value.length)>0?(P==null?void 0:P.value)+(R==null?void 0:R.value)+(te==null?void 0:te.value)+(u==null?void 0:u.value)===(w==null?void 0:w.value)+(V==null?void 0:V.value)+(h==null?void 0:h.value)+(j==null?void 0:j.value)?n.className="verified-custd-mdl-startup-button-active":(n.className="verified-custd-mdl-startup-button",a(!0)):n.className="verified-custd-mdl-startup-button"},ae=async()=>{var n,P,R,te,u,w,V,h,j,y,L;if(!e.helperFunctions)A("No Helper Functions. Please include all helper functions in the CreatePinPage props."),a(!0);else{A(""),a(!1);let J=document.getElementById("verified-custd-mdl-otp-input-1"),Z=document.getElementById("verified-custd-mdl-otp-input-2"),Y=document.getElementById("verified-custd-mdl-otp-input-3"),M=document.getElementById("verified-custd-mdl-otp-input-4"),q=document.getElementById("verified-custd-mdl-otp-input-5"),ne=document.getElementById("verified-custd-mdl-otp-input-6"),re=document.getElementById("verified-custd-mdl-otp-input-7"),de=document.getElementById("verified-custd-mdl-otp-input-8"),he=((n=e.userEmail)==null?void 0:n.length)>0?e.userEmail:`+${e.selectedCountry.area}${(P=e.userNumberFmt)==null?void 0:P.replace(" ","")}`,ve=((R=e.userEmail)==null?void 0:R.length)>0?"email":"sms";if(((te=J==null?void 0:J.value)==null?void 0:te.length)>0&&((u=Z==null?void 0:Z.value)==null?void 0:u.length)>0&&((w=Y==null?void 0:Y.value)==null?void 0:w.length)>0&&((V=M==null?void 0:M.value)==null?void 0:V.length)>0&&((h=q==null?void 0:q.value)==null?void 0:h.length)>0&&((j=ne==null?void 0:ne.value)==null?void 0:j.length)>0&&((y=re==null?void 0:re.value)==null?void 0:y.length)>0&&((L=de==null?void 0:de.value)==null?void 0:L.length)>0&&N&&he&&ve&&b&&s){e.setIsLoading(!0);let ye=(J==null?void 0:J.value)+(Z==null?void 0:Z.value)+(Y==null?void 0:Y.value)+(M==null?void 0:M.value),De=ie(he),Fe=ie(ye);await Qt(he,De,ye,Fe,ve,b,N,B,s,e.action,e.vaultData,e.txData).then(oe=>{e.setIsLoading(!1),oe?(m(oe!=null&&oe.shouldStop?{}:oe),A(""),a(!1),e.action==="invitation"?(x(ye),C(!0)):oe!=null&&oe.shouldStop?oe!=null&&oe.shouldStop&&K(!0):e.setStep("5")):oe===null?(A("You are an existing user. Please input the right pin to recover your account."),a(!0)):(A("Unexpected error while creating account. Please try again later."),a(!0))})}}},$=async n=>{var te,u,w,V,h,j,y,L;let P=((te=e.userEmail)==null?void 0:te.length)>0?e.userEmail:`+${e.selectedCountry.area}${(u=e.userNumberFmt)==null?void 0:u.replace(" ","")}`,R=((w=e.userEmail)==null?void 0:w.length)>0?"email":"sms";if((p==null?void 0:p.length)===4&&((V=e==null?void 0:e.vaultData)!=null&&V.hashedVaultId)&&((h=e.vaultData)!=null&&h.hashedVaultPin)&&P){e.setIsLoading(!0);let J=ie(P),Z=ie(p);await Ze(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,R,J,Z,(j=e==null?void 0:e.vaultData)==null?void 0:j.hashedVaultId,(y=e.vaultData)==null?void 0:y.hashedVaultPin,(L=e.vaultData)==null?void 0:L.vaultId,P,n,s).then(Y=>{var M,q;e.setIsLoading(!1),Y&&!(E!=null&&E.isExisting)?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(n?`You have been added as a Co-Signer for ${(M=e.vaultData)==null?void 0:M.vaultId}`:`You rejected Co-signer reject from ${(q=e.vaultData)==null?void 0:q.vaultId}`),e.setStep("5")):Y&&(E!=null&&E.isExisting)&&U(!0)})}};return v.createElement(v.Fragment,null,!S&&!r&&v.createElement("div",{className:"verified-custd-mdl-startup-language"},v.createElement("div",{className:"verified-custd-mdl-startup-contact"},v.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),v.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},v.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Create PIN"),v.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},v.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets. This PIN will be required for all transactions and logins."))),v.createElement("div",{className:"verified-custd-mdl-otp-input-container"},v.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),v.createElement("div",{className:"verified-custd-mdl-otp-input-group"},v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"}))),v.createElement("div",{className:"verified-custd-mdl-otp-input-container"},v.createElement("p",{className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),v.createElement("div",{className:"verified-custd-mdl-otp-input-group"},v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-5"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-6"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-7"}),v.createElement("input",{onInputCapture:n=>{var P;n.target.value=(P=n.target.value)==null?void 0:P.replace(/\D/g,""),a(!1)},onInput:n=>{o(n.target),z()},onKeyDown:n=>{n.key==="Backspace"&&n.target.value===""&&O(n)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:c?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-8"})),v.createElement("div",{className:"verified-custd-mdl-otp-timer"},!d&&v.createElement("p",null),d&&i===""&&v.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),d&&(i==null?void 0:i.length)>0&&v.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},i),!c&&v.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>k(!0),src:F.pinShow,alt:"show pin icon"}),c&&v.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>k(!1),src:F.pinHide,alt:"hide pin icon"})))),!l&&v.createElement("div",{style:{height:"30px"}}),v.createElement("div",{className:"verified-custd-mdl-startup-contact-footer"},v.createElement("div",{className:"verified-custd-mdl-st-contact-footer-first-section"},v.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async n=>{if(n.target.className.includes("verified-custd-mdl-startup-button")&&n.target.className!=="verified-custd-mdl-startup-button")n.target.className="verified-custd-mdl-startup-button-click",await ae();else{let P=document.getElementsByClassName("verified-custd-mdl-startup-button-active");P.length>0&&(P[0].className="verified-custd-mdl-startup-button-click",await ae())}},className:"verified-custd-mdl-startup-button"},"Confirm")))),!S&&r&&v.createElement(v.Fragment,null,!I&&v.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},v.createElement("div",{className:"verified-custd-mdl-startup-contact"},v.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),v.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},v.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},v.createElement("b",null,(X=e.vaultData)==null?void 0:X.vaultId)," has requested you to be a Co-Signer"))),v.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!D&&v.createElement(v.Fragment,null,v.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},v.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),v.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),v.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},v.createElement("img",{src:F.pkicon,alt:"icon"})),v.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",v.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),v.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},v.createElement("img",{src:F.encryptedIcon,alt:"icon"})),v.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",v.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),v.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},v.createElement("button",{onClick:()=>{_(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),v.createElement("button",{onClick:async()=>{await $(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),D&&v.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},v.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},v.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),v.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",v.createElement("b",null,(ee=e.vaultData)==null?void 0:ee.vaultId),", you will not be able to reset the PIN for them.")),v.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},v.createElement("button",{onClick:async()=>{await $(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),v.createElement("button",{onClick:()=>{_(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),I&&v.createElement(we,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:D?`You rejected Co-signer reject from ${(Q=e.vaultData)==null?void 0:Q.vaultId}`:`You have been added as a Co-Signer for ${(G=e.vaultData)==null?void 0:G.vaultId}`})),S&&v.createElement(we,{messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"You have successfully logged in your account."}))},ot=za;import t,{useState as se}from"react";var ja=e=>{var w,V,h,j;let[l,f]=se(!1),[d,a]=se("1"),[i,A]=se("1"),[c,k]=se(!1),[r,C]=se("sms"),[I,U]=se(""),[S,K]=se(""),[p,x]=se(""),[D,_]=se(""),[N,b]=se(""),[s,m]=se(!1),[E,B]=se(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[o,O]=se([]),[z,ae]=se(!1),[$,X]=se(2),[ee,G]=se(""),{pk:Q,vaultData:n,vaultContract:P}=be(),R=()=>{let y=document.getElementById("add-cosigner-button");y&&(o==null?void 0:o.length)>0?y.className="startup-button-active":y.className="startup-button"},te=()=>{var L,J,Z,Y;if(r==="sms"&&(I==null?void 0:I.length)===0){G("Invalid input, please check the phone number");return}else if(r==="sms"&&(I==null?void 0:I.length)!==10){G("Invalid input, please check the phone number");return}else if(r==="email"&&(p==null?void 0:p.length)===0){G("Invalid input, please check the email");return}else if(r==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(p)){G("Invalid input, please check the email");return}else if(o!=null&&o.find(M=>{var q,ne,re,de;return(M==null?void 0:M.otpChannel)==="sms"?((q=M==null?void 0:M.phoneArea)==null?void 0:q.toLowerCase())+((ne=M==null?void 0:M.number)==null?void 0:ne.toLowerCase())===((re=E.area)==null?void 0:re.toLowerCase())+(S==null?void 0:S.toLowerCase()):((de=M==null?void 0:M.email)==null?void 0:de.toLowerCase())===(p==null?void 0:p.toLowerCase())})){G(r==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer");return}else if(r==="sms"&&((L=E==null?void 0:E.area)==null?void 0:L.toLowerCase())+(S==null?void 0:S.toLowerCase())===((J=e.selectedCountry.area)==null?void 0:J.toLowerCase())+((Z=e.userNumberFmt)==null?void 0:Z.toLowerCase())){G("Invalid input, phone number is creator's phone number");return}else if(r==="email"&&(p==null?void 0:p.toLowerCase())===((Y=e.userEmail)==null?void 0:Y.toLowerCase())){G("Invalid input, email is creator's email");return}G("");let y=o==null?void 0:o.length;O(M=>[{name:D,email:p,number:S,phoneNumber:`+${E==null?void 0:E.area}${I}`,otpChannel:r,phoneArea:E==null?void 0:E.area,position:(M==null?void 0:M.length)+1,vaultId:r==="sms"?`+${E==null?void 0:E.area}${I}`:p},...M]),x(""),_(""),U(""),K(""),b(""),y+1===4&&k(!1)},u=async()=>{var L,J,Z,Y,M,q;let y=[{otpChannel:((L=e==null?void 0:e.userEmail)==null?void 0:L.length)>0?"email":"sms",email:e==null?void 0:e.userEmail,phoneNumber:`+${(J=e==null?void 0:e.selectedCountry)==null?void 0:J.area}${(Z=e==null?void 0:e.userNumberFmt)==null?void 0:Z.replace(" ","")}`,vaultId:n==null?void 0:n.vaultId},...o];(y==null?void 0:y.length)>0&&(o==null?void 0:o.length)>0&&$&&(n!=null&&n.vaultId)&&(n!=null&&n.hashedVaultId)&&(n!=null&&n.vaultPin)&&(n!=null&&n.hashedVaultPin)&&P&&Q&&((Y=e.helperFunctions)!=null&&Y.sendCoSignerInvitation)&&((M=e.helperFunctions)!=null&&M.sendCreatorConfirmation)&&(e.setIsLoading(!0),await ea(e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,y,o,((q=e==null?void 0:e.userEmail)==null?void 0:q.length)>0?"email":"sms",$,n.vaultId,n.hashedVaultId,n.vaultPin,n.hashedVaultPin,P,Q).then(ne=>{e.setIsLoading(!1),ne&&e.setStep("7")}))};return t.createElement("div",{style:{padding:"0"},className:"verified-custd-mdl-startup-language"},!l&&t.createElement(t.Fragment,null,i==="1"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"We require you to add at least another Co-Signer."))),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.pkicon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.encryptedIcon,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},t.createElement("img",{src:F.supervise,alt:"icon"})),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",t.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"be your own Co-Signer")," ","by adding a different contact number or Email ID. to your account in any way."))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>{a("1"),f(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Learn More"),t.createElement("button",{onClick:()=>{A("2"),k(!1),f(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Add Co-Signer"))),i==="2"&&t.createElement(t.Fragment,null," ",t.createElement("div",{className:"verified-custd-mdl-startup-contact"},t.createElement(ge,{sliderCount:[1,2,3],currentSlider:"2"}),t.createElement("div",{style:{gap:"16px"},className:"verified-custd-mdl-startup-contact-content"},t.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},"Add your Co-Signers"),t.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},!z&&t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-text"},"Add a phone number/an Email ID of Co-Signer to send them a request."),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-header-info-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-header-info-text"},t.createElement("span",{className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ","You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},"Add Co-Signers"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",(o==null?void 0:o.length)+1<5?(o==null?void 0:o.length)+1:5,"/5)")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),((w=e.userEmail)==null?void 0:w.length)>0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),((V=e.userEmail)==null?void 0:V.length)===0&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!z&&o.sort((y,L)=>(y==null?void 0:y.position)-(L==null?void 0:L.position)).map((y,L)=>{var J,Z;return t.createElement("div",{key:L,className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},(J=ze[y==null?void 0:y.position])==null?void 0:J.split(" ")[0],t.createElement("sup",null,(Z=ze[y==null?void 0:y.position])==null?void 0:Z.split(" ")[1])," ","Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},y==null?void 0:y.name),y.otpChannel==="email"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},y.email),y.otpChannel==="sms"&&t.createElement("p",{className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",y==null?void 0:y.phoneArea,") ",y.number))),t.createElement("div",{className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},t.createElement("img",{style:{cursor:"pointer"},src:F.editBlack,alt:"edit"}),t.createElement("img",{onClickCapture:()=>{O(Y=>{var M;return(M=Y==null?void 0:Y.filter(q=>{var ne,re,de,he,ve,ye;return(q==null?void 0:q.otpChannel)==="sms"?((ne=q==null?void 0:q.phoneArea)==null?void 0:ne.toLowerCase())+((re=q==null?void 0:q.number)==null?void 0:re.toLowerCase())!==((de=y==null?void 0:y.phoneArea)==null?void 0:de.toLowerCase())+((he=y==null?void 0:y.number)==null?void 0:he.toLowerCase()):((ve=q==null?void 0:q.email)==null?void 0:ve.toLowerCase())!==((ye=y==null?void 0:y.email)==null?void 0:ye.toLowerCase())}))==null?void 0:M.map((q,ne)=>(q.position=ne+1,q))})},onClick:()=>{R()},style:{cursor:"pointer"},src:F.delete,alt:"delete"}))))})),z&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"By default we need 2, you can add up to 5 Co-Signers as minimum sign off needed for approval.")),t.createElement("div",{style:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array((o==null?void 0:o.length)+1).fill("1").map((y,L)=>t.createElement("div",{style:L+1===$?{}:{height:"0",width:"0",overflow:"hidden"},key:L,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(L+1))," "),t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",src:F.pointer,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},t.createElement("div",{style:(o==null?void 0:o.length)===1?{width:`${100/(o==null?void 0:o.length)}%`}:{width:`calc(${100/(o==null?void 0:o.length)}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},t.createElement("img",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",src:F.sliderDot,alt:""})))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array((o==null?void 0:o.length)+1).fill("1").map((y,L)=>t.createElement("p",{style:L===(o==null?void 0:o.length)?{paddingRight:"12px"}:L===0?{paddingLeft:"12px"}:{},onClick:()=>{L+1>1&&X(L+1)},key:L,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(L+1)))))),t.createElement("button",{id:"confirm-cosigner-button",style:{marginBottom:"10px",width:"100%"},onClick:async y=>{if(y.target.className.includes("startup-button")&&y.target.className!=="startup-button")y.target.className="startup-button-click",await u();else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click"),await u()}},className:"verified-custd-mdl-startup-button-active"},"Confirm")))),c&&(o==null?void 0:o.length)<4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},(h=ze[(o==null?void 0:o.length)+1])==null?void 0:h.split(" ")[0],t.createElement("sup",null,(j=ze[(o==null?void 0:o.length)+1])==null?void 0:j.split(" ")[1])," ","Co-Signer"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},t.createElement("input",{onInput:y=>{_(y.target.value)},value:D,placeholder:"Enter Co-signer name",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",type:"text"})),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{C("sms"),G(""),x("")},src:r==="sms"?F.selectClicked:F.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont"},t.createElement("img",{onClick:()=>{C("email"),G(""),U(""),K(""),b("")},src:r==="email"?F.selectClicked:F.select,alt:""}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},r==="sms"&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("div",{className:"verified-custd-mdl-st-contact-content-container"},t.createElement("div",{onClick:()=>{m(!s)},className:"verified-custd-mdl-st-contact-first-section"},t.createElement("img",{onClick:()=>{m(!s)},alt:"Country Flag",className:"verified-custd-mdl-st-contact-selection-icon",src:E.flag}),t.createElement("p",{onClick:()=>{m(!s)},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",E.area),s&&t.createElement("img",{onClick:()=>{m(!s)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowUp}),!s&&t.createElement("img",{onClick:()=>{m(!s)},alt:"Dropdown Icon",className:"verified-custd-mdl-st-contact-dropdown",src:F.arrowDown})),t.createElement("input",{onInputCapture:y=>{var Z;y.target.value===""?b(N+" "):b(y.target.value);let L=(Z=y.target.value)==null?void 0:Z.replace(/\D/g,"");U(L);let J="";for(let Y=0;Y<(L==null?void 0:L.length);Y++)J+=L[Y],(Y+1)%5===0&&Y+1<(L==null?void 0:L.length)&&(J+=" ");K(J),G("")},onInput:y=>{R()},value:S,id:"phone-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter phone number"})),s&&t.createElement(qe,{pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:R,setSelected:B,selected:E,searchActive:s,setSearchActive:m,contentMaxHeight:"300",contentbottomMargin:"300"}),ee===""&&I.length!==10&&N.length>10&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ee!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ee))),r==="email"&&t.createElement(t.Fragment,null,t.createElement("div",{className:"verified-custd-mdl-st-contact-input"},t.createElement("input",{style:{width:"100%"},onInputCapture:y=>{x(y.target.value),G("")},onInput:y=>{R()},value:p,id:"email-input",type:"text",className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter email"}),ee!==""&&t.createElement("div",{className:"verified-custd-mdl-st-contact-input-error"},t.createElement("p",{className:"verified-custd-mdl-input-error-text"},ee))))),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},t.createElement("button",{onClick:()=>k(!1),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut"},"Cancel"),t.createElement("button",{onClickCapture:()=>{te()},onClick:()=>R(),className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action"},"Add"))),!c&&!z&&(o==null?void 0:o.length)<4&&t.createElement("div",{onClick:()=>k(!0),className:"verified-custd-mdl-add-cosigner-step2-body-content-footer"},t.createElement("img",{style:{width:"20px"},src:F.addIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"},"Add another Co-Signer")),!c&&!z&&(o==null?void 0:o.length)===4&&t.createElement("div",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},t.createElement("img",{style:{width:"20px"},src:F.addDisableIcon,alt:"add icon"}),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer")))),!z&&t.createElement("button",{style:!c&&(o==null?void 0:o.length)<4?{marginTop:"50px",marginBottom:"20px"}:{marginBottom:"20px"},id:"add-cosigner-button",onClick:async y=>{if(y.target.className.includes("startup-button")&&y.target.className!=="startup-button")y.target.className="startup-button-click",(o==null?void 0:o.length)>0&&(X(2),ae(!0),k(!1));else{let L=document.getElementsByClassName("startup-button-active");L.length>0&&(L[0].className="startup-button-click",(o==null?void 0:o.length)>0&&(X(2),ae(!0),k(!1)))}},className:"verified-custd-mdl-startup-button"},"Proceed"))),l&&t.createElement(t.Fragment,null,d==="1"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon2,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," ")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>f(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),d==="2"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon3,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"In blockchain application, it is impossible to reset a key if the PIN is forgotten you can login with the help of Co-Signer")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>a("3"),className:"verified-custd-mdl-add-cosigner-button-action"},"Next"))),d==="3"&&t.createElement(t.Fragment,null,t.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon4,alt:""}),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},t.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),t.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),t.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},t.createElement("button",{onClick:()=>a("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},"Back"),t.createElement("button",{onClick:()=>{A("2"),k(!1),f(!1),a("1")},className:"verified-custd-mdl-add-cosigner-button-action"},"Start")))))},st=ja;var Ga=e=>{let[l,f]=fe(e.fontsLoaded||!1),[d,a]=fe(e.showLogoPage||!1),[i,A]=fe([]),[c,k]=fe("2"),[r,C]=fe(e.defaultCountry||{area:"1",flag:F.usaFlag,name:"United States"}),[I,U]=fe(""),[S,K]=fe(""),[p,x]=fe(!1),[D,_]=fe(""),[N,b]=fe(""),[s,m]=fe(""),[E,B]=fe(""),[o,O]=fe(null),[z,ae]=fe(null),{setChainId:$,setAddress:X,setSmAddress:ee,setPk:G,setProvider:Q,setSigner:n,setVaultContract:P,setVaultData:R,vaultData:te,chainId:u}=be();return Xe(()=>{let w=()=>{let V=Be(document);f(V)};e.fontsLoaded||w()},[]),Xe(()=>{(async()=>{let V=await qt(e.chainId);$(V.chainId),X(V.address),ee(V.smAddress),G(V.pk),Q(V.provider),n(V.signer),P(V.vaultContract),R(V.vaultData)})()},[]),Xe(()=>{Ha(()=>{a(!1)},e.logoTimeoutTime?e.logoTimeoutTime:3e3)()},[]),Xe(()=>{(()=>{let V=Wt.map(h=>{if(h)return{name:h==null?void 0:h.name,countryName:h==null?void 0:h.name,officialName:h==null?void 0:h.name,currencySymbol:h==null?void 0:h.currency,currencyName:h==null?void 0:h.currency,officialCurrencySymbol:h==null?void 0:h.currency,countryCode:h==null?void 0:h.code,flag:h==null?void 0:h.flag,continent:h==null?void 0:h.continent,phone_code:h==null?void 0:h.phone_code,code:h==null?void 0:h.code}}).flat();A(V==null?void 0:V.filter(h=>h!==void 0))})()},[]),le.createElement(le.Fragment,null,l&&d&&e.logoPageElement&&le.createElement(le.Fragment,null," ",e.logoPageElement),l&&!d&&le.createElement(le.Fragment,null,c==="2"&&le.createElement(at,{setStep:k,setIsLoading:e.setIsLoading,setUserNumberFmt:U,userNumberFmt:I,setUserEmail:K,userEmail:S,setSelectedCountry:C,selectedCountry:r,allCountries:i}),c==="3"&&le.createElement(it,{setStep:k,setIsLoading:e.setIsLoading,userNumberFmt:I,setUserNumberFmt:U,setUserEmail:K,userEmail:S,selectedCountry:r}),c==="4"&&le.createElement(ot,{setStep:k,setIsLoading:e.setIsLoading,setShowSuccessBtn:x,setSuccessBtnText:_,setSuccessBtnNeutText:b,setSuccessBtnFunc:O,setSuccessBtnNeutFunc:ae,userNumberFmt:I,userEmail:S,selectedCountry:r,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:m,setActionFooterText:B,helperFunctions:e.helperFunctions}),c==="5"&&le.createElement(we,{setStep:k,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a PIN to protect your account.",action:e.action,showButton:p,buttonText:D,buttonNeutText:N,buttonFunc:o,buttonNeutFunc:z,actionHeaderText:s,actionFooterText:E}),c==="6"&&le.createElement(st,{setStep:k,setIsLoading:e.setIsLoading,userNumberFmt:I,userEmail:S,selectedCountry:r,allCountries:i,helperFunctions:e.helperFunctions}),c==="7"&&e.action===""&&le.createElement(we,{action:e.action,setStep:k,stepToSet:"8",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="7"&&e.action!==""&&le.createElement(we,{action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData}}}:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account."}),c==="8"&&e.dashbordElement&&le.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading})),!l&&le.createElement("h3",null,"Preparing Modules..."))},rt=Ga;import g,{useEffect as Ya,useState as pe}from"react";var Wa=e=>{var Q,n,P,R,te;let[l,f]=pe(e.fontsLoaded||!1),[d,a]=pe(!1),[i,A]=pe(!0),[c,k]=pe(!1),[r,C]=pe(!1),[I,U]=pe(null),[S,K]=pe(e.newChainId||xe),[p,x]=pe(!1),[D,_]=pe(!1),[N,b]=pe(!1),[s,m]=pe(!1),[E,B]=pe(!1),[o,O]=pe("");Ya(()=>{let u=()=>{let w=Be(document);f(w)};e.fontsLoaded||u()},[]);let z=u=>{if(u.value.length>0){let w=u.nextElementSibling;w&&w.focus()}else u.value.length===0&&u.focus()},ae=u=>{let w=u.clipboardData.getData("text"),V=w==null?void 0:w.replace(/\D/g,""),h=document.getElementsByClassName("otp-input");if((h==null?void 0:h.length)===4&&(V==null?void 0:V.length)>0)for(let j=0;j<h.length;j++)V[j]&&(h[j].value=V[j],h[j].focus())},$=u=>{let w=u.target.previousElementSibling;w&&w.focus()},X=()=>{let u=document.getElementById("verified-custd-mdl-otp-button"),w=document.getElementById("verified-custd-mdl-otp-input-1"),V=document.getElementById("verified-custd-mdl-otp-input-2"),h=document.getElementById("verified-custd-mdl-otp-input-3"),j=document.getElementById("verified-custd-mdl-otp-input-4");u&&(w==null?void 0:w.value.length)>0&&(V==null?void 0:V.value.length)>0&&(h==null?void 0:h.value.length)>0&&(j==null?void 0:j.value.length)>0&&!d?u.className="verified-custd-mdl-startup-button-active":u.className="verified-custd-mdl-startup-button"},ee=async()=>{var u,w,V,h,j,y;if(!e.helperFunctions)O("No Helper Functions. Please include all helper functions in the EnterPinPage props."),a(!0);else{O(""),a(!1);let L=document.getElementById("verified-custd-mdl-otp-input-1"),J=document.getElementById("verified-custd-mdl-otp-input-2"),Z=document.getElementById("verified-custd-mdl-otp-input-3"),Y=document.getElementById("verified-custd-mdl-otp-input-4");if(((u=L==null?void 0:L.value)==null?void 0:u.length)>0&&((w=J==null?void 0:J.value)==null?void 0:w.length)>0&&((V=Z==null?void 0:Z.value)==null?void 0:V.length)>0&&((h=Y==null?void 0:Y.value)==null?void 0:h.length)>0&&e.hashedVaultId&&e.encrptedPk){e.setIsLoading(!0);let M=(L==null?void 0:L.value)+(J==null?void 0:J.value)+(Z==null?void 0:Z.value)+(Y==null?void 0:Y.value);await Rt(e.vaultId,e.hashedVaultId,M,ie(M),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number(S),(y=zt)==null?void 0:y.includes((j=e.origin)==null?void 0:j.toLowerCase())).then(async q=>{var ne,re,de,he,ve,ye,De,Fe,oe,lt,ct,ut,mt,ft,gt,pt,ht,vt,yt,bt,xt,wt,Nt,Ct,At,Et,St,kt,It,_t,Pt,Dt,Ft,Tt,Bt,Lt,Vt;e.setIsLoading(!1),q?(U(q),e.action==="getPk"&&((re=(ne=e.reqVaultData)==null?void 0:ne.vaultId)==null?void 0:re.toLowerCase())===((de=e.vaultId)==null?void 0:de.toLowerCase())?(e.setIsLoading(!0),await ta(e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,e.vaultChannel,Number(S)).then(async Ke=>{var Ae,Ee;e.setIsLoading(!1),(Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local?await chrome.storage.local.remove("myVault"):!((Ee=chrome==null?void 0:chrome.storage)!=null&&Ee.local)&&localStorage&&localStorage.removeItem("myVault"),Ke?C(!0):(O("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),a(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await aa(e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(he=e.reqVaultData)==null?void 0:he.vaultId,(ve=e.reqVaultData)==null?void 0:ve.hashedVaultId,(ye=e.reqVaultData)==null?void 0:ye.hashedVaultPin,(De=e.reqTxData)==null?void 0:De.id,Number(S)).then(async Ke=>{var Ae,Ee,Ut,Ot;e.setIsLoading(!1),!((Ae=e.reqTxData)!=null&&Ae.newUser)&&((Ee=chrome==null?void 0:chrome.storage)!=null&&Ee.local)&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!((Ut=e.reqTxData)!=null&&Ut.newUser)&&!((Ot=chrome==null?void 0:chrome.storage)!=null&&Ot.local)&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),Ke?C(!0):(O("Error while signing transaction; it's either you are not a valid co-signer or you had signed this particular transaction before. Verify and try again later."),a(!0))})):e.action==="completeRecovery"&&((oe=(Fe=e.reqVaultData)==null?void 0:Fe.vaultId)==null?void 0:oe.toLowerCase())===((lt=e.vaultId)==null?void 0:lt.toLowerCase())?(e.setIsLoading(!0),await na(e.hashedVaultId,ie(M),e.vaultId,M,e.encrptedPk,(ct=e.reqTxData)==null?void 0:ct.id,e.vaultChannel,Number(S)).then(async Ke=>{var Ae,Ee;e.setIsLoading(!1),Ke?C(!0):((Ae=chrome==null?void 0:chrome.storage)!=null&&Ae.local?await chrome.storage.local.remove("myVault"):!((Ee=chrome==null?void 0:chrome.storage)!=null&&Ee.local)&&localStorage&&localStorage.removeItem("myVault"),O("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),a(!0))})):e.action==="invitation"&&((mt=(ut=e.reqVaultData)==null?void 0:ut.vaultId)==null?void 0:mt.toLowerCase())!==((ft=e.vaultId)==null?void 0:ft.toLowerCase())&&((pt=(gt=e.reqVaultData)==null?void 0:gt.coSignerId)==null?void 0:pt.toLowerCase())===((ht=e.vaultId)==null?void 0:ht.toLowerCase())?(O(""),a(!1),_(!0)):e.action==="invitation"&&((yt=(vt=e.reqVaultData)==null?void 0:vt.vaultId)==null?void 0:yt.toLowerCase())===((bt=e.vaultId)==null?void 0:bt.toLowerCase())?(O(`You cannot accept your own Co-Signer invitation. please logout and login to: ${(xt=e.reqVaultData)==null?void 0:xt.coSignerId} account`),a(!0)):e.action==="invitation"&&((Nt=(wt=e.reqVaultData)==null?void 0:wt.coSignerId)==null?void 0:Nt.toLowerCase())!==((Ct=e.vaultId)==null?void 0:Ct.toLowerCase())?(O(`You cannot accept this Co-Signer invitation. please logout and login to: ${(At=e.reqVaultData)==null?void 0:At.coSignerId} account`),a(!0)):e.action==="getPk"&&((St=(Et=e.reqVaultData)==null?void 0:Et.vaultId)==null?void 0:St.toLowerCase())!==((kt=e.vaultId)==null?void 0:kt.toLowerCase())?((It=chrome==null?void 0:chrome.storage)!=null&&It.local?await chrome.storage.local.remove("myVault"):!((_t=chrome==null?void 0:chrome.storage)!=null&&_t.local)&&localStorage&&localStorage.removeItem("myVault"),O(`You are not authorized to fetch account details. please logout and login to: ${(Pt=e.reqVaultData)==null?void 0:Pt.vaultId} account`),a(!0)):e.action==="completeRecovery"&&((Ft=(Dt=e.reqVaultData)==null?void 0:Dt.vaultId)==null?void 0:Ft.toLowerCase())!==((Tt=e.vaultId)==null?void 0:Tt.toLowerCase())?((Bt=chrome==null?void 0:chrome.storage)!=null&&Bt.local?await chrome.storage.local.remove("myVault"):!((Lt=chrome==null?void 0:chrome.storage)!=null&&Lt.local)&&localStorage&&localStorage.removeItem("myVault"),O(`You are not authorized to restore login access for this account. please logout and login to: ${(Vt=e.reqVaultData)==null?void 0:Vt.vaultId} account`),a(!0)):e.action==="connect_wallet"&&!(e!=null&&e.vaultAddress)?(O("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),a(!0)):e.action===""?e.setShowDashboard(!0):(O(""),a(!1),C(!0))):(O(""),a(!0))})}}},G=async u=>{var L,J,Z,Y,M,q,ne,re,de,he,ve;let w=document.getElementById("verified-custd-mdl-otp-input-1"),V=document.getElementById("verified-custd-mdl-otp-input-2"),h=document.getElementById("verified-custd-mdl-otp-input-3"),j=document.getElementById("verified-custd-mdl-otp-input-4"),y=e.vaultId;if(((L=w==null?void 0:w.value)==null?void 0:L.length)>0&&((J=V==null?void 0:V.value)==null?void 0:J.length)>0&&((Z=h==null?void 0:h.value)==null?void 0:Z.length)>0&&((Y=j==null?void 0:j.value)==null?void 0:Y.length)>0&&((M=e==null?void 0:e.reqVaultData)!=null&&M.hashedVaultId)&&((q=e.reqVaultData)!=null&&q.hashedVaultPin)&&y&&((ne=e.helperFunctions)!=null&&ne.sendCreatorAcceptance)&&((re=e.helperFunctions)!=null&&re.sendCreatorRejection)){e.setIsLoading(!0);let ye=(w==null?void 0:w.value)+(V==null?void 0:V.value)+(h==null?void 0:h.value)+(j==null?void 0:j.value),De=ie(y),Fe=ie(ye);await Ze(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,De,Fe,(de=e==null?void 0:e.reqVaultData)==null?void 0:de.hashedVaultId,(he=e.reqVaultData)==null?void 0:he.hashedVaultPin,(ve=e==null?void 0:e.reqVaultData)==null?void 0:ve.vaultId,y,u,null,e.encrptedPk,Number(S)).then(oe=>{e.setIsLoading(!1),oe&&(B(u),b(!0))})}};return g.createElement(g.Fragment,null,l&&!D&&g.createElement(g.Fragment,null,!r&&g.createElement("div",{className:"verified-custd-mdl-startup-language"},g.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.createElement(ge,{sliderCount:[1],currentSlider:"0"}),g.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.createElement("div",{className:"verified-custd-mdl-startup-contact-content-heder-cont"},g.createElement("p",{style:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},"Enter PIN")),g.createElement("div",{className:"verified-custd-mdl-startup-otp-text"},g.createElement("p",{className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please enter the"," ",g.createElement("span",{style:{color:"#0C0C0E"}},"4-Digit PIN")," for your"," ",g.createElement("span",{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),g.createElement("div",{className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&g.createElement("p",{className:"verified-custd-mdl-startup-otp-footer-text"},e.actionText?`To ${e.actionText} `:""," ","from origin: ",e.origin||e.title)))),g.createElement("div",{className:"verified-custd-mdl-otp-input-container"},g.createElement("div",{className:"verified-custd-mdl-otp-input-group"},g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{z(u.target),X()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&$(u)},onPaste:u=>{ae(u)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-1"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{z(u.target),X()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&$(u)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-2"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{z(u.target),X()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&$(u)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-3"}),g.createElement("input",{onInputCapture:u=>{var w;u.target.value=(w=u.target.value)==null?void 0:w.replace(/\D/g,""),a(!1)},onInput:u=>{z(u.target),X()},onKeyDown:u=>{u.key==="Backspace"&&u.target.value===""&&$(u)},className:d?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",type:i?"password":"text",maxLength:1,id:"verified-custd-mdl-otp-input-4"})),g.createElement("div",{className:"verified-custd-mdl-otp-timer"},d&&o===""&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),d&&(o==null?void 0:o.length)>0&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"},o),!d&&g.createElement("p",{className:"verified-custd-mdl-otp-incorrect-text"}),!i&&g.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>A(!0),src:F.pinShow,alt:"show pin icon"}),i&&g.createElement("img",{style:{cursor:"pointer",width:"24px",height:"24px"},onClick:()=>A(!1),src:F.pinHide,alt:"hide pin icon"})))),!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(Xt,{setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),g.createElement("button",{id:"verified-custd-mdl-otp-button",onClick:async u=>{if(u.target.className.includes("verified-custd-mdl-startup-button")&&u.target.className!=="verified-custd-mdl-startup-button")u.target.className="verified-custd-mdl-startup-button-click",await ee();else{let w=document.getElementsByClassName("verified-custd-mdl-startup-button-active");w.length>0&&(w[0].className="verified-custd-mdl-startup-button-click",await ee())}},className:"verified-custd-mdl-startup-button"},"Proceed"),g.createElement("div",{className:"verified-custd-mdl-st-contact-footer-second-section"},g.createElement(Ue,null))))),r&&g.createElement(we,{messageTosend:e.action==="getPk"?{type:"closePopup",key:"",value:""}:e.action==="signRecovery"?{type:"closePopup",key:"",value:""}:e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:I},customTextHeader:"Successful",customTextFooter:e.action==="getPk"&&e.vaultChannel==="email"?"You have successfully initiated your account recovery process check your email for further instructions":e.action==="getPk"&&e.vaultChannel==="sms"?"You have successfully initiated your account recovery process check your phone number messages for further instructions":e.action==="signRecovery"?`Congratulations! You have successfully signed account recovery transaction for user: ${(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"?"connected your account":e!=null&&e.actionText?e.actionText:"logged in to your account."} `})),l&&D&&g.createElement(g.Fragment,null,!N&&g.createElement("div",{style:{padding:"0",position:"relative"},className:"verified-custd-mdl-startup-language"},g.createElement("div",{className:"verified-custd-mdl-startup-contact"},g.createElement(ge,{sliderCount:[1,2,3],currentSlider:"1"}),g.createElement("div",{className:"verified-custd-mdl-startup-contact-content"},g.createElement("p",{className:"verified-custd-mdl-startup-contact-text"},g.createElement("b",null,(n=e.reqVaultData)==null?void 0:n.vaultId)," has requested you to be a Co-Signer"))),g.createElement("img",{className:"verified-custd-mdl-add-cosigner-body-icon",src:F.addCoSignerIcon1,alt:""}),!s&&g.createElement(g.Fragment,null,g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-body"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-header-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-more-title-cont"},g.createElement("p",{className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),g.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co-Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."," "),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement("img",{src:F.pkicon,alt:"icon"})),g.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",g.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-body-text-icon"},g.createElement("img",{src:F.encryptedIcon,alt:"icon"})),g.createElement("p",{className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",g.createElement("span",{className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),g.createElement("div",{className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement("button",{onClick:()=>{m(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},"Reject"),g.createElement("button",{onClick:async()=>{await G(!0)},className:"verified-custd-mdl-add-cosigner-button-action"},"Accept"))),s&&g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-content"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},g.createElement("div",{className:"verified-custd-mdl-add-cosigner-confirm-body-header"},g.createElement("p",{className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),g.createElement("p",{style:{fontSize:"12px",color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",g.createElement("b",null,(P=e.reqVaultData)==null?void 0:P.vaultId),", you will not be able to reset the PIN for them.")),g.createElement("div",{style:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},g.createElement("button",{onClick:async()=>{await G(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"Yes"),g.createElement("button",{onClick:()=>{m(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},"No")))))),N&&g.createElement(we,{messageTosend:{type:"getPk",key:"vaultData",value:I},customTextHeader:"Successful",customTextFooter:E?`You have been added as a Co-Signer for ${(R=e.reqVaultData)==null?void 0:R.vaultId}`:`You rejected Co-signer reject from ${(te=e.reqVaultData)==null?void 0:te.vaultId}`})),!l&&g.createElement("h3",null,"Preparing Modules..."))},dt=Wa;import{motion as $a}from"framer-motion";var qa=e=>{var I,U,S,K,p,x,D,_,N,b,s,m,E,B,o,O,z,ae;let[l,f]=We(!0),[d,a]=We(null),[i,A]=We({}),[c,k]=We(!1),[r,C]=We(!1);return ia(()=>{(()=>{let X=Be(document);f(X)})()},[]),ia(()=>{(()=>{var X,ee;if((X=chrome==null?void 0:chrome.storage)!=null&&X.local)chrome.storage.local.get("myVault",G=>{var Q;G.myVault&&((Q=JSON.parse(G.myVault))!=null&&Q.vaultId)?(A(JSON.parse(G.myVault)),a(!0)):a(!1)});else if(!((ee=chrome==null?void 0:chrome.storage)!=null&&ee.local)&&localStorage){let G=JSON.parse(localStorage.getItem("myVault"));G&&(G!=null&&G.vaultId)?(A(G),a(!0)):a(!1)}else a(!1)})()},[]),ce.createElement(ce.Fragment,null,l&&ce.createElement(Kt,null,ce.createElement("div",{className:"verified-custd-mdl-container"},d===null&&e.delayPageElement&&ce.createElement(ce.Fragment,null,e.delayPageElement," "),d===null&&!e.delayPageElement&&ce.createElement("div",{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"trasparent",border:"none"}}," "),c&&ce.createElement("div",{style:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},ce.createElement($a.img,{height:"50px",width:"50px",src:F.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"}})),d!==null&&ce.createElement(ce.Fragment,null,!d&&ce.createElement(rt,{fontsLoaded:l,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(((I=e.reqVaultData)==null?void 0:I.vId)||((U=e.reqVaultData)==null?void 0:U.vaultId)),hashedVaultId:ie(decodeURIComponent(((S=e.reqVaultData)==null?void 0:S.vId)||((K=e.reqVaultData)==null?void 0:K.vaultId))),hashedVaultPin:decodeURIComponent(((p=e.reqVaultData)==null?void 0:p.vPh)||((x=e.reqVaultData)==null?void 0:x.hashedVaultPin)),coSignerId:decodeURIComponent((D=e.reqVaultData)==null?void 0:D.cId)}:null,txData:e.txData?(N=Object.keys(e.txData))==null?void 0:N.map($=>(e.txData[$]=decodeURIComponent(e.txData[$]),e.txData))[((_=Object.keys(e.txData))==null?void 0:_.length)-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:a,setIsLoading:k,dashbordElement:e.dashbordElement}),d&&!r&&ce.createElement(dt,{fontsLoaded:l,setisOnboard:a,vaultId:i==null?void 0:i.vaultId,hashedVaultId:i==null?void 0:i.hashedVaultId,encrptedPk:i==null?void 0:i.pk,vaultAddress:i==null?void 0:i.address,vaultChannel:i==null?void 0:i.channel,origin:e.origin,title:e.title,actionText:e.actionText||Yt[e.action],setIsLoading:k,newChainId:Number(e.chainId),action:e.action?e.action:"",reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(((b=e.reqVaultData)==null?void 0:b.vId)||((s=e.reqVaultData)==null?void 0:s.vaultId)),hashedVaultId:ie(decodeURIComponent(((m=e.reqVaultData)==null?void 0:m.vId)||((E=e.reqVaultData)==null?void 0:E.vaultId))),hashedVaultPin:decodeURIComponent(((B=e.reqVaultData)==null?void 0:B.vPh)||((o=e.reqVaultData)==null?void 0:o.hashedVaultPin)),coSignerId:decodeURIComponent((O=e.reqVaultData)==null?void 0:O.cId)}:null,reqTxData:e.txData?(ae=Object.keys(e.txData))==null?void 0:ae.map($=>(e.txData[$]=decodeURIComponent(e.txData[$]),e.txData))[((z=Object.keys(e.txData))==null?void 0:z.length)-1]:null,helperFunctions:e.helperFunctions,setShowDashboard:C}),d&&r&&e.dashbordElement&&ce.createElement(e.dashbordElement,{setIsLoading:k})))),!l&&ce.createElement("h3",null,"Preparing Modules..."))},Ja=qa;export{st as AddCoSignersPage,at as ContactPage,ot as CreatePinPage,dt as EnterPinPage,rt as FTUPage,it as OTPPage,Ja as VerifiedCustody,Ve as decryptString,Le as encryptString,ie as hashTheString};
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|