@skip-go/widget-web-component 3.14.4 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/build/1125.index.js +3 -0
  2. package/build/1133.index.js +8 -0
  3. package/build/1136.index.js +9 -0
  4. package/build/1139.index.js +18 -0
  5. package/build/1171.index.js +1 -1
  6. package/build/1189.index.js +1 -1
  7. package/build/1203.index.js +1 -1
  8. package/build/1207.index.js +1 -1
  9. package/build/1211.index.js +8 -0
  10. package/build/1226.index.js +8 -0
  11. package/build/1349.index.js +1 -1
  12. package/build/1361.index.js +1 -1
  13. package/build/1363.index.js +1 -1
  14. package/build/1370.index.js +1 -1
  15. package/build/1415.index.js +8 -0
  16. package/build/1426.index.js +3 -0
  17. package/build/1470.index.js +1 -1
  18. package/build/1572.index.js +11 -0
  19. package/build/1716.index.js +1 -1
  20. package/build/1776.index.js +8 -0
  21. package/build/1852.index.js +1 -1
  22. package/build/1881.index.js +1 -1
  23. package/build/1894.index.js +1 -1
  24. package/build/1911.index.js +1 -1
  25. package/build/1951.index.js +18 -0
  26. package/build/1979.index.js +30 -0
  27. package/build/2034.index.js +1 -1
  28. package/build/2131.index.js +1 -1
  29. package/build/2166.index.js +1 -1
  30. package/build/2202.index.js +61 -0
  31. package/build/2242.index.js +1 -1
  32. package/build/2289.index.js +8 -0
  33. package/build/2301.index.js +1 -1
  34. package/build/2410.index.js +1 -1
  35. package/build/2422.index.js +1 -0
  36. package/build/245.index.js +1 -1
  37. package/build/2496.index.js +1 -1
  38. package/build/2557.index.js +17 -0
  39. package/build/2699.index.js +1 -1
  40. package/build/2715.index.js +8 -0
  41. package/build/283.index.js +8 -0
  42. package/build/2844.index.js +13 -0
  43. package/build/2851.index.js +1 -0
  44. package/build/2902.index.js +15 -0
  45. package/build/3070.index.js +1 -1
  46. package/build/3099.index.js +8 -0
  47. package/build/3105.index.js +8 -0
  48. package/build/3131.index.js +6 -0
  49. package/build/3148.index.js +1 -1
  50. package/build/3472.index.js +1 -1
  51. package/build/3550.index.js +8 -0
  52. package/build/3574.index.js +1 -1
  53. package/build/362.index.js +12 -0
  54. package/build/3646.index.js +32 -0
  55. package/build/3726.index.js +1 -1
  56. package/build/3828.index.js +14 -0
  57. package/build/385.index.js +1 -1
  58. package/build/3857.index.js +14 -0
  59. package/build/3874.index.js +17 -0
  60. package/build/4028.index.js +1 -1
  61. package/build/4150.index.js +620 -0
  62. package/build/4194.index.js +317 -0
  63. package/build/4203.index.js +1 -1
  64. package/build/4226.index.js +14 -0
  65. package/build/4249.index.js +8 -0
  66. package/build/4264.index.js +1 -0
  67. package/build/428.index.js +1 -0
  68. package/build/4289.index.js +1 -1
  69. package/build/4319.index.js +1 -1
  70. package/build/4379.index.js +2069 -0
  71. package/build/4446.index.js +2 -0
  72. package/build/4683.index.js +1 -1
  73. package/build/4693.index.js +2 -2
  74. package/build/4729.index.js +1 -1
  75. package/build/4733.index.js +12 -0
  76. package/build/4857.index.js +12 -0
  77. package/build/4969.index.js +1 -1
  78. package/build/5069.index.js +1 -1
  79. package/build/5090.index.js +8 -0
  80. package/build/5193.index.js +1 -1
  81. package/build/5206.index.js +14 -0
  82. package/build/5218.index.js +6 -0
  83. package/build/5330.index.js +8 -0
  84. package/build/537.index.js +1 -1
  85. package/build/5438.index.js +9 -0
  86. package/build/5526.index.js +1 -1
  87. package/build/5572.index.js +1 -1
  88. package/build/5619.index.js +1 -1
  89. package/build/5642.index.js +2 -0
  90. package/build/5647.index.js +1 -1
  91. package/build/5737.index.js +1 -1
  92. package/build/577.index.js +8 -0
  93. package/build/5880.index.js +1 -1
  94. package/build/590.index.js +1 -1
  95. package/build/5972.index.js +622 -0
  96. package/build/602.index.js +9 -0
  97. package/build/6024.index.js +1 -1
  98. package/build/6036.index.js +8 -0
  99. package/build/6075.index.js +1 -1
  100. package/build/6123.index.js +1 -1
  101. package/build/6127.index.js +1 -1
  102. package/build/6138.index.js +18 -0
  103. package/build/6148.index.js +1 -1
  104. package/build/6151.index.js +1 -1
  105. package/build/6175.index.js +4 -0
  106. package/build/631.index.js +18 -0
  107. package/build/6323.index.js +1 -1
  108. package/build/6442.index.js +1 -1
  109. package/build/6484.index.js +1 -1
  110. package/build/6543.index.js +1 -1
  111. package/build/6553.index.js +8 -0
  112. package/build/6558.index.js +1 -0
  113. package/build/6573.index.js +1 -1
  114. package/build/6611.index.js +12 -0
  115. package/build/6639.index.js +8 -0
  116. package/build/6654.index.js +1 -0
  117. package/build/6705.index.js +12 -0
  118. package/build/6715.index.js +12 -0
  119. package/build/674.index.js +317 -0
  120. package/build/674.index.js.LICENSE.txt +17 -0
  121. package/build/6753.index.js +1 -1
  122. package/build/6811.index.js +8 -0
  123. package/build/6813.index.js +4 -0
  124. package/build/6869.index.js +1 -1
  125. package/build/6969.index.js +12 -0
  126. package/build/7172.index.js +1 -1
  127. package/build/7176.index.js +16 -0
  128. package/build/7201.index.js +878 -0
  129. package/build/7272.index.js +6 -0
  130. package/build/7311.index.js +11 -0
  131. package/build/7409.index.js +1 -0
  132. package/build/7428.index.js +4 -0
  133. package/build/7540.index.js +8 -0
  134. package/build/7618.index.js +1 -1
  135. package/build/7762.index.js +1 -1
  136. package/build/7780.index.js +3 -0
  137. package/build/7981.index.js +1 -1
  138. package/build/8000.index.js +1 -1
  139. package/build/8029.index.js +8 -0
  140. package/build/8036.index.js +1 -1
  141. package/build/8147.index.js +16 -0
  142. package/build/8249.index.js +8 -0
  143. package/build/8318.index.js +1 -1
  144. package/build/8367.index.js +1 -1
  145. package/build/8373.index.js +2082 -0
  146. package/build/8373.index.js.LICENSE.txt +5 -0
  147. package/build/8467.index.js +1 -1
  148. package/build/8483.index.js +1 -1
  149. package/build/8631.index.js +8 -0
  150. package/build/8645.index.js +2 -0
  151. package/build/8645.index.js.LICENSE.txt +11 -0
  152. package/build/8714.index.js +8 -0
  153. package/build/8717.index.js +6 -0
  154. package/build/8904.index.js +1 -1
  155. package/build/896.index.js +1 -1
  156. package/build/8964.index.js +26 -0
  157. package/build/897.index.js +11 -0
  158. package/build/9081.index.js +8 -0
  159. package/build/9120.index.js +8 -0
  160. package/build/913.index.js +15 -0
  161. package/build/9192.index.js +1 -0
  162. package/build/9194.index.js +878 -4
  163. package/build/9309.index.js +15 -0
  164. package/build/9313.index.js +8 -0
  165. package/build/9372.index.js +1 -1
  166. package/build/9396.index.js +12 -0
  167. package/build/9476.index.js +1 -1
  168. package/build/9607.index.js +8 -0
  169. package/build/967.index.js +5 -0
  170. package/build/984.index.js +8 -0
  171. package/build/9850.index.js +14 -0
  172. package/build/9884.index.js +1 -1
  173. package/build/index.js +769 -1633
  174. package/build/index.js.LICENSE.txt +6 -16
  175. package/package.json +1 -1
  176. package/build/1179.index.js +0 -2
  177. package/build/1256.index.js +0 -317
  178. package/build/1934.index.js +0 -2
  179. package/build/1934.index.js.LICENSE.txt +0 -17
  180. package/build/4619.index.js +0 -622
  181. package/build/4833.index.js +0 -2
  182. package/build/5902.index.js +0 -2
  183. package/build/6319.index.js +0 -2069
  184. package/build/6700.index.js +0 -1
  185. package/build/7084.index.js +0 -2
  186. package/build/7544.index.js +0 -1
  187. package/build/7591.index.js +0 -1
  188. package/build/8780.index.js +0 -1
  189. /package/build/{1256.index.js.LICENSE.txt → 4194.index.js.LICENSE.txt} +0 -0
  190. /package/build/{6319.index.js.LICENSE.txt → 4379.index.js.LICENSE.txt} +0 -0
  191. /package/build/{4833.index.js.LICENSE.txt → 4446.index.js.LICENSE.txt} +0 -0
  192. /package/build/{1179.index.js.LICENSE.txt → 5642.index.js.LICENSE.txt} +0 -0
  193. /package/build/{5902.index.js.LICENSE.txt → 7201.index.js.LICENSE.txt} +0 -0
  194. /package/build/{7084.index.js.LICENSE.txt → 9194.index.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2069 @@
1
+ /*! For license information please see 4379.index.js.LICENSE.txt */
2
+ export const __webpack_esm_id__=4379;export const __webpack_esm_ids__=[4379];export const __webpack_esm_modules__={1749:(t,e,i)=>{i(68272)},1943:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
3
+ :host {
4
+ position: relative;
5
+ display: inline-block;
6
+ width: 100%;
7
+ }
8
+ `},3045:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(50731),l=i(93224),c=i(94768),d=(i(98191),i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let u=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=s.a.state.connectors,this.unsubscribe.push(s.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"MULTI_CHAIN"===t.type&&"WalletConnect"!==t.name);return t?.length?o.qy`
9
+ <wui-flex flexDirection="column" gap="xs">
10
+ ${t.map(t=>o.qy`
11
+ <wui-list-wallet
12
+ imageSrc=${(0,a.J)(l.$.getConnectorImage(t))}
13
+ .installed=${!0}
14
+ name=${t.name??"Unknown"}
15
+ tagVariant="shade"
16
+ tagLabel="multichain"
17
+ data-testid=${`wallet-selector-${t.id}`}
18
+ @click=${()=>this.onConnector(t)}
19
+ tabIdx=${(0,a.J)(this.tabIdx)}
20
+ >
21
+ </wui-list-wallet>
22
+ `)}
23
+ </wui-flex>
24
+ `:(this.style.cssText="display: none",null)}onConnector(t){s.a.setActiveConnector(t),n.I.push("ConnectingMultiChain")}};d([(0,r.MZ)()],u.prototype,"tabIdx",void 0),d([(0,r.wk)()],u.prototype,"connectors",void 0),u=d([(0,c.EM)("w3m-connect-multi-chain-widget")],u)},3601:(t,e,i)=>{i(77112)},3901:(t,e,i)=>{i.d(e,{a:()=>o});const o=i(35842).JW`<svg viewBox="0 0 48 54" fill="none">
25
+ <path
26
+ d="M43.4605 10.7248L28.0485 1.61089C25.5438 0.129705 22.4562 0.129705 19.9515 1.61088L4.53951 10.7248C2.03626 12.2051 0.5 14.9365 0.5 17.886V36.1139C0.5 39.0635 2.03626 41.7949 4.53951 43.2752L19.9515 52.3891C22.4562 53.8703 25.5438 53.8703 28.0485 52.3891L43.4605 43.2752C45.9637 41.7949 47.5 39.0635 47.5 36.114V17.8861C47.5 14.9365 45.9637 12.2051 43.4605 10.7248Z"
27
+ />
28
+ </svg>`},4436:(t,e,i)=>{i(38381)},5544:(t,e,i)=>{i.d(e,{c:()=>u});var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(41430),l=i(5813),c=i(94768),d=(i(82976),i(98191),i(38417),i(69180),i(47187),i(76611),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let u=class extends o.WF{constructor(){super(...arguments),this.search="",this.onDebouncedSearch=l.w.debounce(t=>{this.search=t})}render(){const t=this.search.length>=2;return o.qy`
29
+ <wui-flex .padding=${["0","s","s","s"]} gap="xs">
30
+ <wui-search-bar @inputChange=${this.onInputChange.bind(this)}></wui-search-bar>
31
+ <wui-certified-switch
32
+ ?checked=${this.badge}
33
+ @click=${this.onClick.bind(this)}
34
+ data-testid="wui-certified-switch"
35
+ ></wui-certified-switch>
36
+ ${this.qrButtonTemplate()}
37
+ </wui-flex>
38
+ ${t||this.badge?o.qy`<w3m-all-wallets-search
39
+ query=${this.search}
40
+ badge=${(0,a.J)(this.badge)}
41
+ ></w3m-all-wallets-search>`:o.qy`<w3m-all-wallets-list badge=${(0,a.J)(this.badge)}></w3m-all-wallets-list>`}
42
+ `}onInputChange(t){this.onDebouncedSearch(t.detail)}onClick(){"certified"!==this.badge?(this.badge="certified",s.P.showSvg("Only WalletConnect certified",{icon:"walletConnectBrown",iconColor:"accent-100"})):this.badge=void 0}qrButtonTemplate(){return l.w.isMobile()?o.qy`
43
+ <wui-icon-box
44
+ size="lg"
45
+ iconSize="xl"
46
+ iconColor="accent-100"
47
+ backgroundColor="accent-100"
48
+ icon="qrCode"
49
+ background="transparent"
50
+ border
51
+ borderColor="wui-accent-glass-010"
52
+ @click=${this.onWalletConnectQr.bind(this)}
53
+ ></wui-icon-box>
54
+ `:null}onWalletConnectQr(){n.I.push("ConnectingWalletConnect")}};d([(0,r.wk)()],u.prototype,"search",void 0),d([(0,r.wk)()],u.prototype,"badge",void 0),u=d([(0,c.EM)("w3m-all-wallets-view")],u)},8060:(t,e,i)=>{var o=i(35842),r=(i(21348),i(50798),i(75028),i(24210)),a=i(27305),n=i(24280);let s=class extends o.WF{render(){return o.qy`
55
+ <wui-flex
56
+ justifyContent="center"
57
+ alignItems="center"
58
+ gap="xs"
59
+ .padding=${["0","0","l","0"]}
60
+ >
61
+ <wui-text variant="small-500" color="fg-100"> UX by </wui-text>
62
+ <wui-icon name="reown" size="xxxl" class="reown-logo"></wui-icon>
63
+ </wui-flex>
64
+ `}};s.styles=[r.W5,r.fD,n.A],s=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,a.E)("wui-ux-by-reown")],s)},9556:(t,e,i)=>{i(93153)},10980:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(50798),i(49038),i(75028),i(24210)),n=i(27305),s=i(16032),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.disabled=!1,this.label="",this.buttonLabel=""}render(){return o.qy`
65
+ <wui-flex
66
+ justifyContent="space-between"
67
+ alignItems="center"
68
+ .padding=${["1xs","2l","1xs","2l"]}
69
+ >
70
+ <wui-text variant="paragraph-500" color="fg-200">${this.label}</wui-text>
71
+ <wui-chip-button size="sm" variant="shade" text=${this.buttonLabel} icon="chevronRight">
72
+ </wui-chip-button>
73
+ </wui-flex>
74
+ `}};c.styles=[a.W5,a.fD,s.A],l([(0,r.MZ)({type:Boolean})],c.prototype,"disabled",void 0),l([(0,r.MZ)()],c.prototype,"label",void 0),l([(0,r.MZ)()],c.prototype,"buttonLabel",void 0),c=l([(0,n.E)("wui-cta-button")],c)},11681:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(95191),s=i(42831),l=i(50731),c=i(93224),d=i(94768),u=(i(98191),i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let p=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=l.a.state.connectors,this.unsubscribe.push(l.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"EXTERNAL"===t.type).filter(t=>t.id!==n.o.CONNECTOR_ID.COINBASE_SDK);return t?.length?o.qy`
75
+ <wui-flex flexDirection="column" gap="xs">
76
+ ${t.map(t=>o.qy`
77
+ <wui-list-wallet
78
+ imageSrc=${(0,a.J)(c.$.getConnectorImage(t))}
79
+ .installed=${!0}
80
+ name=${t.name??"Unknown"}
81
+ data-testid=${`wallet-selector-external-${t.id}`}
82
+ @click=${()=>this.onConnector(t)}
83
+ tabIdx=${(0,a.J)(this.tabIdx)}
84
+ >
85
+ </wui-list-wallet>
86
+ `)}
87
+ </wui-flex>
88
+ `:(this.style.cssText="display: none",null)}onConnector(t){s.I.push("ConnectingExternal",{connector:t})}};u([(0,r.MZ)()],p.prototype,"tabIdx",void 0),u([(0,r.wk)()],p.prototype,"connectors",void 0),p=u([(0,d.EM)("w3m-connect-external-widget")],p)},12192:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
89
+ :host {
90
+ position: relative;
91
+ background-color: var(--wui-color-gray-glass-002);
92
+ display: flex;
93
+ justify-content: center;
94
+ align-items: center;
95
+ width: var(--local-size);
96
+ height: var(--local-size);
97
+ border-radius: inherit;
98
+ border-radius: var(--local-border-radius);
99
+ }
100
+
101
+ :host > wui-flex {
102
+ overflow: hidden;
103
+ border-radius: inherit;
104
+ border-radius: var(--local-border-radius);
105
+ }
106
+
107
+ :host::after {
108
+ content: '';
109
+ position: absolute;
110
+ top: 0;
111
+ bottom: 0;
112
+ left: 0;
113
+ right: 0;
114
+ border-radius: inherit;
115
+ border: 1px solid var(--wui-color-gray-glass-010);
116
+ pointer-events: none;
117
+ }
118
+
119
+ :host([name='Extension'])::after {
120
+ border: 1px solid var(--wui-color-accent-glass-010);
121
+ }
122
+
123
+ :host([data-wallet-icon='allWallets']) {
124
+ background-color: var(--wui-all-wallets-bg-100);
125
+ }
126
+
127
+ :host([data-wallet-icon='allWallets'])::after {
128
+ border: 1px solid var(--wui-color-accent-glass-010);
129
+ }
130
+
131
+ wui-icon[data-parent-size='inherit'] {
132
+ width: 75%;
133
+ height: 75%;
134
+ align-items: center;
135
+ }
136
+
137
+ wui-icon[data-parent-size='sm'] {
138
+ width: 18px;
139
+ height: 18px;
140
+ }
141
+
142
+ wui-icon[data-parent-size='md'] {
143
+ width: 24px;
144
+ height: 24px;
145
+ }
146
+
147
+ wui-icon[data-parent-size='lg'] {
148
+ width: 42px;
149
+ height: 42px;
150
+ }
151
+
152
+ wui-icon[data-parent-size='full'] {
153
+ width: 100%;
154
+ height: 100%;
155
+ }
156
+
157
+ :host > wui-icon-box {
158
+ position: absolute;
159
+ overflow: hidden;
160
+ right: -1px;
161
+ bottom: -2px;
162
+ z-index: 1;
163
+ border: 2px solid var(--wui-color-bg-150, #1e1f1f);
164
+ padding: 1px;
165
+ }
166
+ `},12210:(t,e,i)=>{var o=i(89058),r=i(14479),a=i(5813),n=i(94768),s=i(61896);let l=class extends s.o{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-desktop: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onRender=this.onRenderProxy.bind(this),r.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"desktop"}})}onRenderProxy(){!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())}onConnectProxy(){if(this.wallet?.desktop_link&&this.uri)try{this.error=!1;const{desktop_link:t,name:e}=this.wallet,{redirect:i,href:r}=a.w.formatNativeUrl(t,this.uri);o.x.setWcLinking({name:e,href:r}),o.x.setRecentWallet(this.wallet),a.w.openHref(i,"_blank")}catch{this.error=!0}}};l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,n.EM)("w3m-connecting-wc-desktop")],l)},12331:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(50731),l=i(40868),c=i(16158),d=i(14479),u=i(5813),p=i(94768),h=(i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let w=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=s.a.state.connectors,this.count=l.N.state.count,this.isFetchingRecommendedWallets=l.N.state.isFetchingRecommendedWallets,this.unsubscribe.push(s.a.subscribeKey("connectors",t=>this.connectors=t),l.N.subscribeKey("count",t=>this.count=t),l.N.subscribeKey("isFetchingRecommendedWallets",t=>this.isFetchingRecommendedWallets=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.find(t=>"walletConnect"===t.id),{allWallets:e}=c.H.state;if(!t||"HIDE"===e)return null;if("ONLY_MOBILE"===e&&!u.w.isMobile())return null;const i=l.N.state.featured.length,r=this.count+i,n=r<10?r:10*Math.floor(r/10),s=n<r?`${n}+`:`${n}`;return o.qy`
167
+ <wui-list-wallet
168
+ name="All Wallets"
169
+ walletIcon="allWallets"
170
+ showAllWallets
171
+ @click=${this.onAllWallets.bind(this)}
172
+ tagLabel=${s}
173
+ tagVariant="shade"
174
+ data-testid="all-wallets"
175
+ tabIdx=${(0,a.J)(this.tabIdx)}
176
+ .loading=${this.isFetchingRecommendedWallets}
177
+ loadingSpinnerColor=${this.isFetchingRecommendedWallets?"fg-300":"accent-100"}
178
+ ></wui-list-wallet>
179
+ `}onAllWallets(){d.E.sendEvent({type:"track",event:"CLICK_ALL_WALLETS"}),n.I.push("AllWallets")}};h([(0,r.MZ)()],w.prototype,"tabIdx",void 0),h([(0,r.wk)()],w.prototype,"connectors",void 0),h([(0,r.wk)()],w.prototype,"count",void 0),h([(0,r.wk)()],w.prototype,"isFetchingRecommendedWallets",void 0),w=h([(0,p.EM)("w3m-all-wallets-widget")],w)},14156:(t,e,i)=>{i.d(e,{x:()=>u});var o=i(35842),r=i(47214),a=i(40868),n=i(16158),s=i(5813),l=i(11553),c=i(94768),d=(i(98191),i(12331),i(27602),i(18689),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let u=class extends o.WF{constructor(){super(...arguments),this.isMobile=s.w.isMobile()}render(){if(this.isMobile){const{featured:t,recommended:e}=a.N.state,{customWallets:i}=n.H.state,r=l.i.getRecentWallets(),s=t.length||e.length||i?.length||r.length;return o.qy`<wui-flex
180
+ flexDirection="column"
181
+ gap="xs"
182
+ .margin=${["3xs","s","s","s"]}
183
+ >
184
+ ${s?o.qy`<w3m-connector-list></w3m-connector-list>`:null}
185
+ <w3m-all-wallets-widget></w3m-all-wallets-widget>
186
+ </wui-flex>`}return o.qy`<wui-flex flexDirection="column" .padding=${["0","0","l","0"]}>
187
+ <w3m-connecting-wc-view></w3m-connecting-wc-view>
188
+ <wui-flex flexDirection="column" .padding=${["0","m","0","m"]}>
189
+ <w3m-all-wallets-widget></w3m-all-wallets-widget> </wui-flex
190
+ ></wui-flex>`}};d([(0,r.wk)()],u.prototype,"isMobile",void 0),u=d([(0,c.EM)("w3m-connecting-wc-basic-view")],u)},14208:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(89058),n=i(94768),s=(i(98191),i(9556),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let l=class extends o.WF{constructor(){super(),this.platformTabs=[],this.unsubscribe=[],this.platforms=[],this.onSelectPlatfrom=void 0,this.buffering=!1,this.unsubscribe.push(a.x.subscribeKey("buffering",t=>this.buffering=t))}disconnectCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.generateTabs();return o.qy`
191
+ <wui-flex justifyContent="center" .padding=${["0","0","l","0"]}>
192
+ <wui-tabs
193
+ ?disabled=${this.buffering}
194
+ .tabs=${t}
195
+ .onTabChange=${this.onTabChange.bind(this)}
196
+ ></wui-tabs>
197
+ </wui-flex>
198
+ `}generateTabs(){const t=this.platforms.map(t=>"browser"===t?{label:"Browser",icon:"extension",platform:"browser"}:"mobile"===t?{label:"Mobile",icon:"mobile",platform:"mobile"}:"qrcode"===t?{label:"Mobile",icon:"mobile",platform:"qrcode"}:"web"===t?{label:"Webapp",icon:"browser",platform:"web"}:"desktop"===t?{label:"Desktop",icon:"desktop",platform:"desktop"}:{label:"Browser",icon:"extension",platform:"unsupported"});return this.platformTabs=t.map(({platform:t})=>t),t}onTabChange(t){const e=this.platformTabs[t];e&&this.onSelectPlatfrom?.(e)}};s([(0,r.MZ)({type:Array})],l.prototype,"platforms",void 0),s([(0,r.MZ)()],l.prototype,"onSelectPlatfrom",void 0),s([(0,r.wk)()],l.prototype,"buffering",void 0),l=s([(0,n.EM)("w3m-connecting-header")],l)},15973:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(89058),s=i(50731),l=i(93224),c=i(5813),d=i(11553),u=i(94768),p=(i(98191),i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let h=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=s.a.state.connectors,this.loading=!1,this.unsubscribe.push(s.a.subscribeKey("connectors",t=>this.connectors=t)),c.w.isTelegram()&&c.w.isIos()&&(this.loading=!n.x.state.wcUri,this.unsubscribe.push(n.x.subscribeKey("wcUri",t=>this.loading=!t)))}render(){const t=d.i.getRecentWallets().filter(t=>!this.connectors.some(e=>e.id===t.id||e.name===t.name));return t.length?o.qy`
199
+ <wui-flex flexDirection="column" gap="xs">
200
+ ${t.map(t=>o.qy`
201
+ <wui-list-wallet
202
+ imageSrc=${(0,a.J)(l.$.getWalletImage(t))}
203
+ name=${t.name??"Unknown"}
204
+ @click=${()=>this.onConnectWallet(t)}
205
+ tagLabel="recent"
206
+ tagVariant="shade"
207
+ tabIdx=${(0,a.J)(this.tabIdx)}
208
+ ?loading=${this.loading}
209
+ >
210
+ </wui-list-wallet>
211
+ `)}
212
+ </wui-flex>
213
+ `:(this.style.cssText="display: none",null)}onConnectWallet(t){this.loading||s.a.selectWalletConnector(t)}};p([(0,r.MZ)()],h.prototype,"tabIdx",void 0),p([(0,r.wk)()],h.prototype,"connectors",void 0),p([(0,r.wk)()],h.prototype,"loading",void 0),h=p([(0,u.EM)("w3m-connect-recent-widget")],h)},16032:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
214
+ wui-flex {
215
+ width: 100%;
216
+ background-color: var(--wui-color-gray-glass-002);
217
+ border-radius: var(--wui-border-radius-xs);
218
+ }
219
+ `},17506:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
220
+ button {
221
+ border: none;
222
+ border-radius: var(--wui-border-radius-3xl);
223
+ }
224
+
225
+ button[data-variant='main'] {
226
+ background-color: var(--wui-color-accent-100);
227
+ color: var(--wui-color-inverse-100);
228
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
229
+ }
230
+
231
+ button[data-variant='accent'] {
232
+ background-color: var(--wui-color-accent-glass-010);
233
+ color: var(--wui-color-accent-100);
234
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
235
+ }
236
+
237
+ button[data-variant='gray'] {
238
+ background-color: transparent;
239
+ color: var(--wui-color-fg-200);
240
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
241
+ }
242
+
243
+ button[data-variant='shade'] {
244
+ background-color: transparent;
245
+ color: var(--wui-color-accent-100);
246
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
247
+ }
248
+
249
+ button[data-size='sm'] {
250
+ height: 32px;
251
+ padding: 0 var(--wui-spacing-s);
252
+ }
253
+
254
+ button[data-size='md'] {
255
+ height: 40px;
256
+ padding: 0 var(--wui-spacing-l);
257
+ }
258
+
259
+ button[data-size='sm'] > wui-image {
260
+ width: 16px;
261
+ height: 16px;
262
+ }
263
+
264
+ button[data-size='md'] > wui-image {
265
+ width: 24px;
266
+ height: 24px;
267
+ }
268
+
269
+ button[data-size='sm'] > wui-icon {
270
+ width: 12px;
271
+ height: 12px;
272
+ }
273
+
274
+ button[data-size='md'] > wui-icon {
275
+ width: 14px;
276
+ height: 14px;
277
+ }
278
+
279
+ wui-image {
280
+ border-radius: var(--wui-border-radius-3xl);
281
+ overflow: hidden;
282
+ }
283
+
284
+ button.disabled > wui-icon,
285
+ button.disabled > wui-image {
286
+ filter: grayscale(1);
287
+ }
288
+
289
+ button[data-variant='main'] > wui-image {
290
+ box-shadow: inset 0 0 0 1px var(--wui-color-accent-090);
291
+ }
292
+
293
+ button[data-variant='shade'] > wui-image,
294
+ button[data-variant='gray'] > wui-image {
295
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
296
+ }
297
+
298
+ @media (hover: hover) and (pointer: fine) {
299
+ button[data-variant='main']:focus-visible {
300
+ background-color: var(--wui-color-accent-090);
301
+ }
302
+
303
+ button[data-variant='main']:hover:enabled {
304
+ background-color: var(--wui-color-accent-090);
305
+ }
306
+
307
+ button[data-variant='main']:active:enabled {
308
+ background-color: var(--wui-color-accent-080);
309
+ }
310
+
311
+ button[data-variant='accent']:hover:enabled {
312
+ background-color: var(--wui-color-accent-glass-015);
313
+ }
314
+
315
+ button[data-variant='accent']:active:enabled {
316
+ background-color: var(--wui-color-accent-glass-020);
317
+ }
318
+
319
+ button[data-variant='shade']:focus-visible,
320
+ button[data-variant='gray']:focus-visible,
321
+ button[data-variant='shade']:hover,
322
+ button[data-variant='gray']:hover {
323
+ background-color: var(--wui-color-gray-glass-002);
324
+ }
325
+
326
+ button[data-variant='gray']:active,
327
+ button[data-variant='shade']:active {
328
+ background-color: var(--wui-color-gray-glass-005);
329
+ }
330
+ }
331
+
332
+ button.disabled {
333
+ color: var(--wui-color-gray-glass-020);
334
+ background-color: var(--wui-color-gray-glass-002);
335
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
336
+ pointer-events: none;
337
+ }
338
+ `},18077:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
339
+ :host {
340
+ position: relative;
341
+ border-radius: var(--wui-border-radius-xxs);
342
+ width: 40px;
343
+ height: 40px;
344
+ overflow: hidden;
345
+ background: var(--wui-color-gray-glass-002);
346
+ display: flex;
347
+ justify-content: center;
348
+ align-items: center;
349
+ flex-wrap: wrap;
350
+ gap: var(--wui-spacing-4xs);
351
+ padding: 3.75px !important;
352
+ }
353
+
354
+ :host::after {
355
+ content: '';
356
+ position: absolute;
357
+ top: 0;
358
+ bottom: 0;
359
+ left: 0;
360
+ right: 0;
361
+ border-radius: inherit;
362
+ border: 1px solid var(--wui-color-gray-glass-010);
363
+ pointer-events: none;
364
+ }
365
+
366
+ :host > wui-wallet-image {
367
+ width: 14px;
368
+ height: 14px;
369
+ border-radius: var(--wui-border-radius-5xs);
370
+ }
371
+
372
+ :host > wui-flex {
373
+ padding: 2px;
374
+ position: fixed;
375
+ overflow: hidden;
376
+ left: 34px;
377
+ bottom: 8px;
378
+ background: var(--dark-background-150, #1e1f1f);
379
+ border-radius: 50%;
380
+ z-index: 2;
381
+ display: flex;
382
+ }
383
+ `},18689:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(67018),n=i(42831),s=i(99013),l=i(89058),c=i(41430),d=i(16158),u=i(14479),p=i(5813),h=i(94768),w=(i(14208),i(26158),i(12210),i(57448),i(36740),i(58217),i(92536),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let g=class extends o.WF{constructor(){super(),this.wallet=n.I.state.data?.wallet,this.platform=void 0,this.platforms=[],this.isSiwxEnabled=Boolean(d.H.state.siwx),this.determinePlatforms(),this.initializeConnection()}render(){return o.qy`
384
+ ${this.headerTemplate()}
385
+ <div>${this.platformTemplate()}</div>
386
+ <wui-ux-by-reown></wui-ux-by-reown>
387
+ `}async initializeConnection(t=!1){if("browser"!==this.platform&&(!d.H.state.manualWCControl||t))try{const{wcPairingExpiry:e,status:i}=l.x.state;(t||p.w.isPairingExpired(e)||"connecting"===i)&&(await l.x.connectWalletConnect(),this.isSiwxEnabled||a.W.close())}catch(t){u.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),l.x.setWcError(!0),c.P.showError(t.message??"Connection error"),l.x.resetWcConnection(),n.I.goBack()}}determinePlatforms(){if(!this.wallet)return this.platforms.push("qrcode"),void(this.platform="qrcode");if(this.platform)return;const{mobile_link:t,desktop_link:e,webapp_link:i,injected:o,rdns:r}=this.wallet,a=o?.map(({injected_id:t})=>t).filter(Boolean),n=[...r?[r]:a??[]],c=!d.H.state.isUniversalProvider&&n.length,u=t,h=i,w=l.x.checkInstalled(n),g=c&&w,b=e&&!p.w.isMobile();g&&!s.W.state.noAdapters&&this.platforms.push("browser"),u&&this.platforms.push(p.w.isMobile()?"mobile":"qrcode"),h&&this.platforms.push("web"),b&&this.platforms.push("desktop"),g||!c||s.W.state.noAdapters||this.platforms.push("unsupported"),this.platform=this.platforms[0]}platformTemplate(){switch(this.platform){case"browser":return o.qy`<w3m-connecting-wc-browser></w3m-connecting-wc-browser>`;case"web":return o.qy`<w3m-connecting-wc-web></w3m-connecting-wc-web>`;case"desktop":return o.qy`
388
+ <w3m-connecting-wc-desktop .onRetry=${()=>this.initializeConnection(!0)}>
389
+ </w3m-connecting-wc-desktop>
390
+ `;case"mobile":return o.qy`
391
+ <w3m-connecting-wc-mobile isMobile .onRetry=${()=>this.initializeConnection(!0)}>
392
+ </w3m-connecting-wc-mobile>
393
+ `;case"qrcode":return o.qy`<w3m-connecting-wc-qrcode></w3m-connecting-wc-qrcode>`;default:return o.qy`<w3m-connecting-wc-unsupported></w3m-connecting-wc-unsupported>`}}headerTemplate(){return this.platforms.length>1?o.qy`
394
+ <w3m-connecting-header
395
+ .platforms=${this.platforms}
396
+ .onSelectPlatfrom=${this.onSelectPlatform.bind(this)}
397
+ >
398
+ </w3m-connecting-header>
399
+ `:null}async onSelectPlatform(t){const e=this.shadowRoot?.querySelector("div");e&&(await e.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.platform=t,e.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}};w([(0,r.wk)()],g.prototype,"platform",void 0),w([(0,r.wk)()],g.prototype,"platforms",void 0),w([(0,r.wk)()],g.prototype,"isSiwxEnabled",void 0),g=w([(0,h.EM)("w3m-connecting-wc-view")],g)},19552:(t,e,i)=>{i.d(e,{K:()=>o.K,_:()=>o._});var o=i(64768)},20669:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
400
+ :host {
401
+ display: grid;
402
+ width: inherit;
403
+ height: inherit;
404
+ }
405
+ `},22253:(t,e,i)=>{i(8060)},22695:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
406
+ :host {
407
+ display: block;
408
+ padding: 0 var(--wui-spacing-xl) var(--wui-spacing-xl);
409
+ }
410
+ `},22703:(t,e,i)=>{i(58262)},23235:(t,e,i)=>{i.d(e,{M:()=>l});var o=i(35842),r=i(42831),a=i(5813),n=i(94768),s=(i(98191),i(98102),i(96975),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let l=class extends o.WF{constructor(){super(...arguments),this.wallet=r.I.state.data?.wallet}render(){if(!this.wallet)throw new Error("w3m-downloads-view");return o.qy`
411
+ <wui-flex gap="xs" flexDirection="column" .padding=${["s","s","l","s"]}>
412
+ ${this.chromeTemplate()} ${this.iosTemplate()} ${this.androidTemplate()}
413
+ ${this.homepageTemplate()}
414
+ </wui-flex>
415
+ `}chromeTemplate(){return this.wallet?.chrome_store?o.qy`<wui-list-item
416
+ variant="icon"
417
+ icon="chromeStore"
418
+ iconVariant="square"
419
+ @click=${this.onChromeStore.bind(this)}
420
+ chevron
421
+ >
422
+ <wui-text variant="paragraph-500" color="fg-100">Chrome Extension</wui-text>
423
+ </wui-list-item>`:null}iosTemplate(){return this.wallet?.app_store?o.qy`<wui-list-item
424
+ variant="icon"
425
+ icon="appStore"
426
+ iconVariant="square"
427
+ @click=${this.onAppStore.bind(this)}
428
+ chevron
429
+ >
430
+ <wui-text variant="paragraph-500" color="fg-100">iOS App</wui-text>
431
+ </wui-list-item>`:null}androidTemplate(){return this.wallet?.play_store?o.qy`<wui-list-item
432
+ variant="icon"
433
+ icon="playStore"
434
+ iconVariant="square"
435
+ @click=${this.onPlayStore.bind(this)}
436
+ chevron
437
+ >
438
+ <wui-text variant="paragraph-500" color="fg-100">Android App</wui-text>
439
+ </wui-list-item>`:null}homepageTemplate(){return this.wallet?.homepage?o.qy`
440
+ <wui-list-item
441
+ variant="icon"
442
+ icon="browser"
443
+ iconVariant="square-blue"
444
+ @click=${this.onHomePage.bind(this)}
445
+ chevron
446
+ >
447
+ <wui-text variant="paragraph-500" color="fg-100">Website</wui-text>
448
+ </wui-list-item>
449
+ `:null}onChromeStore(){this.wallet?.chrome_store&&a.w.openHref(this.wallet.chrome_store,"_blank")}onAppStore(){this.wallet?.app_store&&a.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&a.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&a.w.openHref(this.wallet.homepage,"_blank")}};l=s([(0,n.EM)("w3m-downloads-view")],l)},24280:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
450
+ .reown-logo {
451
+ height: var(--wui-spacing-xxl);
452
+ }
453
+ `},24581:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(42831),n=i(5813),s=i(94768),l=(i(33101),i(22695)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.wallet=void 0}render(){if(!this.wallet)return this.style.display="none",null;const{name:t,app_store:e,play_store:i,chrome_store:r,homepage:l}=this.wallet,c=n.w.isMobile(),d=n.w.isIos(),u=n.w.isAndroid(),p=[e,i,l,r].filter(Boolean).length>1,h=s.Zv.getTruncateString({string:t,charsStart:12,charsEnd:0,truncate:"end"});return p&&!c?o.qy`
454
+ <wui-cta-button
455
+ label=${`Don't have ${h}?`}
456
+ buttonLabel="Get"
457
+ @click=${()=>a.I.push("Downloads",{wallet:this.wallet})}
458
+ ></wui-cta-button>
459
+ `:!p&&l?o.qy`
460
+ <wui-cta-button
461
+ label=${`Don't have ${h}?`}
462
+ buttonLabel="Get"
463
+ @click=${this.onHomePage.bind(this)}
464
+ ></wui-cta-button>
465
+ `:e&&d?o.qy`
466
+ <wui-cta-button
467
+ label=${`Don't have ${h}?`}
468
+ buttonLabel="Get"
469
+ @click=${this.onAppStore.bind(this)}
470
+ ></wui-cta-button>
471
+ `:i&&u?o.qy`
472
+ <wui-cta-button
473
+ label=${`Don't have ${h}?`}
474
+ buttonLabel="Get"
475
+ @click=${this.onPlayStore.bind(this)}
476
+ ></wui-cta-button>
477
+ `:(this.style.display="none",null)}onAppStore(){this.wallet?.app_store&&n.w.openHref(this.wallet.app_store,"_blank")}onPlayStore(){this.wallet?.play_store&&n.w.openHref(this.wallet.play_store,"_blank")}onHomePage(){this.wallet?.homepage&&n.w.openHref(this.wallet.homepage,"_blank")}};d.styles=[l.A],c([(0,r.MZ)({type:Object})],d.prototype,"wallet",void 0),d=c([(0,s.EM)("w3m-mobile-download-links")],d)},24882:(t,e,i)=>{i(62247)},25534:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(50731),s=i(93224),l=i(94768),c=(i(98191),i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let d=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.wallets=[]}render(){return this.wallets.length?o.qy`
478
+ <wui-flex flexDirection="column" gap="xs">
479
+ ${this.wallets.map(t=>o.qy`
480
+ <wui-list-wallet
481
+ data-testid=${`wallet-selector-featured-${t.id}`}
482
+ imageSrc=${(0,a.J)(s.$.getWalletImage(t))}
483
+ name=${t.name??"Unknown"}
484
+ @click=${()=>this.onConnectWallet(t)}
485
+ tabIdx=${(0,a.J)(this.tabIdx)}
486
+ >
487
+ </wui-list-wallet>
488
+ `)}
489
+ </wui-flex>
490
+ `:(this.style.cssText="display: none",null)}onConnectWallet(t){n.a.selectWalletConnector(t)}};c([(0,r.MZ)()],d.prototype,"tabIdx",void 0),c([(0,r.MZ)()],d.prototype,"wallets",void 0),d=c([(0,l.EM)("w3m-connect-featured-widget")],d)},26158:(t,e,i)=>{var o=i(67018),r=i(89058),a=i(50731),n=i(14479),s=i(94768),l=i(61896);let c=class extends l.o{constructor(){if(super(),!this.wallet)throw new Error("w3m-connecting-wc-browser: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.onAutoConnect=this.onConnectProxy.bind(this),n.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}async onConnectProxy(){try{this.error=!1;const{connectors:t}=a.a.state,e=t.find(t=>"ANNOUNCED"===t.type&&t.info?.rdns===this.wallet?.rdns||"INJECTED"===t.type||t.name===this.wallet?.name);if(!e)throw new Error("w3m-connecting-wc-browser: No connector found");await r.x.connectExternal(e,e.chain),o.W.close(),n.E.sendEvent({type:"track",event:"CONNECT_SUCCESS",properties:{method:"browser",name:this.wallet?.name||"Unknown"}})}catch(t){n.E.sendEvent({type:"track",event:"CONNECT_ERROR",properties:{message:t?.message??"Unknown"}}),this.error=!0}}};c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,s.EM)("w3m-connecting-wc-browser")],c)},26173:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
491
+ wui-grid {
492
+ max-height: clamp(360px, 400px, 80vh);
493
+ overflow: scroll;
494
+ scrollbar-width: none;
495
+ grid-auto-rows: min-content;
496
+ grid-template-columns: repeat(auto-fill, 104px);
497
+ }
498
+
499
+ @media (max-width: 350px) {
500
+ wui-grid {
501
+ grid-template-columns: repeat(2, 1fr);
502
+ }
503
+ }
504
+
505
+ wui-grid[data-scroll='false'] {
506
+ overflow: hidden;
507
+ }
508
+
509
+ wui-grid::-webkit-scrollbar {
510
+ display: none;
511
+ }
512
+
513
+ wui-loading-spinner {
514
+ padding-top: var(--wui-spacing-l);
515
+ padding-bottom: var(--wui-spacing-l);
516
+ justify-content: center;
517
+ grid-column: 1 / span 4;
518
+ }
519
+ `},27602:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(50731),s=i(40868),l=i(94768),c=(i(98191),i(75457),i(77717),i(11681),i(25534),i(88560),i(3045),i(15973),i(60891),i(49673),i(24313)),d=i(88686),u=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let p=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=n.a.state.connectors,this.recommended=s.N.state.recommended,this.featured=s.N.state.featured,this.unsubscribe.push(n.a.subscribeKey("connectors",t=>this.connectors=t),s.N.subscribeKey("recommended",t=>this.recommended=t),s.N.subscribeKey("featured",t=>this.featured=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){return o.qy`
520
+ <wui-flex flexDirection="column" gap="xs"> ${this.connectorListTemplate()} </wui-flex>
521
+ `}connectorListTemplate(){const{custom:t,recent:e,announced:i,injected:r,multiChain:n,recommended:s,featured:l,external:d}=c.g.getConnectorsByType(this.connectors,this.recommended,this.featured);return c.g.getConnectorTypeOrder({custom:t,recent:e,announced:i,injected:r,multiChain:n,recommended:s,featured:l,external:d}).map(t=>{switch(t){case"injected":return o.qy`
522
+ ${n.length?o.qy`<w3m-connect-multi-chain-widget
523
+ tabIdx=${(0,a.J)(this.tabIdx)}
524
+ ></w3m-connect-multi-chain-widget>`:null}
525
+ ${i.length?o.qy`<w3m-connect-announced-widget
526
+ tabIdx=${(0,a.J)(this.tabIdx)}
527
+ ></w3m-connect-announced-widget>`:null}
528
+ ${r.length?o.qy`<w3m-connect-injected-widget
529
+ .connectors=${r}
530
+ tabIdx=${(0,a.J)(this.tabIdx)}
531
+ ></w3m-connect-injected-widget>`:null}
532
+ `;case"walletConnect":return o.qy`<w3m-connect-walletconnect-widget
533
+ tabIdx=${(0,a.J)(this.tabIdx)}
534
+ ></w3m-connect-walletconnect-widget>`;case"recent":return o.qy`<w3m-connect-recent-widget
535
+ tabIdx=${(0,a.J)(this.tabIdx)}
536
+ ></w3m-connect-recent-widget>`;case"featured":return o.qy`<w3m-connect-featured-widget
537
+ .wallets=${l}
538
+ tabIdx=${(0,a.J)(this.tabIdx)}
539
+ ></w3m-connect-featured-widget>`;case"custom":return o.qy`<w3m-connect-custom-widget
540
+ tabIdx=${(0,a.J)(this.tabIdx)}
541
+ ></w3m-connect-custom-widget>`;case"external":return o.qy`<w3m-connect-external-widget
542
+ tabIdx=${(0,a.J)(this.tabIdx)}
543
+ ></w3m-connect-external-widget>`;case"recommended":return o.qy`<w3m-connect-recommended-widget
544
+ .wallets=${s}
545
+ tabIdx=${(0,a.J)(this.tabIdx)}
546
+ ></w3m-connect-recommended-widget>`;default:return console.warn(`Unknown connector type: ${t}`),null}})}};p.styles=d.A,u([(0,r.MZ)()],p.prototype,"tabIdx",void 0),u([(0,r.wk)()],p.prototype,"connectors",void 0),u([(0,r.wk)()],p.prototype,"recommended",void 0),u([(0,r.wk)()],p.prototype,"featured",void 0),p=u([(0,l.EM)("w3m-connector-list")],p)},27687:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
547
+ button {
548
+ padding: var(--wui-spacing-4xs) var(--wui-spacing-xxs);
549
+ border-radius: var(--wui-border-radius-3xs);
550
+ background-color: transparent;
551
+ color: var(--wui-color-accent-100);
552
+ }
553
+
554
+ button:disabled {
555
+ background-color: transparent;
556
+ color: var(--wui-color-gray-glass-015);
557
+ }
558
+
559
+ button:hover {
560
+ background-color: var(--wui-color-gray-glass-005);
561
+ }
562
+ `},28965:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(52298),n=i(27390),s=i(19552),l=(i(21348),i(24210)),c=i(27305),d=i(82695),u=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let p=class extends o.WF{constructor(){super(...arguments),this.inputElementRef=(0,s._)(),this.size="md",this.disabled=!1,this.placeholder="",this.type="text",this.value=""}render(){const t=`wui-padding-right-${this.inputRightPadding}`,e=`wui-size-${this.size}`,i={[e]:!0,[t]:Boolean(this.inputRightPadding)};return o.qy`${this.templateIcon()}
563
+ <input
564
+ data-testid="wui-input-text"
565
+ ${(0,s.K)(this.inputElementRef)}
566
+ class=${(0,a.H)(i)}
567
+ type=${this.type}
568
+ enterkeyhint=${(0,n.J)(this.enterKeyHint)}
569
+ ?disabled=${this.disabled}
570
+ placeholder=${this.placeholder}
571
+ @input=${this.dispatchInputChangeEvent.bind(this)}
572
+ .value=${this.value||""}
573
+ tabindex=${(0,n.J)(this.tabIdx)}
574
+ />
575
+ <slot></slot>`}templateIcon(){return this.icon?o.qy`<wui-icon
576
+ data-input=${this.size}
577
+ size=${this.size}
578
+ color="inherit"
579
+ name=${this.icon}
580
+ ></wui-icon>`:null}dispatchInputChangeEvent(){this.dispatchEvent(new CustomEvent("inputChange",{detail:this.inputElementRef.value?.value,bubbles:!0,composed:!0}))}};p.styles=[l.W5,l.fD,d.A],u([(0,r.MZ)()],p.prototype,"size",void 0),u([(0,r.MZ)()],p.prototype,"icon",void 0),u([(0,r.MZ)({type:Boolean})],p.prototype,"disabled",void 0),u([(0,r.MZ)()],p.prototype,"placeholder",void 0),u([(0,r.MZ)()],p.prototype,"type",void 0),u([(0,r.MZ)()],p.prototype,"keyHint",void 0),u([(0,r.MZ)()],p.prototype,"value",void 0),u([(0,r.MZ)()],p.prototype,"inputRightPadding",void 0),u([(0,r.MZ)()],p.prototype,"tabIdx",void 0),p=u([(0,c.E)("wui-input-text")],p)},29005:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
581
+ wui-grid,
582
+ wui-loading-spinner,
583
+ wui-flex {
584
+ height: 360px;
585
+ }
586
+
587
+ wui-grid {
588
+ overflow: scroll;
589
+ scrollbar-width: none;
590
+ grid-auto-rows: min-content;
591
+ grid-template-columns: repeat(auto-fill, 104px);
592
+ }
593
+
594
+ wui-grid[data-scroll='false'] {
595
+ overflow: hidden;
596
+ }
597
+
598
+ wui-grid::-webkit-scrollbar {
599
+ display: none;
600
+ }
601
+
602
+ wui-loading-spinner {
603
+ justify-content: center;
604
+ align-items: center;
605
+ }
606
+
607
+ @media (max-width: 350px) {
608
+ wui-grid {
609
+ grid-template-columns: repeat(2, 1fr);
610
+ }
611
+ }
612
+ `},30104:(t,e,i)=>{i(36563)},33101:(t,e,i)=>{i(10980)},34285:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(19552),s=i(24210),l=i(27305),c=i(55663),d=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let u=class extends o.WF{constructor(){super(...arguments),this.inputElementRef=(0,n._)(),this.checked=void 0}render(){return o.qy`
613
+ <label>
614
+ <input
615
+ ${(0,n.K)(this.inputElementRef)}
616
+ type="checkbox"
617
+ ?checked=${(0,a.J)(this.checked)}
618
+ @change=${this.dispatchChangeEvent.bind(this)}
619
+ />
620
+ <span></span>
621
+ </label>
622
+ `}dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("switchChange",{detail:this.inputElementRef.value?.checked,bubbles:!0,composed:!0}))}};u.styles=[s.W5,s.fD,s.ck,c.A],d([(0,r.MZ)({type:Boolean})],u.prototype,"checked",void 0),u=d([(0,l.E)("wui-switch")],u)},34379:(t,e,i)=>{i.r(e),i.d(e,{W3mAllWalletsView:()=>r.c,W3mConnectingWcBasicView:()=>o.x,W3mDownloadsView:()=>a.M});var o=i(14156),r=i(5544),a=i(23235)},35402:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
623
+ :host {
624
+ display: block;
625
+ width: var(--wui-box-size-md);
626
+ height: var(--wui-box-size-md);
627
+ }
628
+
629
+ svg {
630
+ width: var(--wui-box-size-md);
631
+ height: var(--wui-box-size-md);
632
+ }
633
+
634
+ rect {
635
+ fill: none;
636
+ stroke: var(--wui-color-accent-100);
637
+ stroke-width: 4px;
638
+ stroke-linecap: round;
639
+ animation: dash 1s linear infinite;
640
+ }
641
+
642
+ @keyframes dash {
643
+ to {
644
+ stroke-dashoffset: 0px;
645
+ }
646
+ }
647
+ `},35439:(t,e,i)=>{i(67198)},36563:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(24210),n=i(63789),s=i(27305),l=i(20669),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{render(){return this.style.cssText=`\n grid-template-rows: ${this.gridTemplateRows};\n grid-template-columns: ${this.gridTemplateColumns};\n justify-items: ${this.justifyItems};\n align-items: ${this.alignItems};\n justify-content: ${this.justifyContent};\n align-content: ${this.alignContent};\n column-gap: ${this.columnGap&&`var(--wui-spacing-${this.columnGap})`};\n row-gap: ${this.rowGap&&`var(--wui-spacing-${this.rowGap})`};\n gap: ${this.gap&&`var(--wui-spacing-${this.gap})`};\n padding-top: ${this.padding&&n.Z.getSpacingStyles(this.padding,0)};\n padding-right: ${this.padding&&n.Z.getSpacingStyles(this.padding,1)};\n padding-bottom: ${this.padding&&n.Z.getSpacingStyles(this.padding,2)};\n padding-left: ${this.padding&&n.Z.getSpacingStyles(this.padding,3)};\n margin-top: ${this.margin&&n.Z.getSpacingStyles(this.margin,0)};\n margin-right: ${this.margin&&n.Z.getSpacingStyles(this.margin,1)};\n margin-bottom: ${this.margin&&n.Z.getSpacingStyles(this.margin,2)};\n margin-left: ${this.margin&&n.Z.getSpacingStyles(this.margin,3)};\n `,o.qy`<slot></slot>`}};d.styles=[a.W5,l.A],c([(0,r.MZ)()],d.prototype,"gridTemplateRows",void 0),c([(0,r.MZ)()],d.prototype,"gridTemplateColumns",void 0),c([(0,r.MZ)()],d.prototype,"justifyItems",void 0),c([(0,r.MZ)()],d.prototype,"alignItems",void 0),c([(0,r.MZ)()],d.prototype,"justifyContent",void 0),c([(0,r.MZ)()],d.prototype,"alignContent",void 0),c([(0,r.MZ)()],d.prototype,"columnGap",void 0),c([(0,r.MZ)()],d.prototype,"rowGap",void 0),c([(0,r.MZ)()],d.prototype,"gap",void 0),c([(0,r.MZ)()],d.prototype,"padding",void 0),c([(0,r.MZ)()],d.prototype,"margin",void 0),d=c([(0,s.E)("wui-grid")],d)},36740:(t,e,i)=>{var o=i(35842),r=i(27390),a=i(89058),n=i(26545),s=i(14479),l=i(93224),c=i(94768),d=(i(98191),i(46569),i(78872),i(3601),i(1749),i(96975),i(22253),i(61896)),u=(i(24581),i(68128));let p=class extends d.o{constructor(){super(),this.forceUpdate=()=>{this.requestUpdate()},window.addEventListener("resize",this.forceUpdate),s.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet?.name??"WalletConnect",platform:"qrcode"}})}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribe?.forEach(t=>t()),window.removeEventListener("resize",this.forceUpdate)}render(){return this.onRenderProxy(),o.qy`
648
+ <wui-flex
649
+ flexDirection="column"
650
+ alignItems="center"
651
+ .padding=${["0","xl","xl","xl"]}
652
+ gap="xl"
653
+ >
654
+ <wui-shimmer borderRadius="l" width="100%"> ${this.qrCodeTemplate()} </wui-shimmer>
655
+
656
+ <wui-text variant="paragraph-500" color="fg-100">
657
+ Scan this QR Code with your phone
658
+ </wui-text>
659
+ ${this.copyTemplate()}
660
+ </wui-flex>
661
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
662
+ `}onRenderProxy(){!this.ready&&this.uri&&(this.timeout=setTimeout(()=>{this.ready=!0},200))}qrCodeTemplate(){if(!this.uri||!this.ready)return null;const t=this.getBoundingClientRect().width-40,e=this.wallet?this.wallet.name:void 0;return a.x.setWcLinking(void 0),a.x.setRecentWallet(this.wallet),o.qy` <wui-qr-code
663
+ size=${t}
664
+ theme=${n.W.state.themeMode}
665
+ uri=${this.uri}
666
+ imageSrc=${(0,r.J)(l.$.getWalletImage(this.wallet))}
667
+ color=${(0,r.J)(n.W.state.themeVariables["--w3m-qr-color"])}
668
+ alt=${(0,r.J)(e)}
669
+ data-testid="wui-qr-code"
670
+ ></wui-qr-code>`}copyTemplate(){const t=!this.uri||!this.ready;return o.qy`<wui-link
671
+ .disabled=${t}
672
+ @click=${this.onCopyUri}
673
+ color="fg-200"
674
+ data-testid="copy-wc2-uri"
675
+ >
676
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
677
+ Copy link
678
+ </wui-link>`}};p.styles=u.A,p=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,c.EM)("w3m-connecting-wc-qrcode")],p)},37839:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
679
+ :host {
680
+ width: var(--local-width);
681
+ position: relative;
682
+ }
683
+
684
+ button {
685
+ border: none;
686
+ border-radius: var(--local-border-radius);
687
+ width: var(--local-width);
688
+ white-space: nowrap;
689
+ }
690
+
691
+ /* -- Sizes --------------------------------------------------- */
692
+ button[data-size='md'] {
693
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-l);
694
+ height: 36px;
695
+ }
696
+
697
+ button[data-size='md'][data-icon-left='true'][data-icon-right='false'] {
698
+ padding: 8.2px var(--wui-spacing-l) 9px var(--wui-spacing-s);
699
+ }
700
+
701
+ button[data-size='md'][data-icon-right='true'][data-icon-left='false'] {
702
+ padding: 8.2px var(--wui-spacing-s) 9px var(--wui-spacing-l);
703
+ }
704
+
705
+ button[data-size='lg'] {
706
+ padding: var(--wui-spacing-m) var(--wui-spacing-2l);
707
+ height: 48px;
708
+ }
709
+
710
+ /* -- Variants --------------------------------------------------------- */
711
+ button[data-variant='main'] {
712
+ background-color: var(--wui-color-accent-100);
713
+ color: var(--wui-color-inverse-100);
714
+ border: none;
715
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
716
+ }
717
+
718
+ button[data-variant='inverse'] {
719
+ background-color: var(--wui-color-inverse-100);
720
+ color: var(--wui-color-inverse-000);
721
+ border: none;
722
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
723
+ }
724
+
725
+ button[data-variant='accent'] {
726
+ background-color: var(--wui-color-accent-glass-010);
727
+ color: var(--wui-color-accent-100);
728
+ border: none;
729
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
730
+ }
731
+
732
+ button[data-variant='accent-error'] {
733
+ background: var(--wui-color-error-glass-015);
734
+ color: var(--wui-color-error-100);
735
+ border: none;
736
+ box-shadow: inset 0 0 0 1px var(--wui-color-error-glass-010);
737
+ }
738
+
739
+ button[data-variant='accent-success'] {
740
+ background: var(--wui-color-success-glass-015);
741
+ color: var(--wui-color-success-100);
742
+ border: none;
743
+ box-shadow: inset 0 0 0 1px var(--wui-color-success-glass-010);
744
+ }
745
+
746
+ button[data-variant='neutral'] {
747
+ background: transparent;
748
+ color: var(--wui-color-fg-100);
749
+ border: none;
750
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
751
+ }
752
+
753
+ /* -- Focus states --------------------------------------------------- */
754
+ button[data-variant='main']:focus-visible:enabled {
755
+ background-color: var(--wui-color-accent-090);
756
+ box-shadow:
757
+ inset 0 0 0 1px var(--wui-color-accent-100),
758
+ 0 0 0 4px var(--wui-color-accent-glass-020);
759
+ }
760
+ button[data-variant='inverse']:focus-visible:enabled {
761
+ background-color: var(--wui-color-inverse-100);
762
+ box-shadow:
763
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
764
+ 0 0 0 4px var(--wui-color-accent-glass-020);
765
+ }
766
+ button[data-variant='accent']:focus-visible:enabled {
767
+ background-color: var(--wui-color-accent-glass-010);
768
+ box-shadow:
769
+ inset 0 0 0 1px var(--wui-color-accent-100),
770
+ 0 0 0 4px var(--wui-color-accent-glass-020);
771
+ }
772
+ button[data-variant='accent-error']:focus-visible:enabled {
773
+ background: var(--wui-color-error-glass-015);
774
+ box-shadow:
775
+ inset 0 0 0 1px var(--wui-color-error-100),
776
+ 0 0 0 4px var(--wui-color-error-glass-020);
777
+ }
778
+ button[data-variant='accent-success']:focus-visible:enabled {
779
+ background: var(--wui-color-success-glass-015);
780
+ box-shadow:
781
+ inset 0 0 0 1px var(--wui-color-success-100),
782
+ 0 0 0 4px var(--wui-color-success-glass-020);
783
+ }
784
+ button[data-variant='neutral']:focus-visible:enabled {
785
+ background: var(--wui-color-gray-glass-005);
786
+ box-shadow:
787
+ inset 0 0 0 1px var(--wui-color-gray-glass-010),
788
+ 0 0 0 4px var(--wui-color-gray-glass-002);
789
+ }
790
+
791
+ /* -- Hover & Active states ----------------------------------------------------------- */
792
+ @media (hover: hover) and (pointer: fine) {
793
+ button[data-variant='main']:hover:enabled {
794
+ background-color: var(--wui-color-accent-090);
795
+ }
796
+
797
+ button[data-variant='main']:active:enabled {
798
+ background-color: var(--wui-color-accent-080);
799
+ }
800
+
801
+ button[data-variant='accent']:hover:enabled {
802
+ background-color: var(--wui-color-accent-glass-015);
803
+ }
804
+
805
+ button[data-variant='accent']:active:enabled {
806
+ background-color: var(--wui-color-accent-glass-020);
807
+ }
808
+
809
+ button[data-variant='accent-error']:hover:enabled {
810
+ background: var(--wui-color-error-glass-020);
811
+ color: var(--wui-color-error-100);
812
+ }
813
+
814
+ button[data-variant='accent-error']:active:enabled {
815
+ background: var(--wui-color-error-glass-030);
816
+ color: var(--wui-color-error-100);
817
+ }
818
+
819
+ button[data-variant='accent-success']:hover:enabled {
820
+ background: var(--wui-color-success-glass-020);
821
+ color: var(--wui-color-success-100);
822
+ }
823
+
824
+ button[data-variant='accent-success']:active:enabled {
825
+ background: var(--wui-color-success-glass-030);
826
+ color: var(--wui-color-success-100);
827
+ }
828
+
829
+ button[data-variant='neutral']:hover:enabled {
830
+ background: var(--wui-color-gray-glass-002);
831
+ }
832
+
833
+ button[data-variant='neutral']:active:enabled {
834
+ background: var(--wui-color-gray-glass-005);
835
+ }
836
+
837
+ button[data-size='lg'][data-icon-left='true'][data-icon-right='false'] {
838
+ padding-left: var(--wui-spacing-m);
839
+ }
840
+
841
+ button[data-size='lg'][data-icon-right='true'][data-icon-left='false'] {
842
+ padding-right: var(--wui-spacing-m);
843
+ }
844
+ }
845
+
846
+ /* -- Disabled state --------------------------------------------------- */
847
+ button:disabled {
848
+ background-color: var(--wui-color-gray-glass-002);
849
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
850
+ color: var(--wui-color-gray-glass-020);
851
+ cursor: not-allowed;
852
+ }
853
+
854
+ button > wui-text {
855
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
856
+ will-change: opacity;
857
+ opacity: var(--local-opacity-100);
858
+ }
859
+
860
+ ::slotted(*) {
861
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
862
+ will-change: opacity;
863
+ opacity: var(--local-opacity-100);
864
+ }
865
+
866
+ wui-loading-spinner {
867
+ position: absolute;
868
+ left: 50%;
869
+ top: 50%;
870
+ transform: translate(-50%, -50%);
871
+ opacity: var(--local-opacity-000);
872
+ }
873
+ `},38381:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(62247),i(50798),i(24210)),n=i(27305),s=i(37839),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const c={main:"inverse-100",inverse:"inverse-000",accent:"accent-100","accent-error":"error-100","accent-success":"success-100",neutral:"fg-100",disabled:"gray-glass-020"},d={lg:"paragraph-600",md:"small-600"},u={lg:"md",md:"md"};let p=class extends o.WF{constructor(){super(...arguments),this.size="lg",this.disabled=!1,this.fullWidth=!1,this.loading=!1,this.variant="main",this.hasIconLeft=!1,this.hasIconRight=!1,this.borderRadius="m"}render(){this.style.cssText=`\n --local-width: ${this.fullWidth?"100%":"auto"};\n --local-opacity-100: ${this.loading?0:1};\n --local-opacity-000: ${this.loading?1:0};\n --local-border-radius: var(--wui-border-radius-${this.borderRadius});\n `;const t=this.textVariant??d[this.size];return o.qy`
874
+ <button
875
+ data-variant=${this.variant}
876
+ data-icon-left=${this.hasIconLeft}
877
+ data-icon-right=${this.hasIconRight}
878
+ data-size=${this.size}
879
+ ?disabled=${this.disabled}
880
+ >
881
+ ${this.loadingTemplate()}
882
+ <slot name="iconLeft" @slotchange=${()=>this.handleSlotLeftChange()}></slot>
883
+ <wui-text variant=${t} color="inherit">
884
+ <slot></slot>
885
+ </wui-text>
886
+ <slot name="iconRight" @slotchange=${()=>this.handleSlotRightChange()}></slot>
887
+ </button>
888
+ `}handleSlotLeftChange(){this.hasIconLeft=!0}handleSlotRightChange(){this.hasIconRight=!0}loadingTemplate(){if(this.loading){const t=u[this.size],e=this.disabled?c.disabled:c[this.variant];return o.qy`<wui-loading-spinner color=${e} size=${t}></wui-loading-spinner>`}return o.qy``}};p.styles=[a.W5,a.fD,s.A],l([(0,r.MZ)()],p.prototype,"size",void 0),l([(0,r.MZ)({type:Boolean})],p.prototype,"disabled",void 0),l([(0,r.MZ)({type:Boolean})],p.prototype,"fullWidth",void 0),l([(0,r.MZ)({type:Boolean})],p.prototype,"loading",void 0),l([(0,r.MZ)()],p.prototype,"variant",void 0),l([(0,r.MZ)({type:Boolean})],p.prototype,"hasIconLeft",void 0),l([(0,r.MZ)({type:Boolean})],p.prototype,"hasIconRight",void 0),l([(0,r.MZ)()],p.prototype,"borderRadius",void 0),l([(0,r.MZ)()],p.prototype,"textVariant",void 0),p=l([(0,n.E)("wui-button")],p)},38417:(t,e,i)=>{i(38916)},43378:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
889
+ :host {
890
+ display: flex;
891
+ flex-direction: column;
892
+ align-items: center;
893
+ width: 104px;
894
+ row-gap: var(--wui-spacing-xs);
895
+ padding: var(--wui-spacing-xs) 10px;
896
+ background-color: var(--wui-color-gray-glass-002);
897
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
898
+ position: relative;
899
+ }
900
+
901
+ wui-shimmer[data-type='network'] {
902
+ border: none;
903
+ -webkit-clip-path: var(--wui-path-network);
904
+ clip-path: var(--wui-path-network);
905
+ }
906
+
907
+ svg {
908
+ position: absolute;
909
+ width: 48px;
910
+ height: 54px;
911
+ z-index: 1;
912
+ }
913
+
914
+ svg > path {
915
+ stroke: var(--wui-color-gray-glass-010);
916
+ stroke-width: 1px;
917
+ }
918
+
919
+ @media (max-width: 350px) {
920
+ :host {
921
+ width: 100%;
922
+ }
923
+ }
924
+ `},43781:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
925
+ button {
926
+ column-gap: var(--wui-spacing-s);
927
+ padding: 11px 18px 11px var(--wui-spacing-s);
928
+ width: 100%;
929
+ background-color: var(--wui-color-gray-glass-002);
930
+ border-radius: var(--wui-border-radius-xs);
931
+ color: var(--wui-color-fg-250);
932
+ transition:
933
+ color var(--wui-ease-out-power-1) var(--wui-duration-md),
934
+ background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
935
+ will-change: color, background-color;
936
+ }
937
+
938
+ button[data-iconvariant='square'],
939
+ button[data-iconvariant='square-blue'] {
940
+ padding: 6px 18px 6px 9px;
941
+ }
942
+
943
+ button > wui-flex {
944
+ flex: 1;
945
+ }
946
+
947
+ button > wui-image {
948
+ width: 32px;
949
+ height: 32px;
950
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
951
+ border-radius: var(--wui-border-radius-3xl);
952
+ }
953
+
954
+ button > wui-icon {
955
+ width: 36px;
956
+ height: 36px;
957
+ transition: opacity var(--wui-ease-out-power-1) var(--wui-duration-md);
958
+ will-change: opacity;
959
+ }
960
+
961
+ button > wui-icon-box[data-variant='blue'] {
962
+ box-shadow: 0 0 0 2px var(--wui-color-accent-glass-005);
963
+ }
964
+
965
+ button > wui-icon-box[data-variant='overlay'] {
966
+ box-shadow: 0 0 0 2px var(--wui-color-gray-glass-005);
967
+ }
968
+
969
+ button > wui-icon-box[data-variant='square-blue'] {
970
+ border-radius: var(--wui-border-radius-3xs);
971
+ position: relative;
972
+ border: none;
973
+ width: 36px;
974
+ height: 36px;
975
+ }
976
+
977
+ button > wui-icon-box[data-variant='square-blue']::after {
978
+ content: '';
979
+ position: absolute;
980
+ top: 0;
981
+ bottom: 0;
982
+ left: 0;
983
+ right: 0;
984
+ border-radius: inherit;
985
+ border: 1px solid var(--wui-color-accent-glass-010);
986
+ pointer-events: none;
987
+ }
988
+
989
+ button > wui-icon:last-child {
990
+ width: 14px;
991
+ height: 14px;
992
+ }
993
+
994
+ button:disabled {
995
+ color: var(--wui-color-gray-glass-020);
996
+ }
997
+
998
+ button[data-loading='true'] > wui-icon {
999
+ opacity: 0;
1000
+ }
1001
+
1002
+ wui-loading-spinner {
1003
+ position: absolute;
1004
+ right: 18px;
1005
+ top: 50%;
1006
+ transform: translateY(-50%);
1007
+ }
1008
+ `},44940:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1009
+ @keyframes shake {
1010
+ 0% {
1011
+ transform: translateX(0);
1012
+ }
1013
+ 25% {
1014
+ transform: translateX(3px);
1015
+ }
1016
+ 50% {
1017
+ transform: translateX(-3px);
1018
+ }
1019
+ 75% {
1020
+ transform: translateX(3px);
1021
+ }
1022
+ 100% {
1023
+ transform: translateX(0);
1024
+ }
1025
+ }
1026
+
1027
+ wui-flex:first-child:not(:only-child) {
1028
+ position: relative;
1029
+ }
1030
+
1031
+ wui-loading-thumbnail {
1032
+ position: absolute;
1033
+ }
1034
+
1035
+ wui-icon-box {
1036
+ position: absolute;
1037
+ right: calc(var(--wui-spacing-3xs) * -1);
1038
+ bottom: calc(var(--wui-spacing-3xs) * -1);
1039
+ opacity: 0;
1040
+ transform: scale(0.5);
1041
+ transition-property: opacity, transform;
1042
+ transition-duration: var(--wui-duration-lg);
1043
+ transition-timing-function: var(--wui-ease-out-power-2);
1044
+ will-change: opacity, transform;
1045
+ }
1046
+
1047
+ wui-text[align='center'] {
1048
+ width: 100%;
1049
+ padding: 0px var(--wui-spacing-l);
1050
+ }
1051
+
1052
+ [data-error='true'] wui-icon-box {
1053
+ opacity: 1;
1054
+ transform: scale(1);
1055
+ }
1056
+
1057
+ [data-error='true'] > wui-flex:first-child {
1058
+ animation: shake 250ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
1059
+ }
1060
+
1061
+ [data-retry='false'] wui-link {
1062
+ display: none;
1063
+ }
1064
+
1065
+ [data-retry='true'] wui-link {
1066
+ display: block;
1067
+ opacity: 1;
1068
+ }
1069
+ `},46006:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1070
+ button {
1071
+ background-color: var(--wui-color-fg-300);
1072
+ border-radius: var(--wui-border-radius-4xs);
1073
+ width: 16px;
1074
+ height: 16px;
1075
+ }
1076
+
1077
+ button:disabled {
1078
+ background-color: var(--wui-color-bg-300);
1079
+ }
1080
+
1081
+ wui-icon {
1082
+ color: var(--wui-color-bg-200) !important;
1083
+ }
1084
+
1085
+ button:focus-visible {
1086
+ background-color: var(--wui-color-fg-250);
1087
+ border: 1px solid var(--wui-color-accent-100);
1088
+ }
1089
+
1090
+ @media (hover: hover) and (pointer: fine) {
1091
+ button:hover:enabled {
1092
+ background-color: var(--wui-color-fg-250);
1093
+ }
1094
+
1095
+ button:active:enabled {
1096
+ background-color: var(--wui-color-fg-225);
1097
+ }
1098
+ }
1099
+ `},47187:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(50731),s=i(40868),l=i(5813),c=i(94768),d=(i(35439),i(30104),i(38753)),u=(i(68237),i(26173)),p=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const h="local-paginator";let w=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.paginationObserver=void 0,this.loading=!s.N.state.wallets.length,this.wallets=s.N.state.wallets,this.recommended=s.N.state.recommended,this.featured=s.N.state.featured,this.unsubscribe.push(s.N.subscribeKey("wallets",t=>this.wallets=t),s.N.subscribeKey("recommended",t=>this.recommended=t),s.N.subscribeKey("featured",t=>this.featured=t))}firstUpdated(){this.initialFetch(),this.createPaginationObserver()}disconnectedCallback(){this.unsubscribe.forEach(t=>t()),this.paginationObserver?.disconnect()}render(){return o.qy`
1100
+ <wui-grid
1101
+ data-scroll=${!this.loading}
1102
+ .padding=${["0","s","s","s"]}
1103
+ columnGap="xxs"
1104
+ rowGap="l"
1105
+ justifyContent="space-between"
1106
+ >
1107
+ ${this.loading?this.shimmerTemplate(16):this.walletsTemplate()}
1108
+ ${this.paginationLoaderTemplate()}
1109
+ </wui-grid>
1110
+ `}async initialFetch(){this.loading=!0;const t=this.shadowRoot?.querySelector("wui-grid");t&&(await s.N.fetchWallets({page:1}),await t.animate([{opacity:1},{opacity:0}],{duration:200,fill:"forwards",easing:"ease"}).finished,this.loading=!1,t.animate([{opacity:0},{opacity:1}],{duration:200,fill:"forwards",easing:"ease"}))}shimmerTemplate(t,e){return[...Array(t)].map(()=>o.qy`
1111
+ <wui-card-select-loader type="wallet" id=${(0,a.J)(e)}></wui-card-select-loader>
1112
+ `)}walletsTemplate(){const t=l.w.uniqueBy([...this.featured,...this.recommended,...this.wallets],"id");return d.A.markWalletsAsInstalled(t).map(t=>o.qy`
1113
+ <w3m-all-wallets-list-item
1114
+ @click=${()=>this.onConnectWallet(t)}
1115
+ .wallet=${t}
1116
+ ></w3m-all-wallets-list-item>
1117
+ `)}paginationLoaderTemplate(){const{wallets:t,recommended:e,featured:i,count:o}=s.N.state,r=window.innerWidth<352?3:4,a=t.length+e.length;let n=Math.ceil(a/r)*r-a+r;return n-=t.length?i.length%r:0,0===o&&i.length>0?null:0===o||[...i,...t,...e].length<o?this.shimmerTemplate(n,h):null}createPaginationObserver(){const t=this.shadowRoot?.querySelector(`#${h}`);t&&(this.paginationObserver=new IntersectionObserver(([t])=>{if(t?.isIntersecting&&!this.loading){const{page:t,count:e,wallets:i}=s.N.state;i.length<e&&s.N.fetchWallets({page:t+1})}}),this.paginationObserver.observe(t))}onConnectWallet(t){n.a.selectWalletConnector(t)}};w.styles=u.A,p([(0,r.wk)()],w.prototype,"loading",void 0),p([(0,r.wk)()],w.prototype,"wallets",void 0),p([(0,r.wk)()],w.prototype,"recommended",void 0),p([(0,r.wk)()],w.prototype,"featured",void 0),w=p([(0,c.EM)("w3m-all-wallets-list")],w)},49038:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(21348),i(66501),i(50798),i(24210)),n=i(27305),s=i(17506),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.variant="accent",this.imageSrc="",this.disabled=!1,this.icon="externalLink",this.size="md",this.text=""}render(){const t="sm"===this.size?"small-600":"paragraph-600";return o.qy`
1118
+ <button
1119
+ class=${this.disabled?"disabled":""}
1120
+ data-variant=${this.variant}
1121
+ data-size=${this.size}
1122
+ >
1123
+ ${this.imageSrc?o.qy`<wui-image src=${this.imageSrc}></wui-image>`:null}
1124
+ <wui-text variant=${t} color="inherit"> ${this.text} </wui-text>
1125
+ <wui-icon name=${this.icon} color="inherit" size="inherit"></wui-icon>
1126
+ </button>
1127
+ `}};c.styles=[a.W5,a.fD,s.A],l([(0,r.MZ)()],c.prototype,"variant",void 0),l([(0,r.MZ)()],c.prototype,"imageSrc",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"disabled",void 0),l([(0,r.MZ)()],c.prototype,"icon",void 0),l([(0,r.MZ)()],c.prototype,"size",void 0),l([(0,r.MZ)()],c.prototype,"text",void 0),c=l([(0,n.E)("wui-chip-button")],c)},49039:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1128
+ button {
1129
+ display: flex;
1130
+ flex-direction: column;
1131
+ justify-content: center;
1132
+ align-items: center;
1133
+ cursor: pointer;
1134
+ width: 104px;
1135
+ row-gap: var(--wui-spacing-xs);
1136
+ padding: var(--wui-spacing-s) var(--wui-spacing-0);
1137
+ background-color: var(--wui-color-gray-glass-002);
1138
+ border-radius: clamp(0px, var(--wui-border-radius-xs), 20px);
1139
+ transition:
1140
+ color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1141
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1),
1142
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1);
1143
+ will-change: background-color, color, border-radius;
1144
+ outline: none;
1145
+ border: none;
1146
+ }
1147
+
1148
+ button > wui-flex > wui-text {
1149
+ color: var(--wui-color-fg-100);
1150
+ max-width: 86px;
1151
+ white-space: nowrap;
1152
+ overflow: hidden;
1153
+ text-overflow: ellipsis;
1154
+ justify-content: center;
1155
+ }
1156
+
1157
+ button > wui-flex > wui-text.certified {
1158
+ max-width: 66px;
1159
+ }
1160
+
1161
+ button:hover:enabled {
1162
+ background-color: var(--wui-color-gray-glass-005);
1163
+ }
1164
+
1165
+ button:disabled > wui-flex > wui-text {
1166
+ color: var(--wui-color-gray-glass-015);
1167
+ }
1168
+
1169
+ [data-selected='true'] {
1170
+ background-color: var(--wui-color-accent-glass-020);
1171
+ }
1172
+
1173
+ @media (hover: hover) and (pointer: fine) {
1174
+ [data-selected='true']:hover:enabled {
1175
+ background-color: var(--wui-color-accent-glass-015);
1176
+ }
1177
+ }
1178
+
1179
+ [data-selected='true']:active:enabled {
1180
+ background-color: var(--wui-color-accent-glass-010);
1181
+ }
1182
+
1183
+ @media (max-width: 350px) {
1184
+ button {
1185
+ width: 100%;
1186
+ }
1187
+ }
1188
+ `},49673:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(50731),l=i(12472),c=i(5813),d=i(94768),u=(i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let p=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=s.a.state.connectors,this.connectorImages=l.j.state.connectorImages,this.unsubscribe.push(s.a.subscribeKey("connectors",t=>this.connectors=t),l.j.subscribeKey("connectorImages",t=>this.connectorImages=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){if(c.w.isMobile())return this.style.cssText="display: none",null;const t=this.connectors.find(t=>"walletConnect"===t.id);if(!t)return this.style.cssText="display: none",null;const e=t.imageUrl||this.connectorImages[t?.imageId??""];return o.qy`
1189
+ <wui-list-wallet
1190
+ imageSrc=${(0,a.J)(e)}
1191
+ name=${t.name??"Unknown"}
1192
+ @click=${()=>this.onConnector(t)}
1193
+ tagLabel="qr code"
1194
+ tagVariant="main"
1195
+ tabIdx=${(0,a.J)(this.tabIdx)}
1196
+ data-testid="wallet-selector-walletconnect"
1197
+ >
1198
+ </wui-list-wallet>
1199
+ `}onConnector(t){s.a.setActiveConnector(t),n.I.push("ConnectingWalletConnect")}};u([(0,r.MZ)()],p.prototype,"tabIdx",void 0),u([(0,r.wk)()],p.prototype,"connectors",void 0),u([(0,r.wk)()],p.prototype,"connectorImages",void 0),p=u([(0,d.EM)("w3m-connect-walletconnect-widget")],p)},49759:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1200
+ button {
1201
+ column-gap: var(--wui-spacing-s);
1202
+ padding: 7px var(--wui-spacing-l) 7px var(--wui-spacing-xs);
1203
+ width: 100%;
1204
+ background-color: var(--wui-color-gray-glass-002);
1205
+ border-radius: var(--wui-border-radius-xs);
1206
+ color: var(--wui-color-fg-100);
1207
+ }
1208
+
1209
+ button > wui-text:nth-child(2) {
1210
+ display: flex;
1211
+ flex: 1;
1212
+ }
1213
+
1214
+ button:disabled {
1215
+ background-color: var(--wui-color-gray-glass-015);
1216
+ color: var(--wui-color-gray-glass-015);
1217
+ }
1218
+
1219
+ button:disabled > wui-tag {
1220
+ background-color: var(--wui-color-gray-glass-010);
1221
+ color: var(--wui-color-fg-300);
1222
+ }
1223
+
1224
+ wui-icon {
1225
+ color: var(--wui-color-fg-200) !important;
1226
+ }
1227
+ `},54119:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1228
+ :host {
1229
+ height: 100%;
1230
+ }
1231
+
1232
+ button {
1233
+ display: flex;
1234
+ align-items: center;
1235
+ justify-content: center;
1236
+ column-gap: var(--wui-spacing-1xs);
1237
+ padding: var(--wui-spacing-xs) var(--wui-spacing-s);
1238
+ background-color: var(--wui-color-gray-glass-002);
1239
+ border-radius: var(--wui-border-radius-xs);
1240
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1241
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1242
+ will-change: background-color;
1243
+ cursor: pointer;
1244
+ }
1245
+
1246
+ wui-switch {
1247
+ pointer-events: none;
1248
+ }
1249
+ `},55663:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1250
+ :host {
1251
+ display: flex;
1252
+ align-items: center;
1253
+ justify-content: center;
1254
+ }
1255
+
1256
+ label {
1257
+ position: relative;
1258
+ display: inline-block;
1259
+ width: 32px;
1260
+ height: 22px;
1261
+ }
1262
+
1263
+ input {
1264
+ width: 0;
1265
+ height: 0;
1266
+ opacity: 0;
1267
+ }
1268
+
1269
+ span {
1270
+ position: absolute;
1271
+ cursor: pointer;
1272
+ top: 0;
1273
+ left: 0;
1274
+ right: 0;
1275
+ bottom: 0;
1276
+ background-color: var(--wui-color-blue-100);
1277
+ border-width: 1px;
1278
+ border-style: solid;
1279
+ border-color: var(--wui-color-gray-glass-002);
1280
+ border-radius: 999px;
1281
+ transition:
1282
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1283
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md);
1284
+ will-change: background-color, border-color;
1285
+ }
1286
+
1287
+ span:before {
1288
+ position: absolute;
1289
+ content: '';
1290
+ height: 16px;
1291
+ width: 16px;
1292
+ left: 3px;
1293
+ top: 2px;
1294
+ background-color: var(--wui-color-inverse-100);
1295
+ transition: transform var(--wui-ease-inout-power-1) var(--wui-duration-lg);
1296
+ will-change: transform;
1297
+ border-radius: 50%;
1298
+ }
1299
+
1300
+ input:checked + span {
1301
+ border-color: var(--wui-color-gray-glass-005);
1302
+ background-color: var(--wui-color-blue-100);
1303
+ }
1304
+
1305
+ input:not(:checked) + span {
1306
+ background-color: var(--wui-color-gray-glass-010);
1307
+ }
1308
+
1309
+ input:checked + span:before {
1310
+ transform: translateX(calc(100% - 7px));
1311
+ }
1312
+ `},56229:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=(i(50798),i(24210)),s=i(27305),l=i(27687),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.disabled=!1,this.color="inherit"}render(){return o.qy`
1313
+ <button ?disabled=${this.disabled} tabindex=${(0,a.J)(this.tabIdx)}>
1314
+ <slot name="iconLeft"></slot>
1315
+ <wui-text variant="small-600" color=${this.color}>
1316
+ <slot></slot>
1317
+ </wui-text>
1318
+ <slot name="iconRight"></slot>
1319
+ </button>
1320
+ `}};d.styles=[n.W5,n.fD,l.A],c([(0,r.MZ)()],d.prototype,"tabIdx",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"disabled",void 0),c([(0,r.MZ)()],d.prototype,"color",void 0),d=c([(0,s.E)("wui-link")],d)},57448:(t,e,i)=>{var o=i(89058),r=i(14479),a=i(84253),n=i(5813),s=i(94768),l=i(61896);let c=class extends l.o{constructor(){if(super(),this.btnLabelTimeout=void 0,this.labelTimeout=void 0,this.onRender=()=>{!this.ready&&this.uri&&(this.ready=!0,this.onConnect?.())},this.onConnect=()=>{if(this.wallet?.mobile_link&&this.uri)try{this.error=!1;const{mobile_link:t,name:e}=this.wallet,{redirect:i,href:r}=n.w.formatNativeUrl(t,this.uri);o.x.setWcLinking({name:e,href:r}),o.x.setRecentWallet(this.wallet);const s=n.w.isIframe()?"_top":"_self";n.w.openHref(i,s),clearTimeout(this.labelTimeout),this.secondaryLabel=a.oU.CONNECT_LABELS.MOBILE}catch(t){r.E.sendEvent({type:"track",event:"CONNECT_PROXY_ERROR",properties:{message:t instanceof Error?t.message:"Error parsing the deeplink",uri:this.uri,mobile_link:this.wallet.mobile_link,name:this.wallet.name}}),this.error=!0}},!this.wallet)throw new Error("w3m-connecting-wc-mobile: No wallet provided");this.secondaryBtnLabel=void 0,this.secondaryLabel=a.oU.CONNECT_LABELS.MOBILE,document.addEventListener("visibilitychange",this.onBuffering.bind(this)),r.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"mobile"}}),this.btnLabelTimeout=setTimeout(()=>{this.secondaryBtnLabel="Try again",this.secondaryLabel=a.oU.CONNECT_LABELS.MOBILE},a.oU.FIVE_SEC_MS),this.labelTimeout=setTimeout(()=>{this.secondaryLabel="Hold tight... it's taking longer than expected"},a.oU.THREE_SEC_MS)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("visibilitychange",this.onBuffering.bind(this)),clearTimeout(this.btnLabelTimeout),clearTimeout(this.labelTimeout)}onBuffering(){const t=n.w.isIos();"visible"===document?.visibilityState&&!this.error&&t&&(o.x.setBuffering(!0),setTimeout(()=>{o.x.setBuffering(!1)},5e3))}onTryAgain(){this.buffering||(o.x.setWcError(!1),this.onConnect())}};c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,s.EM)("w3m-connecting-wc-mobile")],c)},58217:(t,e,i)=>{var o=i(35842),r=i(27390),a=i(42831),n=i(14479),s=i(93224),l=i(94768),c=(i(98191),i(96975),i(75429),i(24581),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let d=class extends o.WF{constructor(){if(super(),this.wallet=a.I.state.data?.wallet,!this.wallet)throw new Error("w3m-connecting-wc-unsupported: No wallet provided");n.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"browser"}})}render(){return o.qy`
1321
+ <wui-flex
1322
+ flexDirection="column"
1323
+ alignItems="center"
1324
+ .padding=${["3xl","xl","xl","xl"]}
1325
+ gap="xl"
1326
+ >
1327
+ <wui-wallet-image
1328
+ size="lg"
1329
+ imageSrc=${(0,r.J)(s.$.getWalletImage(this.wallet))}
1330
+ ></wui-wallet-image>
1331
+
1332
+ <wui-text variant="paragraph-500" color="fg-100">Not Detected</wui-text>
1333
+ </wui-flex>
1334
+
1335
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1336
+ `}};d=c([(0,l.EM)("w3m-connecting-wc-unsupported")],d)},58262:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(24210),n=i(27305),s=i(35402),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.radius=36}render(){return this.svgLoaderTemplate()}svgLoaderTemplate(){const t=this.radius>50?50:this.radius,e=36-t,i=116+e,r=245+e,a=360+1.75*e;return o.qy`
1337
+ <svg viewBox="0 0 110 110" width="110" height="110">
1338
+ <rect
1339
+ x="2"
1340
+ y="2"
1341
+ width="106"
1342
+ height="106"
1343
+ rx=${t}
1344
+ stroke-dasharray="${i} ${r}"
1345
+ stroke-dashoffset=${a}
1346
+ />
1347
+ </svg>
1348
+ `}};c.styles=[a.W5,s.A],l([(0,r.MZ)({type:Number})],c.prototype,"radius",void 0),c=l([(0,n.E)("wui-loading-thumbnail")],c)},60346:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(21348),i(24210)),n=i(27305),s=i(46006),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.icon="copy"}render(){return o.qy`
1349
+ <button>
1350
+ <wui-icon color="inherit" size="xxs" name=${this.icon}></wui-icon>
1351
+ </button>
1352
+ `}};c.styles=[a.W5,a.fD,s.A],l([(0,r.MZ)()],c.prototype,"icon",void 0),c=l([(0,n.E)("wui-input-element")],c)},60891:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(89058),l=i(50731),c=i(16158),d=i(93224),u=i(5813),p=i(11553),h=i(94768),w=(i(98191),i(61652),i(38753)),g=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let b=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.wallets=[],this.loading=!1,u.w.isTelegram()&&u.w.isIos()&&(this.loading=!s.x.state.wcUri,this.unsubscribe.push(s.x.subscribeKey("wcUri",t=>this.loading=!t)))}render(){const{connectors:t}=l.a.state,{customWallets:e,featuredWalletIds:i}=c.H.state,r=p.i.getRecentWallets(),n=t.find(t=>"walletConnect"===t.id),s=t.filter(t=>"INJECTED"===t.type||"ANNOUNCED"===t.type||"MULTI_CHAIN"===t.type).filter(t=>"Browser Wallet"!==t.name);if(!n)return null;if(i||e||!this.wallets.length)return this.style.cssText="display: none",null;const u=s.length+r.length,h=Math.max(0,2-u),g=w.A.filterOutDuplicateWallets(this.wallets).slice(0,h);return g.length?o.qy`
1353
+ <wui-flex flexDirection="column" gap="xs">
1354
+ ${g.map(t=>o.qy`
1355
+ <wui-list-wallet
1356
+ imageSrc=${(0,a.J)(d.$.getWalletImage(t))}
1357
+ name=${t?.name??"Unknown"}
1358
+ @click=${()=>this.onConnectWallet(t)}
1359
+ tabIdx=${(0,a.J)(this.tabIdx)}
1360
+ ?loading=${this.loading}
1361
+ >
1362
+ </wui-list-wallet>
1363
+ `)}
1364
+ </wui-flex>
1365
+ `:(this.style.cssText="display: none",null)}onConnectWallet(t){if(this.loading)return;const e=l.a.getConnector(t.id,t.rdns);e?n.I.push("ConnectingExternal",{connector:e}):n.I.push("ConnectingWalletConnect",{wallet:t})}};g([(0,r.MZ)()],b.prototype,"tabIdx",void 0),g([(0,r.MZ)()],b.prototype,"wallets",void 0),g([(0,r.wk)()],b.prototype,"loading",void 0),b=g([(0,h.EM)("w3m-connect-recommended-widget")],b)},61652:(t,e,i)=>{i(69693)},61896:(t,e,i)=>{i.d(e,{o:()=>w});var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(89058),l=i(41430),c=i(26545),d=i(93224),u=i(5813),p=(i(4436),i(98191),i(46569),i(38417),i(78872),i(22703),i(96975),i(75429),i(24581),i(44940)),h=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};class w extends o.WF{constructor(){super(),this.wallet=n.I.state.data?.wallet,this.connector=n.I.state.data?.connector,this.timeout=void 0,this.secondaryBtnIcon="refresh",this.onConnect=void 0,this.onRender=void 0,this.onAutoConnect=void 0,this.isWalletConnect=!0,this.unsubscribe=[],this.imageSrc=d.$.getWalletImage(this.wallet)??d.$.getConnectorImage(this.connector),this.name=this.wallet?.name??this.connector?.name??"Wallet",this.isRetrying=!1,this.uri=s.x.state.wcUri,this.error=s.x.state.wcError,this.ready=!1,this.showRetry=!1,this.secondaryBtnLabel="Try again",this.secondaryLabel="Accept connection request in the wallet",this.buffering=!1,this.isLoading=!1,this.isMobile=!1,this.onRetry=void 0,this.unsubscribe.push(s.x.subscribeKey("wcUri",t=>{this.uri=t,this.isRetrying&&this.onRetry&&(this.isRetrying=!1,this.onConnect?.())}),s.x.subscribeKey("wcError",t=>this.error=t),s.x.subscribeKey("buffering",t=>this.buffering=t)),(u.w.isTelegram()||u.w.isSafari())&&u.w.isIos()&&s.x.state.wcUri&&this.onConnect?.()}firstUpdated(){this.onAutoConnect?.(),this.showRetry=!this.onAutoConnect}disconnectedCallback(){this.unsubscribe.forEach(t=>t()),clearTimeout(this.timeout)}render(){this.onRender?.(),this.onShowRetry();const t=this.error?"Connection can be declined if a previous request is still active":this.secondaryLabel;let e=`Continue in ${this.name}`;return this.buffering&&(e="Connecting..."),this.error&&(e="Connection declined"),o.qy`
1366
+ <wui-flex
1367
+ data-error=${(0,a.J)(this.error)}
1368
+ data-retry=${this.showRetry}
1369
+ flexDirection="column"
1370
+ alignItems="center"
1371
+ .padding=${["3xl","xl","xl","xl"]}
1372
+ gap="xl"
1373
+ >
1374
+ <wui-flex justifyContent="center" alignItems="center">
1375
+ <wui-wallet-image size="lg" imageSrc=${(0,a.J)(this.imageSrc)}></wui-wallet-image>
1376
+
1377
+ ${this.error?null:this.loaderTemplate()}
1378
+
1379
+ <wui-icon-box
1380
+ backgroundColor="error-100"
1381
+ background="opaque"
1382
+ iconColor="error-100"
1383
+ icon="close"
1384
+ size="sm"
1385
+ border
1386
+ borderColor="wui-color-bg-125"
1387
+ ></wui-icon-box>
1388
+ </wui-flex>
1389
+
1390
+ <wui-flex flexDirection="column" alignItems="center" gap="xs">
1391
+ <wui-text variant="paragraph-500" color=${this.error?"error-100":"fg-100"}>
1392
+ ${e}
1393
+ </wui-text>
1394
+ <wui-text align="center" variant="small-500" color="fg-200">${t}</wui-text>
1395
+ </wui-flex>
1396
+
1397
+ ${this.secondaryBtnLabel?o.qy`
1398
+ <wui-button
1399
+ variant="accent"
1400
+ size="md"
1401
+ ?disabled=${this.isRetrying||!this.error&&this.buffering||this.isLoading}
1402
+ @click=${this.onTryAgain.bind(this)}
1403
+ data-testid="w3m-connecting-widget-secondary-button"
1404
+ >
1405
+ <wui-icon color="inherit" slot="iconLeft" name=${this.secondaryBtnIcon}></wui-icon>
1406
+ ${this.secondaryBtnLabel}
1407
+ </wui-button>
1408
+ `:null}
1409
+ </wui-flex>
1410
+
1411
+ ${this.isWalletConnect?o.qy`
1412
+ <wui-flex .padding=${["0","xl","xl","xl"]} justifyContent="center">
1413
+ <wui-link @click=${this.onCopyUri} color="fg-200" data-testid="wui-link-copy">
1414
+ <wui-icon size="xs" color="fg-200" slot="iconLeft" name="copy"></wui-icon>
1415
+ Copy link
1416
+ </wui-link>
1417
+ </wui-flex>
1418
+ `:null}
1419
+
1420
+ <w3m-mobile-download-links .wallet=${this.wallet}></w3m-mobile-download-links>
1421
+ `}onShowRetry(){if(this.error&&!this.showRetry){this.showRetry=!0;const t=this.shadowRoot?.querySelector("wui-button");t?.animate([{opacity:0},{opacity:1}],{fill:"forwards",easing:"ease"})}}onTryAgain(){this.buffering||(s.x.setWcError(!1),this.onRetry?(this.isRetrying=!0,this.onRetry?.()):this.onConnect?.())}loaderTemplate(){const t=c.W.state.themeVariables["--w3m-border-radius-master"],e=t?parseInt(t.replace("px",""),10):4;return o.qy`<wui-loading-thumbnail radius=${9*e}></wui-loading-thumbnail>`}onCopyUri(){try{this.uri&&(u.w.copyToClopboard(this.uri),l.P.showSuccess("Link copied"))}catch{l.P.showError("Failed to copy")}}}w.styles=p.A,h([(0,r.wk)()],w.prototype,"isRetrying",void 0),h([(0,r.wk)()],w.prototype,"uri",void 0),h([(0,r.wk)()],w.prototype,"error",void 0),h([(0,r.wk)()],w.prototype,"ready",void 0),h([(0,r.wk)()],w.prototype,"showRetry",void 0),h([(0,r.wk)()],w.prototype,"secondaryBtnLabel",void 0),h([(0,r.wk)()],w.prototype,"secondaryLabel",void 0),h([(0,r.wk)()],w.prototype,"buffering",void 0),h([(0,r.wk)()],w.prototype,"isLoading",void 0),h([(0,r.MZ)({type:Boolean})],w.prototype,"isMobile",void 0),h([(0,r.MZ)()],w.prototype,"onRetry",void 0)},62427:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=(i(21348),i(66501),i(62247),i(50798),i(75028),i(24210)),s=i(27305),l=(i(38916),i(43781)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.variant="icon",this.disabled=!1,this.imageSrc=void 0,this.alt=void 0,this.chevron=!1,this.loading=!1}render(){return o.qy`
1422
+ <button
1423
+ ?disabled=${!!this.loading||Boolean(this.disabled)}
1424
+ data-loading=${this.loading}
1425
+ data-iconvariant=${(0,a.J)(this.iconVariant)}
1426
+ tabindex=${(0,a.J)(this.tabIdx)}
1427
+ >
1428
+ ${this.loadingTemplate()} ${this.visualTemplate()}
1429
+ <wui-flex gap="3xs">
1430
+ <slot></slot>
1431
+ </wui-flex>
1432
+ ${this.chevronTemplate()}
1433
+ </button>
1434
+ `}visualTemplate(){if("image"===this.variant&&this.imageSrc)return o.qy`<wui-image src=${this.imageSrc} alt=${this.alt??"list item"}></wui-image>`;if("square"===this.iconVariant&&this.icon&&"icon"===this.variant)return o.qy`<wui-icon name=${this.icon}></wui-icon>`;if("icon"===this.variant&&this.icon&&this.iconVariant){const t=["blue","square-blue"].includes(this.iconVariant)?"accent-100":"fg-200",e="square-blue"===this.iconVariant?"mdl":"md",i=this.iconSize?this.iconSize:e;return o.qy`
1435
+ <wui-icon-box
1436
+ data-variant=${this.iconVariant}
1437
+ icon=${this.icon}
1438
+ iconSize=${i}
1439
+ background="transparent"
1440
+ iconColor=${t}
1441
+ backgroundColor=${t}
1442
+ size=${e}
1443
+ ></wui-icon-box>
1444
+ `}return null}loadingTemplate(){return this.loading?o.qy`<wui-loading-spinner
1445
+ data-testid="wui-list-item-loading-spinner"
1446
+ color="fg-300"
1447
+ ></wui-loading-spinner>`:o.qy``}chevronTemplate(){return this.chevron?o.qy`<wui-icon size="inherit" color="fg-200" name="chevronRight"></wui-icon>`:null}};d.styles=[n.W5,n.fD,l.A],c([(0,r.MZ)()],d.prototype,"icon",void 0),c([(0,r.MZ)()],d.prototype,"iconSize",void 0),c([(0,r.MZ)()],d.prototype,"tabIdx",void 0),c([(0,r.MZ)()],d.prototype,"variant",void 0),c([(0,r.MZ)()],d.prototype,"iconVariant",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"disabled",void 0),c([(0,r.MZ)()],d.prototype,"imageSrc",void 0),c([(0,r.MZ)()],d.prototype,"alt",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"chevron",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"loading",void 0),d=c([(0,s.E)("wui-list-item")],d)},64668:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1448
+ :host {
1449
+ position: relative;
1450
+ user-select: none;
1451
+ display: block;
1452
+ overflow: hidden;
1453
+ aspect-ratio: 1 / 1;
1454
+ width: var(--local-size);
1455
+ }
1456
+
1457
+ :host([data-theme='dark']) {
1458
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px);
1459
+ background-color: var(--wui-color-inverse-100);
1460
+ padding: var(--wui-spacing-l);
1461
+ }
1462
+
1463
+ :host([data-theme='light']) {
1464
+ box-shadow: 0 0 0 1px var(--wui-color-bg-125);
1465
+ background-color: var(--wui-color-bg-125);
1466
+ }
1467
+
1468
+ :host([data-clear='true']) > wui-icon {
1469
+ display: none;
1470
+ }
1471
+
1472
+ svg:first-child,
1473
+ wui-image,
1474
+ wui-icon {
1475
+ position: absolute;
1476
+ top: 50%;
1477
+ left: 50%;
1478
+ transform: translateY(-50%) translateX(-50%);
1479
+ }
1480
+
1481
+ wui-image {
1482
+ width: 25%;
1483
+ height: 25%;
1484
+ border-radius: var(--wui-border-radius-xs);
1485
+ }
1486
+
1487
+ wui-icon {
1488
+ width: 100%;
1489
+ height: 100%;
1490
+ color: var(--local-icon-color) !important;
1491
+ transform: translateY(-50%) translateX(-50%) scale(0.25);
1492
+ }
1493
+ `},64768:(t,e,i)=>{i.d(e,{K:()=>c,_:()=>n});var o=i(80181),r=i(75430),a=i(16655);const n=()=>new s;class s{}const l=new WeakMap,c=(0,a.u$)(class extends r.Kq{render(t){return o.s6}update(t,[e]){const i=e!==this.G;return i&&void 0!==this.G&&this.rt(void 0),(i||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),o.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let i=l.get(e);void 0===i&&(i=new WeakMap,l.set(e,i)),void 0!==i.get(this.G)&&this.G.call(this.ht,void 0),i.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?l.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},67198:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(3901),n=(i(68272),i(24210)),s=i(27305),l=i(43378),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.type="wallet"}render(){return o.qy`
1494
+ ${this.shimmerTemplate()}
1495
+ <wui-shimmer width="56px" height="20px" borderRadius="xs"></wui-shimmer>
1496
+ `}shimmerTemplate(){return"network"===this.type?o.qy` <wui-shimmer
1497
+ data-type=${this.type}
1498
+ width="48px"
1499
+ height="54px"
1500
+ borderRadius="xs"
1501
+ ></wui-shimmer>
1502
+ ${a.a}`:o.qy`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}};d.styles=[n.W5,n.fD,l.A],c([(0,r.MZ)()],d.prototype,"type",void 0),d=c([(0,s.E)("wui-card-select-loader")],d)},68128:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1503
+ @keyframes fadein {
1504
+ from {
1505
+ opacity: 0;
1506
+ }
1507
+ to {
1508
+ opacity: 1;
1509
+ }
1510
+ }
1511
+
1512
+ wui-shimmer {
1513
+ width: 100%;
1514
+ aspect-ratio: 1 / 1;
1515
+ border-radius: clamp(0px, var(--wui-border-radius-l), 40px) !important;
1516
+ }
1517
+
1518
+ wui-qr-code {
1519
+ opacity: 0;
1520
+ animation-duration: 200ms;
1521
+ animation-timing-function: ease;
1522
+ animation-name: fadein;
1523
+ animation-fill-mode: forwards;
1524
+ }
1525
+ `},68237:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(93224),s=i(94768),l=(i(98191),i(46569),i(1749),i(96975),i(75429),i(49039)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(),this.observer=new IntersectionObserver(()=>{}),this.visible=!1,this.imageSrc=void 0,this.imageLoading=!1,this.wallet=void 0,this.observer=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?(this.visible=!0,this.fetchImageSrc()):this.visible=!1})},{threshold:.01})}firstUpdated(){this.observer.observe(this)}disconnectedCallback(){this.observer.disconnect()}render(){const t="certified"===this.wallet?.badge_type;return o.qy`
1526
+ <button>
1527
+ ${this.imageTemplate()}
1528
+ <wui-flex flexDirection="row" alignItems="center" justifyContent="center" gap="3xs">
1529
+ <wui-text
1530
+ variant="tiny-500"
1531
+ color="inherit"
1532
+ class=${(0,a.J)(t?"certified":void 0)}
1533
+ >${this.wallet?.name}</wui-text
1534
+ >
1535
+ ${t?o.qy`<wui-icon size="sm" name="walletConnectBrown"></wui-icon>`:null}
1536
+ </wui-flex>
1537
+ </button>
1538
+ `}imageTemplate(){return!this.visible&&!this.imageSrc||this.imageLoading?this.shimmerTemplate():o.qy`
1539
+ <wui-wallet-image
1540
+ size="md"
1541
+ imageSrc=${(0,a.J)(this.imageSrc)}
1542
+ name=${this.wallet?.name}
1543
+ .installed=${this.wallet?.installed}
1544
+ badgeSize="sm"
1545
+ >
1546
+ </wui-wallet-image>
1547
+ `}shimmerTemplate(){return o.qy`<wui-shimmer width="56px" height="56px" borderRadius="xs"></wui-shimmer>`}async fetchImageSrc(){this.wallet&&(this.imageSrc=n.$.getWalletImage(this.wallet),this.imageSrc||(this.imageLoading=!0,this.imageSrc=await n.$.fetchWalletImage(this.wallet.image_id),this.imageLoading=!1))}};d.styles=l.A,c([(0,r.wk)()],d.prototype,"visible",void 0),c([(0,r.wk)()],d.prototype,"imageSrc",void 0),c([(0,r.wk)()],d.prototype,"imageLoading",void 0),c([(0,r.MZ)()],d.prototype,"wallet",void 0),d=c([(0,s.EM)("w3m-all-wallets-list-item")],d)},68272:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27305),n=i(69364),s=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let l=class extends o.WF{constructor(){super(...arguments),this.width="",this.height="",this.borderRadius="m",this.variant="default"}render(){return this.style.cssText=`\n width: ${this.width};\n height: ${this.height};\n border-radius: clamp(0px,var(--wui-border-radius-${this.borderRadius}), 40px);\n `,o.qy`<slot></slot>`}};l.styles=[n.A],s([(0,r.MZ)()],l.prototype,"width",void 0),s([(0,r.MZ)()],l.prototype,"height",void 0),s([(0,r.MZ)()],l.prototype,"borderRadius",void 0),s([(0,r.MZ)()],l.prototype,"variant",void 0),l=s([(0,a.E)("wui-shimmer")],l)},69180:(t,e,i)=>{i(76021)},69364:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1548
+ :host {
1549
+ display: block;
1550
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-005);
1551
+ background: linear-gradient(
1552
+ 120deg,
1553
+ var(--wui-color-bg-200) 5%,
1554
+ var(--wui-color-bg-200) 48%,
1555
+ var(--wui-color-bg-300) 55%,
1556
+ var(--wui-color-bg-300) 60%,
1557
+ var(--wui-color-bg-300) calc(60% + 10px),
1558
+ var(--wui-color-bg-200) calc(60% + 12px),
1559
+ var(--wui-color-bg-200) 100%
1560
+ );
1561
+ background-size: 250%;
1562
+ animation: shimmer 3s linear infinite reverse;
1563
+ }
1564
+
1565
+ :host([variant='light']) {
1566
+ background: linear-gradient(
1567
+ 120deg,
1568
+ var(--wui-color-bg-150) 5%,
1569
+ var(--wui-color-bg-150) 48%,
1570
+ var(--wui-color-bg-200) 55%,
1571
+ var(--wui-color-bg-200) 60%,
1572
+ var(--wui-color-bg-200) calc(60% + 10px),
1573
+ var(--wui-color-bg-150) calc(60% + 12px),
1574
+ var(--wui-color-bg-150) 100%
1575
+ );
1576
+ background-size: 250%;
1577
+ }
1578
+
1579
+ @keyframes shimmer {
1580
+ from {
1581
+ background-position: -250% 0;
1582
+ }
1583
+ to {
1584
+ background-position: 250% 0;
1585
+ }
1586
+ }
1587
+ `},69693:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=(i(21348),i(50798),i(38916),i(24210)),s=i(27305),l=(i(94579),i(53667),i(96836),i(49759)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.walletImages=[],this.imageSrc="",this.name="",this.tabIdx=void 0,this.installed=!1,this.disabled=!1,this.showAllWallets=!1,this.loading=!1,this.loadingSpinnerColor="accent-100"}render(){return o.qy`
1588
+ <button ?disabled=${this.disabled} tabindex=${(0,a.J)(this.tabIdx)}>
1589
+ ${this.templateAllWallets()} ${this.templateWalletImage()}
1590
+ <wui-text variant="paragraph-500" color="inherit">${this.name}</wui-text>
1591
+ ${this.templateStatus()}
1592
+ </button>
1593
+ `}templateAllWallets(){return this.showAllWallets&&this.imageSrc?o.qy` <wui-all-wallets-image .imageeSrc=${this.imageSrc}> </wui-all-wallets-image> `:this.showAllWallets&&this.walletIcon?o.qy` <wui-wallet-image .walletIcon=${this.walletIcon} size="sm"> </wui-wallet-image> `:null}templateWalletImage(){return!this.showAllWallets&&this.imageSrc?o.qy`<wui-wallet-image
1594
+ size="sm"
1595
+ imageSrc=${this.imageSrc}
1596
+ name=${this.name}
1597
+ .installed=${this.installed}
1598
+ ></wui-wallet-image>`:this.showAllWallets||this.imageSrc?null:o.qy`<wui-wallet-image size="sm" name=${this.name}></wui-wallet-image>`}templateStatus(){return this.loading?o.qy`<wui-loading-spinner
1599
+ size="lg"
1600
+ color=${this.loadingSpinnerColor}
1601
+ ></wui-loading-spinner>`:this.tagLabel&&this.tagVariant?o.qy`<wui-tag variant=${this.tagVariant}>${this.tagLabel}</wui-tag>`:this.icon?o.qy`<wui-icon color="inherit" size="sm" name=${this.icon}></wui-icon>`:null}};d.styles=[n.W5,n.fD,l.A],c([(0,r.MZ)({type:Array})],d.prototype,"walletImages",void 0),c([(0,r.MZ)()],d.prototype,"imageSrc",void 0),c([(0,r.MZ)()],d.prototype,"name",void 0),c([(0,r.MZ)()],d.prototype,"tagLabel",void 0),c([(0,r.MZ)()],d.prototype,"tagVariant",void 0),c([(0,r.MZ)()],d.prototype,"icon",void 0),c([(0,r.MZ)()],d.prototype,"walletIcon",void 0),c([(0,r.MZ)()],d.prototype,"tabIdx",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"installed",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"disabled",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"showAllWallets",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"loading",void 0),c([(0,r.MZ)({type:String})],d.prototype,"loadingSpinnerColor",void 0),d=c([(0,s.E)("wui-list-wallet")],d)},73451:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1602
+ :host {
1603
+ display: inline-flex;
1604
+ background-color: var(--wui-color-gray-glass-002);
1605
+ border-radius: var(--wui-border-radius-3xl);
1606
+ padding: var(--wui-spacing-3xs);
1607
+ position: relative;
1608
+ height: 36px;
1609
+ min-height: 36px;
1610
+ overflow: hidden;
1611
+ }
1612
+
1613
+ :host::before {
1614
+ content: '';
1615
+ position: absolute;
1616
+ pointer-events: none;
1617
+ top: 4px;
1618
+ left: 4px;
1619
+ display: block;
1620
+ width: var(--local-tab-width);
1621
+ height: 28px;
1622
+ border-radius: var(--wui-border-radius-3xl);
1623
+ background-color: var(--wui-color-gray-glass-002);
1624
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1625
+ transform: translateX(calc(var(--local-tab) * var(--local-tab-width)));
1626
+ transition: transform var(--wui-ease-out-power-1) var(--wui-duration-md);
1627
+ will-change: background-color, opacity;
1628
+ }
1629
+
1630
+ :host([data-type='flex'])::before {
1631
+ left: 3px;
1632
+ transform: translateX(calc((var(--local-tab) * 34px) + (var(--local-tab) * 4px)));
1633
+ }
1634
+
1635
+ :host([data-type='flex']) {
1636
+ display: flex;
1637
+ padding: 0px 0px 0px 12px;
1638
+ gap: 4px;
1639
+ }
1640
+
1641
+ :host([data-type='flex']) > button > wui-text {
1642
+ position: absolute;
1643
+ left: 18px;
1644
+ opacity: 0;
1645
+ }
1646
+
1647
+ button[data-active='true'] > wui-icon,
1648
+ button[data-active='true'] > wui-text {
1649
+ color: var(--wui-color-fg-100);
1650
+ }
1651
+
1652
+ button[data-active='false'] > wui-icon,
1653
+ button[data-active='false'] > wui-text {
1654
+ color: var(--wui-color-fg-200);
1655
+ }
1656
+
1657
+ button[data-active='true']:disabled,
1658
+ button[data-active='false']:disabled {
1659
+ background-color: transparent;
1660
+ opacity: 0.5;
1661
+ cursor: not-allowed;
1662
+ }
1663
+
1664
+ button[data-active='true']:disabled > wui-text {
1665
+ color: var(--wui-color-fg-200);
1666
+ }
1667
+
1668
+ button[data-active='false']:disabled > wui-text {
1669
+ color: var(--wui-color-fg-300);
1670
+ }
1671
+
1672
+ button > wui-icon,
1673
+ button > wui-text {
1674
+ pointer-events: none;
1675
+ transition: color var(--wui-e ase-out-power-1) var(--wui-duration-md);
1676
+ will-change: color;
1677
+ }
1678
+
1679
+ button {
1680
+ width: var(--local-tab-width);
1681
+ transition: background-color var(--wui-ease-out-power-1) var(--wui-duration-md);
1682
+ will-change: background-color;
1683
+ }
1684
+
1685
+ :host([data-type='flex']) > button {
1686
+ width: 34px;
1687
+ position: relative;
1688
+ display: flex;
1689
+ justify-content: flex-start;
1690
+ }
1691
+
1692
+ button:hover:enabled,
1693
+ button:active:enabled {
1694
+ background-color: transparent !important;
1695
+ }
1696
+
1697
+ button:hover:enabled > wui-icon,
1698
+ button:active:enabled > wui-icon {
1699
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
1700
+ color: var(--wui-color-fg-125);
1701
+ }
1702
+
1703
+ button:hover:enabled > wui-text,
1704
+ button:active:enabled > wui-text {
1705
+ transition: all var(--wui-ease-out-power-1) var(--wui-duration-lg);
1706
+ color: var(--wui-color-fg-125);
1707
+ }
1708
+
1709
+ button {
1710
+ border-radius: var(--wui-border-radius-3xl);
1711
+ }
1712
+ `},75429:(t,e,i)=>{i(96836)},75457:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(50731),l=i(93224),c=i(5813),d=i(94768),u=(i(98191),i(61652),i(24313)),p=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let h=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=s.a.state.connectors,this.unsubscribe.push(s.a.subscribeKey("connectors",t=>this.connectors=t))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const t=this.connectors.filter(t=>"ANNOUNCED"===t.type);return t?.length?o.qy`
1713
+ <wui-flex flexDirection="column" gap="xs">
1714
+ ${t.filter(u.g.showConnector).map(t=>o.qy`
1715
+ <wui-list-wallet
1716
+ imageSrc=${(0,a.J)(l.$.getConnectorImage(t))}
1717
+ name=${t.name??"Unknown"}
1718
+ @click=${()=>this.onConnector(t)}
1719
+ tagVariant="success"
1720
+ tagLabel="installed"
1721
+ data-testid=${`wallet-selector-${t.id}`}
1722
+ .installed=${!0}
1723
+ tabIdx=${(0,a.J)(this.tabIdx)}
1724
+ >
1725
+ </wui-list-wallet>
1726
+ `)}
1727
+ </wui-flex>
1728
+ `:(this.style.cssText="display: none",null)}onConnector(t){"walletConnect"===t.id?c.w.isMobile()?n.I.push("AllWallets"):n.I.push("ConnectingWalletConnect"):n.I.push("ConnectingExternal",{connector:t})}};p([(0,r.MZ)()],h.prototype,"tabIdx",void 0),p([(0,r.wk)()],h.prototype,"connectors",void 0),h=p([(0,d.EM)("w3m-connect-announced-widget")],h)},76021:(t,e,i)=>{var o=i(35842),r=i(19552),a=(i(60346),i(24210)),n=i(27305),s=(i(28965),i(1943));let l=class extends o.WF{constructor(){super(...arguments),this.inputComponentRef=(0,r._)()}render(){return o.qy`
1729
+ <wui-input-text
1730
+ ${(0,r.K)(this.inputComponentRef)}
1731
+ placeholder="Search wallet"
1732
+ icon="search"
1733
+ type="search"
1734
+ enterKeyHint="search"
1735
+ size="sm"
1736
+ >
1737
+ <wui-input-element @click=${this.clearValue} icon="close"></wui-input-element>
1738
+ </wui-input-text>
1739
+ `}clearValue(){const t=this.inputComponentRef.value,e=t?.inputElementRef.value;e&&(e.value="",e.focus(),e.dispatchEvent(new Event("input")))}};l.styles=[a.W5,s.A],l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n}([(0,n.E)("wui-search-bar")],l)},76611:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(50731),n=i(40868),s=i(94768),l=(i(98191),i(30104),i(38417),i(24882),i(96975),i(38753)),c=(i(68237),i(29005)),d=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let u=class extends o.WF{constructor(){super(...arguments),this.prevQuery="",this.prevBadge=void 0,this.loading=!0,this.query=""}render(){return this.onSearch(),this.loading?o.qy`<wui-loading-spinner color="accent-100"></wui-loading-spinner>`:this.walletsTemplate()}async onSearch(){this.query.trim()===this.prevQuery.trim()&&this.badge===this.prevBadge||(this.prevQuery=this.query,this.prevBadge=this.badge,this.loading=!0,await n.N.searchWallet({search:this.query,badge:this.badge}),this.loading=!1)}walletsTemplate(){const{search:t}=n.N.state,e=l.A.markWalletsAsInstalled(t);return t.length?o.qy`
1740
+ <wui-grid
1741
+ data-testid="wallet-list"
1742
+ .padding=${["0","s","s","s"]}
1743
+ rowGap="l"
1744
+ columnGap="xs"
1745
+ justifyContent="space-between"
1746
+ >
1747
+ ${e.map(t=>o.qy`
1748
+ <w3m-all-wallets-list-item
1749
+ @click=${()=>this.onConnectWallet(t)}
1750
+ .wallet=${t}
1751
+ data-testid="wallet-search-item-${t.id}"
1752
+ ></w3m-all-wallets-list-item>
1753
+ `)}
1754
+ </wui-grid>
1755
+ `:o.qy`
1756
+ <wui-flex
1757
+ data-testid="no-wallet-found"
1758
+ justifyContent="center"
1759
+ alignItems="center"
1760
+ gap="s"
1761
+ flexDirection="column"
1762
+ >
1763
+ <wui-icon-box
1764
+ size="lg"
1765
+ iconColor="fg-200"
1766
+ backgroundColor="fg-300"
1767
+ icon="wallet"
1768
+ background="transparent"
1769
+ ></wui-icon-box>
1770
+ <wui-text data-testid="no-wallet-found-text" color="fg-200" variant="paragraph-500">
1771
+ No Wallet found
1772
+ </wui-text>
1773
+ </wui-flex>
1774
+ `}onConnectWallet(t){a.a.selectWalletConnector(t)}};u.styles=c.A,d([(0,r.wk)()],u.prototype,"loading",void 0),d([(0,r.MZ)()],u.prototype,"query",void 0),d([(0,r.MZ)()],u.prototype,"badge",void 0),u=d([(0,s.EM)("w3m-all-wallets-search")],u)},77112:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(21348),i(66501),i(81621)),n=i(24210),s=i(27305),l=i(64668),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.uri="",this.size=0,this.theme="dark",this.imageSrc=void 0,this.alt=void 0,this.arenaClear=void 0,this.farcaster=void 0}render(){return this.dataset.theme=this.theme,this.dataset.clear=String(this.arenaClear),this.style.cssText=`\n --local-size: ${this.size}px;\n --local-icon-color: ${this.color??"#3396ff"}\n `,o.qy`${this.templateVisual()} ${this.templateSvg()}`}templateSvg(){const t="light"===this.theme?this.size:this.size-32;return o.JW`
1775
+ <svg height=${t} width=${t}>
1776
+ ${a.F.generate({uri:this.uri,size:t,logoSize:this.arenaClear?0:t/4,dotColor:this.color})}
1777
+ </svg>
1778
+ `}templateVisual(){return this.imageSrc?o.qy`<wui-image src=${this.imageSrc} alt=${this.alt??"logo"}></wui-image>`:this.farcaster?o.qy`<wui-icon
1779
+ class="farcaster"
1780
+ size="inherit"
1781
+ color="inherit"
1782
+ name="farcaster"
1783
+ ></wui-icon>`:o.qy`<wui-icon size="inherit" color="inherit" name="walletConnect"></wui-icon>`}};d.styles=[n.W5,l.A],c([(0,r.MZ)()],d.prototype,"uri",void 0),c([(0,r.MZ)({type:Number})],d.prototype,"size",void 0),c([(0,r.MZ)()],d.prototype,"theme",void 0),c([(0,r.MZ)()],d.prototype,"imageSrc",void 0),c([(0,r.MZ)()],d.prototype,"alt",void 0),c([(0,r.MZ)()],d.prototype,"color",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"arenaClear",void 0),c([(0,r.MZ)({type:Boolean})],d.prototype,"farcaster",void 0),d=c([(0,s.E)("wui-qr-code")],d)},77717:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(89058),l=i(50731),c=i(16158),d=i(93224),u=i(5813),p=i(11553),h=i(94768),w=(i(98191),i(61652),function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n});let g=class extends o.WF{constructor(){super(),this.unsubscribe=[],this.tabIdx=void 0,this.connectors=l.a.state.connectors,this.loading=!1,this.unsubscribe.push(l.a.subscribeKey("connectors",t=>this.connectors=t)),u.w.isTelegram()&&u.w.isIos()&&(this.loading=!s.x.state.wcUri,this.unsubscribe.push(s.x.subscribeKey("wcUri",t=>this.loading=!t)))}disconnectedCallback(){this.unsubscribe.forEach(t=>t())}render(){const{customWallets:t}=c.H.state;if(!t?.length)return this.style.cssText="display: none",null;const e=this.filterOutDuplicateWallets(t);return o.qy`<wui-flex flexDirection="column" gap="xs">
1784
+ ${e.map(t=>o.qy`
1785
+ <wui-list-wallet
1786
+ imageSrc=${(0,a.J)(d.$.getWalletImage(t))}
1787
+ name=${t.name??"Unknown"}
1788
+ @click=${()=>this.onConnectWallet(t)}
1789
+ data-testid=${`wallet-selector-${t.id}`}
1790
+ tabIdx=${(0,a.J)(this.tabIdx)}
1791
+ ?loading=${this.loading}
1792
+ >
1793
+ </wui-list-wallet>
1794
+ `)}
1795
+ </wui-flex>`}filterOutDuplicateWallets(t){const e=p.i.getRecentWallets(),i=this.connectors.map(t=>t.info?.rdns).filter(Boolean),o=e.map(t=>t.rdns).filter(Boolean),r=i.concat(o);if(r.includes("io.metamask.mobile")&&u.w.isMobile()){const t=r.indexOf("io.metamask.mobile");r[t]="io.metamask"}return t.filter(t=>!r.includes(String(t?.rdns)))}onConnectWallet(t){this.loading||n.I.push("ConnectingWalletConnect",{wallet:t})}};w([(0,r.MZ)()],g.prototype,"tabIdx",void 0),w([(0,r.wk)()],g.prototype,"connectors",void 0),w([(0,r.wk)()],g.prototype,"loading",void 0),g=w([(0,h.EM)("w3m-connect-custom-widget")],g)},78872:(t,e,i)=>{i(56229)},81621:(t,e,i)=>{i.d(e,{F:()=>n});var o=i(66484),r=i(35842);function a(t,e,i){return t!==e&&(t-e<0?e-t:t-e)<=i+.1}const n={generate({uri:t,size:e,logoSize:i,dotColor:n="#141414"}){const s=[],l=function(t){const e=Array.prototype.slice.call(o.create(t,{errorCorrectionLevel:"Q"}).modules.data,0),i=Math.sqrt(e.length);return e.reduce((t,e,o)=>(o%i===0?t.push([e]):t[t.length-1].push(e))&&t,[])}(t),c=e/l.length,d=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];d.forEach(({x:t,y:e})=>{const i=(l.length-7)*c*t,o=(l.length-7)*c*e,a=.45;for(let t=0;t<d.length;t+=1){const e=c*(7-2*t);s.push(r.JW`
1796
+ <rect
1797
+ fill=${2===t?n:"transparent"}
1798
+ width=${0===t?e-5:e}
1799
+ rx= ${0===t?(e-5)*a:e*a}
1800
+ ry= ${0===t?(e-5)*a:e*a}
1801
+ stroke=${n}
1802
+ stroke-width=${0===t?5:0}
1803
+ height=${0===t?e-5:e}
1804
+ x= ${0===t?o+c*t+2.5:o+c*t}
1805
+ y= ${0===t?i+c*t+2.5:i+c*t}
1806
+ />
1807
+ `)}});const u=Math.floor((i+25)/c),p=l.length/2-u/2,h=l.length/2+u/2-1,w=[];l.forEach((t,e)=>{t.forEach((t,i)=>{if(l[e][i]&&!(e<7&&i<7||e>l.length-8&&i<7||e<7&&i>l.length-8||e>p&&e<h&&i>p&&i<h)){const t=e*c+c/2,o=i*c+c/2;w.push([t,o])}})});const g={};return w.forEach(([t,e])=>{g[t]?g[t]?.push(e):g[t]=[e]}),Object.entries(g).map(([t,e])=>{const i=e.filter(t=>e.every(e=>!a(t,e,c)));return[Number(t),i]}).forEach(([t,e])=>{e.forEach(e=>{s.push(r.JW`<circle cx=${t} cy=${e} fill=${n} r=${c/2.5} />`)})}),Object.entries(g).filter(([t,e])=>e.length>1).map(([t,e])=>{const i=e.filter(t=>e.some(e=>a(t,e,c)));return[Number(t),i]}).map(([t,e])=>{e.sort((t,e)=>t<e?-1:1);const i=[];for(const t of e){const e=i.find(e=>e.some(e=>a(t,e,c)));e?e.push(t):i.push([t])}return[t,i.map(t=>[t[0],t[t.length-1]])]}).forEach(([t,e])=>{e.forEach(([e,i])=>{s.push(r.JW`
1808
+ <line
1809
+ x1=${t}
1810
+ x2=${t}
1811
+ y1=${e}
1812
+ y2=${i}
1813
+ stroke=${n}
1814
+ stroke-width=${c/1.25}
1815
+ stroke-linecap="round"
1816
+ />
1817
+ `)})}),s}}},82695:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
1818
+ :host {
1819
+ position: relative;
1820
+ width: 100%;
1821
+ display: inline-block;
1822
+ color: var(--wui-color-fg-275);
1823
+ }
1824
+
1825
+ input {
1826
+ width: 100%;
1827
+ border-radius: var(--wui-border-radius-xs);
1828
+ box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
1829
+ background: var(--wui-color-gray-glass-002);
1830
+ font-size: var(--wui-font-size-paragraph);
1831
+ letter-spacing: var(--wui-letter-spacing-paragraph);
1832
+ color: var(--wui-color-fg-100);
1833
+ transition:
1834
+ background-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1835
+ border-color var(--wui-ease-inout-power-1) var(--wui-duration-md),
1836
+ box-shadow var(--wui-ease-inout-power-1) var(--wui-duration-md);
1837
+ will-change: background-color, border-color, box-shadow;
1838
+ caret-color: var(--wui-color-accent-100);
1839
+ }
1840
+
1841
+ input:disabled {
1842
+ cursor: not-allowed;
1843
+ border: 1px solid var(--wui-color-gray-glass-010);
1844
+ }
1845
+
1846
+ input:disabled::placeholder,
1847
+ input:disabled + wui-icon {
1848
+ color: var(--wui-color-fg-300);
1849
+ }
1850
+
1851
+ input::placeholder {
1852
+ color: var(--wui-color-fg-275);
1853
+ }
1854
+
1855
+ input:focus:enabled {
1856
+ background-color: var(--wui-color-gray-glass-005);
1857
+ -webkit-box-shadow:
1858
+ inset 0 0 0 1px var(--wui-color-accent-100),
1859
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1860
+ -moz-box-shadow:
1861
+ inset 0 0 0 1px var(--wui-color-accent-100),
1862
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1863
+ box-shadow:
1864
+ inset 0 0 0 1px var(--wui-color-accent-100),
1865
+ 0px 0px 0px 4px var(--wui-box-shadow-blue);
1866
+ }
1867
+
1868
+ input:hover:enabled {
1869
+ background-color: var(--wui-color-gray-glass-005);
1870
+ }
1871
+
1872
+ wui-icon {
1873
+ position: absolute;
1874
+ top: 50%;
1875
+ transform: translateY(-50%);
1876
+ pointer-events: none;
1877
+ }
1878
+
1879
+ .wui-size-sm {
1880
+ padding: 9px var(--wui-spacing-m) 10px var(--wui-spacing-s);
1881
+ }
1882
+
1883
+ wui-icon + .wui-size-sm {
1884
+ padding: 9px var(--wui-spacing-m) 10px 36px;
1885
+ }
1886
+
1887
+ wui-icon[data-input='sm'] {
1888
+ left: var(--wui-spacing-s);
1889
+ }
1890
+
1891
+ .wui-size-md {
1892
+ padding: 15px var(--wui-spacing-m) var(--wui-spacing-l) var(--wui-spacing-m);
1893
+ }
1894
+
1895
+ wui-icon + .wui-size-md,
1896
+ wui-loading-spinner + .wui-size-md {
1897
+ padding: 10.5px var(--wui-spacing-3xl) 10.5px var(--wui-spacing-3xl);
1898
+ }
1899
+
1900
+ wui-icon[data-input='md'] {
1901
+ left: var(--wui-spacing-l);
1902
+ }
1903
+
1904
+ .wui-size-lg {
1905
+ padding: var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-s) var(--wui-spacing-l);
1906
+ letter-spacing: var(--wui-letter-spacing-medium-title);
1907
+ font-size: var(--wui-font-size-medium-title);
1908
+ font-weight: var(--wui-font-weight-light);
1909
+ line-height: 130%;
1910
+ color: var(--wui-color-fg-100);
1911
+ height: 64px;
1912
+ }
1913
+
1914
+ .wui-padding-right-xs {
1915
+ padding-right: var(--wui-spacing-xs);
1916
+ }
1917
+
1918
+ .wui-padding-right-s {
1919
+ padding-right: var(--wui-spacing-s);
1920
+ }
1921
+
1922
+ .wui-padding-right-m {
1923
+ padding-right: var(--wui-spacing-m);
1924
+ }
1925
+
1926
+ .wui-padding-right-l {
1927
+ padding-right: var(--wui-spacing-l);
1928
+ }
1929
+
1930
+ .wui-padding-right-xl {
1931
+ padding-right: var(--wui-spacing-xl);
1932
+ }
1933
+
1934
+ .wui-padding-right-2xl {
1935
+ padding-right: var(--wui-spacing-2xl);
1936
+ }
1937
+
1938
+ .wui-padding-right-3xl {
1939
+ padding-right: var(--wui-spacing-3xl);
1940
+ }
1941
+
1942
+ .wui-padding-right-4xl {
1943
+ padding-right: var(--wui-spacing-4xl);
1944
+ }
1945
+
1946
+ .wui-padding-right-5xl {
1947
+ padding-right: var(--wui-spacing-5xl);
1948
+ }
1949
+
1950
+ wui-icon + .wui-size-lg,
1951
+ wui-loading-spinner + .wui-size-lg {
1952
+ padding-left: 50px;
1953
+ }
1954
+
1955
+ wui-icon[data-input='lg'] {
1956
+ left: var(--wui-spacing-l);
1957
+ }
1958
+
1959
+ .wui-size-mdl {
1960
+ padding: 17.25px var(--wui-spacing-m) 17.25px var(--wui-spacing-m);
1961
+ }
1962
+ wui-icon + .wui-size-mdl,
1963
+ wui-loading-spinner + .wui-size-mdl {
1964
+ padding: 17.25px var(--wui-spacing-3xl) 17.25px 40px;
1965
+ }
1966
+ wui-icon[data-input='mdl'] {
1967
+ left: var(--wui-spacing-m);
1968
+ }
1969
+
1970
+ input:placeholder-shown ~ ::slotted(wui-input-element),
1971
+ input:placeholder-shown ~ ::slotted(wui-icon) {
1972
+ opacity: 0;
1973
+ pointer-events: none;
1974
+ }
1975
+
1976
+ input::-webkit-outer-spin-button,
1977
+ input::-webkit-inner-spin-button {
1978
+ -webkit-appearance: none;
1979
+ margin: 0;
1980
+ }
1981
+
1982
+ input[type='number'] {
1983
+ -moz-appearance: textfield;
1984
+ }
1985
+
1986
+ ::slotted(wui-input-element),
1987
+ ::slotted(wui-icon) {
1988
+ position: absolute;
1989
+ top: 50%;
1990
+ transform: translateY(-50%);
1991
+ }
1992
+
1993
+ ::slotted(wui-input-element) {
1994
+ right: var(--wui-spacing-m);
1995
+ }
1996
+
1997
+ ::slotted(wui-icon) {
1998
+ right: 0px;
1999
+ }
2000
+ `},82976:(t,e,i)=>{i(99557)},88560:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=i(42831),s=i(89058),l=i(50731),c=i(93224),d=i(5813),u=i(94768),p=(i(98191),i(61652),i(24313)),h=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let w=class extends o.WF{constructor(){super(...arguments),this.tabIdx=void 0,this.connectors=[]}render(){const t=this.connectors;return!t?.length||1===t.length&&"Browser Wallet"===t[0]?.name&&!d.w.isMobile()?(this.style.cssText="display: none",null):o.qy`
2001
+ <wui-flex flexDirection="column" gap="xs">
2002
+ ${t.map(t=>{const e=t.info?.rdns;return d.w.isMobile()||"Browser Wallet"!==t.name?e||s.x.checkInstalled()?p.g.showConnector(t)?o.qy`
2003
+ <wui-list-wallet
2004
+ imageSrc=${(0,a.J)(c.$.getConnectorImage(t))}
2005
+ .installed=${!0}
2006
+ name=${t.name??"Unknown"}
2007
+ tagVariant="success"
2008
+ tagLabel="installed"
2009
+ data-testid=${`wallet-selector-${t.id}`}
2010
+ @click=${()=>this.onConnector(t)}
2011
+ tabIdx=${(0,a.J)(this.tabIdx)}
2012
+ >
2013
+ </wui-list-wallet>
2014
+ `:null:(this.style.cssText="display: none",null):null})}
2015
+ </wui-flex>
2016
+ `}onConnector(t){l.a.setActiveConnector(t),n.I.push("ConnectingExternal",{connector:t})}};h([(0,r.MZ)()],w.prototype,"tabIdx",void 0),h([(0,r.MZ)()],w.prototype,"connectors",void 0),w=h([(0,u.EM)("w3m-connect-injected-widget")],w)},88686:(t,e,i)=>{i.d(e,{A:()=>o});const o=i(35842).AH`
2017
+ :host {
2018
+ margin-top: var(--wui-spacing-3xs);
2019
+ }
2020
+ wui-separator {
2021
+ margin: var(--wui-spacing-m) calc(var(--wui-spacing-m) * -1) var(--wui-spacing-xs)
2022
+ calc(var(--wui-spacing-m) * -1);
2023
+ width: calc(100% + var(--wui-spacing-s) * 2);
2024
+ }
2025
+ `},92536:(t,e,i)=>{var o=i(47214),r=i(89058),a=i(14479),n=i(5813),s=i(94768),l=i(61896),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends l.o{constructor(){if(super(),this.isLoading=!0,!this.wallet)throw new Error("w3m-connecting-wc-web: No wallet provided");this.onConnect=this.onConnectProxy.bind(this),this.secondaryBtnLabel="Open",this.secondaryLabel="Open and continue in a new browser tab",this.secondaryBtnIcon="externalLink",this.updateLoadingState(),this.unsubscribe.push(r.x.subscribeKey("wcUri",()=>{this.updateLoadingState()})),a.E.sendEvent({type:"track",event:"SELECT_WALLET",properties:{name:this.wallet.name,platform:"web"}})}updateLoadingState(){this.isLoading=!this.uri}onConnectProxy(){if(this.wallet?.webapp_link&&this.uri)try{this.error=!1;const{webapp_link:t,name:e}=this.wallet,{redirect:i,href:o}=n.w.formatUniversalUrl(t,this.uri);r.x.setWcLinking({name:e,href:o}),r.x.setRecentWallet(this.wallet),n.w.openHref(i,"_blank")}catch{this.error=!0}}};c([(0,o.wk)()],d.prototype,"isLoading",void 0),d=c([(0,s.EM)("w3m-connecting-wc-web")],d)},93153:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(21348),i(50798),i(24210)),n=i(27305),s=i(73451),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.tabs=[],this.onTabChange=()=>null,this.buttons=[],this.disabled=!1,this.localTabWidth="100px",this.activeTab=0,this.isDense=!1}render(){return this.isDense=this.tabs.length>3,this.style.cssText=`\n --local-tab: ${this.activeTab};\n --local-tab-width: ${this.localTabWidth};\n `,this.dataset.type=this.isDense?"flex":"block",this.tabs.map((t,e)=>{const i=e===this.activeTab;return o.qy`
2026
+ <button
2027
+ ?disabled=${this.disabled}
2028
+ @click=${()=>this.onTabClick(e)}
2029
+ data-active=${i}
2030
+ data-testid="tab-${t.label?.toLowerCase()}"
2031
+ >
2032
+ ${this.iconTemplate(t)}
2033
+ <wui-text variant="small-600" color="inherit"> ${t.label} </wui-text>
2034
+ </button>
2035
+ `})}firstUpdated(){this.shadowRoot&&this.isDense&&(this.buttons=[...this.shadowRoot.querySelectorAll("button")],setTimeout(()=>{this.animateTabs(0,!0)},0))}iconTemplate(t){return t.icon?o.qy`<wui-icon size="xs" color="inherit" name=${t.icon}></wui-icon>`:null}onTabClick(t){this.buttons&&this.animateTabs(t,!1),this.activeTab=t,this.onTabChange(t)}animateTabs(t,e){const i=this.buttons[this.activeTab],o=this.buttons[t],r=i?.querySelector("wui-text"),a=o?.querySelector("wui-text"),n=o?.getBoundingClientRect(),s=a?.getBoundingClientRect();i&&r&&!e&&t!==this.activeTab&&(r.animate([{opacity:0}],{duration:50,easing:"ease",fill:"forwards"}),i.animate([{width:"34px"}],{duration:500,easing:"ease",fill:"forwards"})),o&&n&&s&&a&&(t!==this.activeTab||e)&&(this.localTabWidth=`${Math.round(n.width+s.width)+6}px`,o.animate([{width:`${n.width+s.width}px`}],{duration:e?0:500,fill:"forwards",easing:"ease"}),a.animate([{opacity:1}],{duration:e?0:125,delay:e?0:200,fill:"forwards",easing:"ease"}))}};c.styles=[a.W5,a.fD,s.A],l([(0,r.MZ)({type:Array})],c.prototype,"tabs",void 0),l([(0,r.MZ)()],c.prototype,"onTabChange",void 0),l([(0,r.MZ)({type:Array})],c.prototype,"buttons",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"disabled",void 0),l([(0,r.MZ)()],c.prototype,"localTabWidth",void 0),l([(0,r.wk)()],c.prototype,"activeTab",void 0),l([(0,r.wk)()],c.prototype,"isDense",void 0),c=l([(0,n.E)("wui-tabs")],c)},94579:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=(i(75028),i(24210)),s=i(27305),l=(i(38916),i(96836),i(18077)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.walletImages=[]}render(){const t=this.walletImages.length<4;return o.qy`${this.walletImages.slice(0,4).map(({src:t,walletName:e})=>o.qy`
2036
+ <wui-wallet-image
2037
+ size="inherit"
2038
+ imageSrc=${t}
2039
+ name=${(0,a.J)(e)}
2040
+ ></wui-wallet-image>
2041
+ `)}
2042
+ ${t?[...Array(4-this.walletImages.length)].map(()=>o.qy` <wui-wallet-image size="inherit" name=""></wui-wallet-image>`):null}
2043
+ <wui-flex>
2044
+ <wui-icon-box
2045
+ size="xxs"
2046
+ iconSize="xxs"
2047
+ iconcolor="success-100"
2048
+ backgroundcolor="success-100"
2049
+ icon="checkmark"
2050
+ background="opaque"
2051
+ ></wui-icon-box>
2052
+ </wui-flex>`}};d.styles=[n.W5,l.A],c([(0,r.MZ)({type:Array})],d.prototype,"walletImages",void 0),d=c([(0,s.E)("wui-all-wallets-image")],d)},96836:(t,e,i)=>{var o=i(35842),r=i(47214),a=(i(21348),i(66501),i(75028),i(24210)),n=i(27305),s=(i(38916),i(12192)),l=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let c=class extends o.WF{constructor(){super(...arguments),this.size="md",this.name="",this.installed=!1,this.badgeSize="xs"}render(){let t="xxs";return t="lg"===this.size?"m":"md"===this.size?"xs":"xxs",this.style.cssText=`\n --local-border-radius: var(--wui-border-radius-${t});\n --local-size: var(--wui-wallet-image-size-${this.size});\n `,this.walletIcon&&(this.dataset.walletIcon=this.walletIcon),o.qy`
2053
+ <wui-flex justifyContent="center" alignItems="center"> ${this.templateVisual()} </wui-flex>
2054
+ `}templateVisual(){return this.imageSrc?o.qy`<wui-image src=${this.imageSrc} alt=${this.name}></wui-image>`:this.walletIcon?o.qy`<wui-icon
2055
+ data-parent-size="md"
2056
+ size="md"
2057
+ color="inherit"
2058
+ name=${this.walletIcon}
2059
+ ></wui-icon>`:o.qy`<wui-icon
2060
+ data-parent-size=${this.size}
2061
+ size="inherit"
2062
+ color="inherit"
2063
+ name="walletPlaceholder"
2064
+ ></wui-icon>`}};c.styles=[a.fD,a.W5,s.A],l([(0,r.MZ)()],c.prototype,"size",void 0),l([(0,r.MZ)()],c.prototype,"name",void 0),l([(0,r.MZ)()],c.prototype,"imageSrc",void 0),l([(0,r.MZ)()],c.prototype,"walletIcon",void 0),l([(0,r.MZ)({type:Boolean})],c.prototype,"installed",void 0),l([(0,r.MZ)()],c.prototype,"badgeSize",void 0),c=l([(0,n.E)("wui-wallet-image")],c)},98102:(t,e,i)=>{i(62427)},99557:(t,e,i)=>{var o=i(35842),r=i(47214),a=i(27390),n=(i(21348),i(24210)),s=i(27305),l=(i(34285),i(54119)),c=function(t,e,i,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(e,i,n):r(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};let d=class extends o.WF{constructor(){super(...arguments),this.checked=void 0}render(){return o.qy`
2065
+ <button>
2066
+ <wui-icon size="xl" name="walletConnectBrown"></wui-icon>
2067
+ <wui-switch ?checked=${(0,a.J)(this.checked)}></wui-switch>
2068
+ </button>
2069
+ `}};d.styles=[n.W5,n.fD,l.A],c([(0,r.MZ)({type:Boolean})],d.prototype,"checked",void 0),d=c([(0,s.E)("wui-certified-switch")],d)}};