PageSourceSearch

https://dapp.quickswap.exchange/_next/static/chunks/1757.0456e08c7788b8b2.js

js quickswap.exchange collected 2026-09-24 22:34:09 UTC 28,975 bytes, 467 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e5f16bc9-82f3-44b6-b186-d272a6384159",e._sentryDebugIdIdentifier="sentry-dbid-e5f16bc9-82f3-44b6-b186-d272a6384159")}()}catch(e){}!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];if(null!=o)for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:quickswap-dapp":!0})}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1757],{44138:(e,t,o)=>{o.r(t),o.d(t,{AppKitModal:()=>er,W3mModal:()=>ea,W3mModalBase:()=>ei});var i=o(21505),a=o(77128),r=o(68930),s=o(96896),n=o(98762),l=o(78100),c=o(86729),d=o(1925),u=o(4727),p=o(79284),w=o(5519),h=o(36121),m=o(83295);let g={isUnsupportedChainView:()=>"UnsupportedChain"===h.I.state.view||"SwitchNetwork"===h.I.state.view&&h.I.state.history.includes("UnsupportedChain"),async safeClose(){if(this.isUnsupportedChainView()||await m.U.isSIWXCloseDisabled())return void c.W.shake();("DataCapture"===h.I.state.view||"DataCaptureOtpConfirm"===h.I.state.view)&&w.x.disconnect(),c.W.close()}};var f=o(23281),b=o(40810),y=o(86435),v=o(69652),k=o(97668),x=o(2271),C=o(77732);let W=(0,i.AH)`
2  :host {
3    display: block;
4    border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
5    box-shadow: 0 0 0 1px var(--wui-color-gray-glass-005);
6    background-color: var(--wui-color-modal-bg);
7    overflow: hidden;
8  }
9
10  :host([data-embedded='true']) {
11    box-shadow:
12      0 0 0 1px var(--wui-color-gray-glass-005),
13      0px 4px 12px 4px var(--w3m-card-embedded-shadow-color);
14  }
15`,S=class extends i.WF{render(){return(0,i.qy)`<slot></slot>`}};S.styles=[x.W5,W],S=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s}([(0,C.E)("wui-card")],S),o(77066);var I=o(8914);o(62362),o(81468),o(74322);let N=(0,i.AH)`
16  :host {
17    display: flex;
18    align-items: center;
19    justify-content: center;
20    padding: var(--wui-spacing-s);
21    border-radius: var(--wui-border-radius-s);
22    border: 1px solid var(--wui-color-dark-glass-100);
23    box-sizing: border-box;
24    background-color: var(--wui-color-bg-325);
25    box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.25);
26  }
27
28  wui-flex {
29    width: 100%;
30  }
31
32  wui-text {
33    word-break: break-word;
34    flex: 1;
35  }
36
37  .close {
38    cursor: pointer;
39  }
40
41  .icon-box {
42    height: 40px;
43    width: 40px;
44    border-radius: var(--wui-border-radius-3xs);
45    background-color: var(--local-icon-bg-value);
46  }
47`;var E=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let A=class extends i.WF{constructor(){super(...arguments),this.message="",this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="info"}render(){return this.style.cssText=`
48      --local-icon-bg-value: var(--wui-color-${this.backgroundColor});
49   `,(0,i.qy)`
50      <wui-flex flexDirection="row" justifyContent="space-between" alignItems="center">
51        <wui-flex columnGap="xs" flexDirection="row" alignItems="center">
52          <wui-flex
53            flexDirection="row"
54            alignItems="center"
55            justifyContent="center"
56            class="icon-box"
57          >
58            <wui-icon color=${this.iconColor} size="md" name=${this.icon}></wui-icon>
59          </wui-flex>
60          <wui-text variant="small-500" color="bg-350" data-testid="wui-alertbar-text"
61            >${this.message}</wui-text
62          >
63        </wui-flex>
64        <wui-icon
65          class="close"
66          color="bg-350"
67          size="sm"
68          name="close"
69          @click=${this.onClose}
70        ></wui-icon>
71      </wui-flex>
72    `}onClose(){I.h.close()}};A.styles=[x.W5,N],E([(0,a.MZ)()],A.prototype,"message",void 0),E([(0,a.MZ)()],A.prototype,"backgroundColor",void 0),E([(0,a.MZ)()],A.prototype,"iconColor",void 0),E([(0,a.MZ)()],A.prototype,"icon",void 0),A=E([(0,C.E)("wui-alertbar")],A);let T=(0,i.AH)`
73  :host {
74    display: block;
75    position: absolute;
76    top: var(--wui-spacing-s);
77    left: var(--wui-spacing-l);
78    right: var(--wui-spacing-l);
79    opacity: 0;
80    pointer-events: none;
81  }
82`;var P=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let $={info:{backgroundColor:"fg-350",iconColor:"fg-325",icon:"info"},success:{backgroundColor:"success-glass-reown-020",iconColor:"success-125",icon:"checkmark"},warning:{backgroundColor:"warning-glass-reown-020",iconColor:"warning-100",icon:"warningCircle"},error:{backgroundColor:"error-glass-reown-020",iconColor:"error-125",icon:"exclamationTriangle"}},O=class extends i.WF{constructor(){super(),this.unsubscribe=[],this.open=I.h.state.open,this.onOpen(!0),this.unsubscribe.push(I.h.subscribeKey("open",e=>{this.open=e,this.onOpen(!1)}))}
82disconnectedCallback(){this.unsubscribe.forEach(e=>e())}render(){let{message:e,variant:t}=I.h.state,o=$[t];return(0,i.qy)`
83      <wui-alertbar
84        message=${e}
85        backgroundColor=${o?.backgroundColor}
86        iconColor=${o?.iconColor}
87        icon=${o?.icon}
88      ></wui-alertbar>
89    `}onOpen(e){this.open?(this.animate([{opacity:0,transform:"scale(0.85)"},{opacity:1,transform:"scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: auto"):e||(this.animate([{opacity:1,transform:"scale(1)"},{opacity:0,transform:"scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"}),this.style.cssText="pointer-events: none")}};O.styles=T,P([(0,a.wk)()],O.prototype,"open",void 0),O=P([(0,k.EM)("w3m-alertbar")],O);var R=o(95847),D=o(72188),M=o(1572),B=o(43189);o(29979),o(68576),o(9106);let j=(0,i.AH)`
90  button {
91    display: block;
92    display: flex;
93    align-items: center;
94    padding: var(--wui-spacing-xxs);
95    gap: var(--wui-spacing-xxs);
96    transition: all var(--wui-ease-out-power-1) var(--wui-duration-md);
97    border-radius: var(--wui-border-radius-xxs);
98  }
99
100  wui-image {
101    border-radius: 100%;
102    width: var(--wui-spacing-xl);
103    height: var(--wui-spacing-xl);
104  }
105
106  wui-icon-box {
107    width: var(--wui-spacing-xl);
108    height: var(--wui-spacing-xl);
109  }
110
111  button:hover {
112    background-color: var(--wui-color-gray-glass-002);
113  }
114
115  button:active {
116    background-color: var(--wui-color-gray-glass-005);
117  }
118`;var q=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let H=class extends i.WF{constructor(){super(...arguments),this.imageSrc=""}render(){return(0,i.qy)`<button>
119      ${this.imageTemplate()}
120      <wui-icon size="xs" color="fg-200" name="chevronBottom"></wui-icon>
121    </button>`}imageTemplate(){return this.imageSrc?(0,i.qy)`<wui-image src=${this.imageSrc} alt="select visual"></wui-image>`:(0,i.qy)`<wui-icon-box
122      size="xxs"
123      iconColor="fg-200"
124      backgroundColor="fg-100"
125      background="opaque"
126      icon="networkPlaceholder"
127    ></wui-icon-box>`}};H.styles=[x.W5,x.fD,x.ck,j],q([(0,a.MZ)()],H.prototype,"imageSrc",void 0),H=q([(0,C.E)("wui-select")],H),o(95291),o(85434);var L=o(28819);let U=(0,i.AH)`
128  :host {
129    height: 64px;
130  }
131
132  wui-text {
133    text-transform: capitalize;
134  }
135
136  wui-flex.w3m-header-title {
137    transform: translateY(0);
138    opacity: 1;
139  }
140
141  wui-flex.w3m-header-title[view-direction='prev'] {
142    animation:
143      slide-down-out 120ms forwards var(--wui-ease-out-power-2),
144      slide-down-in 120ms forwards var(--wui-ease-out-power-2);
145    animation-delay: 0ms, 200ms;
146  }
147
148  wui-flex.w3m-header-title[view-direction='next'] {
149    animation:
150      slide-up-out 120ms forwards var(--wui-ease-out-power-2),
151      slide-up-in 120ms forwards var(--wui-ease-out-power-2);
152    animation-delay: 0ms, 200ms;
153  }
154
155  wui-icon-link[data-hidden='true'] {
156    opacity: 0 !important;
157    pointer-events: none;
158  }
159
160  @keyframes slide-up-out {
161    from {
162      transform: translateY(0px);
163      opacity: 1;
164    }
165    to {
166      transform: translateY(3px);
167      opacity: 0;
168    }
169  }
170
171  @keyframes slide-up-in {
172    from {
173      transform: translateY(-3px);
174      opacity: 0;
175    }
176    to {
177      transform: translateY(0);
178      opacity: 1;
179    }
180  }
181
182  @keyframes slide-down-out {
183    from {
184      transform: translateY(0px);
185      opacity: 1;
186    }
187    to {
188      transform: translateY(-3px);
189      opacity: 0;
190    }
191  }
192
193  @keyframes slide-down-in {
194    from {
195      transform: translateY(3px);
196      opacity: 0;
197    }
198    to {
199      transform: translateY(0);
200      opacity: 1;
201    }
202  }
203`;var K=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let _=["SmartSessionList"];function z(){let e=h.I.state.data?.connector?.name,t=h.I.state.data?.wallet?.name,o=h.I.state.data?.network?.name,i=t??e,a=u.a.getConnectors(),r=1===a.length&&a[0]?.id==="w3m-email";return{Connect:`Connect ${r?"Email":""} Wallet`,Create:"Create Wallet",ChooseAccountName:void 0,Account:void 0,AccountSettings:void 0,AllWallets:"All Wallets",ApproveTransaction:"Approve Transaction",BuyInProgress:"Buy",ConnectingExter
203nal:i??"Connect Wallet",ConnectingWalletConnect:i??"WalletConnect",ConnectingWalletConnectBasic:"WalletConnect",ConnectingSiwe:"Sign In",Convert:"Convert",ConvertSelectToken:"Select token",ConvertPreview:"Preview convert",Downloads:i?`Get ${i}`:"Downloads",EmailLogin:"Email Login",EmailVerifyOtp:"Confirm Email",EmailVerifyDevice:"Register Device",GetWallet:"Get a wallet",Networks:"Choose Network",OnRampProviders:"Choose Provider",OnRampActivity:"Activity",OnRampTokenSelect:"Select Token",OnRampFiatSelect:"Select Currency",Pay:"How you pay",ProfileWallets:"Wallets",SwitchNetwork:o??"Switch Network",Transactions:"Activity",UnsupportedChain:"Switch Network",UpgradeEmailWallet:"Upgrade your Wallet",UpdateEmailWallet:"Edit Email",UpdateEmailPrimaryOtp:"Confirm Current Email",UpdateEmailSecondaryOtp:"Confirm New Email",WhatIsABuy:"What is Buy?",RegisterAccountName:"Choose name",RegisterAccountNameSuccess:"",WalletReceive:"Receive",WalletCompatibleNetworks:"Compatible Networks",Swap:"Swap",SwapSelectToken:"Select token",SwapPreview:"Preview swap",WalletSend:"Send",WalletSendPreview:"Review send",WalletSendSelectToken:"Select Token",WhatIsANetwork:"What is a network?",WhatIsAWallet:"What is a wallet?",ConnectWallets:"Connect wallet",ConnectSocials:"All socials",ConnectingSocial:R.U.state.socialProvider?R.U.state.socialProvider:"Connect Social",ConnectingMultiChain:"Select chain",ConnectingFarcaster:"Farcaster",SwitchActiveChain:"Switch chain",SmartSessionCreated:void 0,SmartSessionList:"Smart Sessions",SIWXSignMessage:"Sign In",PayLoading:"Payment in progress",DataCapture:"Profile",DataCaptureOtpConfirm:"Confirm Email",FundWallet:"Fund wallet",PayWithExchange:"Deposit from an exchange"}}let F=class extends i.WF{constructor(){super(),this.unsubscribe=[],this.heading=z()[h.I.state.view],this.network=d.W.state.activeCaipNetwork,this.networkImage=D.$.getNetworkImage(this.network),this.showBack=!1,this.prevHistoryLength=1,this.view=h.I.state.view,this.viewDirection="",this.headerText=z()[h.I.state.view],this.unsubscribe.push(M.j.subscribeNetworkImages(()=>{this.networkImage=D.$.getNetworkImage(this.network)}),h.I.subscribeKey("view",e=>{setTimeout(()=>{this.view=e,this.headerText=z()[e]},L.o.ANIMATION_DURATIONS.HeaderText),this.onViewChange(),this.onHistoryChange()}),d.W.subscribeKey("activeCaipNetwork",e=>{this.network=e,this.networkImage=D.$.getNetworkImage(this.network)}))}disconnectCallback(){this.unsubscribe.forEach(e=>e())}render(){return(0,i.qy)`
204      <wui-flex .padding=${this.getPadding()} justifyContent="space-between" alignItems="center">
205        ${this.leftHeaderTemplate()} ${this.titleTemplate()} ${this.rightHeaderTemplate()}
206      </wui-flex>
207    `}onWalletHelp(){B.E.sendEvent({type:"track",event:"CLICK_WALLET_HELP"}),h.I.push("WhatIsAWallet")}async onClose(){await g.safeClose()}rightHeaderTemplate(){let e=l.H?.state?.features?.smartSessions;return"Account"===h.I.state.view&&e?(0,i.qy)`<wui-flex>
208      <wui-icon-link
209        icon="clock"
210        @click=${()=>h.I.push("SmartSessionList")}
211        data-testid="w3m-header-smart-sessions"
212      ></wui-icon-link>
213      ${this.closeButtonTemplate()}
214    </wui-flex> `:this.closeButtonTemplate()}closeButtonTemplate(){return(0,i.qy)`
215      <wui-icon-link
216        icon="close"
217        @click=${this.onClose.bind(this)}
218        data-testid="w3m-header-close"
219      ></wui-icon-link>
220    `}titleTemplate(){let e=_.includes(this.view);return(0,i.qy)`
221      <wui-flex
222        view-direction="${this.viewDirection}"
223        class="w3m-header-title"
224        alignItems="center"
225        gap="xs"
226      >
227        <wui-text variant="paragraph-700" color="fg-100" data-testid="w3m-header-text"
228          >${this.headerText}</wui-text
229        >
230        ${e?(0,i.qy)`<wui-tag variant="main">Beta</wui-tag>`:null}
231      </wui-flex>
232    `}leftHeaderTemplate(){let{view:e}=h.I.state,t="Connect"===e,o=l.H.state.enableEmbedded,a=l.H.state.enableNetworkSwitch;return"Account"===e&&a?(0,i.qy)`<wui-select
233        id="dynamic"
234        data-testid="w3m-account-select-network"
235        active-network=${(0,r.J)(this.network?.name)}
235
236        @click=${this.onNetworks.bind(this)}
237        imageSrc=${(0,r.J)(this.networkImage)}
238      ></wui-select>`:this.showBack&&!("ApproveTransaction"===e||"ConnectingSiwe"===e||t&&o)?(0,i.qy)`<wui-icon-link
239        data-testid="header-back"
240        id="dynamic"
241        icon="chevronLeft"
242        @click=${this.onGoBack.bind(this)}
243      ></wui-icon-link>`:(0,i.qy)`<wui-icon-link
244      data-hidden=${!t}
245      id="dynamic"
246      icon="helpCircle"
247      @click=${this.onWalletHelp.bind(this)}
248    ></wui-icon-link>`}onNetworks(){this.isAllowedNetworkSwitch()&&(B.E.sendEvent({type:"track",event:"CLICK_NETWORKS"}),h.I.push("Networks"))}isAllowedNetworkSwitch(){let e=d.W.getAllRequestedCaipNetworks(),t=!!e&&e.length>1,o=e?.find(({id:e})=>e===this.network?.id);return t||!o}getPadding(){return this.heading?["l","2l","l","2l"]:["0","2l","0","2l"]}onViewChange(){let{history:e}=h.I.state,t=L.o.VIEW_DIRECTION.Next;e.length<this.prevHistoryLength&&(t=L.o.VIEW_DIRECTION.Prev),this.prevHistoryLength=e.length,this.viewDirection=t}async onHistoryChange(){let{history:e}=h.I.state,t=this.shadowRoot?.querySelector("#dynamic");e.length>1&&!this.showBack&&t?(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!0,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"})):e.length<=1&&this.showBack&&t&&(await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.showBack=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}onGoBack(){h.I.goBack()}};F.styles=U,K([(0,a.wk)()],F.prototype,"heading",void 0),K([(0,a.wk)()],F.prototype,"network",void 0),K([(0,a.wk)()],F.prototype,"networkImage",void 0),K([(0,a.wk)()],F.prototype,"showBack",void 0),K([(0,a.wk)()],F.prototype,"prevHistoryLength",void 0),K([(0,a.wk)()],F.prototype,"view",void 0),K([(0,a.wk)()],F.prototype,"viewDirection",void 0),K([(0,a.wk)()],F.prototype,"headerText",void 0),F=K([(0,k.EM)("w3m-header")],F),o(57407);let Y=(0,i.AH)`
249  :host {
250    display: flex;
251    column-gap: var(--wui-spacing-s);
252    align-items: center;
253    padding: var(--wui-spacing-xs) var(--wui-spacing-m) var(--wui-spacing-xs) var(--wui-spacing-xs);
254    border-radius: var(--wui-border-radius-s);
255    border: 1px solid var(--wui-color-gray-glass-005);
256    box-sizing: border-box;
257    background-color: var(--wui-color-bg-175);
258    box-shadow:
259      0px 14px 64px -4px rgba(0, 0, 0, 0.15),
260      0px 8px 22px -6px rgba(0, 0, 0, 0.15);
261
262    max-width: 300px;
263  }
264
265  :host wui-loading-spinner {
266    margin-left: var(--wui-spacing-3xs);
267  }
268`;var Z=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let V=class extends i.WF{constructor(){super(...arguments),this.backgroundColor="accent-100",this.iconColor="accent-100",this.icon="checkmark",this.message="",this.loading=!1,this.iconType="default"}render(){return(0,i.qy)`
269      ${this.templateIcon()}
270      <wui-text variant="paragraph-500" color="fg-100" data-testid="wui-snackbar-message"
271        >${this.message}</wui-text
272      >
273    `}templateIcon(){return this.loading?(0,i.qy)`<wui-loading-spinner size="md" color="accent-100"></wui-loading-spinner>`:"default"===this.iconType?(0,i.qy)`<wui-icon size="xl" color=${this.iconColor} name=${this.icon}></wui-icon>`:(0,i.qy)`<wui-icon-box
274      size="sm"
275      iconSize="xs"
276      iconColor=${this.iconColor}
277      backgroundColor=${this.backgroundColor}
278      icon=${this.icon}
279      background="opaque"
280    ></wui-icon-box>`}};V.styles=[x.W5,Y],Z([(0,a.MZ)()],V.prototype,"backgroundColor",void 0),Z([(0,a.MZ)()],V.prototype,"iconColor",void 0),Z([(0,a.MZ)()],V.prototype,"icon",void 0),Z([(0,a.MZ)()],V.prototype,"message",void 0),Z([(0,a.MZ)()],V.prototype,"loading",void 0),Z([(0,a.MZ)()],V.prototype,"iconType",void 0),V=Z([(0,C.E)("wui-snackbar")],V);let X=(0,i.AH)`
281  :host {
282    display: block;
283    position: absolute;
284    opacity: 0;
285    pointer-events: none;
286    top: 11px;
287    left: 50%;
288    width: max-content;
289  }
290`;var G=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let J={loading:void 0,success:{backgroundColor:"success-100",iconColor:"success-100",icon:"checkmark"},error:{backgroundColor:"error-100",iconColor:"error-100",icon:"close"}},Q=class extends i.WF{constructor(){super(),this.unsubscribe=[],this.timeout=void 0,this.open=b.P.state.open,this.unsubscribe.push(b.P.subscribeKey("open",e=>{this.open=e,this.onOpen()}))}disconnectedCallback(){clearTimeout(this.timeout),this.unsubscribe.forEach(e
290=>e())}render(){let{message:e,variant:t,svg:o}=b.P.state,a=J[t],{icon:r,iconColor:s}=o??a??{};return(0,i.qy)`
291      <wui-snackbar
292        message=${e}
293        backgroundColor=${a?.backgroundColor}
294        iconColor=${s}
295        icon=${r}
296        .loading=${"loading"===t}
297      ></wui-snackbar>
298    `}onOpen(){clearTimeout(this.timeout),this.open?(this.animate([{opacity:0,transform:"translateX(-50%) scale(0.85)"},{opacity:1,transform:"translateX(-50%) scale(1)"}],{duration:150,fill:"forwards",easing:"ease"}),this.timeout&&clearTimeout(this.timeout),b.P.state.autoClose&&(this.timeout=setTimeout(()=>b.P.hide(),2500))):this.animate([{opacity:1,transform:"translateX(-50%) scale(1)"},{opacity:0,transform:"translateX(-50%) scale(0.85)"}],{duration:150,fill:"forwards",easing:"ease"})}};Q.styles=X,G([(0,a.wk)()],Q.prototype,"open",void 0),Q=G([(0,k.EM)("w3m-snackbar")],Q),o(18070),o(82181);let ee=(0,i.AH)`
299  :host {
300    z-index: var(--w3m-z-index);
301    display: block;
302    backface-visibility: hidden;
303    will-change: opacity;
304    position: fixed;
305    top: 0;
306    left: 0;
307    right: 0;
308    bottom: 0;
309    pointer-events: none;
310    opacity: 0;
311    background-color: var(--wui-cover);
312    transition: opacity 0.2s var(--wui-ease-out-power-2);
313    will-change: opacity;
314  }
315
316  :host(.open) {
317    opacity: 1;
318  }
319
320  :host(.appkit-modal) {
321    position: relative;
322    pointer-events: unset;
323    background: none;
324    width: 100%;
325    opacity: 1;
326  }
327
328  wui-card {
329    max-width: var(--w3m-modal-width);
330    width: 100%;
331    position: relative;
332    animation: zoom-in 0.2s var(--wui-ease-out-power-2);
333    animation-fill-mode: backwards;
334    outline: none;
335    transition:
336      border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
337      background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
338    will-change: border-radius, background-color;
339  }
340
341  :host(.appkit-modal) wui-card {
342    max-width: 400px;
343  }
344
345  wui-card[shake='true'] {
346    animation:
347      zoom-in 0.2s var(--wui-ease-out-power-2),
348      w3m-shake 0.5s var(--wui-ease-out-power-2);
349  }
350
351  wui-flex {
352    overflow-x: hidden;
353    overflow-y: auto;
354    display: flex;
355    align-items: center;
356    justify-content: center;
357    width: 100%;
358    height: 100%;
359  }
360
361  @media (max-height: 700px) and (min-width: 431px) {
362    wui-flex {
363      align-items: flex-start;
364    }
365
366    wui-card {
367      margin: var(--wui-spacing-xxl) 0px;
368    }
369  }
370
371  @media (max-width: 430px) {
372    wui-flex {
373      align-items: flex-end;
374    }
375
376    wui-card {
377      max-width: 100%;
378      border-bottom-left-radius: var(--local-border-bottom-mobile-radius);
379      border-bottom-right-radius: var(--local-border-bottom-mobile-radius);
380      border-bottom: none;
381      animation: slide-in 0.2s var(--wui-ease-out-power-2);
382    }
383
384    wui-card[shake='true'] {
385      animation:
386        slide-in 0.2s var(--wui-ease-out-power-2),
387        w3m-shake 0.5s var(--wui-ease-out-power-2);
388    }
389  }
390
391  @keyframes zoom-in {
392    0% {
393      transform: scale(0.95) translateY(0);
394    }
395    100% {
396      transform: scale(1) translateY(0);
397    }
398  }
399
400  @keyframes slide-in {
401    0% {
402      transform: scale(1) translateY(50px);
403    }
404    100% {
405      transform: scale(1) translateY(0);
406    }
407  }
408
409  @keyframes w3m-shake {
410    0% {
411      transform: scale(1) rotate(0deg);
412    }
413    20% {
414      transform: scale(1) rotate(-1deg);
415    }
416    40% {
417      transform: scale(1) rotate(1.5deg);
418    }
419    60% {
420      transform: scale(1) rotate(-1.5deg);
421    }
422    80% {
423      transform: scale(1) rotate(1deg);
424    }
425    100% {
426      transform: scale(1) rotate(0deg);
427    }
428  }
429
430  @keyframes w3m-view-height {
431    from {
432      height: var(--prev-height);
433    }
434    to {
435      height: var(--new-height);
436    }
437  }
438`;var et=function(e,t,o,i){var a,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(s=(r<3?a(s):r>3?a(t,o,s):a(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};let eo="scroll-lock";class ei extends i.WF{constructor(){super(),this.unsubscribe=[],this.abortController=void 0,this.hasPrefetched=!1,this.enableEmbedded=l.H.state.enableEmbedded,this.open=c.W.state.open,this.caipAddress=d.W.state.activeCaipAddress,this.caipNetwork=d.W.state.activeCaipNetwork,this.shake=c.W.state.shake,this.filterByNamespace=u.a.state.filterByNamespace,this.initializeTheming(),p.N.prefetchAnalyticsConfig(),this.unsubscribe.push(c.W.subscribeKey("open",e=>e?this.onOpen():this.onClose()),c.W.subscribeKey("shake",e=>this.shake=e),d.W.subscribeKey("activeCaipNetwork",e=>this.onNewNetwork(e)),d.W.subscribeKey("activeCaipAddress",e=>this.onNewAddress(e)),l.H.subscribeKey("enableEmbedded",e=>this.enableEmbedded=e),u.a.subscribeKey("filterByNamespace",e=>{this.filterByNamespace===e||d.W.getAccountData(e)?.caipAddress||(p.N.fetchRecommendedWallets(),this.filterByNamespace=e)}))}firstUpdated(){if(this.caipAddress){if(this.enableEmbedded){c.W.close(),this.prefetch();return}this.onNewAddress(this.caipAddress)}this.open&&this.onOpen(),this.enableEmbedded&&this.prefetch()}
438disconnectedCallback(){this.unsubscribe.forEach(e=>e()),this.onRemoveKeyboardListener()}render(){return(this.style.cssText=`
439      --local-border-bottom-mobile-radius: ${this.enableEmbedded?"clamp(0px, var(--wui-border-radius-l), 44px)":"0px"};
440    `,this.enableEmbedded)?(0,i.qy)`${this.contentTemplate()}
441        <w3m-tooltip></w3m-tooltip> `:this.open?(0,i.qy)`
442          <wui-flex @click=${this.onOverlayClick.bind(this)} data-testid="w3m-modal-overlay">
443            ${this.contentTemplate()}
444          </wui-flex>
445          <w3m-tooltip></w3m-tooltip>
446        `:null}contentTemplate(){return(0,i.qy)` <wui-card
447      shake="${this.shake}"
448      data-embedded="${(0,r.J)(this.enableEmbedded)}"
449      role="alertdialog"
450      aria-modal="true"
451      tabindex="0"
452      data-testid="w3m-modal-card"
453    >
454      <w3m-header></w3m-header>
455      <w3m-router></w3m-router>
456      <w3m-snackbar></w3m-snackbar>
457      <w3m-alertbar></w3m-alertbar>
458    </wui-card>`}async onOverlayClick(e){e.target===e.currentTarget&&await this.handleClose()}async handleClose(){await g.safeClose()}initializeTheming(){let{themeVariables:e,themeMode:t}=f.W.state,o=k.Zv.getColorTheme(t);(0,k.RF)(e,o)}onClose(){this.open=!1,this.classList.remove("open"),this.onScrollUnlock(),b.P.hide(),this.onRemoveKeyboardListener()}onOpen(){this.open=!0,this.classList.add("open"),this.onScrollLock(),this.onAddKeyboardListener()}onScrollLock(){let e=document.createElement("style");e.dataset.w3m=eo,e.textContent=`
459      body {
460        touch-action: none;
461        overflow: hidden;
462        overscroll-behavior: contain;
463      }
464      w3m-modal {
465        pointer-events: auto;
466      }
467    `,document.head.appendChild(e)}onScrollUnlock(){let e=document.head.querySelector(`style[data-w3m="${eo}"]`);e&&e.remove()}onAddKeyboardListener(){this.abortController=new AbortController;let e=this.shadowRoot?.querySelector("wui-card");e?.focus(),window.addEventListener("keydown",t=>{if("Escape"===t.key)this.handleClose();else if("Tab"===t.key){let{tagName:o}=t.target;!o||o.includes("W3M-")||o.includes("WUI-")||e?.focus()}},this.abortController)}onRemoveKeyboardListener(){this.abortController?.abort(),this.abortController=void 0}async onNewAddress(e){let t=d.W.state.isSwitchingNamespace,o="ProfileWallets"===h.I.state.view;e?await this.onConnected({caipAddress:e,isSwitchingNamespace:t,isInProfileView:o}):t||this.enableEmbedded||o||c.W.close(),await m.U.initializeIfEnabled(e),this.caipAddress=e,d.W.setIsSwitchingNamespace(!1)}async onConnected(e){if(e.isInProfileView)return;let{chainNamespace:t,chainId:o,address:i}=s.C.parseCaipAddress(e.caipAddress),a=`${t}:${o}`,r=!y.w.getPlainAddress(this.caipAddress),n=await m.U.getSessions({address:i,caipNetworkId:a}),l=!m.U.getSIWX()||n.some(e=>e.data.accountAddress===i),d=e.isSwitchingNamespace&&l&&!this.enableEmbedded,u=this.enableEmbedded&&r;d?h.I.goBack():u&&c.W.close()}onNewNetwork(e){let t=this.caipNetwork,o=t?.caipNetworkId?.toString(),i=t?.chainNamespace,a=e?.caipNetworkId?.toString(),r=e?.chainNamespace,s=o!==a,l=t?.name===n.o.UNSUPPORTED_NETWORK_NAME,u="ConnectingExternal"===h.I.state.view,p="ProfileWallets"===h.I.state.view,w=!d.W.getAccountData(e?.chainNamespace)?.caipAddress,m="UnsupportedChain"===h.I.state.view,g=c.W.state.open,f=!1;this.enableEmbedded&&"SwitchNetwork"===h.I.state.view&&(f=!0),s&&v.GN.resetState(),g&&!u&&!p&&(w?s&&(f=!0):m?f=!0:s&&i===r&&!l&&(f=!0)),f&&"SIWXSignMessage"!==h.I.state.view&&h.I.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(p.N.prefetch(),p.N.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}}ei.styles=ee,et([(0,a.MZ)({type:Boolean})],ei.prototype,"enableEmbedded",void 0),et([(0,a.wk)()],ei.prototype,"open",void 0),et([(0,a.wk)()],ei.prototype,"caipAddress",void 0),et([(0,a.wk)()],ei.prototype,"caipNetwork",void 0),et([(0,a.wk)()],ei.prototype,"shake",void 0),et([(0,a.wk)()],ei.prototype,"filterByNamespace",void 0);let ea=class extends ei{};ea=et([(0,k.EM)("w3m-modal")],ea);let er=class extends ei{};er=et([(0,k.EM)("appkit-modal")],er)}}]);

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.