@verified-network/verified-custody 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import{a as ni,b as Rt}from"./chunk-WCXX5QYV.mjs";var Xn=Rt((Ga,Ai)=>{Ai.exports="./Roboto-Regular-UUBD26YO.ttf"});var Tn=Rt((Ma,Li)=>{Li.exports="./Manrope-Regular-33576HBZ.ttf"});var Yn=Rt((Fa,bi)=>{bi.exports="./Hind-Regular-R5KOYWFC.ttf"});function ii(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}ii(`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;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{width:100vw;border-radius:10px;width:100%;flex-shrink:0;background:#0000004d;z-index:100;display:flex;justify-content:center;align-items:center;overflow:auto;position:absolute;inset:0}.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:100%}.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:90%}.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:.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;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:.7rem;font-style:normal;font-weight:450;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;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.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:200px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
2
- `);typeof window<"u"&&typeof window.chrome>"u"&&(window.chrome={});if(typeof global<"u"&&typeof global.crypto>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative")try{ni("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import Je,{forwardRef as ai}from"react";var ka=process.env.REACT_APP_NODE_ENV==="production"?"https://wallet.verified.network":"https://veripay-bac0b.web.app",Kn="https://wallet.verified.network/create-passkey",Bt="https://wallet.verified.network/get-passkey",vn=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Pn=["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",Wt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},bt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},xt={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},E={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Dt=[{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"}];var An={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",flexDirection:"row",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center",flexDirection:"row"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var Qt=!1,jt=!1,qt,Zt,zt,en,tn,nn,an,on,Ln,bn,xn,rn,wn,dn=async()=>{if(jt)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("[VCM]: Initializing React Native platform...");let t=await import("react-native"),i=await import("events");Ln=(await import("expo-font")).default;let s=await import("@react-native-async-storage/async-storage"),g=await import("react-native-passkeys"),l=(await import("./svg-G2CCATII.mjs")).default;wn=g,bn=s.default,xn=i.EventEmitter;let P=({className:n,id:o,...A})=>A,u=n=>o=>Je.createElement(n,{...P(o)}),h=n=>typeof n=="string"&&n.endsWith(".svg");qt=u(t.View),Zt=u(t.Text),zt=n=>{let o=n.source?.uri;if(l&&h(o))return Je.createElement(l,{uri:o,style:n.style});let A=u(t.Image);return Je.createElement(A,{...n})},en=u(t.ScrollView),tn=t.StyleSheet,nn=u(t.TextInput),an=u(t.TouchableOpacity),on=u(t.ActivityIndicator),rn=t.StyleSheet.create(An),Qt=!0,console.log("[VCM]: React Native platform initialized.")}else{console.log("[VCM]: Initializing Web platform...");let{motion:t}=await import("framer-motion");qt=({onPress:i,...a})=>Je.createElement("div",{onClick:i,...a}),Zt=({onPress:i,...a})=>Je.createElement("span",{onClick:i,...a}),zt=({onPress:i,source:a,...s})=>Je.createElement("img",{onClick:i,...s,src:a?.uri}),en=i=>Je.createElement("div",{style:{overflowY:"auto",...i.style}},i.children),tn={create:i=>i},rn={},nn=ai(({onChangeText:i,onInput:a,onKeyDown:s,onKeyPress:g,value:b,keyboardType:l,secureTextEntry:P,onSubmitEditing:u,blurOnSubmit:h,placeholderTextColor:n,...o},A)=>Je.createElement("input",{...o,ref:A,value:b,onInput:v=>{a?.(v),i?.(v.target.value)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),u?.(v)),s?.(v),g?.(v)},type:P?"password":l==="numeric"||l==="number-pad"?"tel":"text",onChange:()=>{}})),an=({onPress:i,style:a,...s})=>Je.createElement("button",{style:{outline:"none",border:"none",...a},onClick:i,...s},s.children),on=({color:i,size:a,...s})=>Je.createElement(t.img,{height:"50px",width:"50px",src:E.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...s}),Qt=!1,console.log("[VCM]: Web platform initialized.")}jt=!0},sn=()=>{if(!jt)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Qt,View:qt,Text:Zt,Image:zt,ScrollView:en,StyleSheet:tn,TextInput:nn,TouchableOpacity:an,ActivityIndicator:on,Font:Ln,AsyncStorage:bn,EventEmitter:xn,styles:rn,rnPasskey:wn}};import Z,{useEffect as Jt,useState as Pe}from"react";import oi,{createContext as ri,useContext as di,useState as ct}from"react";var _n=ri(void 0),ln=({children:e})=>{let[t,i]=ct(null),[a,s]=ct(null),[g,b]=ct(null),[l,P]=ct(null),[u,h]=ct(null),[n,o]=ct(null),[A,v]=ct(null);return oi.createElement(_n.Provider,{value:{chainId:t,pk:a,address:g,signer:l,provider:u,vaultContract:n,vaultData:A,setChainId:i,setPk:s,setAddress:b,setSigner:P,setProvider:h,setVaultContract:o,setVaultData:v}},e)},Fe=()=>{let e=di(_n);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import be,{useEffect as Ot,useState as Xe}from"react";import{debounce as ma}from"lodash";import{contractAddress as xi,Custody as wi,Provider as _i,VerifiedWallet as cn}from"@verified-network/verified-sdk";var ke={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://etherscan.io/"],icon:E.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://base-mainnet.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://basescan.org/"],Icon:E.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:E.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth-sepolia.g.alchemy.com/v2/82hkNrfu6ZZ8Wms2vr1U331ml3FtS7AZ"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:E.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:E.baseIcon}};import{pbkdf2 as Vt}from"@noble/hashes/pbkdf2";import{sha256 as ht}from"@noble/hashes/sha256";import{randomBytes as kt,utf8ToBytes as fn,bytesToUtf8 as Si}from"@noble/hashes/utils";import{gcm as Mn}from"@noble/ciphers/aes";import gn from"crypto-js";import{toast as Gn}from"react-toastify";import St from"react";import{base as Ni,baseSepolia as Ei,gnosis as Xi,mainnet as Ti,polygon as Yi,sepolia as Gi}from"viem/chains";import{http as Mi}from"viem";import{createPublicClient as ci,encodeAbiParameters as ui,encodeFunctionData as fi,pad as gi,toHex as mi,zeroAddress as _t,zeroHash as Ci}from"viem";var Sn={abi:[{type:"constructor",inputs:[{name:"defaultValidator",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],stateMutability:"nonpayable"},{type:"error",name:"CanNotRemoveLastValidator",inputs:[]},{type:"error",name:"DefaultValidatorAlreadyInstalled",inputs:[]},{type:"error",name:"EmergencyUninstallSigError",inputs:[]},{type:"error",name:"EnableModeSigError",inputs:[]},{type:"error",name:"FallbackAlreadyInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackCallTypeInvalid",inputs:[]},{type:"error",name:"FallbackHandlerUninstallFailed",inputs:[]},{type:"error",name:"FallbackNotInstalledForSelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"FallbackSelectorForbidden",inputs:[]},{type:"error",name:"HookAlreadyInstalled",inputs:[{name:"currentHook",type:"address",internalType:"address"}]},{type:"error",name:"HookPostCheckFailed",inputs:[]},{type:"error",name:"InvalidInput",inputs:[]},{type:"error",name:"InvalidModule",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"InvalidModuleTypeId",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidNonce",inputs:[]},{type:"error",name:"LinkedList_AlreadyInitialized",inputs:[]},{type:"error",name:"LinkedList_EntryAlreadyInList",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidEntry",inputs:[{name:"entry",type:"address",internalType:"address"}]},{type:"error",name:"LinkedList_InvalidPage",inputs:[]},{type:"error",name:"MismatchModuleTypeId",inputs:[]},{type:"error",name:"MissingFallbackHandler",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"ModuleAddressCanNotBeZero",inputs:[]},{type:"error",name:"ModuleAlreadyInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"ModuleNotInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"}]},{type:"error",name:"NoValidatorInstalled",inputs:[]},{type:"error",name:"PrevalidationHookAlreadyInstalled",inputs:[{name:"currentPreValidationHook",type:"address",internalType:"address"}]},{type:"error",name:"UnauthorizedOperation",inputs:[{name:"operator",type:"address",internalType:"address"}]},{type:"error",name:"UnsupportedCallType",inputs:[{name:"callType",type:"bytes1",internalType:"CallType"}]},{type:"error",name:"ValidatorNotInstalled",inputs:[{name:"module",type:"address",internalType:"address"}]},{type:"event",name:"ERC7484RegistryConfigured",inputs:[{name:"registry",type:"address",indexed:!0,internalType:"contract IERC7484"}],anonymous:!1},{type:"event",name:"ModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"event",name:"ModuleUninstalled",inputs:[{name:"moduleTypeId",type:"uint256",indexed:!1,internalType:"uint256"},{name:"module",type:"address",indexed:!1,internalType:"address"}],anonymous:!1},{type:"fallback",stateMutability:"payable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"getActiveHook",inputs:[],outputs:[{name:"hook",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getExecutorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getFallbackHandlerBySelector",inputs:[{name:"selector",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bytes1",internalType:"CallType"},{name:"",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"getRegistry",inputs:[],outputs:[{name:"",type:"address",internalType:"contract IERC7484"}],stateMutability:"view"},{type:"function",name:"getValidatorsPaginated",inputs:[{name:"cursor",type:"address",internalType:"address"},{name:"size",type:"uint256",internalType:"uint256"}],outputs:[{name:"array",type:"address[]",internalType:"address[]"},{name:"next",type:"address",internalType:"address"}],stateMutability:"view"},{type:"function",name:"initNexus",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScoped",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusScopedNoRegistry",inputs:[{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidator",inputs:[{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModules",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",inputs:[{name:"defaultValidatorInitData",type:"bytes",internalType:"bytes"},{name:"validators",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"executors",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"hook",type:"tuple",internalType:"struct BootstrapConfig",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"fallbacks",type:"tuple[]",internalType:"struct BootstrapConfig[]",components:[{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"preValidationHooks",type:"tuple[]",internalType:"struct BootstrapPreValidationHookConfig[]",components:[{name:"hookType",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidator",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"},{name:"registryConfig",type:"tuple",internalType:"struct RegistryConfig",components:[{name:"registry",type:"address",internalType:"contract IERC7484"},{name:"attesters",type:"address[]",internalType:"address[]"},{name:"threshold",type:"uint8",internalType:"uint8"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"initNexusWithSingleValidatorNoRegistry",inputs:[{name:"validator",type:"address",internalType:"address"},{name:"data",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"installModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"initData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"isModuleInstalled",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"additionalContext",type:"bytes",internalType:"bytes"}],outputs:[{name:"installed",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"uninstallModule",inputs:[{name:"moduleTypeId",type:"uint256",internalType:"uint256"},{name:"module",type:"address",internalType:"address"},{name:"deInitData",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"receive",stateMutability:"payable"}]};var Nn={abi:[{inputs:[{internalType:"address",name:"implementation_",type:"address"},{internalType:"address",name:"owner_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"AccountAlreadyDeployed",type:"error"},{inputs:[],name:"AlreadyInitialized",type:"error"},{inputs:[],name:"ImplementationAddressCanNotBeZero",type:"error"},{inputs:[],name:"InvalidEntryPointAddress",type:"error"},{inputs:[],name:"NewOwnerIsZeroAddress",type:"error"},{inputs:[],name:"NoHandoverRequest",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"ZeroAddressNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"bytes",name:"initData",type:"bytes"},{indexed:!0,internalType:"bytes32",name:"salt",type:"bytes32"}],name:"AccountCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"OwnershipHandoverRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"ACCOUNT_IMPLEMENTATION",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"uint32",name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"cancelOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"completeOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"computeAccountAddress",outputs:[{internalType:"address payable",name:"expectedAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"initData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"createAccount",outputs:[{internalType:"address payable",name:"",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"result",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner",type:"address"}],name:"ownershipHandoverExpiresAt",outputs:[{internalType:"uint256",name:"result",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"requestOwnershipHandover",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"}],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"epAddress",type:"address"},{internalType:"address payable",name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"}]};var pi="0x000000001D1D5004a02bAfAb9de2D6CE5b7B13de",hi="0x00000000D3254452a909E4eeD47455Af7E27C289",En="0x81d4b4981670cb18f99f0b4a66446df1bf5b204d24cfcb659bf38ba27a4359b5711649ec2423c5e1247245eba2964679b6a1dbb85c992ae40b9b00c6935b02ff1b",ki=0n,wt=e=>{let t=e.module||e.address,i=e.initData||e.data;if(!t||!i)throw new Error("Module or data is missing");return{module:t,data:i}},yi=e=>ui([{name:"bootstrap",type:"address"},{name:"initData",type:"bytes"}],[e.bootStrapAddress,fi({abi:Sn.abi,functionName:"initNexusWithDefaultValidatorAndOtherModulesNoRegistry",args:[e.defaultValidator.data,e.validators,e.executors,e.hook,e.fallbacks,e.prevalidationHooks]})]),Ki=e=>{let{deInitData:t="0x",type:i="validator",signer:a,data:s="0x",module:g,...b}=e;return{deInitData:t,data:s,module:g,address:g,signer:a,type:i,getStubSignature:async()=>En,signUserOpHash:async l=>await a.signMessage({message:{raw:l}}),signMessage:async l=>await a.signMessage({message:l}),...b}},vi=e=>Ki({initData:e.signer.address,data:e.signer.address,deInitData:"0x",...e,address:_t,module:_t,type:"validator",getStubSignature:async()=>En}),Pi=()=>({module:_t,data:Ci}),It=async(e,t,i)=>{let a=ci({chain:e,transport:t}),s=vi({signer:i}),g=[],b=[],l=Pi(),P=[],u=_t,h=pi,n=hi,o=[],A=yi({defaultValidator:wt(s),validators:g.map(wt),executors:b.map(wt),hook:wt(l),fallbacks:P.map(wt),registryAddress:u,bootStrapAddress:n,prevalidationHooks:o}),v=gi(mi(ki),{size:32}),L=await a.readContract({address:h,abi:Nn.abi,functionName:"computeAccountAddress",args:[A,v],authorizationList:void 0});if(L?.toLowerCase()!==_t?.toLowerCase())return L};var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return Pn.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let g=e.createElement("link");g.rel="stylesheet",g.href=a,e.head.appendChild(g)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:Xn(),Manrope:Tn(),Hind:Yn()}),!0),it=async(e,t)=>{try{let i;if(t)i=new cn(t);else{let o=cn.generateMnemonic();i=cn.importWallet(o)}let a=xi,s=e&&a[e]?.Custody&&ke[e]?.rpcUrls?.length>0?e:8453,g=ke[s]?.rpcUrls[0],b=i.setProvider(new _i(g)),l=i.privateKey,P=new wi(b,a[s]?.Custody),u=b,h=[Ni,Ti,Xi,Yi,Gi,Ei].find(o=>Number(o?.id)===Number(s)),n=await It(h,Mi(),u);return s===11155111&&console.log("address to send test ETH to: ",i.address),{chainId:s,address:n,pk:l,signer:b,provider:g,vaultContract:P,vaultData:null}}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",i),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},j=e=>{let t=e.toLowerCase(),i=ht(fn(t));return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},Ve=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),i=ht(t);return"0x"+Array.from(i).map(a=>a.toString(16).padStart(2,"0")).join("")},at=(e,t)=>gn.AES.encrypt(e,t).toString(),ut=(e,t)=>{var i=gn.AES.decrypt(e,t),a=i.toString(gn.enc.Utf8);return a},Fi=(e,t)=>St.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},St.createElement("img",{style:{marginLeft:"5px"},src:E.errorAlert,alt:""}),St.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},St.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),St.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Ee=(e,t)=>(Gn.dismiss(),Gn.error(Fi(e,t),{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}));var Fn=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var U=(e,t,i=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*i:(t.endsWith("px"),a)},Bi=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let i=t.length/2,a=new Uint8Array(i);for(let s=0;s<i;s++){let g=t.substr(s*2,2);a[s]=parseInt(g,16)}return a},mn=(e,t,i,a)=>{let s=Bi(i);return a?{challenge:pt(kt(32)),rp:{name:e,id:a},user:{id:pt(s),name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}:{challenge:kt(32),rp:{name:e},user:{id:s,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}},Nt=e=>{let t=atob(e),i=new ArrayBuffer(t.length),a=new Uint8Array(i);for(let s=0;s<t.length;s++)a[s]=t.charCodeAt(s);return i},ft=e=>e?{challenge:pt(kt(32)),timeout:6e4,userVerification:"required",rpId:e}:{challenge:kt(32),timeout:6e4,userVerification:"required"},pt=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),un=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),i=atob(t);return new Uint8Array([...i].map(a=>a.charCodeAt(0)))},ot=async(e,t,i,a)=>{let s=t instanceof Uint8Array?t:new Uint8Array(t),g=kt(8),b=Array.from(g).map(A=>A.toString(16).padStart(2,"0")).join(""),l=j(`${i}:${b}`),P=fn(l),u=kt(12),h=a?Vt(ht,s,P,{c:2e4,dkLen:32}):Vt(ht,s,P,{c:3e5,dkLen:32}),o=Mn(h,u).encrypt(fn(e));return[pt(P),pt(u),pt(o)].join(".")},gt=async(e,t,i)=>{let[a,s,g]=e.split(".");if(!a||!s||!g)throw new Error("Invalid encrypted data format");let b=t instanceof Uint8Array?t:new Uint8Array(t),l=un(a),P=un(s),u=un(g),n=i?Vt(ht,b,l,{c:2e4,dkLen:32}):Vt(ht,b,l,{c:3e5,dkLen:32}),o=Mn(n,P);try{let A=o.decrypt(u);return Si(A)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import te,{useEffect as $i,useState as yt}from"react";import Bn from"react";var Di=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,o=Number(e.currentSlider),A=e.sliderCount?.length||0,v=A>0?100/A:0;return Bn.createElement(i,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden",gap:12}},e.sliderCount?.map((L,X)=>{let y=X<=o;return Bn.createElement(i,{key:X,className:y?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&y?{...n.verifiedCustdMdlStartupSliderLineActive,width:`${v}%`}:t?{...n.verifiedCustdMdlStartupSliderLine,width:`${v}%`}:!t&&y?{width:`${v}%`}:{width:`${v}%`}})}))},Be=Di;import Le,{useState as Ii}from"react";var Vi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,[o,A]=Ii(null),v=k=>{if(k===""){A(null);return}let w=e.searchContent.filter(f=>{let c=f?.name?.toLowerCase(),p=k.toLowerCase();if(c?.includes(p))return f.searched=p,f.nameArray=f.name.split(""),f});A(w),e.handleButtonDisplay()},L=(k,w)=>{e.type==="area-code"?e.setSelected({area:k.phone_code,flag:k.flag,name:k.name}):e.type==="language"&&e.setSelected(k.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},X=(k,w)=>k.map((f,c)=>{let p=w.includes(f.toLowerCase());return Le.createElement(a,{key:c,style:p?n.boldText:n.fadedText},f)}),y=(k,w=!1)=>k.map((f,c)=>{let p=t?!1:window?.location?.search===`?${c}`,K=e.selected&&e.selected.length>0,x=e.type==="language"&&p?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return Le.createElement(l,{key:c,className:x,style:n.resultItem,onPress:()=>L(f,c)},Le.createElement(i,{style:n.resultInner},Le.createElement(s,{source:{uri:e.type==="language"?f.icon:f.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:n.icon}),Le.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:n.resultText},f.nameArray&&f.searched?X(f.nameArray,f.searched):f.name,e.type==="language"&&f.label&&Le.createElement(a,{style:f.searched?.includes(f.label.toLowerCase())?{}:n.fadedText},` (${f.label})`))),e.type==="language"&&K&&p&&Le.createElement(s,{source:{uri:E.circleClicked},alt:"Clicked",style:n.selectedIcon}))});return Le.createElement(i,{className:"verified-custd-mdl-startup-language-content-container",style:n.container},Le.createElement(i,{className:"verified-custd-mdl-st-language-content"},e.headerText&&Le.createElement(a,{className:"verified-custd-mdl-st-language-text",style:n.headerText},e.headerText),Le.createElement(i,{className:"verified-custd-mdl-mobille-startup-search-box-container"},Le.createElement(i,{className:"verified-custd-mdl-mobile-startup-search-box",style:n.searchBox},Le.createElement(s,{source:{uri:E.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:n.searchIcon}),Le.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:n.input,onChangeText:v,onFocus:()=>e.type==="language"&&e.setSelected("")})),Le.createElement(g,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},Le.createElement(i,{className:"verified-custd-mdl-ms-search-content-container"},(o||e.searchContent)?.length>0&&y(o||e.searchContent))))))},$t=Vi;import Et from"react";var Dn=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform;return Et.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Et.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",Et.createElement(a,{style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},In=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,o=async()=>{e.setIsLoading(!0);try{t?t&&h&&(await h.removeItem("myVault"),await h.removeItem("lastPk")):!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return Et.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,fontSize:U(t,"0.7rem")}:{fontSize:U(t,"0.7rem")}},"Want to access a different account? Click"," ",Et.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...n.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:o},"Logout")," ","to logout and login/create another account")};var Hi=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,[o,A]=yt(e.fontsLoaded||!1),[v,L]=yt(""),[X,y]=yt(""),[k,w]=yt(!1),[f,c]=yt(""),[p,K]=yt(!1),{pk:x,vaultContract:T,address:V}=Fe();$i(()=>{let $=async()=>{if(t)u&&await Ne(u),A(!0);else{let M=Se(document);A(M)}};e.fontsLoaded||$()},[]);let W=()=>{e.selectedCountry.area&&v.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),K(!0)):(c(""),K(!1))},oe=async()=>{if(e.userEmail===""&&v===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let $=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${v}`,M=e.userEmail?.length>0?"email":"sms";if($&&M&&x&&T||$&&M&&e.noContract){e.setIsLoading(!0);try{let z=await e.helperFunctions.sendOTPVerification(V,M,$);e.setIsLoading(!1),z?(c(""),e.setStep("3")):(c(M==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Ee("OTP Error",M==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return te.createElement(g,{style:{width:"100%",height:"100%"}},o&&te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},te.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},te.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},te.createElement(l,{onPress:()=>w(!k),className:"verified-custd-mdl-st-contact-first-section",style:t?{...n.verifiedCustdMdlStContactFirstSection}:{}},te.createElement(s,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...n.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),te.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),te.createElement(s,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...n.verifiedCustdMdlStContactDropdown}:{},source:k?{uri:E.arrowUp}:{uri:E.arrowDown}})),te.createElement(b,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:$=>{let M=$.replace(/\D/g,"");y($),L(M);let z="";for(let le=0;le<M?.length;le++)z+=M[le],(le+1)%5===0&&le+1<M?.length&&(z+=" ");e.setUserNumberFmt(z),W()}})),k&&te.createElement($t,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:W,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:k,setSearchActive:w,contentMaxHeight:"300",contentbottomMargin:"300"}),v.length!==10&&X.length>10&&!f&&te.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!k&&te.createElement(te.Fragment,null,e.enablePhone&&te.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...n.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},te.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}}),te.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...n.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),te.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...n.verifiedCustdMdlPPPaymentPortalLine}:{}})),te.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},te.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:$=>{e.setUserEmail($),e.setUserNumberFmt(""),L(""),y(""),W()}}),f&&e.userEmail.length>0&&te.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},f)))),!k&&te.createElement(i,{style:{height:"80px"}}),te.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},te.createElement(Dn,{platform:e.platform}),te.createElement(l,{style:t&&p?{...n.verifiedCustdMdlStartupButtonActive}:t&&!p?{...n.verifiedCustdMdlStartupButton}:{},className:p?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:oe},te.createElement(a,null,"Get OTP"))))),!o&&te.createElement(a,null,"Loading Module Fonts..."))},Cn=Hi;import J,{useEffect as Qn,useRef as ea,useState as Kt}from"react";import{AbiCoder as Oi,encodeBytes32String as He,getBytes as Ji}from"ethers";import{combine as Ri,split as Vn}from"shamir-secret-sharing";import{contractAddress as Xt,Custody as Tt,Provider as mt,VerifiedWallet as ze}from"@verified-network/verified-sdk";import{base as Ui,baseSepolia as Wi,gnosis as Qi,mainnet as ji,polygon as qi,sepolia as Zi}from"viem/chains";import{http as zi}from"viem";var $n=async(e,t)=>{try{return await e.getCreator(t).then(async i=>i?.status===0&&i?.response?.result[0]===!0)}catch(i){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",i),null}},Hn=async(e,t,i,a,s,g,b,l,P,u,h,n,o,A,v,L,X,y)=>{try{let k={vaultId:s,hashedVaultId:g,vaultPin:b,hashedVaultPin:l,vaultContract:n,rawId:L};return await n.getCreator(g).then(async w=>{if(w?.status===0&&w?.response?.result[0]===!0)try{let f;if(L)f=await ot(u,L,b,t);else{let p=He(b);f=at(u,p)}let c;if(t?t&&i&&(c=await i.getItem("lastPk")):chrome?.storage?.local?c=await new Promise(p=>{chrome.storage.local.get(["lastPk"],K=>{p(K.lastPk)})}):!chrome?.storage?.local&&localStorage&&(c=localStorage.getItem("lastPk")),o==="reset-pin"&&A?.vaultContract&&X?.length>1&&y>1&&u?.length>0){let p=Number(X.length),x=(await Vn(Ji(u),Number(p),Number(y))).map(M=>Fn(M)),T=L?"":He(b),V=[],W=[];for(let M=0;M<X.length;M++){let z=X[M],le=L?await ot(x[M],L,b,t):at(x[M],T);await n.addParticipant(g,z,le).then(async ce=>{let R={creatorVaultId:s,vaultPin:b,creatorHashedVaultId:g,creatorHashedVaultPin:l,cosigner:z,hashedCosigner:z,cosignerVaultIdType:"",cosignerVaultId:z,share:le};ce?.status===0?W.push(R):V.push(R)}),await new Promise(ce=>setTimeout(ce,1e3))}if(V?.length>0||W?.length!==X?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),null;let $=await new ze(u).getAddress();return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:$,vaultId:s,hashedVaultId:g,pk:f,channel:P})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:$,vaultId:s,hashedVaultId:g,pk:f,channel:P})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:$,vaultId:s,hashedVaultId:g,pk:f,channel:P})),{}}if(c&&c?.length>0)return await n.confirmParticipant(g,g,!0).then(async p=>{if(p?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let x=await new ze(u).getAddress(),T;if(L)T=await ot(u,L,b,t);else{let V=He(b);T=at(u,V)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:x,vaultId:s,hashedVaultId:g,pk:T,channel:P})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:x,vaultId:s,hashedVaultId:g,pk:T,channel:P})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:x,vaultId:s,hashedVaultId:g,pk:T,channel:P})),k}catch(K){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",K),!1}}else return Ee("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",p),!1});if(o==="invitation")return{isExisting:!0,...k};{t?t&&i&&await i.setItem("myVault",JSON.stringify({vaultId:s,hashedVaultId:g,pk:f,channel:P})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:s,hashedVaultId:g,pk:f,channel:P})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:s,hashedVaultId:g,pk:f,channel:P}));let p=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",value:{vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:v}});else if(!t&&!chrome?.runtime?.sendMessage){let K=new CustomEvent(o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",{detail:{value:{vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:v}}});p?.dispatchEvent(K)}else if(t&&e){let K=o&&o==="connect_wallet"||o&&o==="eth_requestAccounts"?"getPk":o&&o!=="connect_wallet"?o:"getPk",x={vaultData:o&&o==="signRecovery"||o&&o==="completeRecovery"?A:{vaultId:s,hashedVaultId:g,hashedVaultPin:l},txData:v};e.emit(K,x)}}return o==="getPk"?{vaultId:s,hashedVaultId:g,pk:f,channel:P,shouldStop:!0}:{shouldStop:!0}}catch(f){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",f),Ee("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(w?.status===0&&w?.response?.result[0]!==!0)return await n.createVault(g).then(async f=>f?.status===0?(t?t&&i&&await i.setItem("lastPk",u):!t&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:u}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("lastPk",u),await n.confirmParticipant(g,g,!0).then(async c=>{if(c?.status===0){t?t&&i&&await i.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let K=await new ze(u).getAddress(),x;if(L)x=await ot(u,L,b,t);else{let T=He(b);x=at(u,T)}return t?t&&i&&await i.setItem("myVault",JSON.stringify({address:h,regAddress:K,vaultId:s,hashedVaultId:g,pk:x,channel:P})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:h,regAddress:K,vaultId:s,hashedVaultId:g,pk:x,channel:P})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:h,regAddress:K,vaultId:s,hashedVaultId:g,pk:x,channel:P})),k}catch(p){return Ee("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",p),!1}}else return Ee("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})):(Ee("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",f),!1))})}catch(k){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",k),Ee("Oops something went wrong","Error while creating pin. Try again later"),!1}},On=async(e,t,i,a,s,g,b,l,P,u,h,n)=>{try{let o;if(n)o=await gt(g,n,e);else{let A=He(a);o=ut(g,A)}if(o){let A=Xt,v=new ze(o),L=P&&A[P]?.Custody&&ke[P]?.rpcUrls?.length>0?P:8453,X=ke[L]?.rpcUrls[0],y=v.setProvider(new mt(X)),k=new Tt(y,A[L].Custody);return k?await k.getCreator(i).then(async w=>{if(w?.status===0&&w?.response?.result[0]===!0){let f=await k.getQuorum(i);return f?.status===0&&f?.response?.result?.length>0?u&&Number(f?.response?.result[0])>0?{address:b,vaultId:t,hashedVaultId:i,channel:l,chainId:h||L,pin:a,rawId:n,pk:o}:Number(f?.response?.result[0])===0?{address:b,vaultId:t,hashedVaultId:i,channel:l,chainId:h||L,pin:a,rawId:n,pk:o,inCompleteVault:!0}:{address:b,vaultId:t,hashedVaultId:i,channel:l,chainId:h||L,pin:a,rawId:n}:u?{address:b,vaultId:t,hashedVaultId:i,channel:l,chainId:h||L,pin:a,rawId:n,pk:o}:{address:b,vaultId:t,hashedVaultId:i,channel:l,chainId:h||L,pin:a,rawId:n}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(o){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",o),null}},Ht=async(e,t,i,a,s,g,b,l,P,u,h,n,o)=>{let A;if(h)A=h;else{let v=Xt,L=new ze(n),X=o&&v[o]?.Custody&&ke[o]?.rpcUrls?.length>0?o:8453,y=ke[X]?.rpcUrls[0],k=L.setProvider(new mt(y));A=new Tt(k,v[X].Custody)}return A?await A.confirmParticipant(g,a,u).then(async v=>v?.status===0?(u?await e(i,l,P,s):await t(i,l,P,s),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(v=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",v),!1)):!1},Jn=async(e,t,i,a,s,g,b,l,P,u,h,n,o,A,v)=>{let L=Number(a.length),y=(await Vn(Uint8Array.from(o.split("").map(c=>c.charCodeAt(0))),Number(L),b)).map(c=>c.join(",")),k=A?"":He(u),w=[],f=[];for(let c=0;c<a.length;c++){let p=a[c],K=A?await ot(y[c],A,u,e):at(y[c],k);await n.addParticipant(P,v==="remove-cosigner"?p:j(p.vaultId),K).then(async x=>{let T=v==="remove-cosigner"?{creatorVaultId:l,vaultPin:u,creatorHashedVaultId:P,creatorHashedVaultPin:h,cosigner:p,hashedCosigner:p,cosignerVaultIdType:"",cosignerVaultId:p,share:K}:{creatorVaultId:l,vaultPin:u,creatorHashedVaultId:P,creatorHashedVaultPin:h,cosigner:p.vaultId,hashedCosigner:j(p.vaultId),cosignerVaultIdType:p.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:p.vaultId,share:K,...p};x?.status===0?(f.push(T),v!=="remove-cosigner"&&p.vaultId!==l&&await t(p.otpChannel,p.vaultId,l,h).then(V=>{V||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):w.push(T)}),await new Promise(x=>setTimeout(x,1e3))}return w?.length>0||f?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Ee("Oops somethin went wrong","error while adding co-signers"),!1):await n.defineQuorum(P,b.toString()).then(async c=>{if(c?.status===0&&v!=="remove-cosigner"){let p=s?.map(K=>({name:K?.name,email:K?.email,phoneNumber:K?.phoneNumber,contactType:String(K?.otpChannel)?.toUpperCase(),position:`${Wt[Number(K?.position)]} Co-Signer`}));return await i(g,l,p,Number(b),h).then(K=>{K||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(c?.status===0&&v==="remove-cosigner"){let p=s?.map(async T=>(await n.removeParticipant(P,j(T?.vaultId)))?.status===0?"true":"false");if((await Promise.all(p))?.find(T=>T==="false")?.length>0)return!1;let x=s?.map(T=>({email:T?.email,phoneNumber:T?.phoneNumber,contactType:String(T?.otpChannel)?.toUpperCase(),position:`${Wt[Number(T?.position)]} Co-Signer`}));return await i(g,l,x,Number(b),h,!0).then(T=>{T||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"),Ee("Oops somethin went wrong","error while saving vault keys"),!1})},Rn=async(e,t,i,a,s,g,b,l,P,u)=>{let h;if(u)h=await gt(b,u,e);else{let n=He(g);h=ut(b,n)}if(h){let n=Xt,o=new ze(h),A=P&&n[P]?.Custody&&ke[P]?.rpcUrls?.length>0?P:8453,v=ke[A]?.rpcUrls[0],L=o.setProvider(new mt(v)),X=new Tt(L,n[A].Custody);if(X)return await X.promptSignatures(i).then(async y=>{if(y?.status===0&&y?.response?.hash){let k=new Oi,w,f;if(y?.response?.result?.logs?.length>0){let c=y?.response?.result?.logs?.filter(x=>x?.address?.toLowerCase()===n[A].Custody?.toLowerCase()&&x?.topics?.map(T=>T?.toLowerCase())?.includes(Ut?.toLowerCase()));f=c?.length;let p=c[0]?.data,K=k.decode(["bytes32","bytes32","uint256"],p)?.map((x,T)=>T<2?x:Number(x)).flat();w=K[K?.length-1]}else{let x=(await new mt(v).getTransactionReceipt(y?.response?.hash)).logs?.filter(W=>W?.address?.toLowerCase()===n[A].Custody?.toLowerCase()&&W?.topics?.map(oe=>oe?.toLowerCase())?.includes(Ut?.toLowerCase()));f=x?.length;let T=x[0]?.data,V=k.decode(["bytes32","bytes32","uint256"],T)?.map((W,oe)=>oe<2?W:Number(W)).flat();w=V[V?.length-1]}return await t(l,s,a,Number(w),Number(f)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",y),!1}).catch(y=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",y),!1))}},Un=async(e,t,i,a,s,g,b,l,P,u,h,n,o,A)=>{let v;if(A)v=await gt(l,A,e);else{let L=He(b);v=ut(l,L)}if(v){let L=Xt,X=new ze(v),y=o&&L[o]?.Custody&&ke[o]?.rpcUrls?.length>0?o:8453,k=ke[y]?.rpcUrls[0],w=X.setProvider(new mt(k)),f=new Tt(w,L[y].Custody);if(f)return await f.signTransaction(u,a,String(n)).then(async c=>c?.status===0?(await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)?"email":"sms",P,g,s),await f.checkQuorum(u,n).then(async p=>p?.status===0&&p?.response?.result?(p?.response?.result[0]===!0&&await i(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(P)?"email":"sms",P,g,s,Number(n)),!0):!1)):!1).catch(c=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",c),!1))}},Wn=async(e,t,i,a,s,g,b,l,P,u,h)=>{let n;if(h)n=await gt(b,h,e);else{let o=He(g);n=ut(b,o)}if(n){let o=Xt,A=new ze(n),v=u&&o[u]?.Custody&&ke[u]?.rpcUrls?.length>0?u:8453,L=ke[v]?.rpcUrls[0],X=A.setProvider(new mt(L)),y=new Tt(X,o[v].Custody);return y?await y.checkQuorum(i,l).then(async k=>k?.status===0&&k?.response?.result&&k?.response?.result[0]===!0?await y.getShards(i,l).then(async w=>{if(w?.status===0&&w?.response?.result){let f=w?.response?.result.filter(c=>c!=="");if(f.length>1){let c=h?"":He(g),K=(await Promise.all(f.map(V=>h?gt(V,h):ut(V,c)))).map(V=>new Uint8Array(V.split(",").map(Number))),x=await Ri(K),T=new TextDecoder().decode(x);if(T){let V=h?"":He(g),W=h?await ot(T,h,g,e):at(T,V),oe=new ze(T),$=await oe.getAddress(),z=oe.setProvider(new mt(L)),le=[Ui,ji,Qi,qi,Zi,Wi].find(R=>Number(R?.id)===Number(v)),ce=await It(le,zi(),z);return e?e&&t&&await t.setItem("myVault",JSON.stringify({address:ce,regAddress:$,vaultId:s,hashedVaultId:i,pk:W,channel:P})):!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:ce,regAddress:$,vaultId:s,hashedVaultId:i,pk:W,channel:P})}):!e&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:ce,regAddress:$,vaultId:s,hashedVaultId:i,pk:W,channel:P})),!0}}else return!1}else return!1}).catch(w=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",w),!1)):!1).catch(k=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",k),!1)):!1}};var ta=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,[o,A]=Kt(e.fontsLoaded||!1),v=ea([]),[L,X]=Kt(!1),[y,k]=Kt(60),[w,f]=Kt(["","","",""]),[c,p]=Kt(!1),[K,x]=Kt(""),{pk:T,vaultContract:V,address:W}=Fe();Qn(()=>{let R=async()=>{if(t)u&&await Ne(u),A(!0);else{let D=Se(document);A(D)}};e.fontsLoaded||R()},[]),Qn(()=>{if(y===0)return;let R=setInterval(()=>k(D=>D-1),1e3);return()=>clearInterval(R)},[y]);let oe=(R,D)=>{if(R?.length>1){let H=R.replace(/\D/g,""),Ke=[...w],ne=0;for(let _=D;_<w.length&&ne<H.length;_++)Ke[_]=H[ne],ne++;f(Ke);let Ie=D+H.length;Ie<w.length&&v.current[Ie]&&v.current[Ie].focus(),p(!1)}else{let H=R.replace(/\D/g,""),Ke=[...w];Ke[D]=H,f(Ke),H&&v.current[D+1]&&v.current[D+1].focus(),p(!1)}},$=(R,D,H)=>{H.nativeEvent.key==="Backspace"&&!w[D]&&D>0&&v.current[D-1]&&v.current[D-1].focus()},M=w.every(R=>R.length>0),z=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,le=async()=>{if(!M||!e.helperFunctions){p(!0),x("Please enter the complete OTP.");return}let R=z(),D=w.join("");if(!(!e.noContract&&!T||!e.noContract&&!V)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(W,R,D)){e.setIsLoading(!1),p(!0);return}let Ke=j(R),ne=!1;if(!e.noContract&&V&&(ne=await $n(V,Ke),ne===null)){e.setIsLoading(!1),x("Unexpected error. Try again later."),p(!0);return}e.setIsExistingUser?.(ne),e.setIsLoading(!1),e.setStep("4")}catch(H){e.setIsLoading(!1),x("Error verifying OTP. Try again."),p(!0),console.error("error: ",H)}}},ce=async()=>{if(!e.helperFunctions){x("Helper functions missing."),p(!0);return}let R=z(),D=e.userEmail?"email":"sms";e.setIsLoading(!0);let H=await e.helperFunctions.sendOTPVerification(W,D,R);e.setIsLoading(!1),H?(f(["","","",""]),k(60),p(!1),x("")):Ee("OTP resend failed","Please try again later.")};return J.createElement(g,null,o&&J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},J.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&J.createElement(J.Fragment,null,J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),J.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&J.createElement(a,null,e.userEmail)),J.createElement(l,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},J.createElement(s,{source:{uri:E.editBlue},alt:"Edit",style:t?{...n.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},w.map((R,D)=>J.createElement(b,{key:D,ref:H=>v.current[D]=H,value:w[D],onChangeText:H=>oe(H,D),onKeyPress:H=>$(H,D,H),keyboardType:"number-pad",maxLength:1,style:t&&c?{...n.verifiedCustdMdlOtpInputRed}:t&&!c?{...n.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),J.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&y>5&&K===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},J.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),y),!c&&y<=5&&y>0&&K===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},J.createElement(a,{style:{fontWeight:"400"}},"00:"),y),!c&&y===0&&K===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&K===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&K?.length>0&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},K),!c&&y>0&&K===""&&J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&y===0&&K===""||c&&K===""?J.createElement(l,{style:{background:"transparent"},onPress:async()=>{f(["","","",""]),await ce()}},J.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!L&&J.createElement(i,{style:{height:"100px"}}),J.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},J.createElement(l,{className:M&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:le,disabled:!M||c,style:M&&!c?{...n.verifiedCustdMdlStartupButtonActive}:{...n.verifiedCustdMdlStartupButton}},J.createElement(a,null,"Proceed"))))),!o&&J.createElement(a,null,"Loading Module Fonts..."))},pn=ta;import d,{useEffect as jn,useRef as qn,useState as Ce}from"react";import Re,{useEffect as na}from"react";var ia=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n,EventEmitter:o}=e.platform;na(()=>{let X;return e.showButton||(X=setTimeout(()=>{if(e.messageTosend)try{let y=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,k=>{k&&e.action!=="signRecovery"&&y?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let k=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});y?.dispatchEvent(k)}else t&&e.eventEmitter&&e.eventEmitter.emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(y){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",y)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{X&&clearTimeout(X)}},[]);let A=()=>{e.setStep?.("6")},v=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},L=()=>{e.handleShowDashboard()};return Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Re.createElement(s,{style:{width:"90%"},source:{uri:E.successIcon},alt:"Success Icon"}),Re.createElement(i,{style:t?{...n.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Re.createElement(a,{style:t?{...n.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Re.createElement(l,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?A():e.action==="completeRecovery"?L():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Re.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Re.createElement(l,{onPress:()=>{e.action==="invitation"?v():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...n.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Re.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},De=ia;import{contractAddress as aa,Provider as oa}from"@verified-network/verified-sdk";import{ethers as Zn}from"ethers";var ra=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,EventEmitter:n,styles:o,rnPasskey:A}=e.platform,[v,L]=Ce(e.fontsLoaded||!1),[X,y]=Ce(!1),[k,w]=Ce(!0),[f,c]=Ce(!1),[p,K]=Ce(""),[x,T]=Ce(!1),[V,W]=Ce(!1),[oe,$]=Ce(!1),[M,z]=Ce(!1),[le,ce]=Ce(""),[R,D]=Ce(""),[H,Ke]=Ce(null),[ne,Ie]=Ce(!1),[_,Te]=Ce(!1),[I,ee]=Ce(!1),[ie,rt]=Ce(""),[ae,ve]=Ce(""),[Ye,ge]=Ce([]),[Q,se]=Ce(0),[xe,fe]=Ce(null),{address:Ue,pk:et,chainId:Oe,vaultContract:me,signer:We,setVaultData:tt,setChainId:dt,setAddress:Qe,setPk:At,setProvider:$e,setSigner:O,setVaultContract:Y,vaultData:Ge}=Fe(),[S,G]=Ce(["","","",""]),[N,q]=Ce(["","","",""]),he=qn([]),we=qn([]);jn(()=>{let F=async()=>{if(t)u&&await Ne(u),L(!0);else{let C=Se(document);L(C)}};e.fontsLoaded||F()},[]),jn(()=>{let F=async()=>{e.setIsLoading&&e.setIsLoading(!0);let C=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(C?.status===0&&C?.response?.result?.length>0){let Lt=Number(C?.response?.result[0]);se(Lt)}if(e.vaultData?.existingCosignersHashed?.length>0){ge([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let re=aa[Oe]?.Custody;if(!re)return;let de=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Zn.Contract(re,de,e.vaultData?.signer))return;let ue=new Zn.Interface(de),Ct=ue.getEvent("NewParticipant").topicHash,ti=(await new oa(ke[Oe]?.rpcUrls[0])?.getLogs({address:re,fromBlock:ke[Oe]?.custodyContractBlock||0,toBlock:"latest",topics:[Ct]}))?.map(Lt=>{let Ft=ue.parseLog(Lt);return Ft?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Ft?.args?.creator!==Ft?.args?.participant?Ft?.args?.participant:null})?.filter(Lt=>Lt!==null);ge([...new Set(ti)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&F()},[e.isExistingUser,e.action,e.vaultData]);let Me=(F,C,B)=>{c(!1),K("");let re=F.replace(/\D/g,""),de=B?[...N]:[...S];de[C]=re,B?(q(de),re&&we.current[C+1]&&we.current[C+1].focus(),C<3&&de.every(Ae=>Ae!=="")&&S.every(Ae=>Ae!=="")&&de.join("")!==S.join("")&&(c(!0),K("Confirm Pin must match New Pin.")),C===3&&S.join("")!==de.join("")&&(c(!0),K("Confirm Pin must match New Pin."))):(G(de),re&&he.current[C+1]&&he.current[C+1].focus(),N.every(Ae=>Ae!=="")&&de.join("")!==N.join("")&&(c(!0),K("New Pin must match Confirm Pin.")))},st=async F=>{K(""),c(!1);try{let C=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let B=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:Kn,re=async(de,Ae,ue)=>{if(de.type==="VW:Passkey_Credential")if(de?.origin&&B?.toLowerCase()?.startsWith(de?.origin?.toLowerCase())){xe&&chrome.windows.remove(xe),Ae?.tab&&Ae?.tab?.windowId&&chrome.windows.remove(Ae.tab.windowId);let qe=de.data;if(qe?.id&&qe?.rawId){let Ct=Nt(qe?.rawId),Mt=Ve(Ct),yn={pinString:qe?.id,hashed:Mt,rawId:Ct,listener:re};await lt(yn)}else K(`Passkey creation failed: ${qe?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else K("Passkey creation failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(re),await chrome.windows.create({url:`${B}?id=${C}`,type:"popup",width:500,height:600}).then(de=>{fe(de.id)})}else{if(t&&!A.isSupported())return K("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0),null;let B=t?await A.create(mn("Verified Wallet",C,j(C),F)):await navigator?.credentials?.create({publicKey:mn("Verified Wallet",C,j(C))});if(B){let re=Ve(B?.rawId);return{pinString:B?.id,hashed:re,rawId:B?.rawId}}}return null}catch(C){return K(`Passkey creation failed: ${C?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0),null}},Gt=async F=>{if(K(""),c(!1),chrome?.windows?.create&&window){let C=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Bt,B=async(re,de,Ae)=>{if(re.type==="VW:Passkey_Credential")if(re?.origin&&C?.toLowerCase()?.startsWith(re?.origin?.toLowerCase())){xe&&chrome.windows.remove(xe),de?.tab&&de?.tab?.windowId&&chrome.windows.remove(de.tab.windowId);let ue=re.data;if(ue?.id&&ue?.rawId){let qe=Nt(ue?.rawId),Ct=Ve(qe),Mt={pinString:ue?.id,hashed:Ct,rawId:qe,listener:B};await lt(Mt)}else K(`Passkey authentication failed: ${ue?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else K("Passkey authentication failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(B),await chrome.windows.create({url:`${C}`,type:"popup",width:500,height:600}).then(re=>{fe(re.id)})}else try{if(t&&!A.isSupported()){K("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0);return}let C=t?await A.get(ft(F)):await navigator?.credentials?.get({publicKey:ft()}),B=Ve(C?.rawId);return{pinString:C?.id,hashed:B,rawId:C?.rawId}}catch(C){K(`Passkey authentication failed: ${C?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}},nt=(F,C,B,re)=>{let de=B.nativeEvent.key;!re&&de==="Backspace"&&!S[C]&&C>0&&he.current[C-1]&&he.current[C-1].focus(),re&&de==="Backspace"&&!N[C]&&C>0&&we.current[C-1]&&we.current[C-1].focus()},_e=()=>_?e.isExistingUser?S.every(F=>F!==""):S.every(F=>F!=="")&&N.every(F=>F!==""&&S.join("")===N.join("")):!0,je=()=>!!(I&&ae?.length===66&&ae?.toLowerCase()?.startsWith("0x")),lt=async F=>{if(F?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(F?.listener),!e.helperFunctions)K("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);else{K(""),c(!1);let C=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,B=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&_e()&&C&&B&&et&&Ue&&me||!e.isExistingUser&&_e()&&C&&B&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&_e()&&C&&B&&et&&Ue&&me||e.isExistingUser&&_e()&&C&&B&&e.vaultData?.vaultContract){e.setIsLoading(!0);let re=F?.pinString||S.join(""),de=j(C),Ae=F?.hashed||j(re);await Hn(e.eventEmitter,t,h,n,C,de,re,Ae,B,F?.pk?F?.pk:et||e.vaultData?.pk,F?.address?F?.address:Ue||e.vaultData?.address,F?.vaultContract?F?.vaultContract:me||e.vaultData?.vaultContract,e.action,F?.vaultData?F?.vaultData:e.vaultData,e.txData,F?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ye]:void 0,Q).then(async ue=>{e.setIsLoading(!1),ue?(tt(ue?.shouldStop&&ue?.vaultId?{vaultId:ue?.vaultId,hashedVaultId:ue?.hashedVaultId,hashedVaultPin:ue?.hashedVaultPin,pk:ue?.pk,rawId:ue?.rawId,channel:ue?.channel}:ue?.shouldStop?{}:ue),K(""),c(!1),e.action==="invitation"?(D(re),Ke(F?.rawId),W(!0)):e.action==="reset-pin"?(t?t&&h&&_&&await h.removeItem("myVault"):!t&&chrome?.storage?.local&&_?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&_&&localStorage.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(B,C,F?.hashed,e.vaultData.hashedVaultPin,Date.now()),ce(`You have successfully reset your account ${_?"4-Digits PIN":"Passkey"}. ${_?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),T(!0)):ue?.shouldStop?ue?.shouldStop&&e.action!=="getPk"?(ce(""),T(!0)):ue?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):ue===null?e.action==="reset-pin"?(K("Reset pin failed. Try again later."),c(!0)):(K(`You are an existing user. Please use the right ${_?"existing 4-Digits PIN":"existing Passkey for "+C} to recover your account login access on this device/browser`),c(!0)):(K("Unexpected error while handling account. Please try again later."),c(!0))})}else _e()||(K(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),c(!0))}},kn=async F=>{let C=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,B=e.userEmail?.length>0?"email":"sms";if(R?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&C||H&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&C){e.setIsLoading(!0);let re=j(C),de=_?j(R):Ve(H);await Ht(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,B,re,de,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,C,F,me).then(Ae=>{e.setIsLoading(!1),Ae&&!Ge?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(F?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):Ae&&Ge?.isExisting&&$(!0)})}};return d.createElement(g,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},v&&d.createElement(d.Fragment,null,!x&&!V&&d.createElement(d.Fragment,null,!I&&d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},_?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},_?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},_?"Change Pin":"Change Passkey"),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",_?"PIN":"Passkey",". This"," ",_?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(a,{style:{color:"#0C0C0E"}},_?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(a,{style:{color:"#0C0C0E"}},_?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!_&&d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),_&&d.createElement(d.Fragment,null,d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},S.map((F,C)=>d.createElement(b,{key:`pin-${C}`,style:t&&f?{...o.verifiedCustdMdlOtpInputRed}:t&&f?{...o.verifiedCustdMdlOtpInput}:{},className:f?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:k,keyboardType:"number-pad",maxLength:1,ref:B=>he.current[C]=B,value:S[C],onChangeText:B=>Me(B,C,!1),onKeyPress:B=>nt(B,C,B,!1)}))),e.isExistingUser&&d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!f&&d.createElement(a,null),f&&p===""&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),f&&p?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},p),!k&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>w(!0)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),k&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>w(!1)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))),!e.isExistingUser&&d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(a,{style:t?{...o.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},N.map((F,C)=>d.createElement(b,{key:`confirm-${C}`,style:t&&f?{...o.verifiedCustdMdlOtpInputRed}:t&&!f?{...o.verifiedCustdMdlOtpInput}:{},className:f?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:k,keyboardType:"number-pad",maxLength:1,ref:B=>we.current[C]=B,value:N[C],onChangeText:B=>Me(B,C,!0),onKeyPress:B=>nt(B,C,B,!0)}))),d.createElement(i,{style:t?{...o.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!f&&d.createElement(a,null),f&&p===""&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),f&&p?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},p),!k&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>w(!0)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinShow}})),k&&d.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>w(!1)},d.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.pinHide}})))))),!ne&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!_&&d.createElement(d.Fragment,null,f&&p?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},p),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!_&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async F=>{if(e.action==="reset-pin"){let C=await st(e?.passKeyRpId);C&&await lt(C)}else{let C=await Gt(e?.passKeyRpId);C&&await lt(C)}}},e.action==="reset-pin"&&d.createElement(a,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(a,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t?{...o.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",disabled:X,onPress:async F=>{if(!X){y(!0);try{if(!e.helperFunctions){K("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);return}let C=await st(e?.passKeyRpId);C&&await lt(C)}finally{y(!1)}}}},d.createElement(a,null,"Create New Account")),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...o.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...o.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...o.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(i,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...o.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(l,{style:t?{...o.verifiedCustdMdlStartupButtonClick}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async F=>{ee(!0)}},d.createElement(a,null,"Import An Existing account")))),_&&d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t&&_e()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!_e()?{...o.verifiedCustdMdlStartupButton}:{},className:_e()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async F=>{await lt()}},d.createElement(a,null,"Proceed"))))),I&&d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent,display:"flex",flexDirection:"row",overflow:"hidden"}:{display:"flex",flexDirection:"row",overflow:"hidden"},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText,width:"80%"}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"),d.createElement(l,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{K(""),c(!1),ee(!1)}},d.createElement(s,{source:{uri:E.closeIcon},alt:"Close",style:t?{...o.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"})))),d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(b,{style:t?{...o.verifiedCustdMdlStContactSecondSection,marginTop:10,marginBottom:10}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:ae,onChangeText:F=>{ve(F)}}),ie?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ie)),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!ne&&d.createElement(i,{style:{height:20}}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(i,{style:t?{...o.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},f&&p?.length>0&&d.createElement(a,{style:t?{...o.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},p),d.createElement(l,{id:"verified-custd-mdl-otp-button",style:t&&je()?{...o.verifiedCustdMdlStartupButtonActive}:t&&!je()?{...o.verifiedCustdMdlStartupButton}:{},className:je()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",disabled:X,onPress:async F=>{if(!X){y(!0);try{if(!je()){c(!0),K("Invalid private key entered. Please scroll up, check private key and try again.");return}let C=await it(Oe,ae);if(!C?.chainId||!C?.address||!C?.pk||!C?.provider||!C?.signer||!C?.vaultContract){c(!0),K("Invalid private key entered. Please check private key starts with 0x and try again.");return}dt(C.chainId),Qe(C.address),At(C.pk),$e(C.provider),O(C.signer),tt(C.vaultData),Y(C.vaultContract);let B=await st(e?.passKeyRpId);B&&await lt({...B,pk:C.pk,vaultContract:C.vaultContract,signer:C.signer,address:C.address,vaultData:C.vaultData})}catch{c(!0),K("Error while importing account.try again later.");return}finally{y(!1)}}}},d.createElement(a,null,"Proceed With Passkey")))))),!x&&V&&d.createElement(d.Fragment,null,!oe&&d.createElement(i,{className:"verified-custd-mdl-startup-language",style:t?{...o.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(i,{style:t?{...o.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...o.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(s,{style:t?{...o.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1}}),!M&&d.createElement(g,null,d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...o.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"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."),d.createElement(i,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(s,{source:{uri:E.pkicon}})),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(s,{source:{uri:E.encryptedIcon}})),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>z(!0)},d.createElement(a,null,"Reject")),d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await kn(!0)}},d.createElement(a,null,"Accept")))),M&&d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(a,{style:t?{...o.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(i,{style:t?{...o.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await kn(!1)}},d.createElement(a,null,"Yes")),d.createElement(l,{style:t?{...o.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>z(!1)},d.createElement(a,null,"No"))))))),oe&&d.createElement(De,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:M?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`,eventEmitter:e.eventEmitter})),x&&d.createElement(De,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:le?.length>0?le:"You have successfully logged in your account.",eventEmitter:e.eventEmitter})),!v&&d.createElement(a,null,"Loading Module Fonts..."))},Yt=ra;import r,{useEffect as zn,useState as pe}from"react";import{ethers as ei}from"ethers";import{contractAddress as da,Provider as sa}from"@verified-network/verified-sdk";var la=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n}=e.platform,[o,A]=pe(e.fontsLoaded||!1),[v,L]=pe(!1),[X,y]=pe(!1),[k,w]=pe("1"),[f,c]=pe("1"),[p,K]=pe(!1),[x,T]=pe("email"),[V,W]=pe(""),[oe,$]=pe(""),[M,z]=pe(""),[le,ce]=pe(""),[R,D]=pe(""),[H,Ke]=pe(!1),[ne,Ie]=pe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[_,Te]=pe([]),[I,ee]=pe(0),[ie,rt]=pe([]),[ae,ve]=pe([]),[Ye,ge]=pe(!1),[Q,se]=pe(2),[xe,fe]=pe(""),[Ue,et]=pe(!1),{pk:Oe,vaultData:me,vaultContract:We,chainId:tt,signer:dt}=Fe();zn(()=>{let O=async()=>{if(t)try{let Y=await Ne(u);A(!0)}catch{A(!1)}else{let Y=Se(document);A(Y)}};e.fontsLoaded||O()},[]),zn(()=>{let O=async()=>{e.setIsLoading&&e.setIsLoading(!0);let Y=j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ge=await We.getQuorum(Y);if(Ge?.status===0&&Ge?.response?.result?.length>0){let _e=Number(Ge?.response?.result[0]);ee(_e),ve(new Array(_e).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),me?.existingCosignersHashed?.length>0){rt([...new Set(me?.existingCosignersHashed)]),ve([...new Set(me?.existingCosignersHashed)]);return}let G=da[tt]?.Custody;if(!G)return;let N=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new ei.Contract(G,N,dt))return;let he=new ei.Interface(N),Me=he.getEvent("NewParticipant").topicHash,nt=(await new sa(ke[tt]?.rpcUrls[0])?.getLogs({address:G,fromBlock:ke[tt]?.custodyContractBlock||0,toBlock:"latest",topics:[Me]}))?.map(_e=>{let je=he.parseLog(_e);return je?.args?.creator?.toLowerCase()===j(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&je?.args?.creator!==je?.args?.participant?je?.args?.participant:null})?.filter(_e=>_e!==null);rt([...new Set(nt)]),ve([...new Set(nt)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&dt&&We||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&dt&&We)&&O()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let Qe=()=>{},At=()=>{let O=_?.length;if(x==="sms"&&V?.length===0){fe("Invalid input, please check the phone number");return}else if(x==="sms"&&V?.length!==10){fe("Invalid input, please check the phone number");return}else if(x==="email"&&M?.length===0){fe("Invalid input, please check the email");return}else if(x==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(M)){fe("Invalid input, please check the email");return}else if(_?.find(Y=>Y?.otpChannel==="sms"?Y?.phoneArea?.toLowerCase()+Y?.number?.toLowerCase()===ne.area?.toLowerCase()+oe?.toLowerCase():Y?.email?.toLowerCase()===M?.toLowerCase())){e.action!=="remove-cosigner"&&fe(x==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&fe(x==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(x==="sms"&&ne?.area?.toLowerCase()+oe?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){fe("Invalid input, phone number is creator's phone number");return}else if(x==="email"&&M?.toLowerCase()===e.userEmail?.toLowerCase()){fe("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&ie?.length===0){fe("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!ie?.includes(j(x==="sms"?`+${ne?.area}${V}`:M))){fe(x==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&ae?.length===1){fe("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(O+1===5){fe("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}fe(""),Te(Y=>[{name:le,email:M,number:oe,phoneNumber:`+${ne?.area}${V}`,otpChannel:x,phoneArea:ne?.area,position:Y?.length+1,vaultId:x==="sms"?`+${ne?.area}${V}`:M},...Y]),z(""),ce(""),W(""),$(""),D(""),O+1===4&&K(!1),e.action==="remove-cosigner"&&ae?.length>1&&ve(ae?.filter(Y=>Y!==j(x==="sms"?`+${ne?.area}${V}`:M)))},$e=async()=>{e.setIsLoading(!0);let O=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:me?.vaultId},..._]:[me?.hashedVaultId,...ae];e.action!=="remove-cosigner"&&O?.length>0&&_?.length>0&&Q&&me?.vaultId&&me?.hashedVaultId&&We&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&O?.length>1&&Q&&me?.vaultId&&me?.hashedVaultId&&We&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation?(e.setIsLoading(!0),await Jn(t,e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,O,_,e?.userEmail?.length>0?"email":"sms",Q,me.vaultId,me.hashedVaultId,me.vaultPin,me.hashedVaultPin,We,Oe,me?.rawId,e.action).then(Y=>{e.setIsLoading(!1),Y&&(e.action==="remove-cosigner"?et(!0):e.setStep("7"))})):e.setIsLoading(!1)};return r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},o&&!Ue&&r.createElement(r.Fragment,null,!X&&r.createElement(r.Fragment,null,f==="1"&&r.createElement(r.Fragment,null,r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon1},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.pkicon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.encryptedIcon},alt:"icon"})),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},r.createElement(s,{source:{uri:E.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},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."),e.action==="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{w("1"),y(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Learn More")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{c("2"),K(!1),y(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),f==="2"&&r.createElement(r.Fragment,null," ",r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},r.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},r.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),r.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ye&&r.createElement(r.Fragment,null,r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},I," required signers"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",_?.length+1<5?_?.length+1:5,"/5)"),e.action==="remove-cosigner"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",_?.length,"/5)")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&ae?.includes(" ")&&r.createElement(a,{style:t?{...n.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ye&&_.sort((O,Y)=>O?.position-Y?.position).map((O,Y)=>r.createElement(i,{key:Y,style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},bt[O?.position]?.split(" ")[0],r.createElement(a,null,r.createElement(a,{style:{fontSize:10}},bt[O?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},O?.name),O.otpChannel==="email"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},O.email),O.otpChannel==="sms"&&r.createElement(a,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",O?.phoneArea,") ",O.number))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},r.createElement(l,{style:{background:"transparent",width:24,height:24},onPress:()=>{Te(Ge=>Ge?.filter(S=>S?.otpChannel==="sms"?S?.phoneArea?.toLowerCase()+S?.number?.toLowerCase()!==O?.phoneArea?.toLowerCase()+O?.number?.toLowerCase():S?.email?.toLowerCase()!==O?.email?.toLowerCase())?.map((S,G)=>(S.position=G+1,S))),Qe()}},r.createElement(s,{style:{cursor:"pointer",width:24,height:24},source:{uri:E.delete}}))))))),Ye&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},r.createElement(i,{style:{width:"100%",display:"flex",flexDirection:"row",overflow:"hidden"}},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),r.createElement(l,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{ge(!1)}},r.createElement(s,{source:{uri:E.closeIcon},alt:"Close",style:t?{...n.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"}))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},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.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?ae?.length+1:_?.length+1).fill("1").map((O,Y)=>r.createElement(i,{key:Y,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:Y+1===Q&&t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:Y+1===Q&&!t?{}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(Y+1))),r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:E.pointer}})))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&r.createElement(i,{style:t&&_?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/_?.length}%`}:!t&&_?.length===1?{width:`${100/_?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/_?.length+5}%`}:{width:`calc(${100/_?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})),e.action==="remove-cosigner"&&r.createElement(i,{style:t&&ae?.length===1?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ae?.length}%`}:!t&&ae?.length===1?{width:`${100/ae?.length}%`}:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ae?.length+5}%`}:{width:`calc(${100/ae?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:E.sliderDot}})))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?ae?.length+1:_?.length+1).fill("1").map((O,Y)=>r.createElement(l,{style:{background:"transparent"},key:Y,onPress:()=>{Y+1>1&&se(Y+1)}},e.action!=="remove-cosigner"&&r.createElement(a,{style:t&&Y===_?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===_?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1)),e.action==="remove-cosigner"&&r.createElement(a,{style:t&&Y===ae?.length?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...n.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===ae?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1))))))),r.createElement(l,{id:"confirm-cosigner-button",style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",disabled:v,onPress:async()=>{if(!v){L(!0);try{await $e()}finally{L(!1)}}}},r.createElement(a,null,"Confirm"))))),p&&_?.length<4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},bt[_?.length+1]?.split(" ")[0],r.createElement(a,{style:{fontSize:10}},bt[_?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},r.createElement(b,{onChangeText:ce,value:le,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{T("sms"),fe(""),z("")}},r.createElement(s,{source:{uri:x==="sms"?E.selectClicked:E.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{T("email"),fe(""),W(""),$(""),D("")}},r.createElement(s,{source:{uri:x==="email"?E.selectClicked:E.select},style:{width:24,height:24}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},x==="sms"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},r.createElement(l,{onPress:()=>Ke(!H),style:t?{...n.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},r.createElement(s,{source:{uri:ne.flag},style:{width:24,height:16},alt:"Country Flag"}),r.createElement(a,{style:t?{...n.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",ne.area),H?r.createElement(s,{source:{uri:E.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):r.createElement(s,{source:{uri:E.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),r.createElement(b,{onChangeText:O=>{D(O===""?R+" ":O);let Y=O.replace(/\D/g,"");W(Y);let Ge="";for(let S=0;S<Y.length;S++)Ge+=Y[S],(S+1)%5===0&&S+1<Y.length&&(Ge+=" ");$(Ge),fe("")},onBlur:Qe,value:oe,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...n.verifiedCustdMdlStContactSecondSection}:{}})),H&&r.createElement($t,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Qe,setSelected:Ie,selected:ne,searchActive:H,setSearchActive:Ke,contentMaxHeight:300,contentbottomMargin:300}),xe===""&&V.length!==10&&R.length>10&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),xe!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},xe))),x==="email"&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},r.createElement(b,{style:t?{...n.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:O=>{z(O),fe("")},onBlur:Qe,value:M,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),xe!==""&&r.createElement(i,{style:t?{...n.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},r.createElement(a,{style:t?{...n.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},xe)))),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>K(!1)},r.createElement(a,null,"Cancel")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{At(),Qe()}},r.createElement(a,null,"Add")))),!p&&!Ye&&_?.length<4&&r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",height:20,marginBottom:10}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>K(!0)},r.createElement(s,{source:{uri:E.addIcon},style:{width:20,height:20}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?"Add Co-Signer to remove":"Add another Co-Signer")),!p&&!Ye&&_?.length===4&&r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},r.createElement(s,{source:{uri:E.addDisableIcon},style:{width:20,height:20}}),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ye&&r.createElement(l,{className:_?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&_?.length>0?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&_?.length===0?{...n.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&_?.length>0&&!p&&_?.length<4?{...n.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&_?.length===0&&!p&&_?.length<4?{...n.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!p&&_?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{_?.length>0&&(se(2),ge(!0),K(!1))}},r.createElement(a,{style:n.buttonText},"Proceed")))),X&&r.createElement(r.Fragment,null,k==="1"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon2},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},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.")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>y(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{onPress:()=>w("2"),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),k==="2"&&r.createElement(r.Fragment,null,r.createElement(s,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:E.addCoSignerIcon3},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},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")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>w("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>w("3"),className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Next")))),k==="3"&&r.createElement(r.Fragment,null,r.createElement(s,{style:t?{...n.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:E.addCoSignerIcon4},alt:""}),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),r.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),r.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},r.createElement(l,{style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>w("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},r.createElement(a,null,"Back")),r.createElement(l,{onPress:()=>{c("2"),K(!1),y(!1),w("1")},style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},r.createElement(a,null,"Start")))))),o&&Ue&&r.createElement(De,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),!o&&r.createElement(a,null,"Loading Module Fonts..."))},vt=la;import m,{useEffect as ca,useRef as ua,useState as ye}from"react";import{ethers as fa}from"ethers";var ga=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,TextInput:b,TouchableOpacity:l,StyleSheet:P,Font:u,AsyncStorage:h,styles:n,rnPasskey:o}=e.platform,[A,v]=ye(e.fontsLoaded||!1),[L,X]=ye(!1),[y,k]=ye(!1),[w,f]=ye(!0),[c,p]=ye(!1),[K,x]=ye(!1),[T,V]=ye(null),[W,oe]=ye(null),[$,M]=ye(e.newChainId||8453),[z,le]=ye(!1),[ce,R]=ye(!1),[D,H]=ye(!1),[Ke,ne]=ye(!1),[Ie,_]=ye(!1),[Te,I]=ye(""),[ee,ie]=ye(!1),[rt,ae]=ye({}),[ve,Ye]=ye(["","","",""]),ge=ua([]),[Q,se]=ye(!1),[xe,fe]=ye(null),{setChainId:Ue,setAddress:et,setPk:Oe,setProvider:me,setSigner:We,setVaultContract:tt,setVaultData:dt}=Fe();ca(()=>{let S=async()=>{if(t)u&&await Ne(u),v(!0);else{let G=Se(document);v(G)}};e.fontsLoaded||S()},[]);let Qe=(S,G)=>{if(S.length>1){let N=S.replace(/\D/g,""),q=[...ve],he=0;for(let Me=G;Me<ve.length&&he<N.length;Me++)q[Me]=N[he],he++;Ye(q);let we=G+N.length;we<ve.length&&ge.current[we]&&ge.current[we].focus(),k(!1)}else{let N=S.replace(/\D/g,""),q=[...ve];q[G]=N,Ye(q),N&&ge.current[G+1]&&ge.current[G+1].focus(),k(!1)}},At=(S,G,N)=>{N.nativeEvent.key==="Backspace"&&!ve[G]&&G>0&&ge.current[G-1]&&ge.current[G-1].focus()},$e=ve.every(S=>S.length>0),O=async S=>{if(e.setIsLoading(!0),S?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(S?.listener),!e.helperFunctions)I("No Helper Functions. Please include all helper functions in the EnterPinPage props."),k(!0),e.setIsLoading(!1);else if(I(""),k(!1),Q&&$e&&e.hashedVaultId&&e.encrptedPk||!Q&&e.hashedVaultId&&e.encrptedPk&&S){e.setIsLoading(!0);let G=S?.pinString?S?.pinString:ve.join("");await On(t,e.vaultId,e.hashedVaultId,G,S?.hashed?S?.hashed:j(G),e.encrptedPk,e.vaultAddress,e.vaultChannel,Number($),vn?.includes(e.origin?.toLowerCase())?!0:!!t,null,S?.rawId).then(async N=>{if(N&&!N?.inCompleteVault)e.setIsLoading(!1),V(N),oe(N?.pk&&e.action!=="eth_requestAccounts"?{address:N.address,channel:N.channel,chainId:N.chainId,pk:N?.pk}:{address:e.regAddress,channel:N.channel,chainId:N.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Rn(t,e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,S?.hashed?S?.hashed:j(G),e.vaultId,G,e.encrptedPk,e.vaultChannel,Number($),S?.rawId).then(async q=>{e.setIsLoading(!1),t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),q?x(!0):(I("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),k(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await Un(t,e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,S?.hashed?S?.hashed:j(G),e.vaultId,G,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,Number($),S?.rawId).then(async q=>{e.setIsLoading(!1),t?t&&h&&!e.reqTxData?.newUser&&!e.vaultAddress&&await h.removeItem("myVault"):!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),q?x(!0):(I("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."),k(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Wn(t,h,e.hashedVaultId,S?.hashed?S?.hashed:j(G),e.vaultId,G,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,Number($),S?.rawId).then(async q=>{e.setIsLoading(!1),q?x(!0):(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),k(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement?(ae({chainId:$,ky:Q?fa.encodeBytes32String(N?.pin):"",rawId:Q?"":S?.rawId,...e.txToSign}),R(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(I(""),k(!1),R(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(I(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),k(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(I(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),k(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),k(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&h&&await h.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),I(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),k(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(I("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),k(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(I("Incomplete account login detected. Logout and try again later"),k(!0)):(I(""),k(!1),x(!0));else if(N&&N?.inCompleteVault&&N?.pk){let q=await it(Number($),N?.pk);if(Ue(q.chainId),et(q.address),Oe(q.pk),me(q.provider),We(q.signer),tt(q.vaultContract),dt({vaultId:N?.vaultId,hashedVaultId:N?.hashedVaultId,vaultPin:N?.pin,hashedVaultPin:Q?j(N?.pin):Ve(N?.rawId),vaultContract:q.vaultContract,rawId:N?.rawId}),N?.channel?.toLowerCase()==="sms"){let he=N?.vaultId?.replace(N?.vaultId?.slice(-10),""),we=N?.vaultId?.slice(-10)?.slice(0,5)+" "+N?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:he?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(we),e.setUserEmail("")}else e.setUserEmail(N?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else I(Q?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),k(!0),e.setIsLoading(!1)})}else!Q&&!S&&(I("Unexpected error with selected passkey. Try again later"),k(!0),e.setIsLoading(!1)),Q&&!$e&&(I("Input your 4-Digits PIN to login."),k(!0),e.setIsLoading(!1))},Y=async S=>{let G=e.vaultId;if(T?.pin?.length>0&&T?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&G&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let N=T.pin,q=j(G),he=Q?j(N):Ve(T.rawId);await Ht(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,q,he,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,G,S,null,T.pk,Number($)).then(we=>{e.setIsLoading(!1),we&&(_(S),H(!0))})}},Ge=async S=>{if(I(""),k(!1),chrome?.windows?.create){let G=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Bt,N=async(q,he,we)=>{if(q.type==="VW:Passkey_Credential")if(q?.origin&&G?.toLowerCase()?.startsWith(q?.origin?.toLowerCase())){xe&&chrome.windows.remove(xe),he?.tab&&he?.tab?.windowId&&chrome.windows.remove(he.tab.windowId);let Me=q.data;if(Me?.id&&Me?.rawId){let st=Nt(Me?.rawId),Gt=Ve(st),nt={pinString:Me?.id,hashed:Gt,rawId:st,listener:N};nt&&await O(nt)}else I(`Passkey authentication failed: ${Me?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0)}else I("Passkey authentication failed: invalid passkey origin. Try again later"),k(!0)};chrome.runtime.onMessage.addListener(N),await chrome.windows.create({url:`${G}`,type:"popup",width:500,height:600}).then(q=>{fe(q.id)})}else try{if(t&&!o.isSupported()){I("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),k(!0);return}let G=t?await o.get(ft(S)):await navigator?.credentials?.get({publicKey:ft()}),N=Ve(G?.rawId);return{pinString:G?.id,hashed:N,rawId:G?.rawId}}catch(G){I(`Passkey authentication failed: ${G?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),k(!0)}};return m.createElement(m.Fragment,null,A&&!ce&&!ee&&m.createElement(m.Fragment,null,!K&&m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},m.createElement(Be,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},m.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},Q?"Enter PIN":"Sign-in with Existing Passkey")),m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},m.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",m.createElement(a,{style:{color:"#0C0C0E"}},Q?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",m.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&m.createElement(a,{style:t?{...n.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),Q&&m.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},m.createElement(i,{style:t?{...n.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},ve.map((S,G)=>m.createElement(b,{key:G,ref:N=>ge.current[G]=N,className:y?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&y?{...n.verifiedCustdMdlOtpInputRed}:t&&!y?{...n.verifiedCustdMdlOtpInput}:{},secureTextEntry:w,maxLength:1,value:ve[G],onChangeText:N=>Qe(N,G),onKeyPress:N=>At(N,G,N),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${G}`}))),m.createElement(i,{style:t?{...n.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},y&&!Te&&m.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),y&&Te&&m.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},Te),!y&&m.createElement(a,null),w?m.createElement(l,{onPress:()=>f(!1),style:{backgroundColor:"transparent"}},m.createElement(s,{style:{width:24,height:24},source:{uri:E.pinHide}})):m.createElement(l,{onPress:()=>f(!0),style:{backgroundColor:"transparent"}},m.createElement(s,{style:{width:24,height:24},source:{uri:E.pinShow}})))),!Q&&m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},m.createElement(i,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle,fontSize:U(t,"14px")}:{fontSize:U(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:U(t,"12px")}:{fontSize:U(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),m.createElement(l,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!c&&m.createElement(i,{style:{height:20}}),m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},m.createElement(i,{style:t?{...n.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},m.createElement(In,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),Q&&m.createElement(l,{onPress:async()=>await O(),style:t&&$e&&!y?{...n.verifiedCustdMdlStartupButtonActive}:t&&$e&&y?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&!y?{...n.verifiedCustdMdlStartupButton}:t&&!$e&&y?{...n.verifiedCustdMdlStartupButton}:{},className:$e&&!y?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},m.createElement(a,null,"Proceed")),!Q&&m.createElement(m.Fragment,null,y&&Te?.length>0&&m.createElement(a,{style:t?{...n.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},Te),m.createElement(l,{style:t?{...n.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},disabled:L,onPress:async()=>{if(!L){X(!0);try{let S=await Ge(e?.passKeyRpId);S&&await O(S)}finally{X(!1)}}},className:"verified-custd-mdl-startup-button-active"},m.createElement(a,null,"Login With Passkey")))))),K&&m.createElement(De,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:W},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: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:"",eventEmitter:e.eventEmitter})),A&&ce&&!ee&&m.createElement(m.Fragment,null,!D&&m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},m.createElement(Be,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),m.createElement(i,{style:t?{...n.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},m.createElement(a,{style:t?{...n.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},m.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),m.createElement(l,{style:{backgroundColor:"transparent",width:"100%"}},m.createElement(s,{style:{height:250,width:"90%"},source:{uri:E.addCoSignerIcon1}})),Ke?m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",m.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},m.createElement(l,{onPress:async()=>await Y(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"Yes")),m.createElement(l,{onPress:()=>ne(!1),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"No")))))):m.createElement(m.Fragment,null,m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},m.createElement(s,{source:{uri:E.pkicon}})),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},m.createElement(s,{source:{uri:E.encryptedIcon}})),m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",m.createElement(a,{style:t?{...n.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),m.createElement(i,{style:t?{...n.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},m.createElement(l,{onPress:()=>ne(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},m.createElement(a,null,"Reject")),m.createElement(l,{onPress:async()=>await Y(!0),style:t?{...n.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"Accept"))))),D&&m.createElement(De,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:T},customTextHeader:"Successful",customTextFooter:Ie?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`,eventEmitter:e.eventEmitter})),A&&!ce&&ee&&m.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:rt}),!A&&m.createElement(a,null,"Loading Module Fonts..."))},Pt=ga;var Ca=e=>{let{isReactNative:t,View:i,Text:a,Image:s,ScrollView:g,StyleSheet:b,Font:l,AsyncStorage:P}=e?.platform,[u,h]=Xe(e.fontsLoaded||!1),[n,o]=Xe(e.showLogoPage||!1),[A,v]=Xe([]),[L,X]=Xe("2"),[y,k]=Xe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[w,f]=Xe(""),[c,p]=Xe(""),[K,x]=Xe(!1),[T,V]=Xe(""),[W,oe]=Xe(""),[$,M]=Xe(""),[z,le]=Xe(""),[ce,R]=Xe(null),[D,H]=Xe(null),[Ke,ne]=Xe(!1),{setChainId:Ie,setAddress:_,setPk:Te,setProvider:I,setSigner:ee,setVaultContract:ie,setVaultData:rt,vaultData:ae,chainId:ve,vaultContract:Ye}=Fe();return Ot(()=>{let ge=async()=>{if(t)l&&await Ne(l),h(!0);else{let Q=Se(document);h(Q)}};e.fontsLoaded||ge()},[]),Ot(()=>{let ge=async()=>{let Q;t?t&&P&&(Q=P.getItem("lastPk")):!t&&chrome?.storage?.local?Q=await new Promise(xe=>{chrome.storage.local.get(["lastPk"],fe=>{xe(fe.lastPk)})}):!t&&localStorage&&(Q=localStorage.getItem("lastPk"));let se=await it(e.chainId,Q&&Q?.length>0?Q:void 0);Ie(se.chainId),_(se.address),Te(se.pk),I(se.provider),ee(se.signer),rt(se.vaultData),se.vaultContract?.contractAddress?ie(se.vaultContract):ie(void 0)};Ye?.contractAddress||ge()},[Ye]),Ot(()=>{ma(()=>{o(!1)},e.logoTimeoutTime??3e3)()},[]),Ot(()=>{(()=>{let Q=Dt.map(se=>{if(se)return{name:se.name,countryName:se.name,officialName:se.name,currencySymbol:se.currency,currencyName:se.currency,officialCurrencySymbol:se.currency,countryCode:se.code,flag:se.flag,continent:se.continent,phone_code:se.phone_code,code:se.code}}).filter(Boolean);v(Q)})()},[]),be.createElement(g,{style:{padding:20,width:"100%",heigth:"100%"}},u&&n&&e.logoPageElement&&be.createElement(i,null,e.logoPageElement),u&&!n&&be.createElement(i,{style:{width:"100%",heigth:"100%"}},L==="2"&&be.createElement(Cn,{platform:e.platform,fontsLoaded:u,setStep:X,setIsLoading:e.setIsLoading,setUserNumberFmt:f,userNumberFmt:w,setUserEmail:p,userEmail:c,setSelectedCountry:k,selectedCountry:y,allCountries:A,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),L==="3"&&be.createElement(pn,{platform:e.platform,fontsLoaded:u,setStep:X,setIsLoading:e.setIsLoading,userNumberFmt:w,setUserNumberFmt:f,setUserEmail:p,userEmail:c,selectedCountry:y,helperFunctions:e.helperFunctions,setIsExistingUser:ne}),L==="4"&&be.createElement(Yt,{platform:e.platform,fontsLoaded:u,setStep:X,setIsLoading:e.setIsLoading,setShowSuccessBtn:x,setSuccessBtnText:V,setSuccessBtnNeutText:oe,setSuccessBtnFunc:R,setSuccessBtnNeutFunc:H,userNumberFmt:w,userEmail:c,selectedCountry:y,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:M,setActionFooterText:le,helperFunctions:e.helperFunctions,isExistingUser:Ke,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter}),L==="5"&&be.createElement(De,{platform:e.platform,setStep:X,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:K,buttonText:T,buttonNeutText:W,buttonFunc:ce,buttonNeutFunc:D,actionHeaderText:$,actionFooterText:z,eventEmitter:e.eventEmitter}),L==="6"&&be.createElement(vt,{platform:e.platform,fontsLoaded:u,setStep:X,setIsLoading:e.setIsLoading,userNumberFmt:w,userEmail:c,selectedCountry:y,allCountries:A,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner,eventEmitter:e.eventEmitter}),L==="7"&&e.action===""&&be.createElement(De,{platform:e.platform,action:e.action,setStep:X,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),L==="7"&&e.action!==""&&be.createElement(De,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:ve}}:{type:e.action?e.action:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),L==="8"&&e.dashbordElement&&be.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),L==="8"&&!e.dashbordElement&&be.createElement(be.Fragment,null),L==="0"&&be.createElement(Pt,{platform:e.platform,fontsLoaded:u,vaultId:ae?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:ae?.hashedVaultId,encrptedPk:ae?.pk,vaultAddress:ae?.address,vaultChannel:ae?.channel,actionText:xt.getPk,setIsLoading:e.setIsLoading,newChainId:Number(ve||e.chainId),action:"getPk",reqVaultData:ae,reqTxData:e.txData?Object.keys(e.txData)?.map(ge=>(e.txData[ge]=decodeURIComponent(e.txData[ge]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:p,setUserNumberFmt:f,setSelectedCountry:k,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter})),!u&&be.createElement(i,{style:{padding:20,width:"100%",heigth:"100%"}},be.createElement(a,null,"Loading Module Fonts...")))},hn=Ca;var pa=e=>{let[t,i]=Pe(!1),[a,s]=Pe({}),[g,b]=Pe(!1),[l,P]=Pe(null),[u,h]=Pe({}),[n,o]=Pe({}),[A,v]=Pe(!1),[L,X]=Pe(!1),[y,k]=Pe(!1),[w,f]=Pe(!1),[c,p]=Pe(!1),[K,x]=Pe(""),[T,V]=Pe([]),[W,oe]=Pe(""),[$,M]=Pe(e.defaultCountry||{area:"1",flag:E.usaFlag,name:"United States"}),[z,le]=Pe(""),[ce,R]=Pe("");Jt(()=>{(async()=>{await dn();let ee=sn();ee&&(s(ee),i(!0))})()},[]);let{isReactNative:D,View:H,Text:Ke,Font:ne,AsyncStorage:Ie,ActivityIndicator:_,styles:Te}=a;return Jt(()=>{!g&&t&&(async()=>{if(D)ne&&await Ne(ne),b(!0);else{let ee=Se(document);b(ee)}})()},[t,g]),Jt(()=>{t&&(async()=>{if(D){if(D&&Ie)try{let ee=await Ie.getItem("myVault");if(ee){let ie=JSON.parse(ee);if(ie?.vaultId){h(ie),P(!0);return}}P(!1)}catch(ee){console.error("Error reading vault data on react:",ee),P(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ee=>{ee.myVault&&JSON.parse(ee.myVault)?.vaultId?(h(JSON.parse(ee.myVault)),P(!0)):P(!1)});else if(localStorage){let ee=JSON.parse(localStorage.getItem("myVault"));ee&&ee?.vaultId?(h(ee),P(!0)):P(!1)}else P(!1)})()},[t]),Jt(()=>{(()=>{let ee=Dt.map(ie=>ie?{name:ie?.name,countryName:ie?.name,officialName:ie?.name,currencySymbol:ie?.currency,currencyName:ie?.currency,officialCurrencySymbol:ie?.currency,countryCode:ie?.code,flag:ie?.flag,continent:ie?.continent,phone_code:ie?.phone_code,code:ie?.code}:null).filter(ie=>ie!=null);V(ee)})()},[]),Z.createElement(Z.Fragment,null,t&&Z.createElement(Z.Fragment,null,g&&Z.createElement(ln,null,A&&Z.createElement(H,{style:D?{...Te.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},Z.createElement(_,{size:"large",color:"blue"})),Z.createElement(H,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:D?{...Te.verifiedCustdMdlContainer}:{}},l===null&&e.delayPageElement&&Z.createElement(Z.Fragment,null,e.delayPageElement),l===null&&!e.delayPageElement&&Z.createElement(H,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),l!==null&&Z.createElement(Z.Fragment,null,!l&&!L&&Z.createElement(hn,{platform:a,fontsLoaded:g,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:P,setIsLoading:v,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:X,setShowResetPin:f,setShowRemoveCosigner:p,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter}),l&&!L&&!y&&Z.createElement(Pt,{platform:a,fontsLoaded:g,setisOnboard:P,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,vaultChannel:u?.channel,regAddress:u?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||xt[e.action],setIsLoading:v,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:X,setShowResetPin:f,setShowRemoveCosigner:p,setShowCompleteVault:k,setUserEmail:R,setUserNumberFmt:le,setSelectedCountry:M,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),l&&L&&y&&Z.createElement(Pt,{platform:a,fontsLoaded:g,setisOnboard:P,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,regAddress:u?.regAddress,vaultChannel:u?.channel,origin:e.origin,title:e.title,actionText:e.actionText||xt[e.action],setIsLoading:v,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:j(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(I=>(e.txData[I]=decodeURIComponent(e.txData[I]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,helperFunctions:e.helperFunctions,setShowDashboard:X,setShowResetPin:f,setShowRemoveCosigner:p,setShowCompleteVault:k,setUserEmail:R,setUserNumberFmt:le,setSelectedCountry:M,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId}),l&&!L&&y&&W===""&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:g,setStep:oe,setIsLoading:v,userNumberFmt:z,userEmail:ce,selectedCountry:$,allCountries:T,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:X,setShowResetPin:f,setShowRemoveCosigner:p,eventEmitter:e.eventEmitter})),l&&!L&&y&&W==="7"&&Z.createElement(De,{platform:a,action:e.action,setStep:oe,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{f(!1),p(!1),X(!0)},buttonFunc:()=>{f(!1),p(!1),X(!0)},eventEmitter:e.eventEmitter}),l&&!L&&y&&W==="8"&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:v}),l&&!L&&y&&W==="8"&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),!y&&L&&!w&&!c&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:v,setShowResetPin:f,setShowRemoveCosigner:p,setAction:x,setUserNumberFmt:le,setUserEmail:R,setSelectedCountry:M,setVaultData:o,initWalletAndContract:it,useVaultStore:Fe}),l&&!y&&L&&!w&&!c&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),l&&!y&&!c&&L&&w&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(Yt,{platform:a,fontsLoaded:g,action:"reset-pin",setStep:oe,setIsLoading:v,userNumberFmt:z,userEmail:ce,vaultData:n,selectedCountry:$,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter})),l&&!y&&L&&!w&&c&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:g,action:"remove-cosigner",setStep:oe,setIsLoading:v,userNumberFmt:z,userEmail:ce,selectedCountry:$,allCountries:T,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:X,setShowResetPin:f,setShowRemoveCosigner:p,eventEmitter:e.eventEmitter}))))),!g&&Z.createElement(Ke,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&Z.createElement(Z.Fragment,null,"Preparing Module..."))},ha=pa;export{vt as AddCoSignersPage,Cn as ContactPage,Yt as CreatePinPage,Pt as EnterPinPage,hn as FTUPage,pn as OTPPage,ln as VaultContextProvider,ha as VerifiedCustody,ut as decryptString,gt as decryptWithPasskey,at as encryptString,ot as encryptWithPasskey,sn as getPlatformComponents,Ve as hashTheBuffer,j as hashTheString,dn as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,ft as publicKeyCredentialRequestOptions};
1
+ import{a as ji,b as Ht}from"./chunk-WCXX5QYV.mjs";var bi=Ht((Un,nn)=>{nn.exports="./Roboto-Regular-UUBD26YO.ttf"});var xi=Ht((Wn,an)=>{an.exports="./Manrope-Regular-33576HBZ.ttf"});var _i=Ht((Qn,on)=>{on.exports="./Hind-Regular-R5KOYWFC.ttf"});function qi(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}qi(`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;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{width:100vw;border-radius:10px;width:100%;flex-shrink:0;background:#0000004d;z-index:100;display:flex;justify-content:center;align-items:center;overflow:auto;position:absolute;inset:0}.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:100%}.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:90%}.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:.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;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:.7rem;font-style:normal;font-weight:450;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;width:100%}.verified-custd-mdl-a-c-2-b-content-header-body-header{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%}.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:200px;word-wrap:break-word;overflow-wrap:break-word}.verified-custd-mdl-a-c-2-b-content-header-body-button{display:flex;padding:5.5px 8px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%}.verified-custd-mdl-add-cosigner-step2-body-content-footer{display:flex;align-items:center;gap:4px;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text{color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-body{display:flex;padding:15px;flex-direction:column;align-items:flex-start;gap:16px;border-radius:8px;border:1px solid var(--Neutral-200, #D8D9DF);min-width:90%;margin-bottom:20px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first{display:flex;justify-content:space-between;align-items:center;align-self:stretch;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-first-header{display:flex;align-items:flex-end;gap:5px}.verified-custd-mdl-add-cosigner-step2-add-more-first-header-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:.7rem;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer{display:flex;padding:4px 6px;align-items:flex-start;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-100, #DDE1FF)}.verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text{color:var(--secondary-electric-violet-900, #362689);font-family:Roboto;font-size:10px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-step2-add-more-second{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-second-input{display:flex;padding:12px;align-items:center;gap:182px;align-self:stretch;border-radius:8px;background:var(--Neutral-50, #F7F7F8);color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-third{display:flex;align-items:flex-start;gap:24px;width:100%}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont{display:flex;align-items:center;gap:4px}.verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:13px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-step2-add-more-buttons{display:flex;align-items:flex-start;gap:16px;align-self:stretch;width:100%;background:transparent}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut{width:50%;display:flex;padding:7.5px 12px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-600, #603FF4);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;background:transparent;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-buttons-action{width:50%;display:flex;padding:6px 8px;justify-content:center;align-items:center;gap:10px;flex:1 0 0;align-self:stretch;border-radius:8px;border:1px solid var(--secondary-electric-violet-600, #603FF4);background:var(--secondary-electric-violet-600, #603FF4);color:var(--secondary-electric-violet-50, #ECEFFF);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:140%;cursor:pointer}.verified-custd-mdl-add-cosigner-step2-add-more-second-input::placeholder{color:var(--Neutral-300, #B6B7C3);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%}.verified-custd-mdl-add-cosigner-confirm-body-content{display:flex;padding-top:20px;padding-bottom:20px;flex-direction:column;justify-content:flex-start;align-items:center;gap:61px;border-radius:8px 8px 0 0;background:var(--Neutral-White-100, #FFF);width:100%;max-height:62.7%}.verified-custd-mdl-add-cosigner-confirm-body-cont{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:90%}.verified-custd-mdl-add-cosigner-confirm-body-header{display:flex;flex-direction:column;align-items:center;gap:16px}.verified-custd-mdl-add-cosigner-confirm-body-title{color:var(--Neutral-950, #0C0C0E);font-family:Manrope;font-size:16px;font-style:normal;font-weight:700;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-label{color:var(--Neutral-600, #5B5D6E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:400;line-height:150%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer{display:flex;width:90%;padding:15px 15px 5px;flex-direction:column;align-items:flex-start;gap:5px;border-radius:8px;border:1px solid var(--Neutral-100, #EEEEF0);background:var(--Neutral-White-100, #FFF)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont{width:100%;flex-direction:row;background:transparent;display:flex;justify-content:space-between;align-items:center;margin-bottom:3px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind{display:flex;flex-direction:column;align-items:center;gap:-6px;border-radius:2px}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont{display:flex;padding:4px 12px;justify-content:center;align-items:center;gap:10px;border-radius:6px;background:var(--secondary-electric-violet-600, #603FF4)}.verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text{color:var(--Neutral-White-100, #FFF);text-align:center;font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont{width:100%;height:51px}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont{width:98%;height:16px;flex-shrink:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider{width:100%;height:5px;flex-shrink:0;border-radius:10px;background:var(--Neutral-100, #EEEEF0)}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind{height:5px;flex-shrink:0;border-radius:10px;background:var(--secondary-electric-violet-600, #603FF4);position:relative}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon{flex-shrink:0;position:absolute;top:-5px;right:0}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont{display:flex;width:100%;padding:10px 0;justify-content:space-between;align-items:center}.verified-custd-mdl-add-cosigner-confirm-body-footer-label-text{color:var(--Neutral-950, #0C0C0E);font-family:Roboto;font-size:12px;font-style:normal;font-weight:500;line-height:140%;margin:0;cursor:pointer}.verified-custd-mdl-a-c-2-b-content-header-body-header-icons{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:10px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-dis{display:flex;align-items:center;gap:4px;margin-bottom:18px}.verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis{color:var(--Neutral-300, #B6B7C3);text-align:right;font-family:Roboto;font-size:14px;font-style:normal;font-weight:500;line-height:150%}.verified-custd-mdl-startup-contact-content-heder-cont{width:100%;display:flex;justify-content:space-between;flex-direction:row}.verified-custd-mdl-add-cosigner-confirm-body-content-outter{background:#0006;z-index:5;position:absolute;width:100%;bottom:0;right:0;left:0;height:100%;display:flex;flex-direction:column-reverse}.verified-custd-mdl-portfolio-page-content-header-button{display:flex;padding:6px 12px;align-items:center;gap:4px;border-radius:32px;background:var(--secondary-electric-violet-900, #362689);cursor:pointer;color:var(--Neutral-White-100, var(--common-white_states-main, #fff));border:none;width:fit-content;max-width:150px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word;height:30px}.verified-custd-mdl-portfolio-page-content-header-button-cont{width:fit-content;height:fit-content;display:flex;flex-direction:column;gap:4px;justify-content:flex-start;position:relative}.verified-custd-mdl-portfolio-page-content-header-button-body{height:fit-content;width:fit-content;display:flex;flex-direction:column;gap:4px;border:none;border-radius:10px;background:var(--Neutral-50, #f7f7f8);padding:10px;position:absolute;top:33px;right:0}.verified-custd-mdl-portfolio-page-content-header-button-body-cont{background:none;cursor:pointer;border:1px solid transparent;padding:5px}.verified-custd-mdl-portfolio-page-content-header-button-body-cont:hover{border:1px solid #362689;background:transparent}.verified-custd-mdl-portfolio-page-content-header-button-body-text{width:110px;font-family:Roboto;font-size:.65rem;font-style:normal;font-weight:400;line-height:140%;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-third-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px;align-self:stretch}.verified-custd-mdl-profile-popup-content-third-content,.verified-custd-mdl-profile-popup-content-third-content-tkn{display:flex;padding:4px var(--space-0, 0px);justify-content:space-between;align-items:center;align-self:stretch;border-radius:var(--space-8px, 8px);cursor:pointer}.verified-custd-mdl-profile-popup-content-third-content-text-container{display:flex;align-items:center;gap:var(--space-8px, 8px)}.verified-custd-mdl-profile-popup-content-third-content-text{color:var(--Neutral-900, #383842);font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:400;line-height:150%;max-width:170px;word-wrap:break-word}.verified-custd-mdl-profile-popup-content-third-content-line{width:100%;height:1px;background:#eeeef0}.verified-custd-mdl-profile-popup-content-third-content-tkn:hover{border:#362689 1px solid}.verified-custd-mdl-profile-popup-content{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;align-self:stretch}.verified-custd-mdl-asset-layout-content{display:inline-flex;padding:0 20px 155px;flex-direction:column;align-items:flex-start;gap:20px;border-radius:8px;background:var(--Neutral-White-100, #fff);width:100%;height:100%}.verified-custd-mdl-profile-popup-content-second{display:flex;padding:12px;flex-direction:column;align-items:flex-start;gap:12px;align-self:stretch;border-radius:var(--space-8px, 8px);background:var(--common-white_states-main, #fff);box-shadow:0 0 16px #0000001f}.verified-custd-mdl-profile-popup-content-second-text{color:var(--Neutral-900, #383842);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:700;line-height:150%}.verified-custd-mdl-profile-popup-content-second-container{display:flex;justify-content:space-between;align-items:center;align-self:stretch}.verified-custd-mdl-profile-popup-content-second-content{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--space-8px, 8px);border-radius:24px;cursor:pointer}.verified-custd-mdl-profile-popup-content-second-content-icon{display:flex;padding:12px;flex-direction:column;align-items:center;gap:var(--space-8px, 8px);border-radius:4px;background:var(--secondary-electric-violet-50, #ecefff)}.verified-custd-mdl-profile-popup-content-second-content-text{color:#000;text-align:center;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:1.125rem;text-transform:capitalize;width:fit-content;max-width:60px;height:36px}.verified-custd-mdl-profile-popup-content-third-button{display:flex;width:100px;padding:6px 14px;justify-content:center;align-items:center;gap:10px;border-radius:100px;border:1px solid var(--secondary-electric-violet-700, #4e2bd7)}.verified-custd-mdl-profile-popup-content-third-button-text{color:var(--secondary-electric-violet-600, #603ff4);text-align:center;font-family:Roboto;font-size:.875rem;font-style:normal;font-weight:600;line-height:125%}.verified-custd-mdl-offer-security-popup-info-content{display:flex;padding:6px 12px;justify-content:center;align-items:center;gap:10px;background:var(--common-white_states-main, #fff);position:absolute;top:-1;left:4px;width:230px;border-radius:2px;z-index:3;box-shadow:0 0 16px #0000001f}.verified-custd-mdl-offer-security-popup-info-content-text{color:var(--Neutral-900, #383842);width:auto;max-width:300px;height:fit-content;word-wrap:break-word;overflow-wrap:break-word;font-family:Roboto;font-size:.75rem;font-style:normal;font-weight:400;line-height:140%}
2
+ `);typeof window<"u"&&typeof window.chrome>"u"&&(window.chrome={});if(typeof global<"u"&&typeof global.crypto>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative")try{ji("react-native-get-random-values")}catch(e){console.warn("react native [polyfillCrypto] Failed to load polyfill:",e)}import We,{forwardRef as Zi}from"react";var hi="https://wallet.verified.network/create-passkey",Tt="https://wallet.verified.network/get-passkey",ki=["https://veripay-bac0b.web.app","https://wallet.verified.network","https://verified-l1.web.app","https://invest.verified.network"],Ki=["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"],Ot="0x7f8d3f14b960b3bcf34baea4b46178e331b54a33e565d7d50d77cdfe9e926fe8",Jt={1:"1st",2:"2nd",3:"3rd",4:"4th",5:"5th"},xt={1:"1 st",2:"2 nd",3:"3 rd",4:"4 th",5:"5 th"},_t={connect_wallet:"connect your account",eth_requestAccounts:"connect your account",getPk:"recover your account details",invitation:"accept Co-Signer invitation",signRecovery:"sign account recovery",completeRecovery:"restore login access",eth_sendTransaction:"sign smart contract interaction"},X={successIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/succes-page-icon.svg",usaFlag:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/Flag-United-States-of-America%201.svg",privacyTip:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/privacy_tip.svg",addCoSignerIcon1:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-1.svg",addCoSignerIcon2:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-2.svg",addCoSignerIcon3:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-3.svg",addCoSignerIcon4:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/add-cosigner-icon-4.svg",pkicon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pk-icon.svg",encryptedIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/encrypted-icon.svg",pinHide:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-hide-icon.svg",pinShow:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pin-show-icon.svg",arrowUp:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-arrow-up.svg",arrowDown:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/contact-dropdown.svg",editBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit.svg",editBlack:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/edit-icon.svg",search:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/search-icon.svg",circleClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle-icon.svg",supervise:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/supervisor-icon.svg",delete:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/delete-icon.svg",pointer:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/pointer-icon.svg",sliderDot:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/slider-icon.svg",select:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-icon.svg",selectClicked:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/select-clicked-icon.svg",addIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-icon.svg",addDisableIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/plus-circle-dis.svg",errorAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error-icon.svg",successAlert:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/success-icon.svg",loadingIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/loading-icon.png",checkCircle:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/check-circle.svg",expandRight:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/chevron-right-icon.svg",closeIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/close-icon.svg",infoBlue:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/info-blue.svg",profileEdit:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/profile-pic-edit.svg",infoReference:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/quick_reference.svg",profileQuestions:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/shield_question.svg",verifiedCheckMark:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/verified-checkmark.svg",friends:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/friends.svg",baseIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/base-icon.svg",ethereumIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/ethereum-icon.svg",gnosisIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/gnois-icon.svg",copyIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/copy_icon.svg",errorIcon:"https://raw.githubusercontent.com/kallolborah/verified-public-assets/main/error.svg"},Ft=[{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"}];var pi={verifiedCustdMdlContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",paddingBottom:20,overflowY:"scroll",overflowX:"hidden",position:"relative"},verifiedCustdMdlStartupOutterGrad:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden"},verifiedCustdMdlStartupOutterNorm:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowY:"scroll",overflowX:"hidden",backgroundColor:"#ffffff"},verifiedCustdMdlStartup:{width:650,height:"auto",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",overflowX:"hidden",overflowY:"scroll",paddingBottom:20,borderWidth:1,borderColor:"#0F122E",borderRadius:10,position:"relative"},verifiedCustdMdlLoadingScreen:{borderRadius:10,width:"100%",flexShrink:0,backgroundColor:"rgba(0, 0, 0, 0.3)",zIndex:100,display:"flex",justifyContent:"center",alignItems:"center",overflow:"scroll",position:"absolute",top:0,left:0,right:0,bottom:0},verifiedCustdMdlStartupIconContainer:{width:"76.119%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative",flexDirection:"column",height:298},verifiedCustdMdlStartupIconShadow:{position:"absolute",bottom:10,right:70,width:"48.5%"},verifiedCustdMdlStartupTextContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,marginRight:20,marginLeft:20},verifiedCustdMdlStartupTextHeader:{color:"#ffffff",fontFamily:"Manrope",fontSize:33.6,fontWeight:"700",lineHeight:45,margin:0},verifiedCustdMdlStartupTextFooter:{color:"#ffffff",fontFamily:"Roboto",fontSize:14.4,fontWeight:"400",lineHeight:24,opacity:.8},verifiedCustdMdlFtuStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",cursor:"pointer",userSelect:"none",color:"#0C0C0E",textAlign:"center",margin:20,fontFamily:"Roboto",fontSize:16,fontWeight:"500",lineHeight:24,outline:"none",borderWidth:0},verifiedCustdMdlStartupLanguage:{backgroundColor:"#ffffff",height:"100%",width:"100%"},verifiedCustdMdlStartupLanguageContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:32,width:"100%"},verifiedCustdMdlStLanguageContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,alignSelf:"stretch",width:"100%"},verifiedCustdMdlStLanguageText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:24,fontWeight:"700",lineHeight:24,alignSelf:"stretch"},verifiedCustdMdlMsSearchContentHover:{borderRadius:8,borderWidth:1,borderColor:"#9da3ff",backgroundColor:"#ecefff"},verifiedCustdMdlStContactInput:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:14,width:"90%"},verifiedCustdMdlStContactContentContainer:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},verifiedCustdMdlStContactFirstSection:{display:"flex",width:150,height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",cursor:"pointer",userSelect:"none"},verifiedCustdMdlStContactSelectionIcon:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:0,borderRadius:24,cursor:"pointer",userSelect:"none",overflow:"hidden",width:28,height:28},verifiedCustdMdlStContactSelectionText:{color:"#0c0c0e",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6,width:40,flexShrink:0},verifiedCustdMdlStContactDropdown:{},verifiedCustdMdlStContactFooterFirstSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:12,width:"100%"},verifiedCustdMdlStContactFooterSecondSection:{display:"flex",alignItems:"center",justifyContent:"center",gap:4,width:"100%"},verifiedCustdMdlCustomBlankPage:{height:0},verifiedCustdMdlStartupOtpText:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlStartupOtpHeaderText:{alignSelf:"stretch",color:"#5b5d6e",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:"100%"},verifiedCustdMdlOtpInputGroup:{display:"flex",width:"100%",flexDirection:"row",alignItems:"flex-start",gap:8},verifiedCustdMdlOtpInput:{display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",borderRadius:8,backgroundColor:"#f7f7f8",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpInputRed:{borderRadius:8,borderWidth:1,borderColor:"#E23636",backgroundColor:"#F7F7F8",display:"flex",paddingTop:20,paddingBottom:20,paddingLeft:12,paddingRight:12,justifyContent:"center",alignItems:"center",gap:8,flex:1,alignSelf:"stretch",width:"25%",textAlign:"center",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlOtpIncorrectText:{color:"#E23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,maxWidth:200},verifiedCustdMdlOtpTimer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",flexDirection:"row"},verifiedCustdMdlOtpTimerText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpTimerTextRed:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendText:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlOtpResendTextActive:{color:"#603ff4",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlStOtpIcon:{},verifiedCustdMdlStartupButton:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",opacity:.5,fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlStartupButtonActive:{display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#cfe600",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",maxWidth:500},verifiedCustdMdlOtpInputPassword:{fontWeight:"900"},verifiedCustdMdlStartupButtonClick:{borderRadius:8,borderWidth:1,borderColor:"#0c0c0e",display:"flex",padding:14,justifyContent:"center",alignItems:"center",gap:8,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,width:"90%",backgroundColor:"transparent",maxWidth:500},verifiedCustdMdlPinInputContainerText:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStButtonText:{color:"#0c0c0e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24},verifiedCustdMdlStartupSlider:{display:"flex",alignItems:"center",gap:12,borderRadius:4,width:"100%"},verifiedCustdMdlStartupSliderLine:{height:4,flexShrink:0,borderRadius:8,backgroundColor:"#eeeef0"},verifiedCustdMdlStartupSliderLineActive:{height:4,flex:1,borderRadius:8,backgroundColor:"#603ff4"},verifiedCustdMdlStartupContact:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:20,width:"100%"},verifiedCustdMdlStartupContactContent:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlStartupContactText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:16,alignSelf:"stretch",maxWidth:"100%"},verifiedCustdMdlStContactSecondSection:{display:"flex",width:"100%",height:44,paddingLeft:6,alignItems:"center",borderRadius:8,backgroundColor:"#f7f7f8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStContactSecondSectionPlaceholder:{color:"#b6b7c3",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlStartupContactFooter:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,width:"100%",marginTop:16},verifiedCustdMdlStContactInputError:{display:"flex",alignItems:"center",gap:4},verifiedCustdMdlInputErrorText:{color:"#e23636",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,margin:0},verifiedCustdMdlMobileStartupSearchBoxContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlMobileStartupSearchBox:{display:"flex",height:40,alignItems:"center",gap:6,borderRadius:6,borderWidth:1,borderColor:"#d8d9df",backgroundColor:"#f7f7f8",width:"100%",overflow:"hidden"},verifiedCustdMdlMsSearchBoxContent:{height:"100%",width:"100%",backgroundColor:"transparent",color:"#0c0c0e",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMsSearchBoxContentPlaceholder:{color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlMobileStartupSearchContent:{display:"flex",width:"100%",flexDirection:"column",alignItems:"flex-start",gap:16,borderRadius:8,borderWidth:1,borderColor:"#f7f7f8",backgroundColor:"#ffffff"},verifiedCustdMdlMsSearchContentContainer:{display:"flex",flexDirection:"column",alignItems:"flex-start",alignSelf:"stretch",overflow:"scroll"},verifiedCustdMdlMsSearchContent:{display:"flex",padding:8,alignItems:"center",gap:19,alignSelf:"stretch",height:34,marginBottom:5,borderWidth:1,borderColor:"transparent"},verifiedCustdMdlMsSearchContentActive:{display:"flex",padding:8,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:6,backgroundColor:"#f1f8ed"},verifiedCustdMdlMsSearchContentTextContainer:{display:"flex",alignItems:"center",gap:19},verifiedCustdMdlMsSearchContentIcon:{display:"flex",width:28,height:28,justifyContent:"center",alignItems:"center",borderRadius:24,borderWidth:1,borderColor:"rgba(0, 0, 0, 0.05)",backgroundColor:"#fff",shadowColor:"#eee",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:4,elevation:3},verifiedCustdMdlMsSearchContentText:{color:"#0c0c0e",fontFamily:"Roboto",fontSize:12.4,fontStyle:"normal",fontWeight:"400",lineHeight:18.6},verifiedCustdMdlTermsAndCondition:{color:"#8f91a1",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"450",lineHeight:15.68},verifiedCustdMdlPrivacy:{flexDirection:"row",alignItems:"center",gap:4,marginBottom:20},verifiedCustdMdlPrivacyText:{color:"#40414c",fontFamily:"Roboto",fontSize:8,fontStyle:"normal",fontWeight:"400",lineHeight:20,letterSpacing:.25},verifiedCustdMdlPPPaymentPortalAmountInfoSeparator:{flexDirection:"row",alignItems:"center",gap:6,alignSelf:"stretch",justifyContent:"center"},verifiedCustdMdlPPPaymentPortalLine:{width:"50%",height:1,backgroundColor:"#eeeef0"},verifiedCustdMdlPPaymentPortalSeparatorText:{color:"#4a4a5a",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8,opacity:.6},verifiedCustdMdlStartupOtpFooter:{flexDirection:"row",alignItems:"center",gap:4,width:"100%",overflow:"hidden"},verifiedCustdMdlStartupOtpFooterText:{color:"#0c0c0e",fontFamily:"Manrope",fontSize:12.8,fontStyle:"normal",fontWeight:"600",lineHeight:12.8,maxWidth:"100%"},verifiedCustdMdlOtpInputContainer:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlGeneralWebToastError:{flexDirection:"row",alignItems:"center",gap:12},verifiedCustdMdlGeneralWebToastErrorContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastErrorTitle:{margin:0,color:"#0c0c0e",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"600",lineHeight:16,alignSelf:"stretch"},verifiedCustdMdlGeneralWebToastErrorLabel:{alignSelf:"stretch",color:"#8f91a1",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,margin:0},verifiedCustdMdlGeneralWebToastSuccess:{padding:12,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,backgroundColor:"#f1f8ed",width:"100%",height:55,maxHeight:55,flexDirection:"row"},verifiedCustdMdlGeneralWebToastSuccessCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlGeneralWebToastSuccessContainer:{width:"100%",flexDirection:"column",alignItems:"flex-start",gap:10,padding:6},verifiedCustdMdlGeneralWebToastSuccessLink:{flexDirection:"row",alignItems:"center"},verifiedCustdMdlGeneralWebToastSuccessLinkText:{color:"#603ff4",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21,textDecorationLine:"underline"},verifiedCustdMdlSuccessPopupContentContainer:{width:"28.4375%",padding:24,flexDirection:"column",alignItems:"center",backgroundColor:"#fff",shadowColor:"#000",shadowOffset:{width:0,height:4},shadowOpacity:.12,shadowRadius:19,elevation:5,height:"100%"},verifiedCustdMdlSuccessPopupContent:{width:"100%",flexDirection:"column",alignItems:"center",gap:32},verifiedCustdMdlSuccessPopupContentText:{flexDirection:"column",alignItems:"center",gap:12,alignSelf:"stretch"},verifiedCustdMdlSuccessPopupContentTextHeader:{color:"#0c0c0e",textAlign:"center",fontFamily:"Manrope",fontSize:24,fontStyle:"normal",fontWeight:"800",lineHeight:33.6},verifiedCustdMdlSuccessPopupContentTextFooter:{color:"#5b5d6e",textAlign:"center",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"400",lineHeight:24},verifiedCustdMdlAddCosignerBodyIcon:{width:"90%",maxWidth:"90%",height:250,maxHeight:250},verifiedCustdMdlAddCosignerBody:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerBodyTextCont:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},verifiedCustdMdlAddCosignerBodyTextIcon:{padding:8,alignItems:"center",justifyContent:"center",gap:10,borderRadius:24,backgroundColor:"#C2C7FF",width:20,height:20,overflow:"hidden"},verifiedCustdMdlAddCosignerBodyTextLabel:{width:"76.1%",color:"#5B5D6E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"400",lineHeight:15},verifiedCustdMdlAddCosignerBodyTextLabelBold:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14},verifiedCustdMdlAddCosignerButtonsCont:{padding:10,flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:10,backgroundColor:"transparent"},verifiedCustdMdlAddCosignerButtonNeut:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"transparent",borderWidth:1,borderColor:"#0C0C0E",color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerButtonAction:{width:"45%",padding:14,justifyContent:"center",alignItems:"center",gap:8,borderRadius:8,backgroundColor:"#CFE600",borderWidth:0,color:"#0C0C0E",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18},verifiedCustdMdlAddCosignerMoreBody:{padding:15,flexDirection:"column",alignItems:"flex-start",gap:12,borderRadius:8,backgroundColor:"#ECEFFF"},verifiedCustdMdlAddCosignerMoreHeaderCont:{flexDirection:"column",alignItems:"flex-start",gap:32},verifiedCustdMdlAddCosignerMoreTitleCont:{flexDirection:"column",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAddCosignerHeaderText:{alignSelf:"stretch",color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerMoreTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:18,fontStyle:"normal",fontWeight:"700",lineHeight:21.6,margin:0},verifiedCustdMdlAddCosignerMoreLabel:{color:"#4A4A5A",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21},verifiedCustdMdlAddCosignerMoreLabelLink:{alignSelf:"stretch",color:"#4E2BD7",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:18,textDecorationLine:"underline",margin:0},verifiedCustdMdlAddCosignerHeaderInfoCont:{padding:10,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFF9C1"},verifiedCustdMdlAddCosignerHeaderInfoText:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:15},verifiedCustdMdlAddCosignerHeaderInfoTextBold:{color:"#89490A",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"700",lineHeight:14},verifiedCustdMdlAddCosignerStep2Body:{flexDirection:"column",alignItems:"flex-start",gap:10,marginTop:20},verifiedCustdMdlAddCosignerStep2BodyHeader:{width:"100%",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12.8,fontStyle:"normal",fontWeight:"500",lineHeight:19.2},verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText:{color:"#0C0C0E",textAlign:"right",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2BodyContent:{flexDirection:"column",alignItems:"flex-start",gap:16,width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeader:{paddingTop:14,justifyContent:"center",alignItems:"center",flexDirection:"column",position:"relative",width:"100%"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont:{width:"100%",padding:12,flexDirection:"column",alignItems:"flex-start",gap:16},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel:{paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,position:"absolute",left:12,top:-14,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody:{flexDirection:"row",justifyContent:"space-between",alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#F7F7F8",padding:12,alignItems:"flex-start",gap:16,position:"relative"},verifiedCustdMdlAC2BContentHeaderBodyHeaderCont:{flexDirection:"row",alignItems:"center",gap:12,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyHeader:{flexDirection:"column",alignItems:"flex-start",gap:6,width:"100%"},verifiedCustdMdlAC2BContentHeaderBodyTitle:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:16,fontStyle:"normal",fontWeight:"500",lineHeight:24,margin:0,maxWidth:150},verifiedCustdMdlAC2BContentHeaderBodyLabel:{color:"#8F91A1",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:16.8,margin:0,maxWidth:200},verifiedCustdMdlAC2BContentHeaderBodyButton:{flexDirection:"row",paddingVertical:5.5,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:19.6},verifiedCustdMdlAddCosignerStep2BodyContentFooter:{flexDirection:"row",alignItems:"center",gap:4},verifiedCustdMdlAddCosignerStep2BodyContentFooterText:{color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlAddCosignerStep2AddMoreBody:{flexDirection:"column",alignItems:"flex-start",padding:15,gap:16,borderRadius:8,borderWidth:1,borderColor:"#D8D9DF",minWidth:"90%",marginBottom:20,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirst:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader:{flexDirection:"row",alignItems:"flex-end",gap:5},verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:11.2,fontStyle:"normal",fontWeight:"500",lineHeight:16.8},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter:{flexDirection:"row",paddingVertical:4,paddingHorizontal:6,alignItems:"flex-start",gap:10,borderRadius:6,backgroundColor:"#DDE1FF"},verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText:{color:"#362689",fontFamily:"Roboto",fontSize:10,fontStyle:"normal",fontWeight:"500",lineHeight:14,margin:0},verifiedCustdMdlAddCosignerStep2AddMoreSecond:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:4,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInput:{display:"flex",padding:12,alignItems:"center",gap:182,alignSelf:"stretch",borderRadius:8,backgroundColor:"#F7F7F8",color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerStep2AddMoreThird:{display:"flex",alignItems:"flex-start",gap:24,width:"100%"},verifiedCustdMdlAddCosignerStep2AddMoreThirdCont:{display:"flex",alignItems:"center",flexDirection:"row",gap:4},verifiedCustdMdlAddCosignerStep2AddMoreThirdContText:{color:"#383842",fontFamily:"Roboto",fontSize:13,fontStyle:"normal",fontWeight:"400",lineHeight:20},verifiedCustdMdlAddCosignerStep2AddMoreButtons:{display:"flex",alignItems:"flex-start",gap:16,alignSelf:"stretch",width:"100%",backgroundColor:"transparent"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut:{width:"50%",display:"flex",paddingVertical:7.5,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,borderRadius:8,borderWidth:1,borderColor:"#603FF4",color:"#603FF4",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,backgroundColor:"transparent",cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction:{width:"50%",display:"flex",paddingVertical:6,paddingHorizontal:8,justifyContent:"center",alignItems:"center",gap:10,flexGrow:1,flexShrink:0,flexBasis:0,alignSelf:"stretch",borderRadius:8,borderWidth:1,borderColor:"#603FF4",backgroundColor:"#603FF4",color:"#ECEFFF",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:20,cursor:"pointer"},verifiedCustdMdlAddCosignerStep2AddMoreSecondInputPlaceholder:{color:"#B6B7C3",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18},verifiedCustdMdlAddCosignerConfirmBodyContent:{display:"flex",paddingTop:20,paddingBottom:20,flexDirection:"column",justifyContent:"flex-start",alignItems:"center",gap:61,borderTopLeftRadius:8,borderTopRightRadius:8,backgroundColor:"#FFFFFF",width:"100%",maxHeight:"62.7%"},verifiedCustdMdlAddCosignerConfirmBodyCont:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:16,width:"90%"},verifiedCustdMdlAddCosignerConfirmBodyHeader:{display:"flex",flexDirection:"column",alignItems:"center",gap:16},verifiedCustdMdlAddCosignerConfirmBodyTitle:{color:"#0C0C0E",fontFamily:"Manrope",fontSize:16,fontStyle:"normal",fontWeight:"700",lineHeight:24,margin:0},verifiedCustdMdlAddCosignerConfirmBodyLabel:{color:"#5B5D6E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooter:{display:"flex",width:"90%",paddingTop:15,paddingBottom:5,paddingHorizontal:15,flexDirection:"column",alignItems:"flex-start",gap:5,borderRadius:8,borderWidth:1,borderColor:"#EEEEF0",backgroundColor:"#FFFFFF"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont:{display:"flex",width:"100%",flexDirection:"row",backgroundColor:"transparent",justifyContent:"space-between",alignItems:"center",marginBottom:3},verifiedCustdMdlAddCosignerConfirmBodyFooterInd:{display:"flex",flexDirection:"column",alignItems:"center",gap:-6,borderRadius:2},verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont:{display:"flex",paddingVertical:4,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,borderRadius:6,backgroundColor:"#603FF4"},verifiedCustdMdlAddCosignerConfirmBodyFooterIndText:{color:"#FFFFFF",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0},verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon:{width:12,height:12},verifiedCustdMdlPrivacyIcon:{width:20,height:20},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont:{width:"100%",height:51},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont:{width:"98%",height:16,flexShrink:0},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider:{width:"100%",height:5,flexShrink:0,borderRadius:10,backgroundColor:"#EEEEF0"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd:{height:5,flexShrink:0,borderRadius:10,backgroundColor:"#603FF4",position:"relative"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon:{flexShrink:0,position:"absolute",top:-5,right:0,width:16,height:16},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont:{display:"flex",width:"100%",paddingVertical:10,justifyContent:"space-between",alignItems:"center",flexDirection:"row"},verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText:{color:"#0C0C0E",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"500",lineHeight:17,margin:0,cursor:"pointer"},verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons:{display:"flex",justifyContent:"flex-end",alignItems:"center",gap:16,marginTop:10},verifiedCustdMdlAddCosignerStep2BodyContentFooterDis:{display:"flex",alignItems:"center",gap:4,marginBottom:18},verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis:{color:"#B6B7C3",textAlign:"right",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"500",lineHeight:21},verifiedCustdMdlStartupContactContentHeaderCont:{width:"100%",flexDirection:"row",justifyContent:"space-between",display:"flex"},verifiedCustdMdlAddCosignerConfirmBodyContentOutter:{backgroundColor:"rgba(0, 0, 0, 0.40)",zIndex:5,position:"absolute",width:"100%",bottom:0,right:0,left:0,height:"100%",display:"flex",flexDirection:"column-reverse"},verifiedCustdMdlPortfolioPageContentHeaderButton:{display:"flex",paddingVertical:6,paddingHorizontal:12,alignItems:"center",gap:4,borderRadius:32,backgroundColor:"#362689",cursor:"pointer",color:"#FFFFFF",borderWidth:0,width:"auto",maxWidth:150,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,height:30,flexWrap:"wrap"},verifiedCustdMdlPortfolioPageContentHeaderButtonCont:{width:"auto",height:"auto",display:"flex",flexDirection:"column",gap:4,justifyContent:"flex-start",position:"relative"},verifiedCustdMdlPortfolioPageContentHeaderButtonBody:{height:"auto",width:"auto",display:"flex",flexDirection:"column",gap:4,borderWidth:0,borderRadius:10,backgroundColor:"#F7F7F8",padding:10,position:"absolute",top:33,right:0},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyCont:{backgroundColor:"transparent",cursor:"pointer",borderWidth:1,borderColor:"transparent",padding:5},verifiedCustdMdlPortfolioPageContentHeaderButtonBodyText:{width:110,fontFamily:"Roboto",fontSize:10.4,fontStyle:"normal",fontWeight:"400",lineHeight:14.56,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdButton:{display:"flex",width:100,paddingVertical:6,paddingHorizontal:14,justifyContent:"center",alignItems:"center",gap:10,borderRadius:100,borderWidth:1,borderColor:"#4e2bd7"},verifiedCustdMdlProfilePopupContentThirdButtonText:{color:"#603ff4",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"600",lineHeight:17.5},verifiedCustdMdlProfilePopupContentThird:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentThirdContainer:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:12,alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentThirdContent:{display:"flex",paddingVertical:4,paddingHorizontal:0,justifyContent:"space-between",alignItems:"center",alignSelf:"stretch",borderRadius:8,cursor:"pointer"},verifiedCustdMdlProfilePopupContentThirdContentTextContainer:{display:"flex",alignItems:"center",gap:8},verifiedCustdMdlProfilePopupContentThirdContentText:{color:"#383842",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"400",lineHeight:21,maxWidth:170,flexWrap:"wrap"},verifiedCustdMdlProfilePopupContentThirdContentLine:{width:"100%",height:1,backgroundColor:"#EEEEF0"},verifiedCustdMdlProfilePopupContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",gap:16,alignSelf:"stretch"},verifiedCustdMdlAssetLayoutContent:{display:"flex",paddingTop:0,paddingBottom:155,paddingHorizontal:20,flexDirection:"column",alignItems:"flex-start",gap:20,borderRadius:8,backgroundColor:"#FFFFFF",width:"100%",height:"100%"},verifiedCustdMdlProfilePopupContentSecond:{display:"flex",padding:12,flexDirection:"column",alignItems:"flex-start",gap:12,alignSelf:"stretch",borderRadius:8,backgroundColor:"#FFFFFF",shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlProfilePopupContentSecondText:{color:"#383842",textAlign:"center",fontFamily:"Roboto",fontSize:14,fontStyle:"normal",fontWeight:"700",lineHeight:21},verifiedCustdMdlProfilePopupContentSecondContainer:{display:"flex",justifyContent:"space-between",alignItems:"center",alignSelf:"stretch"},verifiedCustdMdlProfilePopupContentSecondContent:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:8,borderRadius:24,cursor:"pointer"},verifiedCustdMdlProfilePopupContentSecondContentIcon:{display:"flex",padding:12,flexDirection:"column",alignItems:"center",gap:8,borderRadius:4,backgroundColor:"#ECEFFF"},verifiedCustdMdlProfilePopupContentSecondContentText:{color:"#000000",textAlign:"center",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:18,textTransform:"capitalize",width:"auto",maxWidth:60,height:36},VerifiedCustdMdlOfferSecurityPopupInfoContentGrad:{display:"flex",paddingVertical:6,paddingHorizontal:12,justifyContent:"center",alignItems:"center",gap:10,backgroundColor:"#FFFFFF",position:"absolute",top:-1,left:4,width:230,borderRadius:2,zIndex:3,shadowColor:"#000",shadowOffset:{width:0,height:0},shadowOpacity:.12,shadowRadius:16,elevation:4},verifiedCustdMdlOfferSecurityPopupInfoContentText:{color:"#383842",width:"auto",maxWidth:300,height:"auto",flexWrap:"wrap",fontFamily:"Roboto",fontSize:12,fontStyle:"normal",fontWeight:"400",lineHeight:16.8}};var Rt=!1,Ut=!1,Wt,Qt,jt,qt,Zt,zt,ei,ti,yi,vi,Pi,ii,Li,ni=async()=>{if(Ut)return;if(typeof navigator<"u"&&navigator.product==="ReactNative"){console.log("[VCM]: Initializing React Native platform...");let t=await import("react-native"),n=await import("events");yi=(await import("expo-font")).default;let l=await import("@react-native-async-storage/async-storage"),C=await import("react-native-passkeys"),s=(await import("./svg-G2CCATII.mjs")).default;Li=C,vi=l.default,Pi=n.EventEmitter;let L=({className:i,id:r,...p})=>p,u=i=>r=>We.createElement(i,{...L(r)}),A=i=>typeof i=="string"&&i.endsWith(".svg");Wt=u(t.View),Qt=u(t.Text),jt=i=>{let r=i.source?.uri;if(s&&A(r))return We.createElement(s,{uri:r,style:i.style});let p=u(t.Image);return We.createElement(p,{...i})},qt=u(t.ScrollView),Zt=t.StyleSheet,zt=u(t.TextInput),ei=u(t.TouchableOpacity),ti=u(t.ActivityIndicator),ii=t.StyleSheet.create(pi),Rt=!0,console.log("[VCM]: React Native platform initialized.")}else{console.log("[VCM]: Initializing Web platform...");let{motion:t}=await import("framer-motion");Wt=({onPress:n,...a})=>We.createElement("div",{onClick:n,...a}),Qt=({onPress:n,...a})=>We.createElement("span",{onClick:n,...a}),jt=({onPress:n,source:a,...l})=>We.createElement("img",{onClick:n,...l,src:a?.uri}),qt=n=>We.createElement("div",{style:{overflowY:"auto",...n.style}},n.children),Zt={create:n=>n},ii={},zt=Zi(({onChangeText:n,onInput:a,onKeyDown:l,onKeyPress:C,value:b,keyboardType:s,secureTextEntry:L,onSubmitEditing:u,blurOnSubmit:A,placeholderTextColor:i,...r},p)=>We.createElement("input",{...r,ref:p,value:b,onInput:y=>{a?.(y),n?.(y.target.value)},onKeyDown:y=>{y.key==="Enter"&&(y.preventDefault(),u?.(y)),l?.(y),C?.(y)},type:L?"password":s==="numeric"||s==="number-pad"?"tel":"text",onChange:()=>{}})),ei=({onPress:n,style:a,...l})=>We.createElement("button",{style:{outline:"none",border:"none",...a},onClick:n,...l},l.children),ti=({color:n,size:a,...l})=>We.createElement(t.img,{height:"50px",width:"50px",src:X.loadingIcon,alt:"Loading...",animate:{rotate:360,scale:[1,1.5,1]},transition:{duration:2,repeat:1/0,ease:"linear"},...l}),Rt=!1,console.log("[VCM]: Web platform initialized.")}Ut=!0},ai=()=>{if(!Ut)throw new Error("Platform not initialized. Call `await initPlatform()` first.");return{isReactNative:Rt,View:Wt,Text:Qt,Image:jt,ScrollView:qt,StyleSheet:Zt,TextInput:zt,TouchableOpacity:ei,ActivityIndicator:ti,Font:yi,AsyncStorage:vi,EventEmitter:Pi,styles:ii,rnPasskey:Li}};import Z,{useEffect as It,useState as Le}from"react";import zi,{createContext as en,useContext as tn,useState as ct}from"react";var Ai=en(void 0),oi=({children:e})=>{let[t,n]=ct(null),[a,l]=ct(null),[C,b]=ct(null),[s,L]=ct(null),[u,A]=ct(null),[i,r]=ct(null),[p,y]=ct(null);return zi.createElement(Ai.Provider,{value:{chainId:t,pk:a,address:C,signer:s,provider:u,vaultContract:i,vaultData:p,setChainId:n,setPk:l,setAddress:b,setSigner:L,setProvider:A,setVaultContract:r,setVaultData:y}},e)},Me=()=>{let e=tn(Ai);if(!e)throw new Error("useVaultStore must be used within VaultContextProvider");return e};import we,{useEffect as Dt,useState as Ee}from"react";import{debounce as Yn}from"lodash";import{contractAddress as rn,Custody as dn,Provider as sn,VerifiedWallet as ri}from"@verified-network/verified-sdk";var ye={1:{chainId:"0x1",chainName:"Ethereum",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://eth.drpc.org"],blockExplorerUrls:["https://etherscan.io/"],icon:X.ethereumIcon},8453:{chainId:"0x2105",chainName:"Base Mainnet",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.base.org/"],blockExplorerUrls:["https://basescan.org/"],Icon:X.baseIcon},100:{chainId:"0x64",chainName:"Gnosis",nativeCurrency:{name:"XDAI",symbol:"XDAI",decimals:18},rpcUrls:["https://rpc.gnosischain.com/"],blockExplorerUrls:["https://gnosisscan.io/"],icon:X.gnosisIcon},11155111:{chainId:"0xaa36a7",chainName:"Sepolia Test Network",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.drpc.org"],blockExplorerUrls:["https://sepolia.etherscan.io/"],icon:X.ethereumIcon,custodyContractBlock:9236510},84532:{chainId:"0x14a34",chainName:"Base Sepolia",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:["https://sepolia.base.org"],blockExplorerUrls:["https://sepolia.basescan.org/"],icon:X.baseIcon}};import{pbkdf2 as Bt}from"@noble/hashes/pbkdf2";import{sha256 as kt}from"@noble/hashes/sha256";import{randomBytes as Kt,utf8ToBytes as si,bytesToUtf8 as ln}from"@noble/hashes/utils";import{gcm as Si}from"@noble/ciphers/aes";import li from"crypto-js";import{toast as wi}from"react-toastify";import wt from"react";var Se=e=>{if(!e.querySelector('link[href="https://fonts.googleapis.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.googleapis.com",e.head.appendChild(a)}if(!e.querySelector('link[href="https://fonts.gstatic.com"]')){let a=e.createElement("link");a.rel="preconnect",a.href="https://fonts.gstatic.com",e.head.appendChild(a)}return Ki.map(a=>{if(!e.querySelector(`link[href="${a}"]`)){let C=e.createElement("link");C.rel="stylesheet",C.href=a,e.head.appendChild(C)}}),!0},Ne=async e=>(await e?.loadAsync({Roboto:bi(),Manrope:xi(),Hind:_i()}),!0),ot=async(e,t,n)=>{try{let a;if(n)a=new ri(n);else{let i=ri.generateMnemonic();a=ri.importWallet(i)}let l=rn,C=t&&l[t]?.Custody&&ye[t]?.rpcUrls?.length>0?t:8453,b=e[C]?.rpcUrls[0]||ye[C]?.rpcUrls[0],s=a.setProvider(new sn(b)),L=a.privateKey,u=new dn(s,l[C]?.Custody),A=a.address;return C===11155111&&console.log("address to send test ETH to if MEE transaction fails: ",a.address),{chainId:C,address:A,pk:L,signer:s,provider:b,vaultContract:u,vaultData:null}}catch(a){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Error while initializing user's wallet and contract: ",a),{chainId:null,address:null,pk:null,signer:null,provider:null,vaultContract:null,vaultData:null}}},q=e=>{let t=e.toLowerCase(),n=kt(si(t));return"0x"+Array.from(n).map(a=>a.toString(16).padStart(2,"0")).join("")},He=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e),n=kt(t);return"0x"+Array.from(n).map(a=>a.toString(16).padStart(2,"0")).join("")},rt=(e,t)=>li.AES.encrypt(e,t).toString(),ut=(e,t)=>{var n=li.AES.decrypt(e,t),a=n.toString(li.enc.Utf8);return a},cn=(e,t)=>wt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error"},wt.createElement("img",{style:{marginLeft:"5px"},src:X.errorAlert,alt:""}),wt.createElement("div",{className:"verified-custd-mdl-general-web-toast-error-container"},wt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-title"},e),wt.createElement("p",{className:"verified-custd-mdl-general-web-toast-error-label"},t)));var Xe=(e,t)=>(wi.dismiss(),wi.error(cn(e,t),{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}));var Ni=e=>Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");var W=(e,t,n=16)=>{if(!e)return t;let a=parseFloat(t);return t.endsWith("rem")?a*n:(t.endsWith("px"),a)},un=e=>{let t=e.startsWith("0x")||e.startsWith("0X")?e.slice(2):e;if(t.length%2!==0)throw new Error("Invalid hex string: odd length");let n=t.length/2,a=new Uint8Array(n);for(let l=0;l<n;l++){let C=t.substr(l*2,2);a[l]=parseInt(C,16)}return a},ci=(e,t,n,a)=>{let l=un(n);return a?{challenge:ht(Kt(32)),rp:{name:e,id:a},user:{id:ht(l),name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}:{challenge:Kt(32),rp:{name:e},user:{id:l,name:t,displayName:t},pubKeyCredParams:[{type:"public-key",alg:-7},{type:"public-key",alg:-257}],authenticatorSelection:{userVerification:"required",residentKey:"required",requireResidentKey:!0},timeout:6e4,attestation:"none"}},St=e=>{let t=atob(e),n=new ArrayBuffer(t.length),a=new Uint8Array(n);for(let l=0;l<t.length;l++)a[l]=t.charCodeAt(l);return n},ft=e=>e?{challenge:ht(Kt(32)),timeout:6e4,userVerification:"required",rpId:e}:{challenge:Kt(32),timeout:6e4,userVerification:"required"},ht=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),di=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/")+"===".slice((e.length+3)%4),n=atob(t);return new Uint8Array([...n].map(a=>a.charCodeAt(0)))},dt=async(e,t,n,a)=>{let l=t instanceof Uint8Array?t:new Uint8Array(t),C=Kt(8),b=Array.from(C).map(p=>p.toString(16).padStart(2,"0")).join(""),s=q(`${n}:${b}`),L=si(s),u=Kt(12),A=a?Bt(kt,l,L,{c:2e4,dkLen:32}):Bt(kt,l,L,{c:3e5,dkLen:32}),r=Si(A,u).encrypt(si(e));return[ht(L),ht(u),ht(r)].join(".")},gt=async(e,t,n)=>{let[a,l,C]=e.split(".");if(!a||!l||!C)throw new Error("Invalid encrypted data format");let b=t instanceof Uint8Array?t:new Uint8Array(t),s=di(a),L=di(l),u=di(C),i=n?Bt(kt,b,s,{c:2e4,dkLen:32}):Bt(kt,b,s,{c:3e5,dkLen:32}),r=Si(i,L);try{let p=r.decrypt(u);return ln(p)}catch{throw new Error("Decryption failed: invalid key or corrupted data")}};import ae,{useEffect as Cn,useState as pt}from"react";import Xi from"react";var fn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,r=Number(e.currentSlider),p=e.sliderCount?.length||0,y=p>0?100/p:0;return Xi.createElement(n,{className:"verified-custd-mdl-startup-slider",style:{flexDirection:"row",height:4,overflow:"hidden",gap:12}},e.sliderCount?.map((P,w)=>{let v=w<=r;return Xi.createElement(n,{key:w,className:v?"verified-custd-mdl-startup-slider-line-active":"verified-custd-mdl-startup-slider-line",style:t&&v?{...i.verifiedCustdMdlStartupSliderLineActive,width:`${y}%`}:t?{...i.verifiedCustdMdlStartupSliderLine,width:`${y}%`}:!t&&v?{width:`${y}%`}:{width:`${y}%`}})}))},Te=fn;import _e,{useState as gn}from"react";var mn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,[r,p]=gn(null),y=h=>{if(h===""){p(null);return}let x=e.searchContent.filter(f=>{let c=f?.name?.toLowerCase(),g=h.toLowerCase();if(c?.includes(g))return f.searched=g,f.nameArray=f.name.split(""),f});p(x),e.handleButtonDisplay()},P=(h,x)=>{e.type==="area-code"?e.setSelected({area:h.phone_code,flag:h.flag,name:h.name}):e.type==="language"&&e.setSelected(h.name),e.setSearchActive&&e.setSearchActive(!1),e.handleButtonDisplay()},w=(h,x)=>h.map((f,c)=>{let g=x.includes(f.toLowerCase());return _e.createElement(a,{key:c,style:g?i.boldText:i.fadedText},f)}),v=(h,x=!1)=>h.map((f,c)=>{let g=t?!1:window?.location?.search===`?${c}`,K=e.selected&&e.selected.length>0,_=e.type==="language"&&g?"verified-custd-mdl-ms-search-content-active":"verified-custd-mdl-ms-search-content";return _e.createElement(s,{key:c,className:_,style:i.resultItem,onPress:()=>P(f,c)},_e.createElement(n,{style:i.resultInner},_e.createElement(l,{source:{uri:e.type==="language"?f.icon:f.flag},alt:"Icon",className:"verified-custd-mdl-ms-search-content-icon",style:i.icon}),_e.createElement(a,{className:"verified-custd-mdl-ms-search-content-text",style:i.resultText},f.nameArray&&f.searched?w(f.nameArray,f.searched):f.name,e.type==="language"&&f.label&&_e.createElement(a,{style:f.searched?.includes(f.label.toLowerCase())?{}:i.fadedText},` (${f.label})`))),e.type==="language"&&K&&g&&_e.createElement(l,{source:{uri:X.circleClicked},alt:"Clicked",style:i.selectedIcon}))});return _e.createElement(n,{className:"verified-custd-mdl-startup-language-content-container",style:i.container},_e.createElement(n,{className:"verified-custd-mdl-st-language-content"},e.headerText&&_e.createElement(a,{className:"verified-custd-mdl-st-language-text",style:i.headerText},e.headerText),_e.createElement(n,{className:"verified-custd-mdl-mobille-startup-search-box-container"},_e.createElement(n,{className:"verified-custd-mdl-mobile-startup-search-box",style:i.searchBox},_e.createElement(l,{source:{uri:X.search},alt:"Search",className:"verified-custd-mdl-mobile-search-icon",style:i.searchIcon}),_e.createElement(b,{placeholder:"Search",className:"verified-custd-mdl-ms-search-box-content",style:i.input,onChangeText:y,onFocus:()=>e.type==="language"&&e.setSelected("")})),_e.createElement(C,{className:"verified-custd-mdl-mobile-startup-search-content",style:{maxHeight:e.contentMaxHeight||300}},_e.createElement(n,{className:"verified-custd-mdl-ms-search-content-container"},(r||e.searchContent)?.length>0&&v(r||e.searchContent))))))},Vt=mn;import Nt from"react";var Ei=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform;return Nt.createElement(a,{style:t?{...i.verifiedCustdMdlTermsAndCondition}:{},className:"verified-custd-mdl-terms-and-condition"},"By proceeding, you agree with Verified Wallet"," ",Nt.createElement(a,{style:t?{...i.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"T&C")," ","and"," ",Nt.createElement(a,{style:t?{...i.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},className:"verified-custd-mdl-terms-and-condition"},"Privacy Policy."))},Yi=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,r=async()=>{e.setIsLoading(!0);try{t?t&&A&&(await A.removeItem("myVault"),await A.removeItem("lastPk")):!t&&chrome?.storage?.local?(await chrome.storage.local.remove("myVault"),await chrome.storage.local.remove("lastPk")):!t&&!chrome?.storage?.local&&localStorage&&(localStorage.removeItem("myVault"),localStorage.removeItem("lastPk")),e.setisOnboard&&e.setisOnboard(!1)}finally{e.setIsLoading(!1)}};return Nt.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...i.verifiedCustdMdlTermsAndCondition,fontSize:W(t,"0.7rem")}:{fontSize:W(t,"0.7rem")}},"Want to access a different account? Click"," ",Nt.createElement(a,{className:"verified-custd-mdl-terms-and-condition",style:t?{...i.verifiedCustdMdlTermsAndCondition,color:"#603FF4",cursor:"pointer"}:{color:"#603FF4",cursor:"pointer"},onPress:r},"Logout")," ","to logout and login/create another account")};var hn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,[r,p]=pt(e.fontsLoaded||!1),[y,P]=pt(""),[w,v]=pt(""),[h,x]=pt(!1),[f,c]=pt(""),[g,K]=pt(!1),{pk:_,vaultContract:E,address:I}=Me();Cn(()=>{let T=async()=>{if(t)u&&await Ne(u),p(!0);else{let G=Se(document);p(G)}};e.fontsLoaded||T()},[]);let Q=()=>{e.selectedCountry.area&&y.length===10||e.userEmail?.length>0&&isNaN(Number(e.userEmail))&&e.userEmail.includes("@")?(c(""),K(!0)):(c(""),K(!1))},z=async()=>{if(e.userEmail===""&&y===""){c("Invalid email or phone number. Try again later");return}if(!e.helperFunctions){c("No Helper Functions provided.");return}if(e.userEmail?.length>0&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.userEmail)){c("Invalid email format.");return}let T=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${y}`,G=e.userEmail?.length>0?"email":"sms";if(T&&G&&_&&E||T&&G&&e.noContract){e.setIsLoading(!0);try{let oe=await e.helperFunctions.sendOTPVerification(I,G,T);e.setIsLoading(!1),oe?(c(""),e.setStep("3")):(c(G==="email"?"Error sending OTP to email. Try again.":"Error sending OTP to phone. Try again."),Xe("OTP Error",G==="email"?"Please enter a valid email.":"Please enter a valid phone number."))}catch{e.setIsLoading(!1),c("Unexpected error. Try again.")}}else e.noContract||c("Network error. Check your internet connection.")};return ae.createElement(C,{style:{width:"100%",height:"100%"}},r&&ae.createElement(n,{style:t?{...i.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},ae.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},ae.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),ae.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},ae.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.enablePhone?"Enter your phone number":"Enter your email address"),e.enablePhone&&ae.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ae.createElement(n,{style:t?{...i.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},ae.createElement(s,{onPress:()=>x(!h),className:"verified-custd-mdl-st-contact-first-section",style:t?{...i.verifiedCustdMdlStContactFirstSection}:{}},ae.createElement(l,{source:{uri:e.selectedCountry.flag},alt:"Country Flag",style:t?{...i.verifiedCustdMdlStContactSelectionIcon}:{},className:"verified-custd-mdl-st-contact-selection-icon"}),ae.createElement(a,{style:t?{...i.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",e.selectedCountry.area),ae.createElement(l,{alt:"Dropdown",className:"verified-custd-mdl-st-contact-dropdown",style:t?{...i.verifiedCustdMdlStContactDropdown}:{},source:h?{uri:X.arrowUp}:{uri:X.arrowDown}})),ae.createElement(b,{className:"verified-custd-mdl-st-contact-second-section",style:t?{...i.verifiedCustdMdlStContactSecondSection}:{},placeholder:"Enter your phone number",placeholderTextColor:"#b6b7c3",value:e.userNumberFmt,keyboardType:"numeric",onChangeText:T=>{let G=T.replace(/\D/g,"");v(T),P(G);let oe="";for(let ue=0;ue<G?.length;ue++)oe+=G[ue],(ue+1)%5===0&&ue+1<G?.length&&(oe+=" ");e.setUserNumberFmt(oe),Q()}})),h&&ae.createElement(Vt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Q,setSelected:e.setSelectedCountry,selected:e.selectedCountry,searchActive:h,setSearchActive:x,contentMaxHeight:"300",contentbottomMargin:"300"}),y.length!==10&&w.length>10&&!f&&ae.createElement(a,{style:t?{...i.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check your phone number")),!h&&ae.createElement(ae.Fragment,null,e.enablePhone&&ae.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...i.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},ae.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...i.verifiedCustdMdlPPPaymentPortalLine}:{}}),ae.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...i.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),ae.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...i.verifiedCustdMdlPPPaymentPortalLine}:{}})),ae.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},ae.createElement(b,{style:t?{...i.verifiedCustdMdlStContactSecondSection}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Enter your email address",placeholderTextColor:"#b6b7c3",value:e.userEmail,onChangeText:T=>{e.setUserEmail(T),e.setUserNumberFmt(""),P(""),v(""),Q()}}),f&&e.userEmail.length>0&&ae.createElement(a,{style:t?{...i.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},f)))),!h&&ae.createElement(n,{style:{height:"80px"}}),ae.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},ae.createElement(Ei,{platform:e.platform}),ae.createElement(s,{style:t&&g?{...i.verifiedCustdMdlStartupButtonActive}:t&&!g?{...i.verifiedCustdMdlStartupButton}:{},className:g?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:z},ae.createElement(a,null,"Get OTP"))))),!r&&ae.createElement(a,null,"Loading Module Fonts..."))},ui=hn;import O,{useEffect as Ii,useRef as yn,useState as yt}from"react";import{AbiCoder as kn,encodeBytes32String as Je,getBytes as Kn}from"ethers";import{combine as pn,split as Gi}from"shamir-secret-sharing";import{contractAddress as Xt,Custody as Et,Provider as mt,VerifiedWallet as it}from"@verified-network/verified-sdk";var Mi=async(e,t)=>{try{return await e.getCreator(t).then(async n=>n?.status===0&&n?.response?.result[0]===!0)}catch(n){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while checking if user exists: ",n),null}},Ti=async(e,t,n,a,l,C,b,s,L,u,A,i,r,p,y,P,w,v)=>{try{let h={vaultId:l,hashedVaultId:C,vaultPin:b,hashedVaultPin:s,vaultContract:i,rawId:P};return await i.getCreator(C).then(async x=>{if(x?.status===0&&x?.response?.result[0]===!0)try{let f;if(P)f=await dt(u,P,b,t);else{let g=Je(b);f=rt(u,g)}let c;if(t?t&&n&&(c=await n.getItem("lastPk")):chrome?.storage?.local?c=await new Promise(g=>{chrome.storage.local.get(["lastPk"],K=>{g(K.lastPk)})}):!chrome?.storage?.local&&localStorage&&(c=localStorage.getItem("lastPk")),r==="reset-pin"&&p?.vaultContract&&w?.length>1&&v>1&&u?.length>0){let g=Number(w.length),_=(await Gi(Kn(u),Number(g),Number(v))).map(G=>Ni(G)),E=P?"":Je(b),I=[],Q=[];for(let G=0;G<w.length;G++){let oe=w[G],ue=P?await dt(_[G],P,b,t):rt(_[G],E);await i.addParticipant(C,oe,ue).then(async me=>{let U={creatorVaultId:l,vaultPin:b,creatorHashedVaultId:C,creatorHashedVaultPin:s,cosigner:oe,hashedCosigner:oe,cosignerVaultIdType:"",cosignerVaultId:oe,share:ue};me?.status===0?Q.push(U):I.push(U)}),await new Promise(me=>setTimeout(me,1e3))}if(I?.length>0||Q?.length!==w?.length)return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),null;let T=await new it(u).getAddress();return t?t&&n&&await n.setItem("myVault",JSON.stringify({address:A,regAddress:T,vaultId:l,hashedVaultId:C,pk:f,channel:L})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:A,regAddress:T,vaultId:l,hashedVaultId:C,pk:f,channel:L})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:A,regAddress:T,vaultId:l,hashedVaultId:C,pk:f,channel:L})),{}}if(c&&c?.length>0)return await i.confirmParticipant(C,C,!0).then(async g=>{if(g?.status===0){t?t&&n&&await n.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let _=await new it(u).getAddress(),E;if(P)E=await dt(u,P,b,t);else{let I=Je(b);E=rt(u,I)}return t?t&&n&&await n.setItem("myVault",JSON.stringify({address:A,regAddress:_,vaultId:l,hashedVaultId:C,pk:E,channel:L})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:A,regAddress:_,vaultId:l,hashedVaultId:C,pk:E,channel:L})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:A,regAddress:_,vaultId:l,hashedVaultId:C,pk:E,channel:L})),h}catch(K){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",K),!1}}else return Xe("Oops something went wrong","Error creating pin for existing vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("confirm pin vault failed: ",g),!1});if(r==="invitation")return{isExisting:!0,...h};{t?t&&n&&await n.setItem("myVault",JSON.stringify({vaultId:l,hashedVaultId:C,pk:f,channel:L})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({vaultId:l,hashedVaultId:C,pk:f,channel:L})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({vaultId:l,hashedVaultId:C,pk:f,channel:L}));let g=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage({type:r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?p:{vaultId:l,hashedVaultId:C,hashedVaultPin:s},txData:y}});else if(!t&&!chrome?.runtime?.sendMessage){let K=new CustomEvent(r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",{detail:{value:{vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?p:{vaultId:l,hashedVaultId:C,hashedVaultPin:s},txData:y}}});g?.dispatchEvent(K)}else if(t&&e){let K=r&&r==="connect_wallet"||r&&r==="eth_requestAccounts"?"getPk":r&&r!=="connect_wallet"?r:"getPk",_={vaultData:r&&r==="signRecovery"||r&&r==="completeRecovery"?p:{vaultId:l,hashedVaultId:C,hashedVaultPin:s},txData:y};e.emit(K,_)}}return r==="getPk"?{vaultId:l,hashedVaultId:C,pk:f,channel:L,shouldStop:!0}:{shouldStop:!0}}catch(f){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error handling existing vault: ",f),Xe("Oops something went wrong","Error fetching existing vault key(s). Try again later"),!1}else if(x?.status===0&&x?.response?.result[0]!==!0)return await i.createVault(C).then(async f=>f?.status===0?(t?t&&n&&await n.setItem("lastPk",u):!t&&chrome?.storage?.local?await chrome.storage.local.set({lastPk:u}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("lastPk",u),await i.confirmParticipant(C,C,!0).then(async c=>{if(c?.status===0){t?t&&n&&await n.removeItem("lastPk"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("lastPk"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("lastPk");try{let K=await new it(u).getAddress(),_;if(P)_=await dt(u,P,b,t);else{let E=Je(b);_=rt(u,E)}return t?t&&n&&await n.setItem("myVault",JSON.stringify({address:A,regAddress:K,vaultId:l,hashedVaultId:C,pk:_,channel:L})):!t&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:A,regAddress:K,vaultId:l,hashedVaultId:C,pk:_,channel:L})}):!t&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:A,regAddress:K,vaultId:l,hashedVaultId:C,pk:_,channel:L})),h}catch(g){return Xe("Oops something went wrong","Error saving new vault details. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("save vault failed: ",g),!1}}else return Xe("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})):(Xe("Oops something went wrong","Error creating new vault. Try again later"),process.env.REACT_APP_NODE_ENV!=="production"&&console.error("create vault failed: ",f),!1))})}catch(h){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",h),Xe("Oops something went wrong","Error while creating pin. Try again later"),!1}},Fi=async(e,t,n,a,l,C,b,s,L,u,A,i,r)=>{try{let p;if(r)p=await gt(C,r,e);else{let y=Je(a);p=ut(C,y)}if(p){let y=Xt,P=new it(p),w=u&&y[u]?.Custody&&ye[u]?.rpcUrls?.length>0?u:8453,v=L[w]?.rpcUrls[0]||ye[w]?.rpcUrls[0],h=P.setProvider(new mt(v)),x=new Et(h,y[w].Custody);return x?await x.getCreator(n).then(async f=>{if(f?.status===0&&f?.response?.result[0]===!0){let c=await x.getQuorum(n);return c?.status===0&&c?.response?.result?.length>0?A&&Number(c?.response?.result[0])>0?{address:b,vaultId:t,hashedVaultId:n,channel:s,chainId:i||w,pin:a,rawId:r,pk:p}:Number(c?.response?.result[0])===0?{address:b,vaultId:t,hashedVaultId:n,channel:s,chainId:i||w,pin:a,rawId:r,pk:p,inCompleteVault:!0}:{address:b,vaultId:t,hashedVaultId:n,channel:s,chainId:i||w,pin:a,rawId:r}:A?{address:b,vaultId:t,hashedVaultId:n,channel:s,chainId:i||w,pin:a,rawId:r,pk:p}:{address:b,vaultId:t,hashedVaultId:n,channel:s,chainId:i||w,pin:a,rawId:r}}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Account does not exist"),null}):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error getting vault contract"),null)}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error decrypting pk"),null}catch(p){return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("unexpected error: ",p),null}},$t=async(e,t,n,a,l,C,b,s,L,u,A,i,r,p)=>{let y;if(i)y=i;else{let P=Xt,w=new it(r),v=p&&P[p]?.Custody&&ye[p]?.rpcUrls?.length>0?p:8453,h=A[v]?.rpcUrls[0]||ye[v]?.rpcUrls[0],x=w.setProvider(new mt(h));y=new Et(x,P[v].Custody)}return y?await y.confirmParticipant(C,a,u).then(async P=>P?.status===0?(u?await e(n,s,L,l):await t(n,s,L,l),!0):(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with"),!1)).catch(P=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("Accept or reject invitation failed with error: ",P),!1)):!1},Bi=async(e,t,n,a,l,C,b,s,L,u,A,i,r,p,y)=>{let P=Number(a.length),v=(await Gi(Uint8Array.from(r.split("").map(c=>c.charCodeAt(0))),Number(P),b)).map(c=>c.join(",")),h=p?"":Je(u),x=[],f=[];for(let c=0;c<a.length;c++){let g=a[c],K=p?await dt(v[c],p,u,e):rt(v[c],h);await i.addParticipant(L,y==="remove-cosigner"?g:q(g.vaultId),K).then(async _=>{let E=y==="remove-cosigner"?{creatorVaultId:s,vaultPin:u,creatorHashedVaultId:L,creatorHashedVaultPin:A,cosigner:g,hashedCosigner:g,cosignerVaultIdType:"",cosignerVaultId:g,share:K}:{creatorVaultId:s,vaultPin:u,creatorHashedVaultId:L,creatorHashedVaultPin:A,cosigner:g.vaultId,hashedCosigner:q(g.vaultId),cosignerVaultIdType:g.otpChannel==="sms"?"PHONE":"EMAIL",cosignerVaultId:g.vaultId,share:K,...g};_?.status===0?(f.push(E),y!=="remove-cosigner"&&g.vaultId!==s&&await t(g.otpChannel,g.vaultId,s,A).then(I=>{I||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending cosigner invite")})):x.push(E)}),await new Promise(_=>setTimeout(_,1e3))}return x?.length>0||f?.length!==a?.length?(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while adding co-signers"),Xe("Oops somethin went wrong","error while adding co-signers"),!1):await i.defineQuorum(L,b.toString()).then(async c=>{if(c?.status===0&&y!=="remove-cosigner"){let g=l?.map(K=>({name:K?.name,email:K?.email,phoneNumber:K?.phoneNumber,contactType:String(K?.otpChannel)?.toUpperCase(),position:`${Jt[Number(K?.position)]} Co-Signer`}));return await n(C,s,g,Number(b),A).then(K=>{K||process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while sending creator's confirmation")}),!0}else if(c?.status===0&&y==="remove-cosigner"){let g=l?.map(async E=>(await i.removeParticipant(L,q(E?.vaultId)))?.status===0?"true":"false");if((await Promise.all(g))?.find(E=>E==="false")?.length>0)return!1;let _=l?.map(E=>({email:E?.email,phoneNumber:E?.phoneNumber,contactType:String(E?.otpChannel)?.toUpperCase(),position:`${Jt[Number(E?.position)]} Co-Signer`}));return await n(C,s,_,Number(b),A,!0).then(E=>{E||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"),Xe("Oops somethin went wrong","error while saving vault keys"),!1})},Vi=async(e,t,n,a,l,C,b,s,L,u,A)=>{let i;if(A)i=await gt(b,A,e);else{let r=Je(C);i=ut(b,r)}if(i){let r=Xt,p=new it(i),y=u&&r[u]?.Custody&&ye[u]?.rpcUrls?.length>0?u:8453,P=L[y]?.rpcUrls[0]||ye[y]?.rpcUrls[0],w=p.setProvider(new mt(P)),v=new Et(w,r[y].Custody);if(v)return await v.promptSignatures(n).then(async h=>{if(h?.status===0&&h?.response?.hash){let x=new kn,f,c;if(h?.response?.result?.logs?.length>0){let g=h?.response?.result?.logs?.filter(E=>E?.address?.toLowerCase()===r[y].Custody?.toLowerCase()&&E?.topics?.map(I=>I?.toLowerCase())?.includes(Ot?.toLowerCase()));c=g?.length;let K=g[0]?.data,_=x.decode(["bytes32","bytes32","uint256"],K)?.map((E,I)=>I<2?E:Number(E)).flat();f=_[_?.length-1]}else{let E=(await new mt(P).getTransactionReceipt(h?.response?.hash)).logs?.filter(z=>z?.address?.toLowerCase()===r[y].Custody?.toLowerCase()&&z?.topics?.map(T=>T?.toLowerCase())?.includes(Ot?.toLowerCase()));c=E?.length;let I=E[0]?.data,Q=x.decode(["bytes32","bytes32","uint256"],I)?.map((z,T)=>T<2?z:Number(z)).flat();f=Q[Q?.length-1]}return await t(s,l,a,Number(f),Number(c)),!0}else return process.env.REACT_APP_NODE_ENV!=="production"&&console.error("prompt signatures failed",h),!1}).catch(h=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while initiating vault recovery",h),!1))}},$i=async(e,t,n,a,l,C,b,s,L,u,A,i,r,p,y)=>{let P;if(y)P=await gt(s,y,e);else{let w=Je(b);P=ut(s,w)}if(P){let w=Xt,v=new it(P),h=p&&w[p]?.Custody&&ye[p]?.rpcUrls?.length>0?p:8453,x=r[h]?.rpcUrls[0]||ye[h]?.rpcUrls[0],f=v.setProvider(new mt(x)),c=new Et(f,w[h].Custody);if(c)return await c.signTransaction(u,a,String(i)).then(async g=>g?.status===0?(await t(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(L)?"email":"sms",L,C,l),await c.checkQuorum(u,i).then(async K=>K?.status===0&&K?.response?.result?(K?.response?.result[0]===!0&&await n(/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(L)?"email":"sms",L,C,l,Number(i)),!0):!1)):!1).catch(g=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while signing vault recovery",g),!1))}},Di=async(e,t,n,a,l,C,b,s,L,u,A,i)=>{let r;if(i)r=await gt(b,i,e);else{let p=Je(C);r=ut(b,p)}if(r){let p=Xt,y=new it(r),P=A&&p[A]?.Custody&&ye[A]?.rpcUrls?.length>0?A:8453,w=u[P]?.rpcUrls[0]||ye[P]?.rpcUrls[0],v=y.setProvider(new mt(w)),h=new Et(v,p[P].Custody);return h?await h.checkQuorum(n,s).then(async x=>x?.status===0&&x?.response?.result&&x?.response?.result[0]===!0?await h.getShards(n,s).then(async f=>{if(f?.status===0&&f?.response?.result){let c=f?.response?.result.filter(g=>g!=="");if(c.length>1){let g=i?"":Je(C),_=(await Promise.all(c.map(Q=>i?gt(Q,i):ut(Q,g)))).map(Q=>new Uint8Array(Q.split(",").map(Number))),E=await pn(_),I=new TextDecoder().decode(E);if(I){let Q=i?"":Je(C),z=i?await dt(I,i,C,e):rt(I,Q),T=new it(I),G=await T.getAddress(),ue=T.setProvider(new mt(w));return e?e&&t&&await t.setItem("myVault",JSON.stringify({address:T?.address,regAddress:G,vaultId:l,hashedVaultId:n,pk:z,channel:L})):!e&&chrome?.storage?.local?await chrome.storage.local.set({myVault:JSON.stringify({address:T?.address,regAddress:G,vaultId:l,hashedVaultId:n,pk:z,channel:L})}):!e&&!chrome?.storage?.local&&localStorage&&localStorage.setItem("myVault",JSON.stringify({address:T?.address,regAddress:G,vaultId:l,hashedVaultId:n,pk:z,channel:L})),!0}}else return!1}else return!1}).catch(f=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",f),!1)):!1).catch(x=>(process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error while restoring login access",x),!1)):!1}};var vn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,[r,p]=yt(e.fontsLoaded||!1),y=yn([]),[P,w]=yt(!1),[v,h]=yt(60),[x,f]=yt(["","","",""]),[c,g]=yt(!1),[K,_]=yt(""),{pk:E,vaultContract:I,address:Q}=Me();Ii(()=>{let U=async()=>{if(t)u&&await Ne(u),p(!0);else{let $=Se(document);p($)}};e.fontsLoaded||U()},[]),Ii(()=>{if(v===0)return;let U=setInterval(()=>h($=>$-1),1e3);return()=>clearInterval(U)},[v]);let z=(U,$)=>{if(U?.length>1){let H=U.replace(/\D/g,""),ve=[...x],re=0;for(let S=$;S<x.length&&re<H.length;S++)ve[S]=H[re],re++;f(ve);let Be=$+H.length;Be<x.length&&y.current[Be]&&y.current[Be].focus(),g(!1)}else{let H=U.replace(/\D/g,""),ve=[...x];ve[$]=H,f(ve),H&&y.current[$+1]&&y.current[$+1].focus(),g(!1)}},T=(U,$,H)=>{H.nativeEvent.key==="Backspace"&&!x[$]&&$>0&&y.current[$-1]&&y.current[$-1].focus()},G=x.every(U=>U.length>0),oe=()=>e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,ue=async()=>{if(!G||!e.helperFunctions){g(!0),_("Please enter the complete OTP.");return}let U=oe(),$=x.join("");if(!(!e.noContract&&!E||!e.noContract&&!I)){e.setIsLoading(!0);try{if(!await e.helperFunctions.checkOTPVerification(Q,U,$)){e.setIsLoading(!1),g(!0);return}let ve=q(U),re=!1;if(!e.noContract&&I&&(re=await Mi(I,ve),re===null)){e.setIsLoading(!1),_("Unexpected error. Try again later."),g(!0);return}e.setIsExistingUser?.(re),e.setIsLoading(!1),e.setStep("4")}catch(H){e.setIsLoading(!1),_("Error verifying OTP. Try again."),g(!0),console.error("error: ",H)}}},me=async()=>{if(!e.helperFunctions){_("Helper functions missing."),g(!0);return}let U=oe(),$=e.userEmail?"email":"sms";e.setIsLoading(!0);let H=await e.helperFunctions.sendOTPVerification(Q,$,U);e.setIsLoading(!1),H?(f(["","","",""]),h(60),g(!1),_("")):Xe("OTP resend failed","Please try again later.")};return O.createElement(C,null,r&&O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},O.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"0"}),O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},"Enter OTP"),O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Enter"," ",O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpHeaderText,color:"#0C0C0E"}:{color:"#0C0C0E"},className:"verified-custd-mdl-startup-otp-header-text"},"4-Digits OTP (One Time Password)")," ","sent to your"," ",e.userNumberFmt?"phone number":"email address",":"),O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt&&O.createElement(O.Fragment,null,O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`(+${e.selectedCountry.area}) `),O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[0]," "),O.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},e.userNumberFmt.split(" ")[1])),e.userEmail&&O.createElement(a,null,e.userEmail)),O.createElement(s,{style:{background:"transparent",width:20,height:20},onPress:()=>{e.setUserNumberFmt(""),e.setUserEmail(""),e.setStep("2")}},O.createElement(l,{source:{uri:X.editBlue},alt:"Edit",style:t?{...i.verifiedCustdMdlStOtpIcon,width:20,height:20}:{},className:"verified-custd-mdl-st-otp-icon"}))))),O.createElement(n,{style:t?{...i.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},O.createElement(n,{style:t?{...i.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},x.map((U,$)=>O.createElement(b,{key:$,ref:H=>y.current[$]=H,value:x[$],onChangeText:H=>z(H,$),onKeyPress:H=>T(H,$,H),keyboardType:"number-pad",maxLength:1,style:t&&c?{...i.verifiedCustdMdlOtpInputRed}:t&&!c?{...i.verifiedCustdMdlOtpInput}:{},className:c?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input"}))),O.createElement(n,{style:t?{...i.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!c&&v>5&&K===""&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpTimerText}:{},className:"verified-custd-mdl-otp-timer-text"},O.createElement(a,{style:{color:"#717286",fontWeight:"400"}},"00:"),v),!c&&v<=5&&v>0&&K===""&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpTimerTextRed}:{},className:"verified-custd-mdl-otp-timer-text-red"},O.createElement(a,{style:{fontWeight:"400"}},"00:"),v),!c&&v===0&&K===""&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Didn't receive an OTP ?"),c&&K===""&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct OTP"),c&&K?.length>0&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},K),!c&&v>0&&K===""&&O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Resend OTP"),!c&&v===0&&K===""||c&&K===""?O.createElement(s,{style:{background:"transparent"},onPress:async()=>{f(["","","",""]),await me()}},O.createElement(a,{style:t?{...i.verifiedCustdMdlOtpResendTextActive}:{},className:"verified-custd-mdl-otp-resend-text-active"},"Resend OTP")):null)),!P&&O.createElement(n,{style:{height:"100px"}}),O.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},O.createElement(s,{className:G&&!c?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:ue,disabled:!G||c,style:G&&!c?{...i.verifiedCustdMdlStartupButtonActive}:{...i.verifiedCustdMdlStartupButton}},O.createElement(a,null,"Proceed"))))),!r&&O.createElement(a,null,"Loading Module Fonts..."))},fi=vn;import d,{useEffect as Hi,useRef as Oi,useState as he}from"react";import Qe,{useEffect as Pn}from"react";var Ln=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i,EventEmitter:r}=e.platform;Pn(()=>{let w;return e.showButton||(w=setTimeout(()=>{if(e.messageTosend)try{let v=t?null:window;if(!t&&chrome?.runtime?.sendMessage)chrome.runtime.sendMessage(e.messageTosend,h=>{h&&e.action!=="signRecovery"&&v?.close()});else if(!t&&!chrome?.runtime?.sendMessage){let h=new CustomEvent(e.messageTosend?.type,{detail:{value:e.messageTosend?.value}});v?.dispatchEvent(h)}else t&&e.eventEmitter&&e.eventEmitter.emit(e.messageTosend?.type,{value:e.messageTosend?.value})}catch(v){process.env.REACT_APP_NODE_ENV!=="production"&&console.error("error sending message: ",v)}e.setStep&&e.stepToSet&&e.setStep(e.stepToSet)},e.timeoutTime??3e3)),()=>{w&&clearTimeout(w)}},[]);let p=()=>{e.setStep?.("6")},y=()=>{!t&&chrome.runtime&&chrome.runtime.sendMessage({type:"VW_REQ",params:{method:"closePopup"}})},P=()=>{e.handleShowDashboard()};return Qe.createElement(n,{style:t?{...i.verifiedCustdMdlSuccessPopupContentContainer,alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0}:{alignContent:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",padding:0},className:"verified-custd-mdl-success-popup-content-container"},Qe.createElement(n,{style:t?{...i.verifiedCustdMdlSuccessPopupContent}:{},className:"verified-custd-mdl-success-popup-content"},Qe.createElement(l,{style:{width:"90%"},source:{uri:X.successIcon},alt:"Success Icon"}),Qe.createElement(n,{style:t?{...i.verifiedCustdMdlSuccessPopupContentText}:{},className:"verified-custd-mdl-success-popup-content-text"},Qe.createElement(a,{style:t?{...i.verifiedCustdMdlSuccessPopupContentTextHeader}:{},className:"verified-custd-mdl-success-popup-content-text-header"},e?.showButton?e.actionHeaderText:e.customTextHeader),Qe.createElement(a,{style:t?{...i.verifiedCustdMdlSuccessPopupContentTextFooter}:{},className:"verified-custd-mdl-success-popup-content-text-footer"},e?.showButton?e.actionFooterText:e.customTextFooter))),e.showButton&&e.buttonText?.length>0&&Qe.createElement(s,{style:t?{...i.verifiedCustdMdlStartupButtonActive,marginTop:10}:{marginTop:10},onPress:()=>{e.action==="invitation"?p():e.action==="completeRecovery"?P():e.buttonFunc&&e.buttonFunc()},className:"verified-custd-mdl-startup-button-active"},Qe.createElement(a,{style:{fontSize:14}},e.buttonText)),e.showButton&&e.buttonNeutText?.length>0&&Qe.createElement(s,{onPress:()=>{e.action==="invitation"?y():e.buttonNeutFunc&&e.buttonNeutFunc()},className:"verified-custd-mdl-startup-button-click",style:t?{...i.verifiedCustdMdlStartupButtonClick,marginTop:10}:{marginTop:10}},Qe.createElement(a,{style:{fontSize:14}},e.buttonNeutText)))},Fe=Ln;import{contractAddress as An,Provider as bn}from"@verified-network/verified-sdk";import{ethers as Ji}from"ethers";var xn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,EventEmitter:i,styles:r,rnPasskey:p}=e.platform,[y,P]=he(e.fontsLoaded||!1),[w,v]=he(!1),[h,x]=he(!0),[f,c]=he(!1),[g,K]=he(""),[_,E]=he(!1),[I,Q]=he(!1),[z,T]=he(!1),[G,oe]=he(!1),[ue,me]=he(""),[U,$]=he(""),[H,ve]=he(null),[re,Be]=he(!1),[S,Ye]=he(!1),[D,ee]=he(!1),[te,Re]=he(""),[ie,$e]=he(""),[Ge,fe]=he([]),[Ke,j]=he(0),[ne,ge]=he(null),{address:Ue,pk:nt,chainId:Oe,vaultContract:Ce,signer:je,setVaultData:qe,setChainId:st,setAddress:Ze,setPk:Lt,setProvider:At,setSigner:J,setVaultContract:Y,vaultData:Ae}=Me(),[de,ze]=he(["","","",""]),[M,F]=he(["","","",""]),N=Oi([]),R=Oi([]);Hi(()=>{let B=async()=>{if(t)u&&await Ne(u),P(!0);else{let k=Se(document);P(k)}};e.fontsLoaded||B()},[]),Hi(()=>{let B=async()=>{e.setIsLoading&&e.setIsLoading(!0);let k=await e.vaultData?.vaultContract.getQuorum(e.vaultData?.hashedVaultId);if(k?.status===0&&k?.response?.result?.length>0){let bt=Number(k?.response?.result[0]);j(bt)}if(e.vaultData?.existingCosignersHashed?.length>0){fe([...new Set(e.vaultData?.existingCosignersHashed)]),e.setIsLoading&&e.setIsLoading(!1);return}let se=An[Oe]?.Custody;if(!se)return;let le=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Ji.Contract(se,le,e.vaultData?.signer))return;let ce=new Ji.Interface(le),Ct=ce.getEvent("NewParticipant").topicHash,Qi=(await new bn(e.externalchainConfig[Oe]?.rpcUrls[0]||ye[Oe]?.rpcUrls[0])?.getLogs({address:se,fromBlock:ye[Oe]?.custodyContractBlock||0,toBlock:"latest",topics:[Ct]}))?.map(bt=>{let Mt=ce.parseLog(bt);return Mt?.args?.creator?.toLowerCase()===q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Mt?.args?.creator!==Mt?.args?.participant?Mt?.args?.participant:null})?.filter(bt=>bt!==null);fe([...new Set(Qi)]),e.setIsLoading&&e.setIsLoading(!1)};e.isExistingUser&&e.action==="reset-pin"&&e.vaultData?.signer,e.vaultData?.hashedVaultId,e.vaultData?.vaultContract&&B()},[e.isExistingUser,e.action,e.vaultData]);let be=(B,k,V)=>{c(!1),K("");let se=B.replace(/\D/g,""),le=V?[...M]:[...de];le[k]=se,V?(F(le),se&&R.current[k+1]&&R.current[k+1].focus(),k<3&&le.every(xe=>xe!=="")&&de.every(xe=>xe!=="")&&le.join("")!==de.join("")&&(c(!0),K("Confirm Pin must match New Pin.")),k===3&&de.join("")!==le.join("")&&(c(!0),K("Confirm Pin must match New Pin."))):(ze(le),se&&N.current[k+1]&&N.current[k+1].focus(),M.every(xe=>xe!=="")&&le.join("")!==M.join("")&&(c(!0),K("New Pin must match Confirm Pin.")))},Ve=async B=>{K(""),c(!1);try{let k=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`;if(chrome?.windows?.create){let V=e?.createPasskeyDomain?.length>0?e?.createPasskeyDomain:hi,se=async(le,xe,ce)=>{if(le.type==="VW:Passkey_Credential")if(le?.origin&&V?.toLowerCase()?.startsWith(le?.origin?.toLowerCase())){ne&&chrome.windows.remove(ne),xe?.tab&&xe?.tab?.windowId&&chrome.windows.remove(xe.tab.windowId);let et=le.data;if(et?.id&&et?.rawId){let Ct=St(et?.rawId),Gt=He(Ct),Ci={pinString:et?.id,hashed:Gt,rawId:Ct,listener:se};await lt(Ci)}else K(`Passkey creation failed: ${et?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else K("Passkey creation failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(se),await chrome.windows.create({url:`${V}?id=${k}`,type:"popup",width:500,height:600}).then(le=>{ge(le.id)})}else{if(t&&!p.isSupported())return K("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0),null;let V=t?await p.create(ci("Verified Wallet",k,q(k),B)):await navigator?.credentials?.create({publicKey:ci("Verified Wallet",k,q(k))});if(V){let se=He(V?.rawId);return{pinString:V?.id,hashed:se,rawId:V?.rawId}}}return null}catch(k){return K(`Passkey creation failed: ${k?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0),null}},De=async B=>{if(K(""),c(!1),chrome?.windows?.create&&window){let k=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Tt,V=async(se,le,xe)=>{if(se.type==="VW:Passkey_Credential")if(se?.origin&&k?.toLowerCase()?.startsWith(se?.origin?.toLowerCase())){ne&&chrome.windows.remove(ne),le?.tab&&le?.tab?.windowId&&chrome.windows.remove(le.tab.windowId);let ce=se.data;if(ce?.id&&ce?.rawId){let et=St(ce?.rawId),Ct=He(et),Gt={pinString:ce?.id,hashed:Ct,rawId:et,listener:V};await lt(Gt)}else K(`Passkey authentication failed: ${ce?.error?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}else K("Passkey authentication failed: invalid passkey origin. Try again later"),c(!0)};chrome.runtime.onMessage.addListener(V),await chrome.windows.create({url:`${k}`,type:"popup",width:500,height:600}).then(se=>{ge(se.id)})}else try{if(t&&!p.isSupported()){K("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),c(!0);return}let k=t?await p.get(ft(B)):await navigator?.credentials?.get({publicKey:ft()}),V=He(k?.rawId);return{pinString:k?.id,hashed:V,rawId:k?.rawId}}catch(k){K(`Passkey authentication failed: ${k?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),c(!0)}},at=(B,k,V,se)=>{let le=V.nativeEvent.key;!se&&le==="Backspace"&&!de[k]&&k>0&&N.current[k-1]&&N.current[k-1].focus(),se&&le==="Backspace"&&!M[k]&&k>0&&R.current[k-1]&&R.current[k-1].focus()},Pe=()=>S?e.isExistingUser?de.every(B=>B!==""):de.every(B=>B!=="")&&M.every(B=>B!==""&&de.join("")===M.join("")):!0,Ie=()=>!!(D&&ie?.length===66&&ie?.toLowerCase()?.startsWith("0x")),lt=async B=>{if(B?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(B?.listener),!e.helperFunctions)K("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);else{K(""),c(!1);let k=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(!e.isExistingUser&&Pe()&&k&&V&&nt&&Ue&&Ce||!e.isExistingUser&&Pe()&&k&&V&&e.vaultData?.vaultContract&&e.vaultData?.hashedOldPin||e.isExistingUser&&Pe()&&k&&V&&nt&&Ue&&Ce||e.isExistingUser&&Pe()&&k&&V&&e.vaultData?.vaultContract){e.setIsLoading(!0);let se=B?.pinString||de.join(""),le=q(k),xe=B?.hashed||q(se);await Ti(e.eventEmitter,t,A,i,k,le,se,xe,V,B?.pk?B?.pk:nt||e.vaultData?.pk,B?.address?B?.address:Ue||e.vaultData?.address,B?.vaultContract?B?.vaultContract:Ce||e.vaultData?.vaultContract,e.action,B?.vaultData?B?.vaultData:e.vaultData,e.txData,B?.rawId,e.action==="reset-pin"?[e.vaultData?.hashedVaultId,...Ge]:void 0,Ke).then(async ce=>{e.setIsLoading(!1),ce?(qe(ce?.shouldStop&&ce?.vaultId?{vaultId:ce?.vaultId,hashedVaultId:ce?.hashedVaultId,hashedVaultPin:ce?.hashedVaultPin,pk:ce?.pk,rawId:ce?.rawId,channel:ce?.channel}:ce?.shouldStop?{}:ce),K(""),c(!1),e.action==="invitation"?($(se),ve(B?.rawId),Q(!0)):e.action==="reset-pin"?(t?t&&A&&S&&await A.removeItem("myVault"):!t&&chrome?.storage?.local&&S?chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&S&&localStorage.removeItem("myVault"),await e.helperFunctions.sendCreatorAuthChanged(V,k,B?.hashed,e.vaultData.hashedVaultPin,Date.now()),me(`You have successfully reset your account ${S?"4-Digits PIN":"Passkey"}. ${S?"Login with the new 4-Digits PIN":"your new Passkey will be used to authenticate your account."}`),E(!0)):ce?.shouldStop?ce?.shouldStop&&e.action!=="getPk"?(me(""),E(!0)):ce?.shouldStop&&e.action==="getPk"&&e.setStep("0"):e.setStep("5")):ce===null?e.action==="reset-pin"?(K("Reset pin failed. Try again later."),c(!0)):(K(`You are an existing user. Please use the right ${S?"existing 4-Digits PIN":"existing Passkey for "+k} to recover your account login access on this device/browser`),c(!0)):(K("Unexpected error while handling account. Please try again later."),c(!0))})}else Pe()||(K(e.isExistingUser?"Enter full pin.":"New Pin must match Confirm Pin."),c(!0))}},mi=async B=>{let k=e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`,V=e.userEmail?.length>0?"email":"sms";if(U?.length===4&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&k||H&&e?.vaultData?.hashedVaultId&&e.vaultData?.hashedVaultPin&&k){e.setIsLoading(!0);let se=q(k),le=S?q(U):He(H);await $t(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,V,se,le,e?.vaultData?.hashedVaultId,e.vaultData?.hashedVaultPin,e.vaultData?.vaultId,k,B,e.externalchainConfig,Ce).then(xe=>{e.setIsLoading(!1),xe&&!Ae?.isExisting&&e.setShowSuccessBtn&&e.setSuccessBtnText&&e.setSuccessBtnNeutText&&e.setActionHeaderText&&e.setActionFooterText?(e.setShowSuccessBtn(!0),e.setSuccessBtnText("Continue Setting Up Your Account"),e.setSuccessBtnNeutText("Do It Later"),e.setActionHeaderText("Successful"),e.setActionFooterText(B?`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`:`You rejected Co-signer reject from ${e.vaultData?.vaultId}`),e.setStep("5")):xe&&Ae?.isExisting&&T(!0)})}};return d.createElement(C,{contentContainerStyle:{flexGrow:1,padding:16,backgroundColor:"#fff"}},y&&d.createElement(d.Fragment,null,!_&&!I&&d.createElement(d.Fragment,null,!D&&d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Create PIN":"Secure Your Account with a Passkey"),e.isExistingUser&&e.action!=="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Enter PIN":"Sign-in with Existing Passkey"),e.isExistingUser&&e.action==="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},S?"Change Pin":"Change Passkey"),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Protect your blockchain assets with"," ",S?"PIN":"Passkey",". This"," ",S?"PIN":"Passkey"," will be required for all future transactions and logins."),e.isExistingUser&&d.createElement(d.Fragment,null,e.action!=="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",d.createElement(a,{style:{color:"#0C0C0E"}},S?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account."),e.action==="reset-pin"&&d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, Create new",d.createElement(a,{style:{color:"#0C0C0E"}},S?"4-Digits PIN":"Passkey")," ","for your"," ",d.createElement(a,{style:{color:"#0C0C0E"}},e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)," ","account.")))),!S&&d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Create New Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Click"," ",e.action==="reset-pin"?"Create New Passkey":"Login With Passkey"," ","button, passkey popup will appears"," ",e.action==="reset-pin"?"to create new passkey and secure your account":"to login using the accoun't passkey."),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),S&&d.createElement(d.Fragment,null,d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},!e.isExistingUser&&d.createElement(a,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"New PIN"),d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},de.map((B,k)=>d.createElement(b,{key:`pin-${k}`,style:t&&f?{...r.verifiedCustdMdlOtpInputRed}:t&&f?{...r.verifiedCustdMdlOtpInput}:{},className:f?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:h,keyboardType:"number-pad",maxLength:1,ref:V=>N.current[k]=V,value:de[k],onChangeText:V=>be(V,k,!1),onKeyPress:V=>at(V,k,V,!1)}))),e.isExistingUser&&d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!f&&d.createElement(a,null),f&&g===""&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),f&&g?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:X.pinShow}})),h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:X.pinHide}})))),!e.isExistingUser&&d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},d.createElement(a,{style:t?{...r.verifiedCustdMdlPinInputContainerText}:{},className:"verified-custd-mdl-pin-input-container-text"},"Confirm PIN"),d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},M.map((B,k)=>d.createElement(b,{key:`confirm-${k}`,style:t&&f?{...r.verifiedCustdMdlOtpInputRed}:t&&!f?{...r.verifiedCustdMdlOtpInput}:{},className:f?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",secureTextEntry:h,keyboardType:"number-pad",maxLength:1,ref:V=>R.current[k]=V,value:M[k],onChangeText:V=>be(V,k,!0),onKeyPress:V=>at(V,k,V,!0)}))),d.createElement(n,{style:t?{...r.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},!f&&d.createElement(a,null),f&&g===""&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),f&&g?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),!h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!0)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:X.pinShow}})),h&&d.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>x(!1)},d.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:X.pinHide}})))))),!re&&d.createElement(n,{style:{height:20}}),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(n,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},!S&&d.createElement(d.Fragment,null,f&&g?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),e.isExistingUser&&d.createElement(d.Fragment,null,e.action==="reset-pin"&&!S&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText,color:"#603FF4",margin:"10px"}:{color:"#603FF4",margin:"10px"},className:"verified-custd-mdl-otp-incorrect-text"},'Note: Before starting this process ensure you have backed up your private key. To do so, please navigate to the "Account" section on your dashboard and click on "View Private Key." Once displayed, write down the private key and store it securely. Incomplete passkey change process may result in loss of access to your account.'),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",onPress:async B=>{if(e.action==="reset-pin"){let k=await Ve(e?.passKeyRpId);k&&await lt(k)}else{let k=await De(e?.passKeyRpId);k&&await lt(k)}}},e.action==="reset-pin"&&d.createElement(a,null,"Create New Passkey"),e.action!=="reset-pin"&&d.createElement(a,null,"Login With Passkey"))),!e.isExistingUser&&d.createElement(d.Fragment,null,d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t?{...r.verifiedCustdMdlStartupButtonActive}:{},className:"verified-custd-mdl-startup-button-active",disabled:w,onPress:async B=>{if(!w){v(!0);try{if(!e.helperFunctions){K("No Helper Functions. Please include all helper functions in the CreatePinPage props."),c(!0);return}let k=await Ve(e?.passKeyRpId);k&&await lt(k)}finally{v(!1)}}}},d.createElement(a,null,"Create New Account")),d.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-amount-info-separator",style:t?{...r.verifiedCustdMdlPPPaymentPortalAmountInfoSeparator}:{}},d.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}}),d.createElement(a,{className:"verified-custd-mdl-p-payment-portal-separator-text",style:t?{...r.verifiedCustdMdlPPaymentPortalSeparatorText}:{}},"OR"),d.createElement(n,{className:"verified-custd-mdl-p-p-payment-portal-line",style:t?{...r.verifiedCustdMdlPPPaymentPortalLine}:{}})),d.createElement(s,{style:t?{...r.verifiedCustdMdlStartupButtonClick}:{border:"1px solid var(--Neutral-950, #0c0c0e)"},className:"verified-custd-mdl-startup-button-click",onPress:async B=>{ee(!0)}},d.createElement(a,null,"Import An Existing account")))),S&&d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Pe()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Pe()?{...r.verifiedCustdMdlStartupButton}:{},className:Pe()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",onPress:async B=>{await lt()}},d.createElement(a,null,"Proceed"))))),D&&d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupLanguage}:{},className:"verified-custd-mdl-startup-language"},d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContactContent,display:"flex",flexDirection:"row",overflow:"hidden"}:{display:"flex",flexDirection:"row",overflow:"hidden"},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText,width:"80%"}:{},className:"verified-custd-mdl-startup-contact-text"},"Import Existing Account"),d.createElement(s,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{K(""),c(!1),ee(!1)}},d.createElement(l,{source:{uri:X.closeIcon},alt:"Close",style:t?{...r.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"})))),d.createElement(n,{style:t?{...r.verifiedCustdMdlStContactInput,marginTop:"20px",marginBottom:"20px"}:{marginTop:"20px",marginBottom:"20px"},className:"verified-custd-mdl-st-contact-input"},d.createElement(b,{style:t?{...r.verifiedCustdMdlStContactSecondSection,marginTop:10,marginBottom:10}:{},className:"verified-custd-mdl-st-contact-second-section",placeholder:"Private key starting with 0x",placeholderTextColor:"#b6b7c3",value:ie,onChangeText:B=>{$e(B)}}),te?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},te)),d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"A passkey replaces passwords. Only your device can unlock it via PIN, Face/Voice/Fingerprint."),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Proceed With Passkey" button, passkey setup popup will appears to create new passkey and secure your account.'),d.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey"))),!re&&d.createElement(n,{style:{height:20}}),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},d.createElement(n,{style:t?{...r.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},f&&g?.length>0&&d.createElement(a,{style:t?{...r.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},g),d.createElement(s,{id:"verified-custd-mdl-otp-button",style:t&&Ie()?{...r.verifiedCustdMdlStartupButtonActive}:t&&!Ie()?{...r.verifiedCustdMdlStartupButton}:{},className:Ie()?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",disabled:w,onPress:async B=>{if(!w){v(!0);try{if(!Ie()){c(!0),K("Invalid private key entered. Please scroll up, check private key and try again.");return}let k=await ot(e.externalchainConfig,Oe,ie);if(!k?.chainId||!k?.address||!k?.pk||!k?.provider||!k?.signer||!k?.vaultContract){c(!0),K("Invalid private key entered. Please check private key starts with 0x and try again.");return}st(k.chainId),Ze(k.address),Lt(k.pk),At(k.provider),J(k.signer),qe(k.vaultData),Y(k.vaultContract);let V=await Ve(e?.passKeyRpId);V&&await lt({...V,pk:k.pk,vaultContract:k.vaultContract,signer:k.signer,address:k.address,vaultData:k.vaultData})}catch{c(!0),K("Error while importing account.try again later.");return}finally{v(!1)}}}},d.createElement(a,null,"Proceed With Passkey")))))),!_&&I&&d.createElement(d.Fragment,null,!z&&d.createElement(n,{className:"verified-custd-mdl-startup-language",style:t?{...r.verifiedCustdMdlStartupLanguage,padding:0,position:"relative"}:{padding:0,position:"relative"}},d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},d.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),d.createElement(n,{style:t?{...r.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},d.createElement(a,{style:t?{...r.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId)," ","has requested you to be a Co-Signer"))),d.createElement(l,{style:t?{...r.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:X.addCoSignerIcon1}}),!G&&d.createElement(C,null,d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),d.createElement(a,{className:"verified-custd-mdl-add-cosigner-more-label",style:t?{...r.verifiedCustdMdlAddCosignerMoreLabel}:{fontSize:12,color:"#5B5D6E"}},"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."),d.createElement(n,{className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:X.pkicon}})),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},d.createElement(l,{source:{uri:X.encryptedIcon}})),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut",onPress:()=>oe(!0)},d.createElement(a,null,"Reject")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await mi(!0)}},d.createElement(a,null,"Accept")))),G&&d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),d.createElement(a,{style:t?{...r.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"#5B5D6E"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",d.createElement(a,{style:{fontWeight:"bold"}},e.vaultData?.vaultId),", you will not be able to reset the PIN for them.")),d.createElement(n,{style:t?{...r.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:async()=>{await mi(!1)}},d.createElement(a,null,"Yes")),d.createElement(s,{style:t?{...r.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action",onPress:()=>oe(!1)},d.createElement(a,null,"No"))))))),z&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:G?`You rejected Co-signer request from ${e.vaultData?.vaultId}`:`You have been added as a Co-Signer for ${e.vaultData?.vaultId}`,eventEmitter:e.eventEmitter})),_&&d.createElement(Fe,{platform:e.platform,messageTosend:{type:"closePopup",key:"",value:""},customTextHeader:"Successful",customTextFooter:ue?.length>0?ue:"You have successfully logged in your account.",eventEmitter:e.eventEmitter})),!y&&d.createElement(a,null,"Loading Module Fonts..."))},Yt=xn;import o,{useEffect as Ri,useState as ke}from"react";import{ethers as Ui}from"ethers";import{contractAddress as _n,Provider as wn}from"@verified-network/verified-sdk";var Sn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i}=e.platform,[r,p]=ke(e.fontsLoaded||!1),[y,P]=ke(!1),[w,v]=ke(!1),[h,x]=ke("1"),[f,c]=ke("1"),[g,K]=ke(!1),[_,E]=ke("email"),[I,Q]=ke(""),[z,T]=ke(""),[G,oe]=ke(""),[ue,me]=ke(""),[U,$]=ke(""),[H,ve]=ke(!1),[re,Be]=ke(e.defaultCountry||{area:"1",flag:X.usaFlag,name:"United States"}),[S,Ye]=ke([]),[D,ee]=ke(0),[te,Re]=ke([]),[ie,$e]=ke([]),[Ge,fe]=ke(!1),[Ke,j]=ke(2),[ne,ge]=ke(""),[Ue,nt]=ke(!1),{pk:Oe,vaultData:Ce,vaultContract:je,chainId:qe,signer:st}=Me();Ri(()=>{let J=async()=>{if(t)try{let Y=await Ne(u);p(!0)}catch{p(!1)}else{let Y=Se(document);p(Y)}};e.fontsLoaded||J()},[]),Ri(()=>{let J=async()=>{e.setIsLoading&&e.setIsLoading(!0);let Y=q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`),Ae=await je.getQuorum(Y);if(Ae?.status===0&&Ae?.response?.result?.length>0){let Pe=Number(Ae?.response?.result[0]);ee(Pe),$e(new Array(Pe).fill(" "))}if(e.setIsLoading&&e.setIsLoading(!1),Ce?.existingCosignersHashed?.length>0){Re([...new Set(Ce?.existingCosignersHashed)]),$e([...new Set(Ce?.existingCosignersHashed)]);return}let ze=_n[qe]?.Custody;if(!ze)return;let M=[{anonymous:!1,inputs:[{indexed:!1,name:"creator",type:"bytes32"},{indexed:!1,name:"participant",type:"bytes32"}],name:"NewParticipant",type:"event"}];if(!new Ui.Contract(ze,M,st))return;let N=new Ui.Interface(M),be=N.getEvent("NewParticipant").topicHash,at=(await new wn(e.externalchainConfig[qe]?.rpcUrls[0]||ye[qe]?.rpcUrls[0])?.getLogs({address:ze,fromBlock:ye[qe]?.custodyContractBlock||0,toBlock:"latest",topics:[be]}))?.map(Pe=>{let Ie=N.parseLog(Pe);return Ie?.args?.creator?.toLowerCase()===q(e.userEmail?.length>0?e.userEmail:`+${e.selectedCountry.area}${e.userNumberFmt?.replace(" ","")}`)&&Ie?.args?.creator!==Ie?.args?.participant?Ie?.args?.participant:null})?.filter(Pe=>Pe!==null);Re([...new Set(at)]),$e([...new Set(at)])};(e.userEmail?.length>0&&e.action==="remove-cosigner"&&st&&je||e.userNumberFmt?.length>0&&e.action==="remove-cosigner"&&st&&je)&&J()},[e.userEmail,e.action,e.userNumberFmt,e.selectedCountry.area]);let Ze=()=>{},Lt=()=>{let J=S?.length;if(_==="sms"&&I?.length===0){ge("Invalid input, please check the phone number");return}else if(_==="sms"&&I?.length!==10){ge("Invalid input, please check the phone number");return}else if(_==="email"&&G?.length===0){ge("Invalid input, please check the email");return}else if(_==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(G)){ge("Invalid input, please check the email");return}else if(S?.find(Y=>Y?.otpChannel==="sms"?Y?.phoneArea?.toLowerCase()+Y?.number?.toLowerCase()===re.area?.toLowerCase()+z?.toLowerCase():Y?.email?.toLowerCase()===G?.toLowerCase())){e.action!=="remove-cosigner"&&ge(_==="sms"?"Invalid input, phone number is already a co-signer":"Invalid input, email is already a co-signer"),e.action==="remove-cosigner"&&ge(_==="sms"?"Invalid input, phone number is already added to list of co-signers to remove":"Invalid input, email is already added to list of co-signers to remove");return}else if(_==="sms"&&re?.area?.toLowerCase()+z?.toLowerCase()===e.selectedCountry.area?.toLowerCase()+e.userNumberFmt?.toLowerCase()){ge("Invalid input, phone number is creator's phone number");return}else if(_==="email"&&G?.toLowerCase()===e.userEmail?.toLowerCase()){ge("Invalid input, email is creator's email");return}else if(e.action==="remove-cosigner"&&te?.length===0){ge("Error while fetching your existing cosigners. Try again later");return}else if(e.action==="remove-cosigner"&&!te?.includes(q(_==="sms"?`+${re?.area}${I}`:G))){ge(_==="sms"?"Invalid input, phone number entered is not a valid co-signer of your account.":"Invalid input, email entered is not a valid co-signer of your account.");return}else if(e.action==="remove-cosigner"&&ie?.length===1){ge("You have only 1 co-signer left, at least one(1) co-signer is required.");return}else if(J+1===5){ge("You cannot add more than 5 Co-signers to your account. You can delete existing cosigner and add new one.");return}ge(""),Ye(Y=>[{name:ue,email:G,number:z,phoneNumber:`+${re?.area}${I}`,otpChannel:_,phoneArea:re?.area,position:Y?.length+1,vaultId:_==="sms"?`+${re?.area}${I}`:G},...Y]),oe(""),me(""),Q(""),T(""),$(""),J+1===4&&K(!1),e.action==="remove-cosigner"&&ie?.length>1&&$e(ie?.filter(Y=>Y!==q(_==="sms"?`+${re?.area}${I}`:G)))},At=async()=>{e.setIsLoading(!0);let J=e.action!=="remove-cosigner"?[{otpChannel:e?.userEmail?.length>0?"email":"sms",email:e?.userEmail,phoneNumber:`+${e?.selectedCountry?.area}${e?.userNumberFmt?.replace(" ","")}`,vaultId:Ce?.vaultId},...S]:[Ce?.hashedVaultId,...ie];e.action!=="remove-cosigner"&&J?.length>0&&S?.length>0&&Ke&&Ce?.vaultId&&Ce?.hashedVaultId&&je&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation||e.action==="remove-cosigner"&&J?.length>1&&Ke&&Ce?.vaultId&&Ce?.hashedVaultId&&je&&Oe&&e.helperFunctions?.sendCoSignerInvitation&&e.helperFunctions?.sendCreatorConfirmation?(e.setIsLoading(!0),await Bi(t,e.helperFunctions.sendCoSignerInvitation,e.helperFunctions.sendCreatorConfirmation,J,S,e?.userEmail?.length>0?"email":"sms",Ke,Ce.vaultId,Ce.hashedVaultId,Ce.vaultPin,Ce.hashedVaultPin,je,Oe,Ce?.rawId,e.action).then(Y=>{e.setIsLoading(!1),Y&&(e.action==="remove-cosigner"?nt(!0):e.setStep("7"))})):e.setIsLoading(!1)};return o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupLanguage,padding:"0"}:{padding:"0"},className:"verified-custd-mdl-startup-language"},r&&!Ue&&o.createElement(o.Fragment,null,!w&&o.createElement(o.Fragment,null,f==="1"&&o.createElement(o.Fragment,null,o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},o.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"You can remove an existing Co-signer":" We require you to add at least another Co-Signer."))),o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:X.addCoSignerIcon1},alt:""}),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBody}:{},className:"verified-custd-mdl-add-cosigner-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:X.pkicon},alt:"icon"})),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"This is a blockchain based platform where"," ",o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"we do not store password keys."))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:X.encryptedIcon},alt:"icon"})),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, the"," ",o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"Co-Signer does not get access")," ","to your account in any way.")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},o.createElement(l,{source:{uri:X.supervise},alt:"icon"})),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You can"," ",o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},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."),e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"You may remove an existing Co-signer; however"," ",o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"at least one (1) Co-signer must remain")," ","on the account. You can manage your account\u2019s Co-signers on the next page."))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},onPress:()=>{x("1"),v(!0)},className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Learn More")),o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonAction,width:"50%"}:{width:"50%"},onPress:()=>{c("2"),K(!1),v(!1)},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,e.action==="remove-cosigner"?"Manage Signers":"Add Co-Signer")))),f==="2"&&o.createElement(o.Fragment,null," ",o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},o.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"2"}),o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent,gap:16}:{gap:16},className:"verified-custd-mdl-startup-contact-content"},o.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},e.action==="remove-cosigner"?"Remove your Co-signers":"Add your Co-Signers"),o.createElement(n,{style:t?{...i.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},!Ge&&o.createElement(o.Fragment,null,o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},e.action==="remove-cosigner"?"Input phone number/an Email ID of the Co-Signer you want to remove":"Add a phone number/an Email ID of Co-Signer to send them a request."),e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderText}:{},className:"verified-custd-mdl-add-cosigner-header-text"},"You Signing rule is"," ",o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},D," required signers"))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderInfoCont}:{},className:"verified-custd-mdl-add-cosigner-header-info-cont"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderInfoText}:{},className:"verified-custd-mdl-add-cosigner-header-info-text"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerHeaderInfoTextBold}:{},className:"verified-custd-mdl-add-cosigner-header-info-text-bold"},"NOTE:")," ",e.action==="remove-cosigner"?"You cannot remove all Co-signers at least one(1) must remain, This is to ensure your account is secured.":"You can add yourself as a Co-Signer and further add more Co-Signers to your account."))))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2Body}:{},className:"verified-custd-mdl-add-cosigner-step2-body"},e.action==="remove-cosigner"&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyHeaderFirstText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-first-text"},e.action==="remove-cosigner"?"Remove Co-signers":"Add Co-Signers"),e.action!=="remove-cosigner"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length+1<5?S?.length+1:5,"/5)"),e.action==="remove-cosigner"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyHeaderSecondText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-header-second-text"},"(",S?.length,"/5)")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContent}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header"},e.action==="remove-cosigner"&&ie?.includes(" ")&&o.createElement(a,{style:t?{...i.verifiedCustdMdlOtpResendText}:{},className:"verified-custd-mdl-otp-resend-text"},"Fetching previous Co-signers..."),e.action!=="remove-cosigner"&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},"Creator")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},"You"),e.userEmail?.length>0&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},e.userEmail),e.userEmail?.length===0&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",e.selectedCountry.area,")"," ",e.userNumberFmt))))),!Ge&&S.sort((J,Y)=>J?.position-Y?.position).map((J,Y)=>o.createElement(n,{key:Y,style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderBody}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabel}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentHeaderLabelText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-header-label-text"},xt[J?.position]?.split(" ")[0],o.createElement(a,null,o.createElement(a,{style:{fontSize:10}},xt[J?.position]?.split(" ")[1]))," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeaderCont}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeader}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-header"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyTitle}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-title"},J?.name),J.otpChannel==="email"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},J.email),J.otpChannel==="sms"&&o.createElement(a,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyLabel}:{},className:"verified-custd-mdl-a-c-2-b-content-header-body-label"},"(+",J?.phoneArea,") ",J.number))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAC2BContentHeaderBodyHeaderIcons,flexDirection:"row"}:{flexDirection:"row"},className:"verified-custd-mdl-a-c-2-b-content-header-body-header-icons"},o.createElement(s,{style:{background:"transparent",width:24,height:24},onPress:()=>{Ye(Ae=>Ae?.filter(de=>de?.otpChannel==="sms"?de?.phoneArea?.toLowerCase()+de?.number?.toLowerCase()!==J?.phoneArea?.toLowerCase()+J?.number?.toLowerCase():de?.email?.toLowerCase()!==J?.email?.toLowerCase())?.map((de,ze)=>(de.position=ze+1,de))),Ze()}},o.createElement(l,{style:{cursor:"pointer",width:24,height:24},source:{uri:X.delete}}))))))),Ge&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},o.createElement(n,{style:{width:"100%",display:"flex",flexDirection:"row",overflow:"hidden"}},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Specify the number of Co-Signers you need to sign off for an approval"),o.createElement(s,{style:{background:"transparent",width:30,height:30,maxWidth:"30%"},onPress:()=>{fe(!1)}},o.createElement(l,{source:{uri:X.closeIcon},alt:"Close",style:t?{...i.verifiedCustdMdlStOtpIcon,width:30,height:30}:{},className:"verified-custd-mdl-st-otp-icon"}))),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyLabel}:{},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.")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooter,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-add-cosigner-confirm-body-footer"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterIndCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-cont"},new Array(e.action==="remove-cosigner"?ie?.length+1:S?.length+1).fill("1").map((J,Y)=>o.createElement(n,{key:Y,className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind",style:Y+1===Ke&&t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterInd}:Y+1===Ke&&!t?{}:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterInd,height:0,width:0,overflow:"hidden"}:{height:0,width:0,overflow:"hidden"}},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterIndTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text-cont"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterIndText}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-text"},String(Y+1))),o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterIndIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-ind-icon",source:{uri:X.pointer}})))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSlider}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider"},e.action!=="remove-cosigner"&&o.createElement(n,{style:t&&S?.length===1?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length}%`}:!t&&S?.length===1?{width:`${100/S?.length}%`}:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/S?.length+5}%`}:{width:`calc(${100/S?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:X.sliderDot}})),e.action==="remove-cosigner"&&o.createElement(n,{style:t&&ie?.length===1?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ie?.length}%`}:!t&&ie?.length===1?{width:`${100/ie?.length}%`}:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderInd,width:`${100/ie?.length+5}%`}:{width:`calc(${100/ie?.length}% + 12px)`},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-ind"},o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelSliderIcon}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-slider-icon",source:{uri:X.sliderDot}})))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelTextCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text-cont"},new Array(e.action==="remove-cosigner"?ie?.length+1:S?.length+1).fill("1").map((J,Y)=>o.createElement(s,{style:{background:"transparent"},key:Y,onPress:()=>{Y+1>1&&j(Y+1)}},e.action!=="remove-cosigner"&&o.createElement(a,{style:t&&Y===S?.length?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===S?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1)),e.action==="remove-cosigner"&&o.createElement(a,{style:t&&Y===ie?.length?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingRight:12}:t&&Y===0?{...i.verifiedCustdMdlAddCosignerConfirmBodyFooterLabelText,paddingLeft:12}:!t&&Y===0?{paddingLeft:12}:!t&&Y===ie?.length?{paddingRight:12}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-footer-label-text"},String(Y+1))))))),o.createElement(s,{id:"confirm-cosigner-button",style:t?{...i.verifiedCustdMdlStartupButtonActive,marginBottom:10,width:"100%"}:{marginBottom:10,width:"100%"},className:"verified-custd-mdl-startup-button-active",disabled:y,onPress:async()=>{if(!y){P(!0);try{await At()}finally{P(!1)}}}},o.createElement(a,null,"Confirm"))))),g&&S?.length<4&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreBody,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-step2-add-more-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreFirst}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeader}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreFirstHeaderText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-header-text"},"Add Details")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooter}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreFirstFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-first-footer-text"},xt[S?.length+1]?.split(" ")[0],o.createElement(a,{style:{fontSize:10}},xt[S?.length+1]?.split(" ")[1])," ","Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":""))),e.action!=="remove-cosigner"&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreSecond}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-second"},o.createElement(b,{onChangeText:me,value:ue,placeholder:"Enter Co-signer name",placeholderTextColor:"#B6B7C3",className:"verified-custd-mdl-add-cosigner-step2-add-more-second-input",style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreSecondInput}:{}})),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},e.enablePhone&&o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",width:24,height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{E("sms"),ge(""),oe("")}},o.createElement(l,{source:{uri:_==="sms"?X.selectClicked:X.select},style:{width:24,height:24}}),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Phone number")),o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThirdCont,background:"transparent",height:24}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont",onPress:()=>{E("email"),ge(""),Q(""),T(""),$("")}},o.createElement(l,{source:{uri:_==="email"?X.selectClicked:X.select},style:{width:24,height:24}}),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThirdContText}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third-cont-text"},"Email"))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreThird}:{},className:"verified-custd-mdl-add-cosigner-step2-add-more-third"},_==="sms"&&o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInput}:{},className:"verified-custd-mdl-st-contact-input"},o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactContentContainer}:{},className:"verified-custd-mdl-st-contact-content-container"},o.createElement(s,{onPress:()=>ve(!H),style:t?{...i.verifiedCustdMdlStContactFirstSection,flexDirection:"row",alignItems:"center"}:{flexDirection:"row",alignItems:"center"},className:"verified-custd-mdl-st-contact-first-section"},o.createElement(l,{source:{uri:re.flag},style:{width:24,height:16},alt:"Country Flag"}),o.createElement(a,{style:t?{...i.verifiedCustdMdlStContactSelectionText}:{},className:"verified-custd-mdl-st-contact-selection-text"},"+ ",re.area),H?o.createElement(l,{source:{uri:X.arrowUp},style:{width:16,height:16},alt:"Dropdown Icon"}):o.createElement(l,{source:{uri:X.arrowDown},style:{width:16,height:16},alt:"Dropdown Icon"})),o.createElement(b,{onChangeText:J=>{$(J===""?U+" ":J);let Y=J.replace(/\D/g,"");Q(Y);let Ae="";for(let de=0;de<Y.length;de++)Ae+=Y[de],(de+1)%5===0&&de+1<Y.length&&(Ae+=" ");T(Ae),ge("")},onBlur:Ze,value:z,placeholder:"Enter phone number",placeholderTextColor:"#b6b7c3",keyboardType:"phone-pad",className:"verified-custd-mdl-st-contact-second-section",style:t?{...i.verifiedCustdMdlStContactSecondSection}:{}})),H&&o.createElement(Vt,{platform:e.platform,pageName:"ftu/contact",searchContent:e.allCountries,type:"area-code",handleButtonDisplay:Ze,setSelected:Be,selected:re,searchActive:H,setSearchActive:ve,contentMaxHeight:300,contentbottomMargin:300}),ne===""&&I.length!==10&&U.length>10&&o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...i.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},"Invalid input, please check the phone number")),ne!==""&&o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...i.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ne))),_==="email"&&o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInput,width:"100%"}:{width:"100%"},className:"verified-custd-mdl-st-contact-input"},o.createElement(b,{style:t?{...i.verifiedCustdMdlStContactSecondSection,width:"100%"}:{width:"100%"},onChangeText:J=>{oe(J),ge("")},onBlur:Ze,value:G,placeholder:"Enter email",placeholderTextColor:"#b6b7c3",keyboardType:"email-address",autoCapitalize:"none",className:"verified-custd-mdl-st-contact-second-section"}),ne!==""&&o.createElement(n,{style:t?{...i.verifiedCustdMdlStContactInputError}:{},className:"verified-custd-mdl-st-contact-input-error"},o.createElement(a,{style:t?{...i.verifiedCustdMdlInputErrorText}:{},className:"verified-custd-mdl-input-error-text"},ne)))),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreButtons,flexDirection:"row",justifyContent:"space-between"}:{flexDirection:"row",justifyContent:"space-between"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons"},o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreButtonsNeut,flex:1,marginRight:8,border:"1px solid #603FF4",color:"#603FF4"}:{flex:1,marginRight:8,border:"1px solid var(--secondary-electric-violet-600, #603FF4)",color:"var(--secondary-electric-violet-600, #603FF4)"},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-neut",onPress:()=>K(!1)},o.createElement(a,null,"Cancel")),o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerStep2AddMoreButtonsAction,flex:1,marginLeft:8}:{flex:1,marginLeft:8},className:"verified-custd-mdl-add-cosigner-step2-add-more-buttons-action",onPress:()=>{Lt(),Ze()}},o.createElement(a,null,"Add")))),!g&&!Ge&&S?.length<4&&o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentFooter,background:"transparent",height:20,marginBottom:10}:{background:"transparent"},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer",onPress:()=>K(!0)},o.createElement(l,{source:{uri:X.addIcon},style:{width:20,height:20}}),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentFooterText}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text"}," ",e.action==="remove-cosigner"?"Add Co-Signer to remove":"Add another Co-Signer")),!g&&!Ge&&S?.length===4&&o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentFooterDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-dis"},o.createElement(l,{source:{uri:X.addDisableIcon},style:{width:20,height:20}}),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerStep2BodyContentFooterTextDis}:{},className:"verified-custd-mdl-add-cosigner-step2-body-content-footer-text-dis"},"Add another Co-Signer"," ",e.action==="remove-cosigner"?"To Remove":"")))),!Ge&&o.createElement(s,{className:S?.length>0?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button",style:t&&S?.length>0?{...i.verifiedCustdMdlStartupButtonActive,marginBottom:"20px",width:"100%"}:t&&S?.length===0?{...i.verifiedCustdMdlStartupButton,marginBottom:"20px",width:"100%"}:t&&S?.length>0&&!g&&S?.length<4?{...i.verifiedCustdMdlStartupButtonActive,marginTop:"50px",marginBottom:"20px",width:"100%"}:t&&S?.length===0&&!g&&S?.length<4?{...i.verifiedCustdMdlStartupButton,marginTop:"50px",marginBottom:"20px",width:"100%"}:!g&&S?.length<4?{marginTop:"50px",marginBottom:"20px",width:"100%"}:{marginBottom:"20px",width:"100%"},onPress:()=>{S?.length>0&&(j(2),fe(!0),K(!1))}},o.createElement(a,{style:i.buttonText},"Proceed")))),w&&o.createElement(o.Fragment,null,h==="1"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:X.addCoSignerIcon2},alt:""}),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co-Signer?"))),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel}:{},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.")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>v(!1),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Back")),o.createElement(s,{onPress:()=>x("2"),style:t?{...i.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Next")))),h==="2"&&o.createElement(o.Fragment,null,o.createElement(l,{className:"verified-custd-mdl-add-cosigner-body-icon",style:t?{...i.verifiedCustdMdlAddCosignerBodyIcon}:{},source:{uri:X.addCoSignerIcon3},alt:""}),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreHeaderont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Why is it needed?"))),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel}:{},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")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>x("1"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Back")),o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonAction,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>x("3"),className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Next")))),h==="3"&&o.createElement(o.Fragment,null,o.createElement(l,{style:t?{...i.verifiedCustdMdlAddCosignerBodyIcon}:{},className:"verified-custd-mdl-add-cosigner-body-icon",source:{uri:X.addCoSignerIcon4},alt:""}),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"Who can be my Co-Signer?"))),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel}:{},className:"verified-custd-mdl-add-cosigner-more-label"},"You can nominate your trusted acquaintances, family members and even yourself as a co-signer."),o.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More in Details")),o.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},o.createElement(s,{style:t?{...i.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid var(--Neutral-950, #0C0C0E)",color:"var(--Neutral-950, #0C0C0E)"},onPress:()=>x("2"),className:"verified-custd-mdl-add-cosigner-button-neut"},o.createElement(a,null,"Back")),o.createElement(s,{onPress:()=>{c("2"),K(!1),v(!1),x("1")},style:t?{...i.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},o.createElement(a,null,"Start")))))),r&&Ue&&o.createElement(Fe,{platform:e.platform,action:e.action,setStep:e.setStep,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully removed cosigners and set new signing rule.",actionFooterText:"Congratulations! You have successfully removed cosigners and set new signing rule.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),!r&&o.createElement(a,null,"Loading Module Fonts..."))},vt=Sn;import m,{useEffect as Nn,useRef as Xn,useState as pe}from"react";import{ethers as Wi}from"ethers";var En=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,TextInput:b,TouchableOpacity:s,StyleSheet:L,Font:u,AsyncStorage:A,styles:i,rnPasskey:r}=e.platform,[p,y]=pe(e.fontsLoaded||!1),[P,w]=pe(!1),[v,h]=pe(!1),[x,f]=pe(!0),[c,g]=pe(!1),[K,_]=pe(!1),[E,I]=pe(null),[Q,z]=pe(null),[T,G]=pe(e.newChainId||8453),[oe,ue]=pe(!1),[me,U]=pe(!1),[$,H]=pe(!1),[ve,re]=pe(!1),[Be,S]=pe(!1),[Ye,D]=pe(""),[ee,te]=pe(!1),[Re,ie]=pe(!1),[$e,Ge]=pe({}),[fe,Ke]=pe(["","","",""]),j=Xn([]),[ne,ge]=pe(!1),[Ue,nt]=pe(null),{setChainId:Oe,setAddress:Ce,setPk:je,setProvider:qe,setSigner:st,setVaultContract:Ze,setVaultData:Lt}=Me();Nn(()=>{let M=async()=>{if(t)u&&await Ne(u),y(!0);else{let F=Se(document);y(F)}};e.fontsLoaded||M()},[]);let At=(M,F)=>{if(M.length>1){let N=M.replace(/\D/g,""),R=[...fe],be=0;for(let De=F;De<fe.length&&be<N.length;De++)R[De]=N[be],be++;Ke(R);let Ve=F+N.length;Ve<fe.length&&j.current[Ve]&&j.current[Ve].focus(),h(!1)}else{let N=M.replace(/\D/g,""),R=[...fe];R[F]=N,Ke(R),N&&j.current[F+1]&&j.current[F+1].focus(),h(!1)}},J=(M,F,N)=>{N.nativeEvent.key==="Backspace"&&!fe[F]&&F>0&&j.current[F-1]&&j.current[F-1].focus()},Y=fe.every(M=>M.length>0),Ae=async M=>{if(e.setIsLoading(!0),M?.listener&&chrome?.runtime?.onMessage?.removeListener&&chrome?.runtime?.onMessage?.removeListener(M?.listener),!e.helperFunctions)D("No Helper Functions. Please include all helper functions in the EnterPinPage props."),h(!0),e.setIsLoading(!1);else if(D(""),h(!1),ne&&Y&&e.hashedVaultId&&e.encrptedPk||!ne&&e.hashedVaultId&&e.encrptedPk&&M){e.setIsLoading(!0);let F=M?.pinString?M?.pinString:fe.join("");await Fi(t,e.vaultId,e.hashedVaultId,F,M?.hashed?M?.hashed:q(F),e.encrptedPk,e.vaultAddress,e.vaultChannel,e.externalchainConfig,Number(T),ki?.includes(e.origin?.toLowerCase())?!0:!!t,null,M?.rawId).then(async N=>{if(N&&!N?.inCompleteVault)e.setIsLoading(!1),I(N),z(N?.pk&&e.action!=="eth_requestAccounts"?{address:N.address,channel:N.channel,chainId:N.chainId,pk:N?.pk}:{address:e.regAddress,channel:N.channel,chainId:N.chainId}),e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Vi(t,e.helperFunctions.sendCreatorInitiation,e.hashedVaultId,M?.hashed?M?.hashed:q(F),e.vaultId,F,e.encrptedPk,e.vaultChannel,e.externalchainConfig,Number(T),M?.rawId).then(async R=>{e.setIsLoading(!1),t?t&&A&&await A.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),R?_(!0):(D("Account recovery failed. Verify you don't have pending account recovery process and Try again later"),h(!0))})):e.action==="signRecovery"?(e.setIsLoading(!0),await $i(t,e.helperFunctions.sendCreatorSigned,e.helperFunctions.sendCreatorCompleted,e.hashedVaultId,M?.hashed?M?.hashed:q(F),e.vaultId,F,e.encrptedPk,e.reqVaultData?.vaultId,e.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e.reqTxData?.id,e.externalchainConfig,Number(T),M?.rawId).then(async R=>{e.setIsLoading(!1),t?t&&A&&!e.reqTxData?.newUser&&!e.vaultAddress&&await A.removeItem("myVault"):!t&&!e.reqTxData?.newUser&&chrome?.storage?.local&&!e.vaultAddress?await chrome.storage.local.remove("myVault"):!t&&!e.reqTxData?.newUser&&!chrome?.storage?.local&&!e.vaultAddress&&localStorage&&localStorage.removeItem("myVault"),R?_(!0):(D("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."),h(!0))})):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(e.setIsLoading(!0),await Di(t,A,e.hashedVaultId,M?.hashed?M?.hashed:q(F),e.vaultId,F,e.encrptedPk,e.reqTxData?.id,e.vaultChannel,e.externalchainConfig,Number(T),M?.rawId).then(async R=>{e.setIsLoading(!1),R?_(!0):(t?t&&A&&await A.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),D("Error while restoring login access. Verify all required co-signers had signed our account recovery and try again later."),h(!0))})):e.action==="eth_sendTransaction"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement?(Ge({chainId:T,ky:ne?Wi.encodeBytes32String(N?.pin):"",rawId:ne?"":M?.rawId,...e.txToSign}),U(!1),ie(!1),te(!0)):e.action==="personal_sign"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signTxElement||e.action==="eth_signTypedData_v4"&&e.encrptedPk?.length>0&&N?.pin?.length>0&&e.signMsgElement?(Ge({chainId:T,ky:ne?Wi.encodeBytes32String(N?.pin):"",rawId:ne?"":M?.rawId,personal_sign_params:e.action==="personal_sign"?e.txToSign:null,eth_signTypedData_v4_params:e.action==="eth_signTypedData_v4"?e.txToSign:null}),U(!1),te(!1),ie(!0)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()&&e.reqVaultData?.coSignerId?.toLowerCase()===e.vaultId?.toLowerCase()?(D(""),h(!1),U(!0),ie(!1),te(!1)):e.action==="invitation"&&e.reqVaultData?.vaultId?.toLowerCase()===e.vaultId?.toLowerCase()?(D(`You cannot accept your own Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),h(!0)):e.action==="invitation"&&e.reqVaultData?.coSignerId?.toLowerCase()!==e.vaultId?.toLowerCase()?(D(`You cannot accept this Co-Signer invitation. please logout and login to: ${e.reqVaultData?.coSignerId} account`),h(!0)):e.action==="getPk"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&A&&await A.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),D(`You are not authorized to fetch account details. please logout and login to: ${e.reqVaultData?.vaultId} account`),h(!0)):e.action==="completeRecovery"&&e.reqVaultData?.vaultId?.toLowerCase()!==e.vaultId?.toLowerCase()?(t?t&&A&&await A.removeItem("myVault"):!t&&chrome?.storage?.local?await chrome.storage.local.remove("myVault"):!t&&!chrome?.storage?.local&&localStorage&&localStorage.removeItem("myVault"),D(`You are not authorized to restore login access for this account. please logout and login to: ${e.reqVaultData?.vaultId} account`),h(!0)):e.action==="connect_wallet"&&!e?.vaultAddress||e.action==="eth_requestAccounts"&&!e?.vaultAddress?(D("Incomplete account details received. This may be due to incomplete/unexpected error from last login. Please logout and login back to recover account details."),h(!0)):e.action===""&&e.vaultAddress?e.setShowDashboard(!0):e.action===""&&!e.vaultAddress?(D("Incomplete account login detected. Logout and try again later"),h(!0)):(D(""),h(!1),_(!0));else if(N&&N?.inCompleteVault&&N?.pk){let R=await ot(e.externalchainConfig,Number(T),N?.pk);if(Oe(R.chainId),Ce(R.address),je(R.pk),qe(R.provider),st(R.signer),Ze(R.vaultContract),Lt({vaultId:N?.vaultId,hashedVaultId:N?.hashedVaultId,vaultPin:N?.pin,hashedVaultPin:ne?q(N?.pin):He(N?.rawId),vaultContract:R.vaultContract,rawId:N?.rawId}),N?.channel?.toLowerCase()==="sms"){let be=N?.vaultId?.replace(N?.vaultId?.slice(-10),""),Ve=N?.vaultId?.slice(-10)?.slice(0,5)+" "+N?.vaultId?.slice(-10)?.slice(5);e.setSelectedCountry({area:be?.replace("+",""),name:"",flag:""}),e.setUserNumberFmt(Ve),e.setUserEmail("")}else e.setUserEmail(N?.vaultId),e.setUserNumberFmt("");e.setIsLoading(!1),e.setShowCompleteVault(!0),e.setShowDashboard(!1)}else D(ne?"":`Incorrect Passkey. please chose the correct existing passkey for account: ${e.vaultId}`),h(!0),e.setIsLoading(!1)})}else!ne&&!M&&(D("Unexpected error with selected passkey. Try again later"),h(!0),e.setIsLoading(!1)),ne&&!Y&&(D("Input your 4-Digits PIN to login."),h(!0),e.setIsLoading(!1))},de=async M=>{let F=e.vaultId;if(E?.pin?.length>0&&E?.pk?.length>0&&e?.reqVaultData?.hashedVaultId&&e.reqVaultData?.hashedVaultPin&&F&&e.helperFunctions?.sendCreatorAcceptance&&e.helperFunctions?.sendCreatorRejection){e.setIsLoading(!0);let N=E.pin,R=q(F),be=ne?q(N):He(E.rawId);await $t(e.helperFunctions.sendCreatorAcceptance,e.helperFunctions.sendCreatorRejection,e.vaultChannel,R,be,e?.reqVaultData?.hashedVaultId,e.reqVaultData?.hashedVaultPin,e?.reqVaultData?.vaultId,F,M,e.externalchainConfig,null,E.pk,Number(T)).then(Ve=>{e.setIsLoading(!1),Ve&&(S(M),H(!0))})}},ze=async M=>{if(D(""),h(!1),chrome?.windows?.create){let F=e?.getPasskeyDomain?.length>0?e?.getPasskeyDomain:Tt,N=async(R,be,Ve)=>{if(R.type==="VW:Passkey_Credential")if(R?.origin&&F?.toLowerCase()?.startsWith(R?.origin?.toLowerCase())){Ue&&chrome.windows.remove(Ue),be?.tab&&be?.tab?.windowId&&chrome.windows.remove(be.tab.windowId);let De=R.data;if(De?.id&&De?.rawId){let at=St(De?.rawId),Pe=He(at),Ie={pinString:De?.id,hashed:Pe,rawId:at,listener:N};Ie&&await Ae(Ie)}else D(`Passkey authentication failed: ${De?.error?.toString()?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0)}else D("Passkey authentication failed: invalid passkey origin. Try again later"),h(!0)};chrome.runtime.onMessage.addListener(N),await chrome.windows.create({url:`${F}`,type:"popup",width:500,height:600}).then(R=>{nt(R.id)})}else try{if(t&&!r.isSupported()){D("Your device does not support passkeys. Passkeys require Android 9 or above and iOS 16 or above."),h(!0);return}let F=t?await r.get(ft(M)):await navigator?.credentials?.get({publicKey:ft()}),N=He(F?.rawId);return{pinString:F?.id,hashed:N,rawId:F?.rawId}}catch(F){D(`Passkey authentication failed: ${F?.message?.replace("See: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client.","")} Try again later`),h(!0)}};return m.createElement(m.Fragment,null,p&&!me&&!ee&&!Re&&m.createElement(m.Fragment,null,!K&&m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupLanguage,padding:"20px",paddingTop:"0"}:{padding:"20px",paddingTop:"0"},className:"verified-custd-mdl-startup-language"},m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},m.createElement(Te,{platform:e.platform,sliderCount:[1],currentSlider:"0"}),m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContentHeaderCont}:{},className:"verified-custd-mdl-startup-contact-content-heder-cont"},m.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText,alignSelf:"center"}:{alignSelf:"center"},className:"verified-custd-mdl-startup-contact-text"},ne?"Enter PIN":"Sign-in with Existing Passkey")),m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupOtpText}:{},className:"verified-custd-mdl-startup-otp-text"},m.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpHeaderText}:{},className:"verified-custd-mdl-startup-otp-header-text"},"Welcome back, please login using"," ",m.createElement(a,{style:{color:"#0C0C0E"}},ne?"existing 4-Digits PIN":"existing Passkey")," ","for your"," ",m.createElement(a,{style:{color:"#0C0C0E"}},e.vaultId)," ","account."),m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupOtpFooter}:{},className:"verified-custd-mdl-startup-otp-footer"},e.actionText&&m.createElement(a,{style:t?{...i.verifiedCustdMdlStartupOtpFooterText}:{},className:"verified-custd-mdl-startup-otp-footer-text"},`To ${e.actionText} from origin: ${e.origin||e.title}`)))),ne&&m.createElement(n,{style:t?{...i.verifiedCustdMdlOtpInputContainer}:{},className:"verified-custd-mdl-otp-input-container"},m.createElement(n,{style:t?{...i.verifiedCustdMdlOtpInputGroup}:{},className:"verified-custd-mdl-otp-input-group"},fe.map((M,F)=>m.createElement(b,{key:F,ref:N=>j.current[F]=N,className:v?"verified-custd-mdl-otp-input-red":"verified-custd-mdl-otp-input",style:t&&v?{...i.verifiedCustdMdlOtpInputRed}:t&&!v?{...i.verifiedCustdMdlOtpInput}:{},secureTextEntry:x,maxLength:1,value:fe[F],onChangeText:N=>At(N,F),onKeyPress:N=>J(N,F,N),keyboardType:"number-pad",id:`verified-custd-mdl-otp-input-${F}`}))),m.createElement(n,{style:t?{...i.verifiedCustdMdlOtpTimer}:{},className:"verified-custd-mdl-otp-timer"},v&&!Ye&&m.createElement(a,{style:t?{...i.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},"Please enter the correct pin"),v&&Ye&&m.createElement(a,{style:t?{...i.verifiedCustdMdlOtpIncorrectText}:{},className:"verified-custd-mdl-otp-incorrect-text"},Ye),!v&&m.createElement(a,null),x?m.createElement(s,{onPress:()=>f(!1),style:{backgroundColor:"transparent"}},m.createElement(l,{style:{width:24,height:24},source:{uri:X.pinHide}})):m.createElement(s,{onPress:()=>f(!0),style:{backgroundColor:"transparent"}},m.createElement(l,{style:{width:24,height:24},source:{uri:X.pinShow}})))),!ne&&m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},m.createElement(n,{className:"verified-custd-mdl-add-cosigner-more-title-cont"},m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitle,fontSize:W(t,"14px")}:{fontSize:W(t,"14px")},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a passkey?"))),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"Your passkey is stored in your cloud account such as Apple iCloud Keychain, Google Password Manager, or Microsoft Account and synchronized across all devices."),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},"In the event of device loss, as long as you have access to your cloud account, you can recover your passkey."),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel,fontSize:W(t,"12px")}:{fontSize:W(t,"12px")},className:"verified-custd-mdl-add-cosigner-more-label"},'Click "Login With Passkey" button, passkey popup will appears to login using your existing passkey.'),m.createElement(s,{style:{background:"transparent"},onPress:()=>{t||window?.open("https://blog.google/inside-google/googlers/ask-a-techspert/how-passkeys-work","_blank")}},m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabelLink}:{},className:"verified-custd-mdl-add-cosigner-more-label-link"},"Learn More about Passkey")))),!c&&m.createElement(n,{style:{height:20}}),m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactFooter}:{},className:"verified-custd-mdl-startup-contact-footer"},m.createElement(n,{style:t?{...i.verifiedCustdMdlStContactFooterFirstSection}:{},className:"verified-custd-mdl-st-contact-footer-first-section"},m.createElement(Yi,{platform:e.platform,setisOnboard:e.setisOnboard,setIsLoading:e.setIsLoading}),ne&&m.createElement(s,{onPress:async()=>await Ae(),style:t&&Y&&!v?{...i.verifiedCustdMdlStartupButtonActive}:t&&Y&&v?{...i.verifiedCustdMdlStartupButton}:t&&!Y&&!v?{...i.verifiedCustdMdlStartupButton}:t&&!Y&&v?{...i.verifiedCustdMdlStartupButton}:{},className:Y&&!v?"verified-custd-mdl-startup-button-active":"verified-custd-mdl-startup-button"},m.createElement(a,null,"Proceed")),!ne&&m.createElement(m.Fragment,null,v&&Ye?.length>0&&m.createElement(a,{style:t?{...i.verifiedCustdMdlOtpIncorrectText,marginTop:"3px",width:"100%"}:{marginTop:"3px",width:"100%"},className:"verified-custd-mdl-otp-incorrect-text"},Ye),m.createElement(s,{style:t?{...i.verifiedCustdMdlStartupButtonActive,marginBottom:"20px"}:{marginBottom:"20px"},disabled:P,onPress:async()=>{if(!P){w(!0);try{let M=await ze(e?.passKeyRpId);M&&await Ae(M)}finally{w(!1)}}},className:"verified-custd-mdl-startup-button-active"},m.createElement(a,null,"Login With Passkey")))))),K&&m.createElement(Fe,{platform:e.platform,messageTosend:e.action==="getPk"||e.action==="signRecovery"||e.action==="completeRecovery"?{type:"closePopup",key:"",value:""}:{type:"vaultData",key:"vaultData",value:Q},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: ${e.reqVaultData?.vaultId}`:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:`Congratulations! You have successfully ${e.actionText||"logged in to your account."}`,showButton:!!(e.action==="completeRecovery"&&e.dashbordElement),buttonText:e.action==="completeRecovery"&&e.dashbordElement?"Go To Dashboard":"",buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},actionFooterText:e.action==="completeRecovery"?`Congratulations! You have successfully restored login access for your ${e?.vaultId} account`:"",eventEmitter:e.eventEmitter})),p&&me&&!ee&&!Re&&m.createElement(m.Fragment,null,!$&&m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupLanguage,padding:"20px",position:"relative"}:{padding:"20px",position:"relative"},className:"verified-custd-mdl-startup-language"},m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContact}:{},className:"verified-custd-mdl-startup-contact"},m.createElement(Te,{platform:e.platform,sliderCount:[1,2,3],currentSlider:"1"}),m.createElement(n,{style:t?{...i.verifiedCustdMdlStartupContactContent}:{},className:"verified-custd-mdl-startup-contact-content"},m.createElement(a,{style:t?{...i.verifiedCustdMdlStartupContactText}:{},className:"verified-custd-mdl-startup-contact-text"},m.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId)," ","has requested you to be a Co\u2011Signer"))),m.createElement(s,{style:{backgroundColor:"transparent",width:"100%"}},m.createElement(l,{style:{height:250,width:"90%"},source:{uri:X.addCoSignerIcon1}})),ve?m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyContentOutter}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content-outter"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyContent}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-content"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyCont}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-cont"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyHeader}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-header"},m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyTitle}:{},className:"verified-custd-mdl-add-cosigner-confirm-body-title"},"Are you sure you want to reject this request?"),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerConfirmBodyLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-confirm-body-label"},"Once you reject to be a co-signer for"," ",m.createElement(a,{style:{fontWeight:"bold"}},e.reqVaultData?.vaultId),", you will not be able to reset the PIN for them.")),m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont,width:"90%"}:{width:"90%"},className:"verified-custd-mdl-add-cosigner-buttons-cont"},m.createElement(s,{onPress:async()=>await de(!1),style:t?{...i.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"Yes")),m.createElement(s,{onPress:()=>re(!1),style:t?{...i.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"No")))))):m.createElement(m.Fragment,null,m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreBody}:{},className:"verified-custd-mdl-add-cosigner-more-body"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreHeaderCont}:{},className:"verified-custd-mdl-add-cosigner-more-header-cont"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitleCont}:{},className:"verified-custd-mdl-add-cosigner-more-title-cont"},m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreTitle}:{},className:"verified-custd-mdl-add-cosigner-more-title"},"What is a Co\u2011Signer?"))),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerMoreLabel,fontSize:12,color:"#5B5D6E"}:{fontSize:12,color:"var(--Neutral-600, #5B5D6E)"},className:"verified-custd-mdl-add-cosigner-more-label"},"A Co\u2011Signer is a person who has the right given by you to generate a new pin on your behalf incase you forget it."),m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},m.createElement(l,{source:{uri:X.pkicon}})),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"As a Co Signer you can help"," ",m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"reset PIN"))),m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextCont}:{},className:"verified-custd-mdl-add-cosigner-body-text-cont"},m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextIcon}:{},className:"verified-custd-mdl-add-cosigner-body-text-icon"},m.createElement(l,{source:{uri:X.encryptedIcon}})),m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabel}:{},className:"verified-custd-mdl-add-cosigner-body-text-label"},"Don\u2019t worry, they"," ",m.createElement(a,{style:t?{...i.verifiedCustdMdlAddCosignerBodyTextLabelBold}:{},className:"verified-custd-mdl-add-cosigner-body-text-label-bold"},"will not get access")," ","to your account in any way."))),m.createElement(n,{style:t?{...i.verifiedCustdMdlAddCosignerButtonsCont}:{},className:"verified-custd-mdl-add-cosigner-buttons-cont"},m.createElement(s,{onPress:()=>re(!0),style:t?{...i.verifiedCustdMdlAddCosignerButtonNeut,border:"1px solid #0C0C0E",color:"#0C0C0E"}:{border:"1px solid #0C0C0E",color:"#0C0C0E"},className:"verified-custd-mdl-add-cosigner-button-neut"},m.createElement(a,null,"Reject")),m.createElement(s,{onPress:async()=>await de(!0),style:t?{...i.verifiedCustdMdlAddCosignerButtonAction}:{},className:"verified-custd-mdl-add-cosigner-button-action"},m.createElement(a,null,"Accept"))))),$&&m.createElement(Fe,{platform:e.platform,messageTosend:{type:"getPk",key:"vaultData",value:E},customTextHeader:"Successful",customTextFooter:Be?`You have been added as a Co-Signer for ${e.reqVaultData?.vaultId}`:`You rejected Co-signer request from ${e.reqVaultData?.vaultId}`,eventEmitter:e.eventEmitter})),p&&!me&&ee&&!Re&&m.createElement(e.signTxElement,{setIsLoading:e.setIsLoading,txToSign:$e}),p&&!me&&!ee&&Re&&m.createElement(e.signMsgElement,{setIsLoading:e.setIsLoading,msgToSign:$e}),!p&&m.createElement(a,null,"Loading Module Fonts..."))},Pt=En;var Gn=e=>{let{isReactNative:t,View:n,Text:a,Image:l,ScrollView:C,StyleSheet:b,Font:s,AsyncStorage:L}=e?.platform,[u,A]=Ee(e.fontsLoaded||!1),[i,r]=Ee(e.showLogoPage||!1),[p,y]=Ee([]),[P,w]=Ee("2"),[v,h]=Ee(e.defaultCountry||{area:"1",flag:X.usaFlag,name:"United States"}),[x,f]=Ee(""),[c,g]=Ee(""),[K,_]=Ee(!1),[E,I]=Ee(""),[Q,z]=Ee(""),[T,G]=Ee(""),[oe,ue]=Ee(""),[me,U]=Ee(null),[$,H]=Ee(null),[ve,re]=Ee(!1),{setChainId:Be,setAddress:S,setPk:Ye,setProvider:D,setSigner:ee,setVaultContract:te,setVaultData:Re,vaultData:ie,chainId:$e,vaultContract:Ge}=Me();return Dt(()=>{let fe=async()=>{if(t)s&&await Ne(s),A(!0);else{let Ke=Se(document);A(Ke)}};e.fontsLoaded||fe()},[]),Dt(()=>{let fe=async()=>{let Ke;t?t&&L&&(Ke=L.getItem("lastPk")):!t&&chrome?.storage?.local?Ke=await new Promise(ne=>{chrome.storage.local.get(["lastPk"],ge=>{ne(ge.lastPk)})}):!t&&localStorage&&(Ke=localStorage.getItem("lastPk"));let j=await ot(e.externalchainConfig,e.chainId,Ke&&Ke?.length>0?Ke:void 0);Be(j.chainId),S(j.address),Ye(j.pk),D(j.provider),ee(j.signer),Re(j.vaultData),j.vaultContract?.contractAddress?te(j.vaultContract):te(void 0)};Ge?.contractAddress||fe()},[Ge]),Dt(()=>{Yn(()=>{r(!1)},e.logoTimeoutTime??3e3)()},[]),Dt(()=>{(()=>{let Ke=Ft.map(j=>{if(j)return{name:j.name,countryName:j.name,officialName:j.name,currencySymbol:j.currency,currencyName:j.currency,officialCurrencySymbol:j.currency,countryCode:j.code,flag:j.flag,continent:j.continent,phone_code:j.phone_code,code:j.code}}).filter(Boolean);y(Ke)})()},[]),we.createElement(C,{style:{padding:20,width:"100%",heigth:"100%"}},u&&i&&e.logoPageElement&&we.createElement(n,null,e.logoPageElement),u&&!i&&we.createElement(n,{style:{width:"100%",heigth:"100%"}},P==="2"&&we.createElement(ui,{platform:e.platform,fontsLoaded:u,setStep:w,setIsLoading:e.setIsLoading,setUserNumberFmt:f,userNumberFmt:x,setUserEmail:g,userEmail:c,setSelectedCountry:h,selectedCountry:v,allCountries:p,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone}),P==="3"&&we.createElement(fi,{platform:e.platform,fontsLoaded:u,setStep:w,setIsLoading:e.setIsLoading,userNumberFmt:x,setUserNumberFmt:f,setUserEmail:g,userEmail:c,selectedCountry:v,helperFunctions:e.helperFunctions,setIsExistingUser:re}),P==="4"&&we.createElement(Yt,{platform:e.platform,fontsLoaded:u,setStep:w,setIsLoading:e.setIsLoading,setShowSuccessBtn:_,setSuccessBtnText:I,setSuccessBtnNeutText:z,setSuccessBtnFunc:U,setSuccessBtnNeutFunc:H,userNumberFmt:x,userEmail:c,selectedCountry:v,action:e.action,vaultData:e.vaultData,txData:e.txData,setActionHeaderText:G,setActionFooterText:ue,helperFunctions:e.helperFunctions,isExistingUser:ve,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]}),P==="5"&&we.createElement(Fe,{platform:e.platform,setStep:w,stepToSet:"6",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully created a new account.",action:e.action,showButton:K,buttonText:E,buttonNeutText:Q,buttonFunc:me,buttonNeutFunc:$,actionHeaderText:T,actionFooterText:oe,eventEmitter:e.eventEmitter}),P==="6"&&we.createElement(vt,{platform:e.platform,fontsLoaded:u,setStep:w,setIsLoading:e.setIsLoading,userNumberFmt:x,userEmail:c,selectedCountry:v,allCountries:p,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:e.setShowDashboard,setShowResetPin:e.setShowResetPin,setShowRemoveCosigner:e.setShowRemoveCosigner,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]}),P==="7"&&e.action===""&&we.createElement(Fe,{platform:e.platform,action:e.action,setStep:w,stepToSet:"8",actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),P==="7"&&e.action!==""&&we.createElement(Fe,{platform:e.platform,action:e.action,messageTosend:e.action==="signRecovery"?{type:"signRecovery",value:{vaultData:e.vaultData,txData:{newUser:!0,...e.txData},chainId:$e}}:{type:e.action?e.action:"closePopup",key:"",value:""},actionHeaderText:"Successful",customTextHeader:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},buttonFunc:()=>{e.setShowResetPin&&e.setShowResetPin(!1),e.setShowRemoveCosigner&&e.setShowRemoveCosigner(!1),e.setShowDashboard(!0)},eventEmitter:e.eventEmitter}),P==="8"&&e.dashbordElement&&we.createElement(e.dashbordElement,{setIsLoading:e.setIsLoading}),P==="8"&&!e.dashbordElement&&we.createElement(we.Fragment,null),P==="0"&&we.createElement(Pt,{platform:e.platform,fontsLoaded:u,vaultId:ie?.vaultId,setisOnboard:e.setisOnboard,hashedVaultId:ie?.hashedVaultId,encrptedPk:ie?.pk,vaultAddress:ie?.address,vaultChannel:ie?.channel,actionText:_t.getPk,setIsLoading:e.setIsLoading,newChainId:Number($e||e.chainId),action:"getPk",reqVaultData:ie,reqTxData:e.txData?Object.keys(e.txData)?.map(fe=>(e.txData[fe]=decodeURIComponent(e.txData[fe]),e.txData))[Object.keys(e.txData)?.length-1]:null,helperFunctions:e.helperFunctions,setUserEmail:g,setUserNumberFmt:f,setSelectedCountry:h,enablePhone:e.enablePhone,setShowDashboard:e.setShowDashboard,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.externalchainConfig||[]})),!u&&we.createElement(n,{style:{padding:20,width:"100%",heigth:"100%"}},we.createElement(a,null,"Loading Module Fonts...")))},gi=Gn;var Mn=e=>{let[t,n]=Le(!1),[a,l]=Le({}),[C,b]=Le(!1),[s,L]=Le(null),[u,A]=Le({}),[i,r]=Le({}),[p,y]=Le(!1),[P,w]=Le(!1),[v,h]=Le(!1),[x,f]=Le(!1),[c,g]=Le(!1),[K,_]=Le(""),[E,I]=Le([]),[Q,z]=Le(""),[T,G]=Le(e.defaultCountry||{area:"1",flag:X.usaFlag,name:"United States"}),[oe,ue]=Le(""),[me,U]=Le("");It(()=>{(async()=>{await ni();let ee=ai();ee&&(l(ee),n(!0))})()},[]);let{isReactNative:$,View:H,Text:ve,Font:re,AsyncStorage:Be,ActivityIndicator:S,styles:Ye}=a;return It(()=>{!C&&t&&(async()=>{if($)re&&await Ne(re),b(!0);else{let ee=Se(document);b(ee)}})()},[t,C]),It(()=>{t&&(async()=>{if($){if($&&Be)try{let ee=await Be.getItem("myVault");if(ee){let te=JSON.parse(ee);if(te?.vaultId){A(te),L(!0);return}}L(!1)}catch(ee){console.error("Error reading vault data on react:",ee),L(!1)}}else if(chrome?.storage?.local)chrome.storage.local.get("myVault",ee=>{ee.myVault&&JSON.parse(ee.myVault)?.vaultId?(A(JSON.parse(ee.myVault)),L(!0)):L(!1)});else if(localStorage){let ee=JSON.parse(localStorage.getItem("myVault"));ee&&ee?.vaultId?(A(ee),L(!0)):L(!1)}else L(!1)})()},[t]),It(()=>{(()=>{let ee=Ft.map(te=>te?{name:te?.name,countryName:te?.name,officialName:te?.name,currencySymbol:te?.currency,currencyName:te?.currency,officialCurrencySymbol:te?.currency,countryCode:te?.code,flag:te?.flag,continent:te?.continent,phone_code:te?.phone_code,code:te?.code}:null).filter(te=>te!=null);I(ee)})()},[]),Z.createElement(Z.Fragment,null,t&&Z.createElement(Z.Fragment,null,C&&Z.createElement(oi,null,p&&Z.createElement(H,{style:$?{...Ye.verifiedCustdMdlLoadingScreen,height:"100vh"}:{height:"100vh"},className:"verified-custd-mdl-loading-screen"},Z.createElement(S,{size:"large",color:"blue"})),Z.createElement(H,{id:"verified-custd-out-cont",className:"verified-custd-mdl-container",style:$?{...Ye.verifiedCustdMdlContainer}:{}},s===null&&e.delayPageElement&&Z.createElement(Z.Fragment,null,e.delayPageElement),s===null&&!e.delayPageElement&&Z.createElement(H,{style:e.delayPageStyle?e.delayPageStyle:{width:"100%",height:"100%",background:"transparent",border:"none"}}," "),s!==null&&Z.createElement(Z.Fragment,null,!s&&!P&&Z.createElement(gi,{platform:a,fontsLoaded:C,helperFunctions:e.helperFunctions,popupView:e.popupView,action:e.action?e.action:"getPk",vaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,txData:e.txData?Object.keys(e.txData)?.map(D=>(e.txData[D]=decodeURIComponent(e.txData[D]),e.txData))[Object.keys(e.txData)?.length-1]:null,showLogoPage:e.showLogoPage,logoPageElement:e.logoPageElement,logoTimeoutTime:e.logoTimeoutTime,defaultCountry:e.defaultCountry,setisOnboard:L,setIsLoading:y,dashbordElement:e.dashbordElement,chainId:Number(e.chainId),enablePhone:e.enablePhone,setShowDashboard:w,setShowResetPin:f,setShowRemoveCosigner:g,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]}),s&&!P&&!v&&Z.createElement(Pt,{platform:a,fontsLoaded:C,setisOnboard:L,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,vaultChannel:u?.channel,regAddress:u?.regAddress,origin:e.origin,title:e.title,actionText:e.actionText||_t[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(D=>(e.txData[D]=decodeURIComponent(e.txData[D]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,signMsgElement:e.signMsgElement,helperFunctions:e.helperFunctions,setShowDashboard:w,setShowResetPin:f,setShowRemoveCosigner:g,setShowCompleteVault:h,setUserEmail:U,setUserNumberFmt:ue,setSelectedCountry:G,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,externalchainConfig:e.chainConfig||[]}),s&&P&&v&&Z.createElement(Pt,{platform:a,fontsLoaded:C,setisOnboard:L,vaultId:u?.vaultId,hashedVaultId:u?.hashedVaultId,encrptedPk:u?.pk,vaultAddress:u?.address,regAddress:u?.regAddress,vaultChannel:u?.channel,origin:e.origin,title:e.title,actionText:e.actionText||_t[e.action],setIsLoading:y,newChainId:Number(e.chainId),action:e.action||"",eventEmitter:e.eventEmitter,reqVaultData:e.reqVaultData?{vaultId:decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId),hashedVaultId:q(decodeURIComponent(e.reqVaultData?.vId||e.reqVaultData?.vaultId)),hashedVaultPin:decodeURIComponent(e.reqVaultData?.vPh||e.reqVaultData?.hashedVaultPin),coSignerId:decodeURIComponent(e.reqVaultData?.cId)}:null,reqTxData:e.txData?Object.keys(e.txData)?.map(D=>(e.txData[D]=decodeURIComponent(e.txData[D]),e.txData))[Object.keys(e.txData)?.length-1]:null,txToSign:e.txToSign||null,signTxElement:e.signTxElement,signMsgElement:e.signMsgElement,helperFunctions:e.helperFunctions,setShowDashboard:w,setShowResetPin:f,setShowRemoveCosigner:g,setShowCompleteVault:h,setUserEmail:U,setUserNumberFmt:ue,setSelectedCountry:G,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,externalchainConfig:e.chainConfig||[]}),s&&!P&&v&&Q===""&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:C,setStep:z,setIsLoading:y,userNumberFmt:oe,userEmail:me,selectedCountry:T,allCountries:E,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:w,setShowResetPin:f,setShowRemoveCosigner:g,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]})),s&&!P&&v&&Q==="7"&&Z.createElement(Fe,{platform:a,action:e.action,setStep:z,stepToSet:"8",customTextHeader:"Successful",actionHeaderText:"Successful",customTextFooter:"Congratulations! You have successfully added Co-signers to your account.",actionFooterText:"Congratulations! You have successfully added Co-signers to your account.",showButton:!!e.dashbordElement,buttonText:e.dashbordElement?"Go To Dashboard":"",handleShowDashboard:()=>{f(!1),g(!1),w(!0)},buttonFunc:()=>{f(!1),g(!1),w(!0)},eventEmitter:e.eventEmitter}),s&&!P&&v&&Q==="8"&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:y}),s&&!P&&v&&Q==="8"&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),!v&&P&&!x&&!c&&e.dashbordElement&&Z.createElement(e.dashbordElement,{setIsLoading:y,setShowResetPin:f,setShowRemoveCosigner:g,setAction:_,setUserNumberFmt:ue,setUserEmail:U,setSelectedCountry:G,setVaultData:r,initWalletAndContract:ot,useVaultStore:Me}),s&&!v&&P&&!x&&!c&&!e.dashbordElement&&Z.createElement(Z.Fragment,null),s&&!v&&!c&&P&&x&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(Yt,{platform:a,fontsLoaded:C,action:"reset-pin",setStep:z,setIsLoading:y,userNumberFmt:oe,userEmail:me,vaultData:i,selectedCountry:T,helperFunctions:e.helperFunctions,isExistingUser:!0,rootTagId:e.rootTagId,rootExpandedWidth:e.rootExpandedWidth,rootExpandedHeight:e.rootExpandedHeight,createPasskeyDomain:e?.createPasskeyDomain,getPasskeyDomain:e?.getPasskeyDomain,passKeyRpId:e?.passKeyRpId,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]})),s&&!v&&P&&!x&&c&&Z.createElement(H,{style:{width:"100%",heigth:"100%",padding:"20px"}},Z.createElement(vt,{platform:a,fontsLoaded:C,action:"remove-cosigner",setStep:z,setIsLoading:y,userNumberFmt:oe,userEmail:me,selectedCountry:T,allCountries:E,helperFunctions:e.helperFunctions,enablePhone:e.enablePhone,dashbordElement:e.dashbordElement,setShowDashboard:w,setShowResetPin:f,setShowRemoveCosigner:g,eventEmitter:e.eventEmitter,externalchainConfig:e.chainConfig||[]}))))),!C&&Z.createElement(ve,null,"Loading Module Fonts...")),!t&&typeof navigator<"u"&&navigator.product!=="ReactNative"&&Z.createElement(Z.Fragment,null,"Preparing Module..."))},Tn=Mn;export{vt as AddCoSignersPage,ui as ContactPage,Yt as CreatePinPage,Pt as EnterPinPage,gi as FTUPage,fi as OTPPage,oi as VaultContextProvider,Tn as VerifiedCustody,ut as decryptString,gt as decryptWithPasskey,rt as encryptString,dt as encryptWithPasskey,ai as getPlatformComponents,He as hashTheBuffer,q as hashTheString,ni as initPlatform,Se as loadAllGoogleFonts,Ne as loadAllGoogleFontsRN,ft as publicKeyCredentialRequestOptions};
3
3
  //# sourceMappingURL=index.mjs.map