PageSourceSearch

https://likwid.fi/assets/embedded-wallet-urSNESuR.js

js likwid.fi collected 2026-10-07 15:12:20 UTC 23,126 bytes, 410 lines download raw bytes

1import{d as Y,i as g,M as W,O as K,b as c,j as _,T as j,X as G,a as w,c as E,r as U,e as H,s as N,C as m,Y as V,p as k,g as C,W as h,k as L,Z as X,$ as v,f as z,n as O,S as q,a0 as Z,R as Q}from"./vendor-web3-DQ4eUc5Q.js";import{r as d,n as l,o as J,e as ee,H as I,a as te}from"./index-C-vjzskI.js";import"./vendor-react-BxpeYkNm.js";import"./vendor-query-UAstPYLt.js";import"./vendor-i18n-BwS42yD8.js";const ie=Y`
2  div {
3    width: 100%;
4  }
5
6  [data-ready='false'] {
7    transform: scale(1.05);
8  }
9
10  @media (max-width: 430px) {
11    [data-ready='false'] {
12      transform: translateY(-50px);
13    }
14  }
15`;var F=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const P=600,M=360,oe=64;let R=class extends g{constructor(){super(),this.bodyObserver=void 0,this.unsubscribe=[],this.iframe=document.getElementById("w3m-iframe"),this.ready=!1,this.unsubscribe.push(W.subscribeKey("open",t=>{t||this.onHideIframe()}),W.subscribeKey("shake",t=>{t?this.iframe.style.animation="w3m-shake 500ms var(--apkt-easings-ease-out-power-2)":this.iframe.style.animation="none"}))}disconnectedCallback(){this.onHideIframe(),this.unsubscribe.forEach(t=>t()),this.bodyObserver?.unobserve(window.document.body)}async firstUpdated(){await this.syncTheme(),this.iframe.style.display="block";const t=this?.renderRoot?.querySelector("div");this.bodyObserver=new ResizeObserver(i=>{const r=i?.[0]?.contentBoxSize?.[0]?.inlineSize;this.iframe.style.height=`${P}px`,t.style.height=`${P}px`,K.state.enableEmbedded?this.updateFrameSizeForEmbeddedMode():r&&r<=430?(this.iframe.style.width="100%",this.iframe.style.left="0px",this.iframe.style.bottom="0px",this.iframe.style.top="unset",this.onShowIframe()):(this.iframe.style.width=`${M}px`,this.iframe.style.left=`calc(50% - ${M/2}px)`,this.iframe.style.top=`calc(50% - ${P/2}px + ${oe/2}px)`,this.iframe.style.bottom="unset",this.onShowIframe())}),this.bodyObserver.observe(window.document.body)}render(){return c`<div data-ready=${this.ready} id="w3m-frame-container"></div>`}onShowIframe(){const t=window.innerWidth<=430;this.ready=!0,this.iframe.style.animation=t?"w3m-iframe-zoom-in-mobile 200ms var(--apkt-easings-ease-out-power-2)":"w3m-iframe-zoom-in 200ms var(--apkt-easings-ease-out-power-2)"}onHideIframe(){this.iframe.style.display="none",this.iframe.style.animation="w3m-iframe-fade-out 200ms var(--apkt-easings-ease-out-power-2)"}async syncTheme(){const t=_.getAuthConnector();if(t){const i=j.getSnapshot().themeMode,n=j.getSnapshot().themeVariables;await t.provider.syncTheme({themeVariables:n,w3mThemeVariables:G(n,i)})}}async updateFrameSizeForEmbeddedMode(){const t=this?.renderRoot?.querySelector("div");await new Promise(n=>{setTimeout(n,300)});const i=this.getBoundingClientRect();t.style.width="100%",this.iframe.style.left=`${i.left}px`,this.iframe.style.top=`${i.top}px`,this.iframe.style.width=`${i.width}px`,this.iframe.style.height=`${i.height}px`,this.onShowIframe()}};R.styles=ie;F([d()],R.prototype,"ready",void 0);R=F([w("w3m-approve-transaction-view")],R);const ne=E`
16  a {
17    border: none;
18    border-radius: ${({borderRadius:e})=>e[20]};
19    display: flex;
20    flex-direction: row;
21    align-items: center;
22    padding: ${({spacing:e})=>e[1]};
23    transition:
24      background-color ${({durations:e})=>e.lg}
25        ${({easings:e})=>e["ease-out-power-2"]},
26      box-shadow ${({durations:e})=>e.lg}
27        ${({easings:e})=>e["ease-out-power-2"]},
28      border ${({durations:e})=>e.lg} ${({easings:e})=>e["ease-out-power-2"]};
29    will-change: background-color, box-shadow, border;
30  }
31
32  /* -- Variants --------------------------------------------------------------- */
33  a[data-type='success'] {
34    background-color: ${({tokens:e})=>e.core.backgroundSuccess};
35    color: ${({tokens:e})=>e.core.textSuccess};
36  }
37
38  a[data-type='error'] {
39    background-color: ${({tokens:e})=>e.core.backgroundError};
40    color: ${({tokens:e})=>e.core.textError};
41  }
42
43  a[data-type='warning'] {
44    background-color: ${({tokens:e})=>e.core.backgroundWarning};
45    color: ${({tokens:e})=>e.core.textWarning};
46  }
47
48  /* -- Sizes --------------------------------------------------------------- */
49  a[data-size='sm'] {
50    height: 24px;
51  }
52
53  a[data-size='md'] {
54    height: 28px;
55  }
56
57  a[data-size='lg'] {
58    height: 32px;
59  }
60
61  a[data-size='sm'] > wui-image,
62  a[data-size='sm'] > wui-icon {
63    width: 16px;
64    height: 16px;
65  }
66
67  a[data-size='md'] > wui-image,
68  a[data-size='md'] > wui-icon {
69    width: 20px;
70    height: 20px;
71  }
72
73  a[data-size='lg'] > wui-image,
74  a[data-size='lg'] > wui-icon {
75    width: 24px;
76    height: 24px;
77  }
78
79  wui-text {
80    padding-left: ${({spacing:e})=>e[1]};
81    padding-right: ${({spacing:e})=>e[1]};
82  }
83
84  wui-image {
85    border-radius: ${({borderRadius:e})=>e[3]};
86    overflow: hidden;
87    user-drag: none;
88    user-select: none;
89    -moz-user-select: none;
90    -webkit-user-drag: none;
91    -webkit-user-select: none;
92    -ms-user-select: none;
93  }
94
95  /* -- States --------------------------------------------------------------- */
96  @media (hover: hover) and (pointer: fine) {
97    a[data-type='success']:not(:disabled):hover {
98      background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
99      box-shadow: 0px 0px 0px 1px ${({tokens:e})=>e.core.borderSuccess};
100    }
101
102    a[data-type='error']:not(:disabled):hover {
103      background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
104      box-shadow: 0px 0px 0px 1px ${({tokens:e})=>e.core.borderError};
105    }
106
107    a[data-type='warning']:not(:disabled):hover {
108      background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
109      box-shadow: 0px 0px 0px 1px ${({tokens:e})=>e.core.borderWarning};
110    }
111  }
112
113  a[data-type='success']:not(:disabled):focus-visible {
114    box-shadow:
115      0px 0px 0px 1px ${({tokens:e})=>e.core.backgroundAccentPrimary},
116      0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent020};
117  }
118
119  a[data-type='error']:not(:disabled):focus-visible {
120    box-shadow:
121      0px 0px 0px 1px ${({tokens:e})=>e.core.backgroundAccentPrimary},
122      0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent020};
123  }
124
125  a[data-type='warning']:not(:disabled):focus-visible {
126    box-shadow:
127      0px 0px 0px 1px ${({tokens:e})=>e.core.backgroundAccentPrimary},
128      0px 0px 0px 4px ${({tokens:e})=>e.core.foregroundAccent020};
129  }
130
131  a:disabled {
132    opacity: 0.5;
133  }
134`;var y=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};const re={sm:"md-regular",md:"lg-regular",lg:"lg-regular"},se={success:"sealCheck",error:"warning",warning:"exclamationCircle"};let u=class extends g{constructor(){super(...arguments),this.type="success",this.size="md",this.imageSrc=void 0,this.disabled=!1,this.href="",this.text=void 0}render(){return c`
135      <a
136        rel="noreferrer"
137        target="_blank"
138        href=${this.href}
139        class=${this.disabled?"disabled":""}
140        data-type=${this.type}
141        data-size=${this.size}
142      >
143        ${this.imageTemplate()}
144        <wui-text variant=${re[this.size]} color="inherit">${this.text}</wui-text>
145      </a>
146    `}imageTemplate(){return this.imageSrc?c`<wui-image src=${this.imageSrc} size="inherit"></wui-image>`:c`<wui-icon
147      name=${se[this.type]}
148      weight="fill"
149      color="inherit"
150      size="inherit"
151      class="image-icon"
152    ></wui-icon>`}};u.styles=[U,H,ne];y([l()],u.prototype,"type",void 0);y([l()],u.prototype,"size",void 0);y([l()],u.prototype,"imageSrc",void 0);y([l({type:Boolean})],u.prototype,"disabled",void 0);y([l()],u.prototype,"href",void 0);y([l()],u.prototype,"text",void 0);u=y([w("wui-semantic-chip")],u);var ae=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let B=class extends g{render(){return c`
153      <wui-flex flexDirection="column" alignItems="center" gap="5" padding="5">
154        <wui-text variant="md-regular" color="primary">Follow the instructions on</wui-text>
155        <wui-semantic-chip
156          icon="externalLink"
157          variant="fill"
158          text=${N.SECURE_SITE_DASHBOARD}
159          href=${N.SECURE_SITE_DASHBOARD}
160          imageSrc=${N.SECURE_SITE_FAVICON}
161          data-testid="w3m-secure-website-button"
162        >
163        </wui-semantic-chip>
164        <wui-text variant="sm-regular" color="secondary">
165          You will have to reconnect for security reasons
166        </wui-text>
167      </wui-flex>
168    `}};B=ae([w("w3m-upgrade-wallet-view")],B);var A=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let $=class extends g{constructor(){super(...arguments),this.loading=!1,this.switched=!1,this.text="",this.network=m.state.activeCaipNetwork}render(){return c`
169      <wui-flex flexDirection="column" gap="2" .padding=${["6","4","3","4"]}>
170        ${this.togglePreferredAccountTypeTemplate()} ${this.toggleSmartAccountVersionTemplate()}
171      </wui-flex>
172    `}toggleSmartAccountVersionTemplate(){return c`
173      <w3m-tooltip-trigger text="Changing the smart account version will reload the page">
174        <wui-list-item
175          icon=${this.isV6()?"arrowTop":"arrowBottom"}
176          ?rounded=${!0}
177          ?chevron=${!0}
178          data-testid="account-toggle-smart-account-version"
179          @click=${this.toggleSmartAccountVersion.bind(this)}
180        >
181          <wui-text variant="lg-regular" color="primary"
182            >Force Smart Account Version ${this.isV6()?"7":"6"}</wui-text
183          >
184        </wui-list-item>
185      </w3m-tooltip-trigger>
186    `}isV6(){return(V.get("dapp_smart_account_version")||"v6")==="v6"}toggleSmartAccountVersion(){V.set("dapp_smart_account_version",this.isV6()?"v7":"v6"),typeof window<"u"&&window?.location?.reload()}togglePreferredAccountTypeTemplate(){const t=this.network?.chainNamespace,i=m.checkIfSmartAccountEnabled(),n=_.getConnectorId(t);return!_.getAuthConnector()||n!==k.CONNECTOR_ID.AUTH||!i?null:(this.switched||(this.text=C(t)===h.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your Smart Account"),c`
187      <wui-list-item
188        icon="swapHorizontal"
189        ?rounded=${!0}
190        ?chevron=${!0}
191        ?loading=${this.loading}
192        @click=${this.changePreferredAccountType.bind(this)}
193        data-testid="account-toggle-preferred-account-type"
194      >
195        <wui-text variant="lg-regular" color="primary">${this.text}</wui-text>
196      </wui-list-item>
197    `)}async changePreferredAccountType(){const t=this.network?.chainNamespace,i=m.checkIfSmartAccountEnabled(),n=C(t)===h.ACCOUNT_TYPES.SMART_ACCOUNT||!i?h.ACCOUNT_TYPES.EOA:h.ACCOUNT_TYPES.SMART_ACCOUNT;_.getAuthConnector()&&(this.loading=!0,await L.setPreferredAccountType(n,t),this.text=n===
197h.ACCOUNT_TYPES.SMART_ACCOUNT?"Switch to your EOA":"Switch to your Smart Account",this.switched=!0,X.resetSend(),this.loading=!1,this.requestUpdate())}};A([d()],$.prototype,"loading",void 0);A([d()],$.prototype,"switched",void 0);A([d()],$.prototype,"text",void 0);A([d()],$.prototype,"network",void 0);$=A([w("w3m-smart-account-settings-view")],$);const ce=E`
198  :host {
199    width: 100%;
200  }
201
202  button {
203    width: 100%;
204    display: flex;
205    justify-content: space-between;
206    align-items: center;
207    background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
208    border-radius: ${({borderRadius:e})=>e[4]};
209    padding: ${({spacing:e})=>e[4]};
210  }
211
212  .name {
213    max-width: 75%;
214    overflow: hidden;
215    text-overflow: ellipsis;
216    white-space: nowrap;
217  }
218
219  @media (hover: hover) and (pointer: fine) {
220    button:hover:enabled {
221      cursor: pointer;
222      background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
223      border-radius: ${({borderRadius:e})=>e[6]};
224    }
225  }
226
227  button:disabled {
228    opacity: 0.5;
229    cursor: default;
230  }
231
232  button:focus-visible:enabled {
233    box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent040};
234    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
235  }
236`;var T=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let b=class extends g{constructor(){super(...arguments),this.name="",this.registered=!1,this.loading=!1,this.disabled=!1}render(){return c`
237      <button ?disabled=${this.disabled}>
238        <wui-text class="name" color="primary" variant="md-regular">${this.name}</wui-text>
239        ${this.templateRightContent()}
240      </button>
241    `}templateRightContent(){return this.loading?c`<wui-loading-spinner size="lg" color="primary"></wui-loading-spinner>`:this.registered?c`<wui-tag variant="info" size="sm">Registered</wui-tag>`:c`<wui-tag variant="success" size="sm">Available</wui-tag>`}};b.styles=[U,H,ce];T([l()],b.prototype,"name",void 0);T([l({type:Boolean})],b.prototype,"registered",void 0);T([l({type:Boolean})],b.prototype,"loading",void 0);T([l({type:Boolean})],b.prototype,"disabled",void 0);b=T([w("wui-account-name-suggestion-item")],b);const le=E`
242  :host {
243    position: relative;
244    width: 100%;
245    display: inline-block;
246  }
247
248  :host([disabled]) {
249    opacity: 0.5;
250    cursor: not-allowed;
251  }
252
253  .base-name {
254    position: absolute;
255    right: ${({spacing:e})=>e[4]};
256    top: 50%;
257    transform: translateY(-50%);
258    text-align: right;
259    padding: ${({spacing:e})=>e[1]};
260    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
261    border-radius: ${({borderRadius:e})=>e[1]};
262  }
263`;var S=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let f=class extends g{constructor(){super(...arguments),this.disabled=!1,this.loading=!1}render(){return c`
264      <wui-input-text
265        value=${J(this.value)}
266        ?disabled=${this.disabled}
267        .value=${this.value||""}
268        data-testid="wui-ens-input"
269        icon="search"
270        inputRightPadding="5xl"
271        .onKeyDown=${this.onKeyDown}
272      ></wui-input-text>
273    `}};f.styles=[U,le];S([l()],f.prototype,"errorMessage",void 0);S([l({type:Boolean})],f.prototype,"disabled",void 0);S([l()],f.prototype,"value",void 0);S([l({type:Boolean})],f.prototype,"loading",void 0);S([l({attribute:!1})],f.prototype,"onKeyDown",void 0);f=S([w("wui-ens-input")],f);const de=E`
274  wui-flex {
275    width: 100%;
276  }
277
278  .suggestion {
279    background-color: ${({tokens:e})=>e.theme.foregroundPrimary};
280    border-radius: ${({borderRadius:e})=>e[4]};
281  }
282
283  .suggestion:hover:not(:disabled) {
284    cursor: pointer;
285    border: none;
286    width: 100%;
287    display: flex;
288    justify-content: space-between;
289    align-items: center;
290    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
291    border-radius: ${({borderRadius:e})=>e[6]};
292    padding: ${({spacing:e})=>e[4]};
293  }
294
295  .suggestion:disabled {
296    opacity: 0.5;
297    cursor: default;
298  }
299
300  .suggestion:focus-visible:not(:disabled) {
301    box-shadow: 0 0 0 4px ${({tokens:e})=>e.core.foregroundAccent040};
302    background-color: ${({tokens:e})=>e.theme.foregroundSecondary};
303  }
304
305  .suggested-name {
306    max-width: 75%;
307    overflow: hidden;
308    text-overflow: ellipsis;
309    white-space: nowrap;
310  }
311
312  form {
313    width: 100%;
314    position: relative;
315  }
316
317  .input-submit-button,
318  .input-loading-spinner {
319    position: absolute;
320    top: 22px;
321    transform: translateY(-50%);
322    right: 10px;
323  }
324`;var x=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let p=class extends g{constructor(){super(),this.formRef=ee(),this.usubscribe=[],this.name="",this.error="",this.loading=v.state.loading,this.suggestions=v.state.suggestions,this.profileName=m.getAccountData()?.profileName,this.onDebouncedNameInputChange=z.debounce(t=>{t.length<4?this.error="Name must be at least 4 characters long":I.isValidReownName(t)?(this.error="",v.getSuggestions(t)):this.error="The value is not a valid username"}),this.usubscribe.push(v.subscribe(t=>{this.suggestions=t.suggestions,this.loading=t.loading}),m.subscribeChainProp("accountState",t=>{this.profileName=t?.profileName,t?.profileName&&(this.error="You already own a name")}))}firstUpdated(){this.formRef.value?.addEventListener("keydown",this.onEnterKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.usubscribe.forEach(t=>t()),this.formRef.value?.removeEventListener("keydown",this.onEnterKey.bind(this))}render(){return c`
325      <wui-flex
326        flexDirection="column"
327        alignItems="center"
328        gap="4"
329        .padding=${["1","3","4","3"]}
330      >
331        <form ${te(this.formRef)} @submit=${this.onSubmitName.bind(this)}>
332          <wui-ens-input
333            @inputChange=${this.onNameInputChange.bind(this)}
334            .errorMessage=${this.error}
335            .value=${this.name}
336            .onKeyDown=${this.onKeyDown.bind(this)}
337          >
338          </wui-ens-input>
339          ${this.submitButtonTemplate()}
340          <input type="submit" hidden />
341        </form>
342        ${this.templateSuggestions()}
343      </wui-flex>
344    `}submitButtonTemplate(){const t=this.suggestions.find(n=>n.name?.split(".")?.[0]===this.name&&n.registered);if(this.loading)return c`<wui-loading-spinner
345        class="input-loading-spinner"
346        color="secondary"
347      ></wui-loading-spinner>`;const i=`${this.name}${k.WC_NAME_SUFFIX}`;return c`
348      <wui-icon-link
349        ?disabled=${!!t}
350        class="input-submit-button"
351        size="sm"
352        icon="chevronRight"
353        iconColor=${t?"default":"accent-primary"}
354        @click=${()=>this.onSubmitName(i)}
355      >
356      </wui-icon-link>
357    `}onNameInputChange(t){const i=I.validateReownName(t.detail||"");this.name=i,this.onDebouncedNameInputChange(i)}onKeyDown(t){t.key.length===1&&!I.isValidReownName(t.key)&&t.preventDefault()}templateSuggestions(){return!this.name||this.name.length<4||this.error?null:c`<wui-flex flexDirection="column" gap="1" alignItems="center">
358      ${this.suggestions.map(t=>c`<wui-account-name-suggestion-item
359            name=${t.name}
360            ?registered=${t.registered}
361            ?loading=${this.loading}
362            ?disabled=${t.registered||this.loading}
363            data-testid="account-name-suggestion"
364            @click=${()=>this.onSubmitName(t.name)}
365          ></wui-account-name-suggestion-item>`)}
366    </wui-flex>`}isAllowedToSubmit(t){const i=t.split(".")?.[0],n=this.suggestions.find(r=>r.name?.split(".")?.[0]===i&&r.registered);return!this.loading&&!this.error&&!this.profileName&&i&&v.validateName(i)&&!n}async onSubmitName(t){try{if(!this.isAllowedToSubmit(t))return;O.sendEvent({type:"track",event:"REGISTER_NAME_INITIATED",properties:{isSmartAccount:C(m.state.activeChain)===h.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:t}}),await v.registerName(t),O.sendEvent({type:"track",event:"REGISTER_NAME_SUCCESS",properties:{isSmartAccount:C(m.state.activeChain)===h.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:t}})}catch(i){q.showError(i.message),O.sendEvent({type:"track",event:"REGISTER_NAME_ERROR",properties:{isSmartAccount:C(m.state.activeChain)===h.ACCOUNT_TYPES.SMART_ACCOUNT,ensName:t,error:z.parseError(i)}})}}onEnterKey(t){if(t.key==="Enter"&&this.name&&this.isAllowedToSubmit(this.name)){const i=`${this.name}${k.WC_NAME_SUFFIX}`;this.onSubmitName(i)}}};p.styles=de;x([l()],p.prototype,"errorMessage",void 0);x([d()],p.prototype,"name",void 0);x([d()],p.prototype,"error",void 0);x([d()],p.prototype,"loading",void 0);x([d()],p.prototype,"suggestions",void 0);x([d()],p.prototype,"profileName",void 0);p=x([w("w3m-register-account-name-view")],p);const ue=Y`
367  .continue-button-container {
368    width: 100%;
369  }
370`;var pe=function(e,t,i,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,i):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(r<3?s(o):r>3?s(t,i,o):s(t,i))||o);return r>3&&o&&Object.defineProperty(t,i,o),o};let D=class extends g{render(){return c`
371      <wui-flex
372        flexDirection="column"
373        alignItems="center"
374        gap="6"
375        .padding=${["0","0","4","0"]}
376      >
377        ${this.onboardingTemplate()} ${this.buttonsTemplate()}
378        <wui-link
379          @click=${()=>{z.openHref(Z.URLS.FAQ,"_blank")}}
380        >
381          Learn more
382          <wui-icon color="inherit" slot="iconRight" name="externalLink"></wui-icon>
383        </wui-link>
384      </wui-flex>
385    `}onboardingTemplate(){return c` <wui-flex
386      flexDirection="column"
387      gap="6"
388      alignItems="center"
389      .padding=${["0","6","0","6"]}
390    >
391      <wui-flex gap="3" alignItems="center" justifyContent="center">
392        <wui-icon-box size="xl" color="success" icon="checkmark"></wui-icon-box>
393      </wui-flex>
394      <wui-flex flexDirection="column" alignItems="center" gap="3">
395        <wui-text align="center" variant="md-medium" color="primary">
396          Account name chosen successfully
397        </wui-text>
398        <wui-text align="center" variant="md-regular" color="primary">
399          You can now fund your account and trade crypto
400        </wui-text>
401      </wui-flex>
402    </wui-flex>`}buttonsTemplate(){return c`<wui-flex
403      .padding=${["0","4","0","4"]}
404      gap="3"
405      class="continue-button-container"
406    >
407      <wui-button fullWidth size="lg" borderRadius="xs" @click=${this.redirectToAccount.bind(this)}
408        >Let's Go!
409      </wui-button>
409
410    </wui-flex>`}redirectToAccount(){Q.replace("Account")}};D.styles=ue;D=pe([w("w3m-register-account-name-success-view")],D);export{R as W3mApproveTransactionView,D as W3mRegisterAccountNameSuccess,p as W3mRegisterAccountNameView,$ as W3mSmartAccountSettingsView,B as W3mUpgradeWalletView};

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.