1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4180],{7838:(e,t,i)=>{i.d(t,{K:()=>r.K,_:()=>r._});var r=i(54001)},36698:(e,t,i)=>{i(89556)},41799:(e,t,i)=>{i.r(t),i.d(t,{W3mEmailLoginView:()=>U,W3mEmailVerifyDeviceView:()=>S,W3mEmailVerifyOtpView:()=>$,W3mUpdateEmailPrimaryOtpView:()=>M,W3mUpdateEmailSecondaryOtpView:()=>N,W3mUpdateEmailWalletView:()=>L});var r=i(32836),o=i(70625),a=i(6193),n=i(96641),l=i(33806),s=i(35558),c=i(52515),u=i(68082),d=i(19860),p=i(19628),h=i(70781),m=i(5517);i(98160),i(82786),i(72873);var w=i(80643),f=i(67543);i(43804);var g=i(97265),v=i(59970),b=i(54166);let y=(0,w.AH)` 2 :host { 3 position: relative; 4 display: inline-block; 5 } 6 7 input { 8 width: 50px; 9 height: 50px; 10 background: var(--wui-color-gray-glass-010); 11 border-radius: var(--wui-border-radius-xs); 12 border: 1px solid var(--wui-color-gray-glass-005); 13 font-family: var(--wui-font-family); 14 font-size: var(--wui-font-size-large); 15 font-weight: var(--wui-font-weight-regular); 16 letter-spacing: var(--wui-letter-spacing-large); 17 text-align: center; 18 color: var(--wui-color-fg-100); 19 caret-color: var(--wui-color-accent-100); 20 transition: 21 background-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 22 border-color var(--wui-ease-inout-power-1) var(--wui-duration-md), 23 box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md); 24 will-change: background-color, border-color, box-shadow; 25 box-sizing: border-box; 26 -webkit-appearance: none; 27 -moz-appearance: textfield; 28 padding: 0px; 29 } 30 31 input::-webkit-outer-spin-button, 32 input::-webkit-inner-spin-button { 33 -webkit-appearance: none; 34 margin: 0; 35 } 36 37 input[type='number'] { 38 -moz-appearance: textfield; 39 } 40 41 input:disabled { 42 cursor: not-allowed; 43 border: 1px solid var(--wui-color-gray-glass-010); 44 background: var(--wui-color-gray-glass-005); 45 } 46 47 input:focus:enabled { 48 background-color: var(--wui-color-gray-glass-015); 49 border: 1px solid var(--wui-color-accent-100); 50 -webkit-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 51 -moz-box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 52 box-shadow: 0px 0px 0px 4px var(--wui-box-shadow-blue); 53 } 54 55 @media (hover: hover) and (pointer: fine) { 56 input:hover:enabled { 57 background-color: var(--wui-color-gray-glass-015); 58 } 59 } 60`;var E=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let x=class extends w.WF{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return(0,w.qy)`<input 61 type="number" 62 maxlength="1" 63 inputmode="numeric" 64 autofocus 65 ?disabled=${this.disabled} 66 value=${this.value} 67 /> `}};x.styles=[g.W5,g.fD,y],E([(0,f.MZ)({type:Boolean})],x.prototype,"disabled",void 0),E([(0,f.MZ)({type:String})],x.prototype,"value",void 0),x=E([(0,b.E)("wui-input-numeric")],x);let I=(0,w.AH)` 68 :host { 69 position: relative; 70 display: block; 71 } 72`;var O=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let C=class extends w.WF{constructor(){super(...arguments),this.length=6,this.otp="",this.values=Array.from({length:this.length}).map(()=>""),this.numerics=[],this.shouldInputBeEnabled=e=>this.values.slice(0,e).every(e=>""!==e),this.handleKeyDown=(e,t)=>{let i=e.target,r=this.getInputElement(i);if(!r)return;["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();let o=r.selectionStart;switch(e.key){case"ArrowLeft":o&&r.setSelectionRange(o+1,o+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===r.value?this.focusInputField("prev",t):this.updateInput(r,t,"")}},this.focusInputField=(e,t)=>{if("next"===e){let e=t+1;if(!this.shouldInputBeEnabled(e))return;let i=this.numerics[e<this.length?e:t],r=i?this.getInputElement(i):void 0;r&&(r.disabled=!1,r.focus())}if("prev"===e){let e=t-1,i=this.numerics[e>-1?e:t],r=i?this.getInputElement(i):void 0;r&&r.focus()}}}firstUpdated(){this.otp&&(this.values=this.otp.split(""));let e=this.shadowRoot?.querySelectorAll("wui-input-numeric");
72e&&(this.numerics=Array.from(e)),this.numerics[0]?.focus()}render(){return(0,w.qy)` 73 <wui-flex gap="xxs" data-testid="wui-otp-input"> 74 ${Array.from({length:this.length}).map((e,t)=>(0,w.qy)` 75 <wui-input-numeric 76 @input=${e=>this.handleInput(e,t)} 77 @click=${e=>this.selectInput(e)} 78 @keydown=${e=>this.handleKeyDown(e,t)} 79 .disabled=${!this.shouldInputBeEnabled(t)} 80 .value=${this.values[t]||""} 81 > 82 </wui-input-numeric> 83 `)} 84 </wui-flex> 85 `}updateInput(e,t,i){let r=this.numerics[t],o=e||(r?this.getInputElement(r):void 0);o&&(o.value=i,this.values=this.values.map((e,r)=>r===t?i:e))}selectInput(e){let t=e.target;if(t){let e=this.getInputElement(t);e?.select()}}handleInput(e,t){let i=e.target,r=this.getInputElement(i);if(r){let i=r.value;"insertFromPaste"===e.inputType?this.handlePaste(r,i,t):v.Z.isNumber(i)&&e.data?(this.updateInput(r,t,e.data),this.focusInputField("next",t)):this.updateInput(r,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,i){let r=t[0];if(r&&v.Z.isNumber(r)){this.updateInput(e,i,r);let o=t.substring(1);if(i+1<this.length&&o.length){let e=this.numerics[i+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,o,i+1)}else this.focusInputField("next",i)}else this.updateInput(e,i,"")}getInputElement(e){return e.shadowRoot?.querySelector("input")?e.shadowRoot.querySelector("input"):null}dispatchInputChangeEvent(){let e=this.values.join("");this.dispatchEvent(new CustomEvent("inputChange",{detail:e,bubbles:!0,composed:!0}))}};C.styles=[g.W5,I],O([(0,f.MZ)({type:Number})],C.prototype,"length",void 0),O([(0,f.MZ)({type:String})],C.prototype,"otp",void 0),O([(0,f.wk)()],C.prototype,"values",void 0),C=O([(0,b.E)("wui-otp")],C),i(22724);var k=i(519);let R=(0,u.AH)` 86 wui-loading-spinner { 87 margin: 9px auto; 88 } 89 90 .email-display, 91 .email-display wui-text { 92 max-width: 100%; 93 } 94`;var A=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let T=class extends u.WF{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=k.Q.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=p.I.state.data?.email,this.authConnector=h.a.getAuthConnector()}render(){if(!this.email)throw Error("w3m-email-otp-widget: No email provided");let e=!!this.timeoutTimeLeft,t=this.getFooterLabels(e);return(0,u.qy)` 95 <wui-flex 96 flexDirection="column" 97 alignItems="center" 98 .padding=${["l","0","l","0"]} 99 gap="l" 100 > 101 <wui-flex 102 class="email-display" 103 flexDirection="column" 104 alignItems="center" 105 .padding=${["0","xl","0","xl"]} 106 > 107 <wui-text variant="paragraph-400" color="fg-100" align="center"> 108 Enter the code we sent to 109 </wui-text> 110 <wui-text variant="paragraph-500" color="fg-100" lineClamp="1" align="center"> 111 ${this.email} 112 </wui-text> 113 </wui-flex> 114 115 <wui-text variant="small-400" color="fg-200">The code expires in 20 minutes</wui-text> 116 117 ${this.loading?(0,u.qy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,u.qy)` <wui-flex flexDirection="column" alignItems="center" gap="xs"> 118 <wui-otp 119 dissabled 120 length="6" 121 @inputChange=${this.onOtpInputChange.bind(this)} 122 .otp=${this.otp} 123 ></wui-otp> 124 ${this.error?(0,u.qy)` 125 <wui-text variant="small-400" align="center" color="error-100"> 126 ${this.error}. Try Again 127 </wui-text> 128 `:null} 129 </wui-flex>`} 130 131 <wui-flex alignItems="center" gap="xs"> 132 <wui-text variant="small-400" color="fg-200">${t.title}</wui-text> 133 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${e}> 134 ${t.action} 135 </wui-link> 136 </wui-flex> 137 </wui-flex> 138 `}startOTPTimeout(){this.timeoutTimeLeft=k.Q.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=k.Q.getTimeToNextEmailLogin():clearInterval(this.OTPTimeout)},1e3)}async onOtpInputChange(e){try{!this.loading&&(this.otp=e.detail,this.authConnector&&6===this.otp.length&&(this.loading=!0,await this.onOtpSubmit?.(this.otp)))}catch(e){this.error=s.w.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!h.a.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),m.P.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){m.P.showError(e)}finally{this.loading=!1}}getFooterLabels(e){return this.onStartOver?{title:"Something wrong?",action:`Try again ${e?`in ${this.timeoutTimeLeft}s`:""}`}:{title:"Didn't receive it?",action:`Resend ${e?`in ${this.timeoutTimeLeft}s`:"Code"}`}}};T.styles=R,A([(0,d.wk)()],T.prototype,"loading",void 0),A([(0,d.wk)()],T.prototype,"timeoutTimeLeft",void 0),A([(0,d.wk)()],T.prototype,"error",void 0),T=A([(0,c.EM)("w3m-email-otp-widget")],T);let $=class extends T{constructor(){super(...arguments),this.onOtpSubmit=async e=>{try{if(this.authConnector){if(await this.authConnector.provider.connectOtp({otp:e}),r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),o.W.state.activeChain)await a.x.connectExternal(this.authConnector,o.W.state.activeChain);else throw Error("Active chain is not set on ChainControll");r.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),n.H.state.siwx||l.W.close()}}catch(e){throw r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.w.parseError(e)}}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};$=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n}([(0,c.EM)("w3m-email-verify-otp-view")],$),i(36698);let D=(0,u.AH)` 139 wui-icon-box { 140 height: var(--wui-icon-box-size-xl); 141 width: var(--wui-icon-box-size-xl); 142 } 143`;var P=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let S=class extends u.WF{constructor(){super(),this.email=p.I.state.data?.email,this.authConnector=h.a.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}
143render(){if(!this.email)throw Error("w3m-email-verify-device-view: No email provided");if(!this.authConnector)throw Error("w3m-email-verify-device-view: No auth connector provided");return(0,u.qy)` 144 <wui-flex 145 flexDirection="column" 146 alignItems="center" 147 .padding=${["xxl","s","xxl","s"]} 148 gap="l" 149 > 150 <wui-icon-box 151 size="xl" 152 iconcolor="accent-100" 153 backgroundcolor="accent-100" 154 icon="verify" 155 background="opaque" 156 ></wui-icon-box> 157 158 <wui-flex flexDirection="column" alignItems="center" gap="s"> 159 <wui-flex flexDirection="column" alignItems="center"> 160 <wui-text variant="paragraph-400" color="fg-100"> 161 Approve the login link we sent to 162 </wui-text> 163 <wui-text variant="paragraph-400" color="fg-100"><b>${this.email}</b></wui-text> 164 </wui-flex> 165 166 <wui-text variant="small-400" color="fg-200" align="center"> 167 The code expires in 20 minutes 168 </wui-text> 169 170 <wui-flex alignItems="center" id="w3m-resend-section" gap="xs"> 171 <wui-text variant="small-400" color="fg-100" align="center"> 172 Didn't receive it? 173 </wui-text> 174 <wui-link @click=${this.onResendCode.bind(this)} .disabled=${this.loading}> 175 Resend email 176 </wui-link> 177 </wui-flex> 178 </wui-flex> 179 </wui-flex> 180 `}async listenForDeviceApproval(){if(this.authConnector)try{await this.authConnector.provider.connectDevice(),r.E.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),p.I.replace("EmailVerifyOtp",{email:this.email})}catch(e){p.I.goBack()}}async onResendCode(){try{if(!this.loading){if(!this.authConnector||!this.email)throw Error("w3m-email-login-widget: Unable to resend email");this.loading=!0,await this.authConnector.provider.connectEmail({email:this.email}),this.listenForDeviceApproval(),m.P.showSuccess("Code email resent")}}catch(e){m.P.showError(e)}finally{this.loading=!1}}};S.styles=D,P([(0,d.wk)()],S.prototype,"loading",void 0),S=P([(0,c.EM)("w3m-email-verify-device-view")],S);var _=i(7838);i(54279),i(60567);let j=(0,u.AH)` 181 wui-email-input { 182 width: 100%; 183 } 184 185 form { 186 width: 100%; 187 display: block; 188 position: relative; 189 } 190`;var F=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let L=class extends u.WF{constructor(){super(...arguments),this.formRef=(0,_._)(),this.initialEmail=p.I.state.data?.email??"",this.redirectView=p.I.state.data?.redirectView,this.email="",this.loading=!1}firstUpdated(){this.formRef.value?.addEventListener("keydown",e=>{"Enter"===e.key&&this.onSubmitEmail(e)})}render(){return(0,u.qy)` 191 <wui-flex flexDirection="column" padding="m" gap="m"> 192 <form ${(0,_.K)(this.formRef)} @submit=${this.onSubmitEmail.bind(this)}> 193 <wui-email-input 194 value=${this.initialEmail} 195 .disabled=${this.loading} 196 @inputChange=${this.onEmailInputChange.bind(this)} 197 > 198 </wui-email-input> 199 <input type="submit" hidden /> 200 </form> 201 ${this.buttonsTemplate()} 202 </wui-flex> 203 `}onEmailInputChange(e){this.email=e.detail}async onSubmitEmail(e){try{if(this.loading)return;this.loading=!0,e.preventDefault();let t=h.a.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let i=await t.provider.updateEmail({email:this.email});r.E.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===i.action?p.I.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email,redirectView:this.redirectView}):p.I.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email,redirectView:this.redirectView})}catch(e){m.P.showError(e),this.loading=!1}}buttonsTemplate(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return this.redirectView?(0,u.qy)` 204 <wui-flex gap="s"> 205 <wui-button size="md" variant="neutral" fullWidth @click=${p.I.goBack}> 206 Cancel 207 </wui-button>
207 208 209 <wui-button 210 size="md" 211 variant="main" 212 fullWidth 213 @click=${this.onSubmitEmail.bind(this)} 214 .disabled=${!e} 215 .loading=${this.loading} 216 > 217 Save 218 </wui-button> 219 </wui-flex> 220 `:(0,u.qy)` 221 <wui-button 222 size="md" 223 variant="main" 224 fullWidth 225 @click=${this.onSubmitEmail.bind(this)} 226 .disabled=${!e} 227 .loading=${this.loading} 228 > 229 Save 230 </wui-button> 231 `}};L.styles=j,F([(0,d.wk)()],L.prototype,"email",void 0),F([(0,d.wk)()],L.prototype,"loading",void 0),L=F([(0,c.EM)("w3m-update-email-wallet-view")],L);let M=class extends T{constructor(){super(),this.email=p.I.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),p.I.replace("UpdateEmailSecondaryOtp",p.I.state.data))}catch(e){throw r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.w.parseError(e)}}),e}},this.onStartOver=()=>{p.I.replace("UpdateEmailWallet",p.I.state.data)}}};M=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n}([(0,c.EM)("w3m-update-email-primary-otp-view")],M);let N=class extends T{constructor(){super(),this.email=p.I.state.data?.newEmail,this.redirectView=p.I.state.data?.redirectView,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),this.redirectView&&p.I.reset(this.redirectView))}catch(e){throw r.E.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.w.parseError(e)}}),e}},this.onStartOver=()=>{p.I.replace("UpdateEmailWallet",p.I.state.data)}}};N=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n}([(0,c.EM)("w3m-update-email-secondary-otp-view")],N);var V=i(60500),W=i(99836),q=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let U=class extends u.WF{constructor(){super(),this.authConnector=h.a.getAuthConnector(),this.isEmailEnabled=n.H.state.features?.email,this.isAuthEnabled=this.checkIfAuthEnabled(h.a.state.connectors),this.connectors=h.a.state.connectors,h.a.subscribeKey("connectors",e=>{this.connectors=e,this.isAuthEnabled=this.checkIfAuthEnabled(this.connectors)})}render(){if(!this.isEmailEnabled)throw Error("w3m-email-login-view: Email is not enabled");if(!this.isAuthEnabled)throw Error("w3m-email-login-view: No auth connector provided");return(0,u.qy)`<wui-flex 232 flexDirection="column" 233 .padding=${["3xs","m","m","m"]} 234 gap="l" 235 > 236 <w3m-email-login-widget></w3m-email-login-widget> 237 </wui-flex> `}checkIfAuthEnabled(e){let t=e.filter(e=>e.type===W.o.CONNECTOR_TYPE_AUTH).map(e=>e.chain);return V.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(e=>t.includes(e))}};q([(0,d.wk)()],U.prototype,"connectors",void 0),U=q([(0,c.EM)("w3m-email-login-view")],U)},60567:(e,t,i)=>{var r=i(80643),o=i(67543),a=i(9431);i(98750);var n=i(97265),l=i(54166);i(39151);let s=(0,r.AH)` 238 :host { 239 position: relative; 240 display: inline-block; 241 } 242 243 wui-text { 244 margin: var(--wui-spacing-xxs) var(--wui-spacing-m) var(--wui-spacing-0) var(--wui-spacing-m); 245 } 246`;var c=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let u=class extends r.WF{constructor(){super(...arguments),this.disabled=!1}render(){return(0,r.qy)` 247 <wui-input-text 248 type="email" 249 placeholder="Email" 250 icon="mail" 251 size="mdl" 252 .disabled=${this.disabled} 253 .value=${this.value} 254 data-testid="wui-email-input" 255 tabIdx=${(0,a.J)(this.tabIdx)} 256 ></wui-input-text> 257 ${this.templateError()} 258 `}templateError(){return this.errorMessage?(0,r.qy)`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};u.styles=[n.W5,s],c([(0,o.MZ)()],u.prototype,"errorMessage",void 0),c([(0,o.MZ)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,o.MZ)()],u.prototype,"value",void 0),c([(0,o.MZ)()],u.prototype,"tabIdx",void 0),u=c([(0,l.E)("wui-email-input")],u)},72873:(e,t,i)=>{i(4537)},82786:(e,t,i)=>{var r=i(80643),o=i(67543),a=i(9431);i(98750);var n=i(97265),l=i(54166);let s=(0,r.AH)` 259 button { 260 padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs); 261 border-radius: var(--wui-border-radius-3xs); 262 background-color: transparent; 263 color: var(--wui-color-accent-100); 264 } 265 266 button:disabled { 267 background-color: transparent; 268 color: var(--wui-color-gray-glass-015); 269 } 270 271 button:hover { 272 background-color: var(--wui-color-gray-glass-005); 273 } 274`;var c=function(e,t,i,r){var o,a=arguments.length,n=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(a<3?o(n):a>3?o(t,i,n):o(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};let u=class extends r.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return(0,r.qy)` 275 <button ?disabled=${this.disabled} tabindex=${(0,a.J)(this.tabIdx)}> 276 <slot name="iconLeft"></slot> 277 <wui-text variant="small-600" color=${this.color}> 278 <slot></slot> 279 </wui-text> 280 <slot name="iconRight"></slot> 281 </button> 282 `}};u.styles=[n.W5,n.fD,s],c([(0,o.MZ)()],u.prototype,"tabIdx",void 0),c([(0,o.MZ)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,o.MZ)()],u.prototype,"color",void 0),u=c([(0,l.E)("wui-link")],u)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.