1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5273],{55273:(e,t,i)=>{i.r(t),i.d(t,{W3mEmailLoginView:()=>W,W3mEmailVerifyDeviceView:()=>D,W3mEmailVerifyOtpView:()=>A,W3mUpdateEmailPrimaryOtpView:()=>F,W3mUpdateEmailSecondaryOtpView:()=>L,W3mUpdateEmailWalletView:()=>j});var r=i(66699),o=i(18539),a=i(85845),n=i(68129),l=i(25315),s=i(59085),c=i(97778),u=i(41270),d=i(12456),p=i(83503),h=i(4537),m=i(10840);i(58301),i(51482),i(93278),i(7202);var w=i(67998),f=i(49231),g=i(45857);let v=(0,u.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 b=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 y=class extends u.WF{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return(0,u.qy)`<input 61 type="number" 62 maxlength="1" 63 inputmode="numeric" 64 autofocus 65 ?disabled=${this.disabled} 66 value=${this.value} 67 /> `}};y.styles=[w.W5,w.fD,v],b([(0,d.MZ)({type:Boolean})],y.prototype,"disabled",void 0),b([(0,d.MZ)({type:String})],y.prototype,"value",void 0),y=b([(0,g.E)("wui-input-numeric")],y);let E=(0,u.AH)` 68 :host { 69 position: relative; 70 display: block; 71 } 72`;var x=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 I=class extends u.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,u.qy)` 73 <wui-flex gap="xxs" data-testid="wui-otp-input"> 74 ${Array.from({length:this.length}).map((e,t)=>(0,u.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):f.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&&f.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}))}};I.styles=[w.W5,E],x([(0,d.MZ)({type:Number})],I.prototype,"length",void 0),x([(0,d.MZ)({type:String})],I.prototype,"otp",void 0),x([(0,d.wk)()],I.prototype,"values",void 0),I=x([(0,g.E)("wui-otp")],I),i(85893);var O=i(34809);let C=(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 k=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 R=class extends u.WF{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=O.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=O.Q.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=O.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"}`}}};R.styles=C,k([(0,d.wk)()],R.prototype,"loading",void 0),k([(0,d.wk)()],R.prototype,"timeoutTimeLeft",void 0),k([(0,d.wk)()],R.prototype,"error",void 0),R=k([(0,c.EM)("w3m-email-otp-widget")],R);let A=class extends R{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"}))}}};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}([(0,c.EM)("w3m-email-verify-otp-view")],A),i(46783);let T=(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 $=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 D=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}}};D.styles=T,$([(0,d.wk)()],D.prototype,"loading",void 0),D=$([(0,c.EM)("w3m-email-verify-device-view")],D);var P=i(55549);i(83066),i(38878);let S=(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 _=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 j=class extends u.WF{constructor(){super(...arguments),this.formRef=(0,P._)(),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,P.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 `}};j.styles=S,_([(0,d.wk)()],j.prototype,"email",void 0),_([(0,d.wk)()],j.prototype,"loading",void 0),j=_([(0,c.EM)("w3m-update-email-wallet-view")],j);let F=class extends R{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)}}};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}([(0,c.EM)("w3m-update-email-primary-otp-view")],F);let L=class extends R{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)}}};L=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")],L);var M=i(11731),N=i(153),V=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 W=class extends u.WF{constructor(){super(),this.authConnector=h.a.getAuthConnector(),this.isEmailEnabled=n.H.state.remoteFeatures?.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===N.o.CONNECTOR_TYPE_AUTH).map(e=>e.chain);return M.o.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(e=>t.includes(e))}};V([(0,d.wk)()],W.prototype,"connectors",void 0),W=V([(0,c.EM)("w3m-email-login-view")],W)},38878:(e,t,i)=>{var r=i(41270),o=i(12456),a=i(81440);i(13076);var n=i(67998),l=i(45857);i(60665);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)},46783:(e,t,i)=>{i(38542)},51482:(e,t,i)=>{var r=i(41270),o=i(12456),a=i(81440);i(13076);var n=i(67998),l=i(45857);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)},93278:(e,t,i)=>{i(88337)}}]);
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.