@blockend/widget 1.0.55-beta.1 → 1.0.55-beta.2

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 (122) hide show
  1. package/dist/{AllRoutes-D6S-NFxZ.js → AllRoutes-DIde2MHr.js} +910 -929
  2. package/dist/{Box-DESo1bHm.js → Box-DQB1ZyEK.js} +15 -15
  3. package/dist/EstGas-C7sLxEX_.js +1523 -0
  4. package/dist/{Grow-DzEr7XrA.js → Grow-CxaAxl6-.js} +300 -303
  5. package/dist/InputComp-CDuJJKaD.js +105 -0
  6. package/dist/LoadRoute-CVas28CM.js +123 -0
  7. package/dist/QuotesProgress-DaL4L4Db.js +27 -0
  8. package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-DSV6l90O.js} +13 -14
  9. package/dist/{Tooltip-DSAJT2x7.js → Tooltip-PAQ9gquY.js} +35 -35
  10. package/dist/TxnButton-BiO4vJ-y.js +207 -0
  11. package/dist/ccip-B6-4PQvj.js +226 -0
  12. package/dist/core-SB441dD5.js +13166 -0
  13. package/dist/{down-BFx-Bg5Q.js → down-DJH_apvy.js} +267 -270
  14. package/dist/{getChainIds-CeLEUxe0.js → getChainIds-CBclVfs9.js} +221 -223
  15. package/dist/getCosmosAddress-CI7CTn-0.js +57 -0
  16. package/dist/{hamburger-BzMrQx9y.js → hamburger-Dp-PI6Yn.js} +153 -153
  17. package/dist/{index-DpHhW0_2.js → index-5WTwgH9q.js} +3 -3
  18. package/dist/index-B-FRPlBv.js +3240 -0
  19. package/dist/index-B158Vaz9.js +146 -0
  20. package/dist/{index-BK0BZT6j.js → index-B9PIELoY.js} +5118 -5241
  21. package/dist/{index-DHYWnqST.js → index-BGt3GtoG.js} +1 -1
  22. package/dist/index-BuGCRLd5.js +198 -0
  23. package/dist/index-CRhXLwtt.js +7445 -0
  24. package/dist/{index-A8ClQmZo.js → index-Dmf6i8k4.js} +3 -4
  25. package/dist/{index-SkYFFVLL.js → index-PxQusjX0.js} +3368 -3415
  26. package/dist/{index-C5bv1F_u.js → index-UFdEurQ_.js} +12086 -12350
  27. package/dist/{index.es-DB9y_DEM.js → index.es-AaEds8Wm.js} +81 -83
  28. package/dist/{index.es-vIyUKt0W.js → index.es-Df0KTgu4.js} +4523 -4628
  29. package/dist/index.es.js +1 -1
  30. package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-BlS305Lt.js} +1 -1
  31. package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BvjIv1Yc.js} +1668 -1701
  32. package/dist/widget.css +1 -1
  33. package/package.json +4 -5
  34. package/dist/EstGas-Dy3XfCzY.js +0 -1496
  35. package/dist/InputComp-GcnDqx_s.js +0 -105
  36. package/dist/LoadRoute-BmUgvDid.js +0 -125
  37. package/dist/QuotesProgress-E5JnUMS0.js +0 -28
  38. package/dist/TxnButton-Br8R19rF.js +0 -215
  39. package/dist/add-BryKCrpI.js +0 -19
  40. package/dist/all-wallets-BMVOK2Ci.js +0 -10
  41. package/dist/app-store-3WurbJdI.js +0 -21
  42. package/dist/apple-eM872Ubz.js +0 -22
  43. package/dist/arrow-bottom-HMc73fJ8.js +0 -12
  44. package/dist/arrow-bottom-circle-B1N_R8Ux.js +0 -15
  45. package/dist/arrow-left-Q7GAZkD7.js +0 -12
  46. package/dist/arrow-right-ft3TcIM3.js +0 -12
  47. package/dist/arrow-top-C2xmF6tK.js +0 -12
  48. package/dist/bank-Bk-2ZR5E.js +0 -18
  49. package/dist/basic-CWrKgDAB.js +0 -5783
  50. package/dist/browser-BFB3TFfv.js +0 -18
  51. package/dist/card-DCx59si8.js +0 -18
  52. package/dist/ccip-CXr08uP1.js +0 -228
  53. package/dist/checkmark-BGsuJuhE.js +0 -15
  54. package/dist/checkmark-bold-DvjIl-51.js +0 -12
  55. package/dist/chevron-bottom-DAEnG7QP.js +0 -12
  56. package/dist/chevron-left-D33h2ppx.js +0 -12
  57. package/dist/chevron-right-C8Z_feNK.js +0 -12
  58. package/dist/chevron-top-DwDMd3p9.js +0 -12
  59. package/dist/chrome-store-B7ZDs2Fj.js +0 -65
  60. package/dist/clock-DnELUxSR.js +0 -12
  61. package/dist/close-Dnt29Pss.js +0 -12
  62. package/dist/coinPlaceholder-C09pzuXv.js +0 -12
  63. package/dist/compass-D8ZY16nH.js +0 -12
  64. package/dist/copy-DEh4RBKI.js +0 -19
  65. package/dist/core-CgIQaiRa.js +0 -14966
  66. package/dist/cursor-BtzkAOER.js +0 -7
  67. package/dist/cursor-transparent-B0nCflmb.js +0 -16
  68. package/dist/desktop-toTG92uH.js +0 -13
  69. package/dist/disconnect-C97lbAtY.js +0 -12
  70. package/dist/discord-BNJ3JePY.js +0 -21
  71. package/dist/etherscan-CK87TQMS.js +0 -10
  72. package/dist/exclamation-triangle-LWnOk0uz.js +0 -8
  73. package/dist/extension-5eIZU28A.js +0 -12
  74. package/dist/external-link-DDlCfigP.js +0 -12
  75. package/dist/facebook-1lTMXKeH.js +0 -30
  76. package/dist/farcaster-Di2TUKlZ.js +0 -16
  77. package/dist/filters-B_THnHaX.js +0 -12
  78. package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
  79. package/dist/github-D5B1FE4K.js +0 -22
  80. package/dist/google-C8_WSUfw.js +0 -22
  81. package/dist/help-circle-C-ZOzjAP.js +0 -16
  82. package/dist/id-BynpKmej.js +0 -16
  83. package/dist/image-BRYUh760.js +0 -8
  84. package/dist/index-BFUVWgoD.js +0 -992
  85. package/dist/index-CN6pVc2G.js +0 -1483
  86. package/dist/index-CZwuzz6v.js +0 -6712
  87. package/dist/index-Dnyeih-W.js +0 -3261
  88. package/dist/index-krrwn6Pi.js +0 -206
  89. package/dist/info-DSQyHS8b.js +0 -7
  90. package/dist/info-circle-BfpWcI4c.js +0 -16
  91. package/dist/lightbulb-DEMYYsZd.js +0 -7
  92. package/dist/mail-DNZ2to_6.js +0 -12
  93. package/dist/mobile-qsyS8oMK.js +0 -13
  94. package/dist/more-CnBuKwll.js +0 -15
  95. package/dist/network-placeholder-DhJITakA.js +0 -18
  96. package/dist/nftPlaceholder-DD3-Cc9U.js +0 -12
  97. package/dist/off-CBApAdDk.js +0 -12
  98. package/dist/play-store-DDoeRc-b.js +0 -36
  99. package/dist/plus-C3J-XWCn.js +0 -17
  100. package/dist/qr-code-CEoOYtHk.js +0 -10
  101. package/dist/recycle-horizontal-BHJ_s9Yx.js +0 -13
  102. package/dist/refresh-CtzOoHls.js +0 -12
  103. package/dist/reown-logo-BOj4YDUQ.js +0 -16
  104. package/dist/search--Miza3A_.js +0 -12
  105. package/dist/send-Bhl1lz4j.js +0 -19
  106. package/dist/swapHorizontal-CCvKCngz.js +0 -12
  107. package/dist/swapHorizontalBold-B90V-dXL.js +0 -12
  108. package/dist/swapHorizontalMedium-CYjeHjnI.js +0 -20
  109. package/dist/swapHorizontalRoundedBold-DSMWeXdW.js +0 -12
  110. package/dist/swapVertical-DOJUNIvk.js +0 -12
  111. package/dist/telegram-CufEY_4d.js +0 -20
  112. package/dist/three-dots-J2ngva7G.js +0 -9
  113. package/dist/twitch-B4vTKVf5.js +0 -22
  114. package/dist/twitterIcon-DLrxpAGg.js +0 -10
  115. package/dist/verify-CbHqPQKs.js +0 -12
  116. package/dist/verify-filled-CzKx9Cph.js +0 -12
  117. package/dist/w3m-modal-DhpjK4cG.js +0 -1471
  118. package/dist/wallet-CvIeO6On.js +0 -12
  119. package/dist/wallet-placeholder-BqELXTBj.js +0 -18
  120. package/dist/walletconnect-BN4c4XQ5.js +0 -36
  121. package/dist/warning-circle--dqxXujk.js +0 -16
  122. package/dist/x-CkCp5gtL.js +0 -16
@@ -1,992 +0,0 @@
1
- import { B as N, D as V, i as b, r as $, a as S, x as m, n as q, F as I, o as H, e as Y } from "./core-CgIQaiRa.js";
2
- const w = {
3
- getSpacingStyles(e, t) {
4
- if (Array.isArray(e))
5
- return e[t] ? `var(--wui-spacing-${e[t]})` : void 0;
6
- if (typeof e == "string")
7
- return `var(--wui-spacing-${e})`;
8
- },
9
- getFormattedDate(e) {
10
- return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(e);
11
- },
12
- getHostName(e) {
13
- try {
14
- return new URL(e).hostname;
15
- } catch {
16
- return "";
17
- }
18
- },
19
- getTruncateString({ string: e, charsStart: t, charsEnd: i, truncate: a }) {
20
- return e.length <= t + i ? e : a === "end" ? `${e.substring(0, t)}...` : a === "start" ? `...${e.substring(e.length - i)}` : `${e.substring(0, Math.floor(t))}...${e.substring(e.length - Math.floor(i))}`;
21
- },
22
- generateAvatarColors(e) {
23
- const i = e.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), a = this.hexToRgb(i), r = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), s = 100 - 3 * Number(r == null ? void 0 : r.replace("px", "")), n = `${s}% ${s}% at 65% 40%`, l = [];
24
- for (let d = 0; d < 5; d += 1) {
25
- const g = this.tintColor(a, 0.15 * d);
26
- l.push(`rgb(${g[0]}, ${g[1]}, ${g[2]})`);
27
- }
28
- return `
29
- --local-color-1: ${l[0]};
30
- --local-color-2: ${l[1]};
31
- --local-color-3: ${l[2]};
32
- --local-color-4: ${l[3]};
33
- --local-color-5: ${l[4]};
34
- --local-radial-circle: ${n}
35
- `;
36
- },
37
- hexToRgb(e) {
38
- const t = parseInt(e, 16), i = t >> 16 & 255, a = t >> 8 & 255, r = t & 255;
39
- return [i, a, r];
40
- },
41
- tintColor(e, t) {
42
- const [i, a, r] = e, o = Math.round(i + (255 - i) * t), s = Math.round(a + (255 - a) * t), n = Math.round(r + (255 - r) * t);
43
- return [o, s, n];
44
- },
45
- isNumber(e) {
46
- return {
47
- number: /^[0-9]+$/u
48
- }.number.test(e);
49
- },
50
- getColorTheme(e) {
51
- var t;
52
- return e || (typeof window < "u" && window.matchMedia ? (t = window.matchMedia("(prefers-color-scheme: dark)")) != null && t.matches ? "dark" : "light" : "dark");
53
- },
54
- splitBalance(e) {
55
- const t = e.split(".");
56
- return t.length === 2 ? [t[0], t[1]] : ["0", "00"];
57
- },
58
- roundNumber(e, t, i) {
59
- return e.toString().length >= t ? Number(e).toFixed(i) : e;
60
- },
61
- formatNumberToLocalString(e, t = 2) {
62
- return e === void 0 ? "0.00" : typeof e == "number" ? e.toLocaleString("en-US", {
63
- maximumFractionDigits: t,
64
- minimumFractionDigits: t
65
- }) : parseFloat(e).toLocaleString("en-US", {
66
- maximumFractionDigits: t,
67
- minimumFractionDigits: t
68
- });
69
- }
70
- };
71
- function X(e, t) {
72
- const { kind: i, elements: a } = t;
73
- return {
74
- kind: i,
75
- elements: a,
76
- finisher(r) {
77
- customElements.get(e) || customElements.define(e, r);
78
- }
79
- };
80
- }
81
- function K(e, t) {
82
- return customElements.get(e) || customElements.define(e, t), t;
83
- }
84
- function x(e) {
85
- return function(i) {
86
- return typeof i == "function" ? K(e, i) : X(e, i);
87
- };
88
- }
89
- const Z = { attribute: !0, type: String, converter: V, reflect: !1, hasChanged: N }, Q = (e = Z, t, i) => {
90
- const { kind: a, metadata: r } = i;
91
- let o = globalThis.litPropertyMetadata.get(r);
92
- if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), a === "setter" && ((e = Object.create(e)).wrapped = !0), o.set(i.name, e), a === "accessor") {
93
- const { name: s } = i;
94
- return { set(n) {
95
- const l = t.get.call(this);
96
- t.set.call(this, n), this.requestUpdate(s, l, e);
97
- }, init(n) {
98
- return n !== void 0 && this.C(s, void 0, e, n), n;
99
- } };
100
- }
101
- if (a === "setter") {
102
- const { name: s } = i;
103
- return function(n) {
104
- const l = this[s];
105
- t.call(this, n), this.requestUpdate(s, l, e);
106
- };
107
- }
108
- throw Error("Unsupported decorator location: " + a);
109
- };
110
- function c(e) {
111
- return (t, i) => typeof i == "object" ? Q(e, t, i) : ((a, r, o) => {
112
- const s = r.hasOwnProperty(o);
113
- return r.constructor.createProperty(o, a), s ? Object.getOwnPropertyDescriptor(r, o) : void 0;
114
- })(e, t, i);
115
- }
116
- function bt(e) {
117
- return c({ ...e, state: !0, attribute: !1 });
118
- }
119
- const J = b`
120
- :host {
121
- display: flex;
122
- width: inherit;
123
- height: inherit;
124
- }
125
- `;
126
- var u = function(e, t, i, a) {
127
- var r = arguments.length, o = r < 3 ? t : a, s;
128
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
129
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
130
- return r > 3 && o && Object.defineProperty(t, i, o), o;
131
- };
132
- let h = class extends S {
133
- render() {
134
- return this.style.cssText = `
135
- flex-direction: ${this.flexDirection};
136
- flex-wrap: ${this.flexWrap};
137
- flex-basis: ${this.flexBasis};
138
- flex-grow: ${this.flexGrow};
139
- flex-shrink: ${this.flexShrink};
140
- align-items: ${this.alignItems};
141
- justify-content: ${this.justifyContent};
142
- column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
143
- row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
144
- gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
145
- padding-top: ${this.padding && w.getSpacingStyles(this.padding, 0)};
146
- padding-right: ${this.padding && w.getSpacingStyles(this.padding, 1)};
147
- padding-bottom: ${this.padding && w.getSpacingStyles(this.padding, 2)};
148
- padding-left: ${this.padding && w.getSpacingStyles(this.padding, 3)};
149
- margin-top: ${this.margin && w.getSpacingStyles(this.margin, 0)};
150
- margin-right: ${this.margin && w.getSpacingStyles(this.margin, 1)};
151
- margin-bottom: ${this.margin && w.getSpacingStyles(this.margin, 2)};
152
- margin-left: ${this.margin && w.getSpacingStyles(this.margin, 3)};
153
- `, m`<slot></slot>`;
154
- }
155
- };
156
- h.styles = [$, J];
157
- u([
158
- c()
159
- ], h.prototype, "flexDirection", void 0);
160
- u([
161
- c()
162
- ], h.prototype, "flexWrap", void 0);
163
- u([
164
- c()
165
- ], h.prototype, "flexBasis", void 0);
166
- u([
167
- c()
168
- ], h.prototype, "flexGrow", void 0);
169
- u([
170
- c()
171
- ], h.prototype, "flexShrink", void 0);
172
- u([
173
- c()
174
- ], h.prototype, "alignItems", void 0);
175
- u([
176
- c()
177
- ], h.prototype, "justifyContent", void 0);
178
- u([
179
- c()
180
- ], h.prototype, "columnGap", void 0);
181
- u([
182
- c()
183
- ], h.prototype, "rowGap", void 0);
184
- u([
185
- c()
186
- ], h.prototype, "gap", void 0);
187
- u([
188
- c()
189
- ], h.prototype, "padding", void 0);
190
- u([
191
- c()
192
- ], h.prototype, "margin", void 0);
193
- h = u([
194
- x("wui-flex")
195
- ], h);
196
- const St = (e) => e ?? q;
197
- const tt = (e) => e === null || typeof e != "object" && typeof e != "function", et = (e) => e.strings === void 0;
198
- const F = { ATTRIBUTE: 1, CHILD: 2 }, O = (e) => (...t) => ({ _$litDirective$: e, values: t });
199
- let G = class {
200
- constructor(t) {
201
- }
202
- get _$AU() {
203
- return this._$AM._$AU;
204
- }
205
- _$AT(t, i, a) {
206
- this._$Ct = t, this._$AM = i, this._$Ci = a;
207
- }
208
- _$AS(t, i) {
209
- return this.update(t, i);
210
- }
211
- update(t, i) {
212
- return this.render(...i);
213
- }
214
- };
215
- const z = (e, t) => {
216
- var a;
217
- const i = e._$AN;
218
- if (i === void 0) return !1;
219
- for (const r of i) (a = r._$AO) == null || a.call(r, t, !1), z(r, t);
220
- return !0;
221
- }, A = (e) => {
222
- let t, i;
223
- do {
224
- if ((t = e._$AM) === void 0) break;
225
- i = t._$AN, i.delete(e), e = t;
226
- } while ((i == null ? void 0 : i.size) === 0);
227
- }, D = (e) => {
228
- for (let t; t = e._$AM; e = t) {
229
- let i = t._$AN;
230
- if (i === void 0) t._$AN = i = /* @__PURE__ */ new Set();
231
- else if (i.has(e)) break;
232
- i.add(e), rt(t);
233
- }
234
- };
235
- function it(e) {
236
- this._$AN !== void 0 ? (A(this), this._$AM = e, D(this)) : this._$AM = e;
237
- }
238
- function ot(e, t = !1, i = 0) {
239
- const a = this._$AH, r = this._$AN;
240
- if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(a)) for (let o = i; o < a.length; o++) z(a[o], !1), A(a[o]);
241
- else a != null && (z(a, !1), A(a));
242
- else z(this, e);
243
- }
244
- const rt = (e) => {
245
- e.type == F.CHILD && (e._$AP ?? (e._$AP = ot), e._$AQ ?? (e._$AQ = it));
246
- };
247
- class at extends G {
248
- constructor() {
249
- super(...arguments), this._$AN = void 0;
250
- }
251
- _$AT(t, i, a) {
252
- super._$AT(t, i, a), D(this), this.isConnected = t._$AU;
253
- }
254
- _$AO(t, i = !0) {
255
- var a, r;
256
- t !== this.isConnected && (this.isConnected = t, t ? (a = this.reconnected) == null || a.call(this) : (r = this.disconnected) == null || r.call(this)), i && (z(this, t), A(this));
257
- }
258
- setValue(t) {
259
- if (et(this._$Ct)) this._$Ct._$AI(t, this);
260
- else {
261
- const i = [...this._$Ct._$AH];
262
- i[this._$Ci] = t, this._$Ct._$AI(i, this, 0);
263
- }
264
- }
265
- disconnected() {
266
- }
267
- reconnected() {
268
- }
269
- }
270
- class st {
271
- constructor(t) {
272
- this.G = t;
273
- }
274
- disconnect() {
275
- this.G = void 0;
276
- }
277
- reconnect(t) {
278
- this.G = t;
279
- }
280
- deref() {
281
- return this.G;
282
- }
283
- }
284
- class nt {
285
- constructor() {
286
- this.Y = void 0, this.Z = void 0;
287
- }
288
- get() {
289
- return this.Y;
290
- }
291
- pause() {
292
- this.Y ?? (this.Y = new Promise((t) => this.Z = t));
293
- }
294
- resume() {
295
- var t;
296
- (t = this.Z) == null || t.call(this), this.Y = this.Z = void 0;
297
- }
298
- }
299
- const U = (e) => !tt(e) && typeof e.then == "function", W = 1073741823;
300
- class ct extends at {
301
- constructor() {
302
- super(...arguments), this._$Cwt = W, this._$Cbt = [], this._$CK = new st(this), this._$CX = new nt();
303
- }
304
- render(...t) {
305
- return t.find((i) => !U(i)) ?? I;
306
- }
307
- update(t, i) {
308
- const a = this._$Cbt;
309
- let r = a.length;
310
- this._$Cbt = i;
311
- const o = this._$CK, s = this._$CX;
312
- this.isConnected || this.disconnected();
313
- for (let n = 0; n < i.length && !(n > this._$Cwt); n++) {
314
- const l = i[n];
315
- if (!U(l)) return this._$Cwt = n, l;
316
- n < r && l === a[n] || (this._$Cwt = W, r = 0, Promise.resolve(l).then(async (d) => {
317
- for (; s.get(); ) await s.get();
318
- const g = o.deref();
319
- if (g !== void 0) {
320
- const B = g._$Cbt.indexOf(l);
321
- B > -1 && B < g._$Cwt && (g._$Cwt = B, g.setValue(d));
322
- }
323
- }));
324
- }
325
- return I;
326
- }
327
- disconnected() {
328
- this._$CK.disconnect(), this._$CX.pause();
329
- }
330
- reconnected() {
331
- this._$CK.reconnect(this), this._$CX.resume();
332
- }
333
- }
334
- const lt = O(ct);
335
- class ht {
336
- constructor() {
337
- this.cache = /* @__PURE__ */ new Map();
338
- }
339
- set(t, i) {
340
- this.cache.set(t, i);
341
- }
342
- get(t) {
343
- return this.cache.get(t);
344
- }
345
- has(t) {
346
- return this.cache.has(t);
347
- }
348
- delete(t) {
349
- this.cache.delete(t);
350
- }
351
- clear() {
352
- this.cache.clear();
353
- }
354
- }
355
- const P = new ht(), ut = b`
356
- :host {
357
- display: flex;
358
- aspect-ratio: var(--local-aspect-ratio);
359
- color: var(--local-color);
360
- width: var(--local-width);
361
- }
362
-
363
- svg {
364
- width: inherit;
365
- height: inherit;
366
- object-fit: contain;
367
- object-position: center;
368
- }
369
-
370
- .fallback {
371
- width: var(--local-width);
372
- height: var(--local-height);
373
- }
374
- `;
375
- var R = function(e, t, i, a) {
376
- var r = arguments.length, o = r < 3 ? t : a, s;
377
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
378
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
379
- return r > 3 && o && Object.defineProperty(t, i, o), o;
380
- };
381
- const E = {
382
- add: async () => (await import("./add-BryKCrpI.js")).addSvg,
383
- allWallets: async () => (await import("./all-wallets-BMVOK2Ci.js")).allWalletsSvg,
384
- arrowBottomCircle: async () => (await import("./arrow-bottom-circle-B1N_R8Ux.js")).arrowBottomCircleSvg,
385
- appStore: async () => (await import("./app-store-3WurbJdI.js")).appStoreSvg,
386
- apple: async () => (await import("./apple-eM872Ubz.js")).appleSvg,
387
- arrowBottom: async () => (await import("./arrow-bottom-HMc73fJ8.js")).arrowBottomSvg,
388
- arrowLeft: async () => (await import("./arrow-left-Q7GAZkD7.js")).arrowLeftSvg,
389
- arrowRight: async () => (await import("./arrow-right-ft3TcIM3.js")).arrowRightSvg,
390
- arrowTop: async () => (await import("./arrow-top-C2xmF6tK.js")).arrowTopSvg,
391
- bank: async () => (await import("./bank-Bk-2ZR5E.js")).bankSvg,
392
- browser: async () => (await import("./browser-BFB3TFfv.js")).browserSvg,
393
- card: async () => (await import("./card-DCx59si8.js")).cardSvg,
394
- checkmark: async () => (await import("./checkmark-BGsuJuhE.js")).checkmarkSvg,
395
- checkmarkBold: async () => (await import("./checkmark-bold-DvjIl-51.js")).checkmarkBoldSvg,
396
- chevronBottom: async () => (await import("./chevron-bottom-DAEnG7QP.js")).chevronBottomSvg,
397
- chevronLeft: async () => (await import("./chevron-left-D33h2ppx.js")).chevronLeftSvg,
398
- chevronRight: async () => (await import("./chevron-right-C8Z_feNK.js")).chevronRightSvg,
399
- chevronTop: async () => (await import("./chevron-top-DwDMd3p9.js")).chevronTopSvg,
400
- chromeStore: async () => (await import("./chrome-store-B7ZDs2Fj.js")).chromeStoreSvg,
401
- clock: async () => (await import("./clock-DnELUxSR.js")).clockSvg,
402
- close: async () => (await import("./close-Dnt29Pss.js")).closeSvg,
403
- compass: async () => (await import("./compass-D8ZY16nH.js")).compassSvg,
404
- coinPlaceholder: async () => (await import("./coinPlaceholder-C09pzuXv.js")).coinPlaceholderSvg,
405
- copy: async () => (await import("./copy-DEh4RBKI.js")).copySvg,
406
- cursor: async () => (await import("./cursor-BtzkAOER.js")).cursorSvg,
407
- cursorTransparent: async () => (await import("./cursor-transparent-B0nCflmb.js")).cursorTransparentSvg,
408
- desktop: async () => (await import("./desktop-toTG92uH.js")).desktopSvg,
409
- disconnect: async () => (await import("./disconnect-C97lbAtY.js")).disconnectSvg,
410
- discord: async () => (await import("./discord-BNJ3JePY.js")).discordSvg,
411
- etherscan: async () => (await import("./etherscan-CK87TQMS.js")).etherscanSvg,
412
- extension: async () => (await import("./extension-5eIZU28A.js")).extensionSvg,
413
- externalLink: async () => (await import("./external-link-DDlCfigP.js")).externalLinkSvg,
414
- facebook: async () => (await import("./facebook-1lTMXKeH.js")).facebookSvg,
415
- farcaster: async () => (await import("./farcaster-Di2TUKlZ.js")).farcasterSvg,
416
- filters: async () => (await import("./filters-B_THnHaX.js")).filtersSvg,
417
- github: async () => (await import("./github-D5B1FE4K.js")).githubSvg,
418
- google: async () => (await import("./google-C8_WSUfw.js")).googleSvg,
419
- helpCircle: async () => (await import("./help-circle-C-ZOzjAP.js")).helpCircleSvg,
420
- image: async () => (await import("./image-BRYUh760.js")).imageSvg,
421
- id: async () => (await import("./id-BynpKmej.js")).idSvg,
422
- infoCircle: async () => (await import("./info-circle-BfpWcI4c.js")).infoCircleSvg,
423
- lightbulb: async () => (await import("./lightbulb-DEMYYsZd.js")).lightbulbSvg,
424
- mail: async () => (await import("./mail-DNZ2to_6.js")).mailSvg,
425
- mobile: async () => (await import("./mobile-qsyS8oMK.js")).mobileSvg,
426
- more: async () => (await import("./more-CnBuKwll.js")).moreSvg,
427
- networkPlaceholder: async () => (await import("./network-placeholder-DhJITakA.js")).networkPlaceholderSvg,
428
- nftPlaceholder: async () => (await import("./nftPlaceholder-DD3-Cc9U.js")).nftPlaceholderSvg,
429
- off: async () => (await import("./off-CBApAdDk.js")).offSvg,
430
- playStore: async () => (await import("./play-store-DDoeRc-b.js")).playStoreSvg,
431
- plus: async () => (await import("./plus-C3J-XWCn.js")).plusSvg,
432
- qrCode: async () => (await import("./qr-code-CEoOYtHk.js")).qrCodeIcon,
433
- recycleHorizontal: async () => (await import("./recycle-horizontal-BHJ_s9Yx.js")).recycleHorizontalSvg,
434
- refresh: async () => (await import("./refresh-CtzOoHls.js")).refreshSvg,
435
- search: async () => (await import("./search--Miza3A_.js")).searchSvg,
436
- send: async () => (await import("./send-Bhl1lz4j.js")).sendSvg,
437
- swapHorizontal: async () => (await import("./swapHorizontal-CCvKCngz.js")).swapHorizontalSvg,
438
- swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CYjeHjnI.js")).swapHorizontalMediumSvg,
439
- swapHorizontalBold: async () => (await import("./swapHorizontalBold-B90V-dXL.js")).swapHorizontalBoldSvg,
440
- swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-DSMWeXdW.js")).swapHorizontalRoundedBoldSvg,
441
- swapVertical: async () => (await import("./swapVertical-DOJUNIvk.js")).swapVerticalSvg,
442
- telegram: async () => (await import("./telegram-CufEY_4d.js")).telegramSvg,
443
- threeDots: async () => (await import("./three-dots-J2ngva7G.js")).threeDotsSvg,
444
- twitch: async () => (await import("./twitch-B4vTKVf5.js")).twitchSvg,
445
- twitter: async () => (await import("./x-CkCp5gtL.js")).xSvg,
446
- twitterIcon: async () => (await import("./twitterIcon-DLrxpAGg.js")).twitterIconSvg,
447
- verify: async () => (await import("./verify-CbHqPQKs.js")).verifySvg,
448
- verifyFilled: async () => (await import("./verify-filled-CzKx9Cph.js")).verifyFilledSvg,
449
- wallet: async () => (await import("./wallet-CvIeO6On.js")).walletSvg,
450
- walletConnect: async () => (await import("./walletconnect-BN4c4XQ5.js")).walletConnectSvg,
451
- walletConnectLightBrown: async () => (await import("./walletconnect-BN4c4XQ5.js")).walletConnectLightBrownSvg,
452
- walletConnectBrown: async () => (await import("./walletconnect-BN4c4XQ5.js")).walletConnectBrownSvg,
453
- walletPlaceholder: async () => (await import("./wallet-placeholder-BqELXTBj.js")).walletPlaceholderSvg,
454
- warningCircle: async () => (await import("./warning-circle--dqxXujk.js")).warningCircleSvg,
455
- x: async () => (await import("./x-CkCp5gtL.js")).xSvg,
456
- info: async () => (await import("./info-DSQyHS8b.js")).infoSvg,
457
- exclamationTriangle: async () => (await import("./exclamation-triangle-LWnOk0uz.js")).exclamationTriangleSvg,
458
- reown: async () => (await import("./reown-logo-BOj4YDUQ.js")).reownSvg
459
- };
460
- async function pt(e) {
461
- if (P.has(e))
462
- return P.get(e);
463
- const i = (E[e] ?? E.copy)();
464
- return P.set(e, i), i;
465
- }
466
- let v = class extends S {
467
- constructor() {
468
- super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
469
- }
470
- render() {
471
- return this.style.cssText = `
472
- --local-color: ${`var(--wui-color-${this.color});`}
473
- --local-width: ${`var(--wui-icon-size-${this.size});`}
474
- --local-aspect-ratio: ${this.aspectRatio}
475
- `, m`${lt(pt(this.name), m`<div class="fallback"></div>`)}`;
476
- }
477
- };
478
- v.styles = [$, H, ut];
479
- R([
480
- c()
481
- ], v.prototype, "size", void 0);
482
- R([
483
- c()
484
- ], v.prototype, "name", void 0);
485
- R([
486
- c()
487
- ], v.prototype, "color", void 0);
488
- R([
489
- c()
490
- ], v.prototype, "aspectRatio", void 0);
491
- v = R([
492
- x("wui-icon")
493
- ], v);
494
- const dt = O(class extends G {
495
- constructor(e) {
496
- var t;
497
- if (super(e), e.type !== F.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
498
- }
499
- render(e) {
500
- return " " + Object.keys(e).filter((t) => e[t]).join(" ") + " ";
501
- }
502
- update(e, [t]) {
503
- var a, r;
504
- if (this.st === void 0) {
505
- this.st = /* @__PURE__ */ new Set(), e.strings !== void 0 && (this.nt = new Set(e.strings.join(" ").split(/\s/).filter((o) => o !== "")));
506
- for (const o in t) t[o] && !((a = this.nt) != null && a.has(o)) && this.st.add(o);
507
- return this.render(t);
508
- }
509
- const i = e.element.classList;
510
- for (const o of this.st) o in t || (i.remove(o), this.st.delete(o));
511
- for (const o in t) {
512
- const s = !!t[o];
513
- s === this.st.has(o) || (r = this.nt) != null && r.has(o) || (s ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
514
- }
515
- return I;
516
- }
517
- }), gt = b`
518
- :host {
519
- display: inline-flex !important;
520
- }
521
-
522
- slot {
523
- width: 100%;
524
- display: inline-block;
525
- font-style: normal;
526
- font-family: var(--wui-font-family);
527
- font-feature-settings:
528
- 'tnum' on,
529
- 'lnum' on,
530
- 'case' on;
531
- line-height: 130%;
532
- font-weight: var(--wui-font-weight-regular);
533
- overflow: inherit;
534
- text-overflow: inherit;
535
- text-align: var(--local-align);
536
- color: var(--local-color);
537
- }
538
-
539
- .wui-line-clamp-1 {
540
- overflow: hidden;
541
- display: -webkit-box;
542
- -webkit-box-orient: vertical;
543
- -webkit-line-clamp: 1;
544
- }
545
-
546
- .wui-line-clamp-2 {
547
- overflow: hidden;
548
- display: -webkit-box;
549
- -webkit-box-orient: vertical;
550
- -webkit-line-clamp: 2;
551
- }
552
-
553
- .wui-font-medium-400 {
554
- font-size: var(--wui-font-size-medium);
555
- font-weight: var(--wui-font-weight-light);
556
- letter-spacing: var(--wui-letter-spacing-medium);
557
- }
558
-
559
- .wui-font-medium-600 {
560
- font-size: var(--wui-font-size-medium);
561
- letter-spacing: var(--wui-letter-spacing-medium);
562
- }
563
-
564
- .wui-font-title-600 {
565
- font-size: var(--wui-font-size-title);
566
- letter-spacing: var(--wui-letter-spacing-title);
567
- }
568
-
569
- .wui-font-title-6-600 {
570
- font-size: var(--wui-font-size-title-6);
571
- letter-spacing: var(--wui-letter-spacing-title-6);
572
- }
573
-
574
- .wui-font-mini-700 {
575
- font-size: var(--wui-font-size-mini);
576
- letter-spacing: var(--wui-letter-spacing-mini);
577
- text-transform: uppercase;
578
- }
579
-
580
- .wui-font-large-500,
581
- .wui-font-large-600,
582
- .wui-font-large-700 {
583
- font-size: var(--wui-font-size-large);
584
- letter-spacing: var(--wui-letter-spacing-large);
585
- }
586
-
587
- .wui-font-2xl-500,
588
- .wui-font-2xl-600,
589
- .wui-font-2xl-700 {
590
- font-size: var(--wui-font-size-2xl);
591
- letter-spacing: var(--wui-letter-spacing-2xl);
592
- }
593
-
594
- .wui-font-paragraph-400,
595
- .wui-font-paragraph-500,
596
- .wui-font-paragraph-600,
597
- .wui-font-paragraph-700 {
598
- font-size: var(--wui-font-size-paragraph);
599
- letter-spacing: var(--wui-letter-spacing-paragraph);
600
- }
601
-
602
- .wui-font-small-400,
603
- .wui-font-small-500,
604
- .wui-font-small-600 {
605
- font-size: var(--wui-font-size-small);
606
- letter-spacing: var(--wui-letter-spacing-small);
607
- }
608
-
609
- .wui-font-tiny-400,
610
- .wui-font-tiny-500,
611
- .wui-font-tiny-600 {
612
- font-size: var(--wui-font-size-tiny);
613
- letter-spacing: var(--wui-letter-spacing-tiny);
614
- }
615
-
616
- .wui-font-micro-700,
617
- .wui-font-micro-600 {
618
- font-size: var(--wui-font-size-micro);
619
- letter-spacing: var(--wui-letter-spacing-micro);
620
- text-transform: uppercase;
621
- }
622
-
623
- .wui-font-tiny-400,
624
- .wui-font-small-400,
625
- .wui-font-medium-400,
626
- .wui-font-paragraph-400 {
627
- font-weight: var(--wui-font-weight-light);
628
- }
629
-
630
- .wui-font-large-700,
631
- .wui-font-paragraph-700,
632
- .wui-font-micro-700,
633
- .wui-font-mini-700 {
634
- font-weight: var(--wui-font-weight-bold);
635
- }
636
-
637
- .wui-font-medium-600,
638
- .wui-font-medium-title-600,
639
- .wui-font-title-6-600,
640
- .wui-font-large-600,
641
- .wui-font-paragraph-600,
642
- .wui-font-small-600,
643
- .wui-font-tiny-600,
644
- .wui-font-micro-600 {
645
- font-weight: var(--wui-font-weight-medium);
646
- }
647
-
648
- :host([disabled]) {
649
- opacity: 0.4;
650
- }
651
- `;
652
- var T = function(e, t, i, a) {
653
- var r = arguments.length, o = r < 3 ? t : a, s;
654
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
655
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
656
- return r > 3 && o && Object.defineProperty(t, i, o), o;
657
- };
658
- let y = class extends S {
659
- constructor() {
660
- super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
661
- }
662
- render() {
663
- const t = {
664
- [`wui-font-${this.variant}`]: !0,
665
- [`wui-color-${this.color}`]: !0,
666
- [`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
667
- };
668
- return this.style.cssText = `
669
- --local-align: ${this.align};
670
- --local-color: var(--wui-color-${this.color});
671
- `, m`<slot class=${dt(t)}></slot>`;
672
- }
673
- };
674
- y.styles = [$, gt];
675
- T([
676
- c()
677
- ], y.prototype, "variant", void 0);
678
- T([
679
- c()
680
- ], y.prototype, "color", void 0);
681
- T([
682
- c()
683
- ], y.prototype, "align", void 0);
684
- T([
685
- c()
686
- ], y.prototype, "lineClamp", void 0);
687
- y = T([
688
- x("wui-text")
689
- ], y);
690
- const ft = b`
691
- :host {
692
- display: inline-flex;
693
- justify-content: center;
694
- align-items: center;
695
- position: relative;
696
- overflow: hidden;
697
- background-color: var(--wui-color-gray-glass-020);
698
- border-radius: var(--local-border-radius);
699
- border: var(--local-border);
700
- box-sizing: content-box;
701
- width: var(--local-size);
702
- height: var(--local-size);
703
- min-height: var(--local-size);
704
- min-width: var(--local-size);
705
- }
706
-
707
- @supports (background: color-mix(in srgb, white 50%, black)) {
708
- :host {
709
- background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
710
- }
711
- }
712
- `;
713
- var f = function(e, t, i, a) {
714
- var r = arguments.length, o = r < 3 ? t : a, s;
715
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
716
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
717
- return r > 3 && o && Object.defineProperty(t, i, o), o;
718
- };
719
- let p = class extends S {
720
- constructor() {
721
- super(...arguments), this.size = "md", this.backgroundColor = "accent-100", this.iconColor = "accent-100", this.background = "transparent", this.border = !1, this.borderColor = "wui-color-bg-125", this.icon = "copy";
722
- }
723
- render() {
724
- const t = this.iconSize || this.size, i = this.size === "lg", a = this.size === "xl", r = i ? "12%" : "16%", o = i ? "xxs" : a ? "s" : "3xl", s = this.background === "gray", n = this.background === "opaque", l = this.backgroundColor === "accent-100" && n || this.backgroundColor === "success-100" && n || this.backgroundColor === "error-100" && n || this.backgroundColor === "inverse-100" && n;
725
- let d = `var(--wui-color-${this.backgroundColor})`;
726
- return l ? d = `var(--wui-icon-box-bg-${this.backgroundColor})` : s && (d = `var(--wui-color-gray-${this.backgroundColor})`), this.style.cssText = `
727
- --local-bg-value: ${d};
728
- --local-bg-mix: ${l || s ? "100%" : r};
729
- --local-border-radius: var(--wui-border-radius-${o});
730
- --local-size: var(--wui-icon-box-size-${this.size});
731
- --local-border: ${this.borderColor === "wui-color-bg-125" ? "2px" : "1px"} solid ${this.border ? `var(--${this.borderColor})` : "transparent"}
732
- `, m` <wui-icon color=${this.iconColor} size=${t} name=${this.icon}></wui-icon> `;
733
- }
734
- };
735
- p.styles = [$, Y, ft];
736
- f([
737
- c()
738
- ], p.prototype, "size", void 0);
739
- f([
740
- c()
741
- ], p.prototype, "backgroundColor", void 0);
742
- f([
743
- c()
744
- ], p.prototype, "iconColor", void 0);
745
- f([
746
- c()
747
- ], p.prototype, "iconSize", void 0);
748
- f([
749
- c()
750
- ], p.prototype, "background", void 0);
751
- f([
752
- c({ type: Boolean })
753
- ], p.prototype, "border", void 0);
754
- f([
755
- c()
756
- ], p.prototype, "borderColor", void 0);
757
- f([
758
- c()
759
- ], p.prototype, "icon", void 0);
760
- p = f([
761
- x("wui-icon-box")
762
- ], p);
763
- const wt = b`
764
- :host {
765
- display: block;
766
- width: var(--local-width);
767
- height: var(--local-height);
768
- }
769
-
770
- img {
771
- display: block;
772
- width: 100%;
773
- height: 100%;
774
- object-fit: cover;
775
- object-position: center center;
776
- border-radius: inherit;
777
- }
778
- `;
779
- var j = function(e, t, i, a) {
780
- var r = arguments.length, o = r < 3 ? t : a, s;
781
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
782
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
783
- return r > 3 && o && Object.defineProperty(t, i, o), o;
784
- };
785
- let C = class extends S {
786
- constructor() {
787
- super(...arguments), this.src = "./path/to/image.jpg", this.alt = "Image", this.size = void 0;
788
- }
789
- render() {
790
- return this.style.cssText = `
791
- --local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
792
- --local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
793
- `, m`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
794
- }
795
- handleImageError() {
796
- this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: !0, composed: !0 }));
797
- }
798
- };
799
- C.styles = [$, H, wt];
800
- j([
801
- c()
802
- ], C.prototype, "src", void 0);
803
- j([
804
- c()
805
- ], C.prototype, "alt", void 0);
806
- j([
807
- c()
808
- ], C.prototype, "size", void 0);
809
- C = j([
810
- x("wui-image")
811
- ], C);
812
- const mt = b`
813
- :host {
814
- display: flex;
815
- justify-content: center;
816
- align-items: center;
817
- height: var(--wui-spacing-m);
818
- padding: 0 var(--wui-spacing-3xs) !important;
819
- border-radius: var(--wui-border-radius-5xs);
820
- transition:
821
- border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
822
- background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
823
- will-change: border-radius, background-color;
824
- }
825
-
826
- :host > wui-text {
827
- transform: translateY(5%);
828
- }
829
-
830
- :host([data-variant='main']) {
831
- background-color: var(--wui-color-accent-glass-015);
832
- color: var(--wui-color-accent-100);
833
- }
834
-
835
- :host([data-variant='shade']) {
836
- background-color: var(--wui-color-gray-glass-010);
837
- color: var(--wui-color-fg-200);
838
- }
839
-
840
- :host([data-variant='success']) {
841
- background-color: var(--wui-icon-box-bg-success-100);
842
- color: var(--wui-color-success-100);
843
- }
844
-
845
- :host([data-variant='error']) {
846
- background-color: var(--wui-icon-box-bg-error-100);
847
- color: var(--wui-color-error-100);
848
- }
849
-
850
- :host([data-size='lg']) {
851
- padding: 11px 5px !important;
852
- }
853
-
854
- :host([data-size='lg']) > wui-text {
855
- transform: translateY(2%);
856
- }
857
- `;
858
- var M = function(e, t, i, a) {
859
- var r = arguments.length, o = r < 3 ? t : a, s;
860
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
861
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
862
- return r > 3 && o && Object.defineProperty(t, i, o), o;
863
- };
864
- let _ = class extends S {
865
- constructor() {
866
- super(...arguments), this.variant = "main", this.size = "lg";
867
- }
868
- render() {
869
- this.dataset.variant = this.variant, this.dataset.size = this.size;
870
- const t = this.size === "md" ? "mini-700" : "micro-700";
871
- return m`
872
- <wui-text data-variant=${this.variant} variant=${t} color="inherit">
873
- <slot></slot>
874
- </wui-text>
875
- `;
876
- }
877
- };
878
- _.styles = [$, mt];
879
- M([
880
- c()
881
- ], _.prototype, "variant", void 0);
882
- M([
883
- c()
884
- ], _.prototype, "size", void 0);
885
- _ = M([
886
- x("wui-tag")
887
- ], _);
888
- const vt = b`
889
- :host {
890
- display: flex;
891
- }
892
-
893
- :host([data-size='sm']) > svg {
894
- width: 12px;
895
- height: 12px;
896
- }
897
-
898
- :host([data-size='md']) > svg {
899
- width: 16px;
900
- height: 16px;
901
- }
902
-
903
- :host([data-size='lg']) > svg {
904
- width: 24px;
905
- height: 24px;
906
- }
907
-
908
- :host([data-size='xl']) > svg {
909
- width: 32px;
910
- height: 32px;
911
- }
912
-
913
- svg {
914
- animation: rotate 2s linear infinite;
915
- }
916
-
917
- circle {
918
- fill: none;
919
- stroke: var(--local-color);
920
- stroke-width: 4px;
921
- stroke-dasharray: 1, 124;
922
- stroke-dashoffset: 0;
923
- stroke-linecap: round;
924
- animation: dash 1.5s ease-in-out infinite;
925
- }
926
-
927
- :host([data-size='md']) > svg > circle {
928
- stroke-width: 6px;
929
- }
930
-
931
- :host([data-size='sm']) > svg > circle {
932
- stroke-width: 8px;
933
- }
934
-
935
- @keyframes rotate {
936
- 100% {
937
- transform: rotate(360deg);
938
- }
939
- }
940
-
941
- @keyframes dash {
942
- 0% {
943
- stroke-dasharray: 1, 124;
944
- stroke-dashoffset: 0;
945
- }
946
-
947
- 50% {
948
- stroke-dasharray: 90, 124;
949
- stroke-dashoffset: -35;
950
- }
951
-
952
- 100% {
953
- stroke-dashoffset: -125;
954
- }
955
- }
956
- `;
957
- var L = function(e, t, i, a) {
958
- var r = arguments.length, o = r < 3 ? t : a, s;
959
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(e, t, i, a);
960
- else for (var n = e.length - 1; n >= 0; n--) (s = e[n]) && (o = (r < 3 ? s(o) : r > 3 ? s(t, i, o) : s(t, i)) || o);
961
- return r > 3 && o && Object.defineProperty(t, i, o), o;
962
- };
963
- let k = class extends S {
964
- constructor() {
965
- super(...arguments), this.color = "accent-100", this.size = "lg";
966
- }
967
- render() {
968
- return this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`, this.dataset.size = this.size, m`<svg viewBox="25 25 50 50">
969
- <circle r="20" cy="50" cx="50"></circle>
970
- </svg>`;
971
- }
972
- };
973
- k.styles = [$, vt];
974
- L([
975
- c()
976
- ], k.prototype, "color", void 0);
977
- L([
978
- c()
979
- ], k.prototype, "size", void 0);
980
- k = L([
981
- x("wui-loading-spinner")
982
- ], k);
983
- export {
984
- w as U,
985
- dt as a,
986
- x as c,
987
- O as e,
988
- at as f,
989
- c as n,
990
- St as o,
991
- bt as r
992
- };