PageSourceSearch

https://realestate-marketplace-sable.vercel.app/_next/static/chunks/1741.4581ef9bcc2735e8.js

js realestate-marketplace-sable.vercel.app collected 2026-10-03 07:36:23 UTC 23,937 bytes, 282 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1741],{41741:function(e,t,i){i.r(t),i.d(t,{W3mEmailLoginView:function(){return z},W3mEmailVerifyDeviceView:function(){return P},W3mEmailVerifyOtpView:function(){return A},W3mUpdateEmailPrimaryOtpView:function(){return N},W3mUpdateEmailSecondaryOtpView:function(){return M},W3mUpdateEmailWalletView:function(){return L}});var o=i(31929),r=i(55372),n=i(21278),a=i(48415),l=i(89512),s=i(53357),c=i(92413),u=i(55108),d=i(85412),p=i(86777),h=i(54173),m=i(66909);i(96277),i(51437),i(81255);var f=i(90924),w=i(99691);i(5680);var g=i(84249),v=i(3874),b=i(57116),y=(0,f.iv)`
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`,x=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let E=class extends f.oi{constructor(){super(...arguments),this.disabled=!1,this.value=""}render(){return(0,f.dy)`<input
61      type="number"
62      maxlength="1"
63      inputmode="numeric"
64      autofocus
65      ?disabled=${this.disabled}
66      value=${this.value}
67    /> `}};E.styles=[g.ET,g.ZM,y],x([(0,w.Cb)({type:Boolean})],E.prototype,"disabled",void 0),x([(0,w.Cb)({type:String})],E.prototype,"value",void 0),E=x([(0,b.M)("wui-input-numeric")],E);var C=(0,f.iv)`
68  :host {
69    position: relative;
70    display: block;
71  }
72`,I=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let O=class extends f.oi{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,o=this.getInputElement(i);if(!o)return;["ArrowLeft","ArrowRight","Shift","Delete"].includes(e.key)&&e.preventDefault();let r=o.selectionStart;switch(e.key){case"ArrowLeft":r&&o.setSelectionRange(r+1,r+1),this.focusInputField("prev",t);break;case"ArrowRight":case"Shift":this.focusInputField("next",t);break;case"Delete":case"Backspace":""===o.value?this.focusInputField("prev",t):this.updateInput(o,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],o=i?this.getInputElement(i):void 0;o&&(o.disabled=!1,o.focus())}if("prev"===e){let e=t-1,i=this.numerics[e>-1?e:t],o=i?this.getInputElement(i):void 0;o&&o.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,f.dy)`
73      <wui-flex gap="xxs" data-testid="wui-otp-input">
74        ${Array.from({length:this.length}).map((e,t)=>(0,f.dy)`
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 o=this.numerics[t],r=e||(o?this.getInputElement(o):void 0);r&&(r.value=i,this.values=this.values.map((e,o)=>o===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,o=this.getInputElement(i);if(o){let i=o.value;"insertFromPaste"===e.inputType?this.handlePaste(o,i,t):v.H.isNumber(i)&&e.data?(this.updateInput(o,t,e.data),this.focusInputField("next",t)):this.updateInput(o,t,"")}this.dispatchInputChangeEvent()}handlePaste(e,t,i){let o=t[0];if(o&&v.H.isNumber(o)){this.updateInput(e,i,o);let r=t.substring(1);if(i+1<this.length&&r.length){let e=this.numerics[i+1],t=e?this.getInputElement(e):void 0;t&&this.handlePaste(t,r,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}))}};O.styles=[g.ET,C],I([(0,w.Cb)({type:Number})],O.prototype,"length",void 0),I([(0,w.Cb)({type:String})],O.prototype,"otp",void 0),I([(0,w.SB)()],O.prototype,"values",void 0),O=I([(0,b.M)("wui-otp")],O),i(44732);var R=i(92764),k=(0,u.iv)`
86  wui-loading-spinner {
87    margin: 9px auto;
88  }
89
90  .email-display,
91  .email-display wui-text {
92    max-width: 100%;
93  }
94`,S=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let T=class extends u.oi{firstUpdated(){this.startOTPTimeout()}disconnectedCallback(){clearTimeout(this.OTPTimeout)}constructor(){super(),this.loading=!1,this.timeoutTimeLeft=R.$.getTimeToNextEmailLogin(),this.error="",this.otp="",this.email=p.RouterController.state.data?.email,this.authConnector=h.ConnectorController.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.dy)`
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.dy)`<wui-loading-spinner size="xl" color="accent-100"></wui-loading-spinner>`:(0,u.dy)` <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.dy)`
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=R.$.getTimeToNextEmailLogin(),this.OTPTimeout=setInterval(()=>{this.timeoutTimeLeft>0?this.timeoutTimeLeft=R.$.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.j.parseError(e),this.loading=!1}}async onResendCode(){try{if(this.onOtpResend){if(!this.loading&&!this.timeoutTimeLeft){if(this.error="",this.otp="",!h.ConnectorController.getAuthConnector()||!this.email)throw Error("w3m-email-otp-widget: Unable to resend email");this.loading=!0,await this.onOtpResend(this.email),this.startOTPTimeout(),m.SnackController.showSuccess("Code email resent")}}else this.onStartOver&&this.onStartOver()}catch(e){m.SnackController.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=k,S([(0,d.SB)()],T.prototype,"loading",void 0),S([(0,d.SB)()],T.prototype,"timeoutTimeLeft",void 0),S([(0,d.SB)()],T.prototype,"error",void 0),T=S([(0,c.Mo)("w3m-email-otp-widget")],T);let A=class extends T{constructor(){super(...arguments),this.onOtpSubmit=async e=>{try{if(this.authConnector){if(await this.authConnector.provider.connectOtp({otp:e}),o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}
138),r.R.state.activeChain)await n.ConnectionController.connectExternal(this.authConnector,r.R.state.activeChain);else throw Error("Active chain is not set on ChainControll");o.X.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"email",name:this.authConnector.name||"Unknown"}}),a.OptionsController.state.siwx||l.I.close()}}catch(e){throw o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.j.parseError(e)}}),e}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};A=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([(0,c.Mo)("w3m-email-verify-otp-view")],A),i(92374);var $=(0,u.iv)`
139  wui-icon-box {
140    height: var(--wui-icon-box-size-xl);
141    width: var(--wui-icon-box-size-xl);
142  }
143`,D=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let P=class extends u.oi{constructor(){super(),this.email=p.RouterController.state.data?.email,this.authConnector=h.ConnectorController.getAuthConnector(),this.loading=!1,this.listenForDeviceApproval()}render(){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.dy)`
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(),o.X.sendEvent({type:"track",event:"DEVICE_REGISTERED_FOR_EMAIL"}),o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}),p.RouterController.replace("EmailVerifyOtp",{email:this.email})}catch(e){p.RouterController.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.SnackController.showSuccess("Code email resent")}}catch(e){m.SnackController.showError(e)}finally{this.loading=!1}}};P.styles=$,D([(0,d.SB)()],P.prototype,"loading",void 0),P=D([(0,c.Mo)("w3m-email-verify-device-view")],P);var _=i(57662);i(97585),i(7861);var j=(0,u.iv)`
181  wui-email-input {
182    width: 100%;
183  }
184
185  form {
186    width: 100%;
187    display: block;
188    position: relative;
189  }
190`,V=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>
1903?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let L=class extends u.oi{constructor(){super(...arguments),this.formRef=(0,_.V)(),this.initialEmail=p.RouterController.state.data?.email??"",this.redirectView=p.RouterController.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.dy)`
191      <wui-flex flexDirection="column" padding="m" gap="m">
192        <form ${(0,_.i)(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.ConnectorController.getAuthConnector();if(!t)throw Error("w3m-update-email-wallet: Auth connector not found");let i=await t.provider.updateEmail({email:this.email});o.X.sendEvent({type:"track",event:"EMAIL_EDIT"}),"VERIFY_SECONDARY_OTP"===i.action?p.RouterController.push("UpdateEmailSecondaryOtp",{email:this.initialEmail,newEmail:this.email,redirectView:this.redirectView}):p.RouterController.push("UpdateEmailPrimaryOtp",{email:this.initialEmail,newEmail:this.email,redirectView:this.redirectView})}catch(e){m.SnackController.showError(e),this.loading=!1}}buttonsTemplate(){let e=!this.loading&&this.email.length>3&&this.email!==this.initialEmail;return this.redirectView?(0,u.dy)`
204      <wui-flex gap="s">
205        <wui-button size="md" variant="neutral" fullWidth @click=${p.RouterController.goBack}>
206          Cancel
207        </wui-button>
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.dy)`
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,V([(0,d.SB)()],L.prototype,"email",void 0),V([(0,d.SB)()],L.prototype,"loading",void 0),L=V([(0,c.Mo)("w3m-update-email-wallet-view")],L);let N=class extends T{constructor(){super(),this.email=p.RouterController.state.data?.email,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailPrimaryOtp({otp:e}),o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),p.RouterController.replace("UpdateEmailSecondaryOtp",p.RouterController.state.data))}catch(e){throw o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.j.parseError(e)}}),e}},this.onStartOver=()=>{p.RouterController.replace("UpdateEmailWallet",p.RouterController.state.data)}}};N=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([(0,c.Mo)("w3m-update-email-primary-otp-view")],N);let M=class extends T{constructor(){super(),this.email=p.RouterController.state.data?.newEmail,this.redirectView=p.RouterController.state.data?.redirectView,this.onOtpSubmit=async e=>{try{this.authConnector&&(await this.authConnector.provider.updateEmailSecondaryOtp({otp:e}),o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),this.redirectView&&p.RouterController.reset(this.redirectView))}catch(e){throw o.X.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:s.j.parseError(e)}}),e}},this.onStartOver=()=>{p.RouterController.replace("UpdateEmailWallet",p.RouterController.state.data)}}};M=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>
2313?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a}([(0,c.Mo)("w3m-update-email-secondary-otp-view")],M);var F=i(44649),U=i(88578),B=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let z=class extends u.oi{constructor(){super(),this.authConnector=h.ConnectorController.getAuthConnector(),this.isEmailEnabled=a.OptionsController.state.features?.email,this.isAuthEnabled=this.checkIfAuthEnabled(h.ConnectorController.state.connectors),this.connectors=h.ConnectorController.state.connectors,h.ConnectorController.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.dy)`<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===U.b.CONNECTOR_TYPE_AUTH).map(e=>e.chain);return F.b.AUTH_CONNECTOR_SUPPORTED_CHAINS.some(e=>t.includes(e))}};B([(0,d.SB)()],z.prototype,"connectors",void 0),z=B([(0,c.Mo)("w3m-email-login-view")],z)},57662:function(e,t,i){i.d(t,{V:function(){return o.V},i:function(){return o.i}});var o=i(11101)},7861:function(e,t,i){var o=i(90924),r=i(99691),n=i(71872);i(18360);var a=i(84249),l=i(57116);i(4163);var s=(0,o.iv)`
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`,c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.oi{constructor(){super(...arguments),this.disabled=!1}render(){return(0,o.dy)`
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,n.o)(this.tabIdx)}
256      ></wui-input-text>
257      ${this.templateError()}
258    `}templateError(){return this.errorMessage?(0,o.dy)`<wui-text variant="tiny-500" color="error-100">${this.errorMessage}</wui-text>`:null}};u.styles=[a.ET,s],c([(0,r.Cb)()],u.prototype,"errorMessage",void 0),c([(0,r.Cb)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,r.Cb)()],u.prototype,"value",void 0),c([(0,r.Cb)()],u.prototype,"tabIdx",void 0),c([(0,l.M)("wui-email-input")],u)},92374:function(e,t,i){i(1736)},51437:function(e,t,i){var o=i(90924),r=i(99691),n=i(71872);i(18360);var a=i(84249),l=i(57116),s=(0,o.iv)`
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`,c=function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};let u=class extends o.oi{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return(0,o.dy)`
275      <button ?disabled=${this.disabled} tabindex=${(0,n.o)(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=[a.ET,a.ZM,s],c([(0,r.Cb)()],u.prototype,"tabIdx",void 0),c([(0,r.Cb)({type:Boolean})],u.prototype,"disabled",void 0),c([(0,r.Cb)()],u.prototype,"color",void 0),c([(0,l.M)("wui-link")],u)},81255:function(e,t,i){i(21793)}}]);

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.