@skip-go/widget 3.14.3 → 3.14.5

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 (84) hide show
  1. package/build/add-BJQPsA8k.js +19 -0
  2. package/build/all-wallets-B11_4Ybe.js +10 -0
  3. package/build/app-store-CARimMW3.js +21 -0
  4. package/build/apple-DEuxqvQi.js +22 -0
  5. package/build/arrow-bottom-BsHbGBdB.js +12 -0
  6. package/build/arrow-bottom-circle-Cs2knW0e.js +15 -0
  7. package/build/arrow-left-DzEykZh_.js +12 -0
  8. package/build/arrow-right-BhBVwf9g.js +12 -0
  9. package/build/arrow-top-CQFpDrN4.js +12 -0
  10. package/build/bank-CjU2Dyen.js +18 -0
  11. package/build/basic-DEapmA0E.js +6930 -0
  12. package/build/browser-DuTL2ZwF.js +18 -0
  13. package/build/card-H_VBjXH3.js +18 -0
  14. package/build/checkmark-Dtjtjmf1.js +15 -0
  15. package/build/checkmark-bold-z4hM-TsC.js +12 -0
  16. package/build/chevron-bottom-CtArV2wF.js +12 -0
  17. package/build/chevron-left-DdvY2CTb.js +12 -0
  18. package/build/chevron-right-CFXUESPe.js +12 -0
  19. package/build/chevron-top-Dy9Hw3fV.js +12 -0
  20. package/build/chrome-store-C_pTffOw.js +65 -0
  21. package/build/clock-CMOyk9S9.js +12 -0
  22. package/build/close-Dms7aMSR.js +12 -0
  23. package/build/coinPlaceholder-B2cZTC3R.js +12 -0
  24. package/build/compass-DNOfEAM2.js +12 -0
  25. package/build/copy-DZbibH1K.js +19 -0
  26. package/build/core-BfKZ4PIC.js +13138 -0
  27. package/build/cursor-BbBjTjwp.js +7 -0
  28. package/build/cursor-transparent-DCOjv2sR.js +16 -0
  29. package/build/desktop-uyYbF0Mn.js +13 -0
  30. package/build/disconnect-CetZ4edH.js +12 -0
  31. package/build/discord-Cf_HZf3N.js +21 -0
  32. package/build/etherscan-C4OLKng2.js +10 -0
  33. package/build/exclamation-triangle-uVxTDhvu.js +8 -0
  34. package/build/extension-DxctmiWz.js +12 -0
  35. package/build/external-link-MqCcqsdd.js +12 -0
  36. package/build/facebook-C4dd-ziA.js +30 -0
  37. package/build/farcaster-CeVdeAEP.js +16 -0
  38. package/build/filters-BiMkQFV8.js +12 -0
  39. package/build/github-CU_W_N6N.js +22 -0
  40. package/build/google-7s8MQVzB.js +22 -0
  41. package/build/help-circle-C3-nycKi.js +16 -0
  42. package/build/id-C2tHtjX6.js +16 -0
  43. package/build/image-DPaMR_cv.js +8 -0
  44. package/build/{index-dsbVbl47.js → index-jvbs7eGH.js} +882 -749
  45. package/build/index-omwtuTW1.js +1132 -0
  46. package/build/index.d.ts +39 -0
  47. package/build/index.es-LTt2Eg_D.js +8712 -0
  48. package/build/index.js +3 -2
  49. package/build/info-circle-B_IxCfxa.js +16 -0
  50. package/build/info-qKe_hnXy.js +7 -0
  51. package/build/lightbulb-1XI0Bxv-.js +7 -0
  52. package/build/mail-CJW1dmhW.js +12 -0
  53. package/build/mobile-DHY_7Eey.js +13 -0
  54. package/build/more-CHCKQBcM.js +15 -0
  55. package/build/network-placeholder-Bjoe5sTj.js +18 -0
  56. package/build/nftPlaceholder-BfGB28hh.js +12 -0
  57. package/build/off-Bf2iuTEi.js +12 -0
  58. package/build/play-store-BIvS0r4I.js +36 -0
  59. package/build/plus-qgz3JQAB.js +17 -0
  60. package/build/qr-code-BuWsCw2z.js +10 -0
  61. package/build/recycle-horizontal-B1CVSSLJ.js +13 -0
  62. package/build/refresh-BhvhNniM.js +12 -0
  63. package/build/reown-logo-C5z3wp07.js +16 -0
  64. package/build/search-BTpo0HGA.js +12 -0
  65. package/build/send-B8pnkBAp.js +19 -0
  66. package/build/swapHorizontal-A29wlFie.js +12 -0
  67. package/build/swapHorizontalBold-CG4RbMR8.js +12 -0
  68. package/build/swapHorizontalMedium-BZPbiWG7.js +20 -0
  69. package/build/swapHorizontalRoundedBold-CgYvX4sR.js +12 -0
  70. package/build/swapVertical-DGjhPMtl.js +12 -0
  71. package/build/telegram-BTYv80UF.js +20 -0
  72. package/build/three-dots-CK7eAfOP.js +9 -0
  73. package/build/twitch-K05X_UT8.js +22 -0
  74. package/build/twitterIcon-BE4qUrhF.js +10 -0
  75. package/build/verify-filled-BfZdE__v.js +12 -0
  76. package/build/verify-zHV40_w6.js +12 -0
  77. package/build/w3m-modal-DkheqxGa.js +1721 -0
  78. package/build/wallet-BTbqWApb.js +12 -0
  79. package/build/wallet-placeholder-B6hnZ20G.js +18 -0
  80. package/build/walletconnect-BgwXLnVI.js +38 -0
  81. package/build/warning-circle-B-OJt-sc.js +16 -0
  82. package/build/x-Dd85BL0v.js +16 -0
  83. package/package.json +2 -2
  84. package/build/index.es-DpbMTIAc.js +0 -62088
@@ -0,0 +1,1132 @@
1
+ import { B as f$2, D as u, i as i$3, r as resetStyles, a as i$4, x, n as E, F as T, o as colorStyles, e as elementStyles } from "./core-BfKZ4PIC.js";
2
+ const UiHelperUtil = {
3
+ getSpacingStyles(spacing, index) {
4
+ if (Array.isArray(spacing)) {
5
+ return spacing[index] ? `var(--wui-spacing-${spacing[index]})` : void 0;
6
+ } else if (typeof spacing === "string") {
7
+ return `var(--wui-spacing-${spacing})`;
8
+ }
9
+ return void 0;
10
+ },
11
+ getFormattedDate(date) {
12
+ return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(date);
13
+ },
14
+ getHostName(url) {
15
+ try {
16
+ const newUrl = new URL(url);
17
+ return newUrl.hostname;
18
+ } catch (error) {
19
+ return "";
20
+ }
21
+ },
22
+ getTruncateString({ string, charsStart, charsEnd, truncate }) {
23
+ if (string.length <= charsStart + charsEnd) {
24
+ return string;
25
+ }
26
+ if (truncate === "end") {
27
+ return `${string.substring(0, charsStart)}...`;
28
+ } else if (truncate === "start") {
29
+ return `...${string.substring(string.length - charsEnd)}`;
30
+ }
31
+ return `${string.substring(0, Math.floor(charsStart))}...${string.substring(string.length - Math.floor(charsEnd))}`;
32
+ },
33
+ generateAvatarColors(address) {
34
+ const hash = address.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "");
35
+ const baseColor = hash.substring(0, 6).padEnd(6, "0");
36
+ const rgbColor = this.hexToRgb(baseColor);
37
+ const masterBorderRadius = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master");
38
+ const radius = Number(masterBorderRadius == null ? void 0 : masterBorderRadius.replace("px", ""));
39
+ const edge = 100 - 3 * radius;
40
+ const gradientCircle = `${edge}% ${edge}% at 65% 40%`;
41
+ const colors = [];
42
+ for (let i3 = 0; i3 < 5; i3 += 1) {
43
+ const tintedColor = this.tintColor(rgbColor, 0.15 * i3);
44
+ colors.push(`rgb(${tintedColor[0]}, ${tintedColor[1]}, ${tintedColor[2]})`);
45
+ }
46
+ return `
47
+ --local-color-1: ${colors[0]};
48
+ --local-color-2: ${colors[1]};
49
+ --local-color-3: ${colors[2]};
50
+ --local-color-4: ${colors[3]};
51
+ --local-color-5: ${colors[4]};
52
+ --local-radial-circle: ${gradientCircle}
53
+ `;
54
+ },
55
+ hexToRgb(hex) {
56
+ const bigint = parseInt(hex, 16);
57
+ const r2 = bigint >> 16 & 255;
58
+ const g = bigint >> 8 & 255;
59
+ const b = bigint & 255;
60
+ return [r2, g, b];
61
+ },
62
+ tintColor(rgb, tint) {
63
+ const [r2, g, b] = rgb;
64
+ const tintedR = Math.round(r2 + (255 - r2) * tint);
65
+ const tintedG = Math.round(g + (255 - g) * tint);
66
+ const tintedB = Math.round(b + (255 - b) * tint);
67
+ return [tintedR, tintedG, tintedB];
68
+ },
69
+ isNumber(character) {
70
+ const regex = {
71
+ number: /^[0-9]+$/u
72
+ };
73
+ return regex.number.test(character);
74
+ },
75
+ getColorTheme(theme) {
76
+ var _a;
77
+ if (theme) {
78
+ return theme;
79
+ } else if (typeof window !== "undefined" && window.matchMedia) {
80
+ if ((_a = window.matchMedia("(prefers-color-scheme: dark)")) == null ? void 0 : _a.matches) {
81
+ return "dark";
82
+ }
83
+ return "light";
84
+ }
85
+ return "dark";
86
+ },
87
+ splitBalance(input) {
88
+ const parts = input.split(".");
89
+ if (parts.length === 2) {
90
+ return [parts[0], parts[1]];
91
+ }
92
+ return ["0", "00"];
93
+ },
94
+ roundNumber(number, threshold, fixed) {
95
+ const roundedNumber = number.toString().length >= threshold ? Number(number).toFixed(fixed) : number;
96
+ return roundedNumber;
97
+ },
98
+ formatNumberToLocalString(value, decimals = 2) {
99
+ if (value === void 0) {
100
+ return "0.00";
101
+ }
102
+ if (typeof value === "number") {
103
+ return value.toLocaleString("en-US", {
104
+ maximumFractionDigits: decimals,
105
+ minimumFractionDigits: decimals
106
+ });
107
+ }
108
+ return parseFloat(value).toLocaleString("en-US", {
109
+ maximumFractionDigits: decimals,
110
+ minimumFractionDigits: decimals
111
+ });
112
+ }
113
+ };
114
+ function standardCustomElement(tagName, descriptor) {
115
+ const { kind, elements } = descriptor;
116
+ return {
117
+ kind,
118
+ elements,
119
+ finisher(clazz) {
120
+ if (!customElements.get(tagName)) {
121
+ customElements.define(tagName, clazz);
122
+ }
123
+ }
124
+ };
125
+ }
126
+ function legacyCustomElement(tagName, clazz) {
127
+ if (!customElements.get(tagName)) {
128
+ customElements.define(tagName, clazz);
129
+ }
130
+ return clazz;
131
+ }
132
+ function customElement(tagName) {
133
+ return function create(classOrDescriptor) {
134
+ return typeof classOrDescriptor === "function" ? legacyCustomElement(tagName, classOrDescriptor) : standardCustomElement(tagName, classOrDescriptor);
135
+ };
136
+ }
137
+ /**
138
+ * @license
139
+ * Copyright 2017 Google LLC
140
+ * SPDX-License-Identifier: BSD-3-Clause
141
+ */
142
+ const o$2 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f$2 }, r$2 = (t2 = o$2, e2, r2) => {
143
+ const { kind: n2, metadata: i3 } = r2;
144
+ let s2 = globalThis.litPropertyMetadata.get(i3);
145
+ if (void 0 === s2 && globalThis.litPropertyMetadata.set(i3, s2 = /* @__PURE__ */ new Map()), "setter" === n2 && ((t2 = Object.create(t2)).wrapped = true), s2.set(r2.name, t2), "accessor" === n2) {
146
+ const { name: o2 } = r2;
147
+ return { set(r3) {
148
+ const n3 = e2.get.call(this);
149
+ e2.set.call(this, r3), this.requestUpdate(o2, n3, t2);
150
+ }, init(e3) {
151
+ return void 0 !== e3 && this.C(o2, void 0, t2, e3), e3;
152
+ } };
153
+ }
154
+ if ("setter" === n2) {
155
+ const { name: o2 } = r2;
156
+ return function(r3) {
157
+ const n3 = this[o2];
158
+ e2.call(this, r3), this.requestUpdate(o2, n3, t2);
159
+ };
160
+ }
161
+ throw Error("Unsupported decorator location: " + n2);
162
+ };
163
+ function n$2(t2) {
164
+ return (e2, o2) => "object" == typeof o2 ? r$2(t2, e2, o2) : ((t3, e3, o3) => {
165
+ const r2 = e3.hasOwnProperty(o3);
166
+ return e3.constructor.createProperty(o3, t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
167
+ })(t2, e2, o2);
168
+ }
169
+ /**
170
+ * @license
171
+ * Copyright 2017 Google LLC
172
+ * SPDX-License-Identifier: BSD-3-Clause
173
+ */
174
+ function r$1(r2) {
175
+ return n$2({ ...r2, state: true, attribute: false });
176
+ }
177
+ const styles$6 = i$3`
178
+ :host {
179
+ display: flex;
180
+ width: inherit;
181
+ height: inherit;
182
+ }
183
+ `;
184
+ var __decorate$6 = function(decorators, target, key, desc) {
185
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
186
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
187
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
188
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
189
+ };
190
+ let WuiFlex = class WuiFlex2 extends i$4 {
191
+ render() {
192
+ this.style.cssText = `
193
+ flex-direction: ${this.flexDirection};
194
+ flex-wrap: ${this.flexWrap};
195
+ flex-basis: ${this.flexBasis};
196
+ flex-grow: ${this.flexGrow};
197
+ flex-shrink: ${this.flexShrink};
198
+ align-items: ${this.alignItems};
199
+ justify-content: ${this.justifyContent};
200
+ column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
201
+ row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
202
+ gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
203
+ padding-top: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 0)};
204
+ padding-right: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 1)};
205
+ padding-bottom: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 2)};
206
+ padding-left: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 3)};
207
+ margin-top: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 0)};
208
+ margin-right: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 1)};
209
+ margin-bottom: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 2)};
210
+ margin-left: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 3)};
211
+ `;
212
+ return x`<slot></slot>`;
213
+ }
214
+ };
215
+ WuiFlex.styles = [resetStyles, styles$6];
216
+ __decorate$6([
217
+ n$2()
218
+ ], WuiFlex.prototype, "flexDirection", void 0);
219
+ __decorate$6([
220
+ n$2()
221
+ ], WuiFlex.prototype, "flexWrap", void 0);
222
+ __decorate$6([
223
+ n$2()
224
+ ], WuiFlex.prototype, "flexBasis", void 0);
225
+ __decorate$6([
226
+ n$2()
227
+ ], WuiFlex.prototype, "flexGrow", void 0);
228
+ __decorate$6([
229
+ n$2()
230
+ ], WuiFlex.prototype, "flexShrink", void 0);
231
+ __decorate$6([
232
+ n$2()
233
+ ], WuiFlex.prototype, "alignItems", void 0);
234
+ __decorate$6([
235
+ n$2()
236
+ ], WuiFlex.prototype, "justifyContent", void 0);
237
+ __decorate$6([
238
+ n$2()
239
+ ], WuiFlex.prototype, "columnGap", void 0);
240
+ __decorate$6([
241
+ n$2()
242
+ ], WuiFlex.prototype, "rowGap", void 0);
243
+ __decorate$6([
244
+ n$2()
245
+ ], WuiFlex.prototype, "gap", void 0);
246
+ __decorate$6([
247
+ n$2()
248
+ ], WuiFlex.prototype, "padding", void 0);
249
+ __decorate$6([
250
+ n$2()
251
+ ], WuiFlex.prototype, "margin", void 0);
252
+ WuiFlex = __decorate$6([
253
+ customElement("wui-flex")
254
+ ], WuiFlex);
255
+ /**
256
+ * @license
257
+ * Copyright 2018 Google LLC
258
+ * SPDX-License-Identifier: BSD-3-Clause
259
+ */
260
+ const o$1 = (o2) => o2 ?? E;
261
+ /**
262
+ * @license
263
+ * Copyright 2020 Google LLC
264
+ * SPDX-License-Identifier: BSD-3-Clause
265
+ */
266
+ const i$2 = (o2) => null === o2 || "object" != typeof o2 && "function" != typeof o2, f$1 = (o2) => void 0 === o2.strings;
267
+ /**
268
+ * @license
269
+ * Copyright 2017 Google LLC
270
+ * SPDX-License-Identifier: BSD-3-Clause
271
+ */
272
+ const t = { ATTRIBUTE: 1, CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
273
+ let i$1 = class i {
274
+ constructor(t2) {
275
+ }
276
+ get _$AU() {
277
+ return this._$AM._$AU;
278
+ }
279
+ _$AT(t2, e2, i3) {
280
+ this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
281
+ }
282
+ _$AS(t2, e2) {
283
+ return this.update(t2, e2);
284
+ }
285
+ update(t2, e2) {
286
+ return this.render(...e2);
287
+ }
288
+ };
289
+ /**
290
+ * @license
291
+ * Copyright 2017 Google LLC
292
+ * SPDX-License-Identifier: BSD-3-Clause
293
+ */
294
+ const s$1 = (i3, t2) => {
295
+ var _a;
296
+ const e2 = i3._$AN;
297
+ if (void 0 === e2) return false;
298
+ for (const i4 of e2) (_a = i4._$AO) == null ? void 0 : _a.call(i4, t2, false), s$1(i4, t2);
299
+ return true;
300
+ }, o = (i3) => {
301
+ let t2, e2;
302
+ do {
303
+ if (void 0 === (t2 = i3._$AM)) break;
304
+ e2 = t2._$AN, e2.delete(i3), i3 = t2;
305
+ } while (0 === (e2 == null ? void 0 : e2.size));
306
+ }, r = (i3) => {
307
+ for (let t2; t2 = i3._$AM; i3 = t2) {
308
+ let e2 = t2._$AN;
309
+ if (void 0 === e2) t2._$AN = e2 = /* @__PURE__ */ new Set();
310
+ else if (e2.has(i3)) break;
311
+ e2.add(i3), c$1(t2);
312
+ }
313
+ };
314
+ function h$1(i3) {
315
+ void 0 !== this._$AN ? (o(this), this._$AM = i3, r(this)) : this._$AM = i3;
316
+ }
317
+ function n$1(i3, t2 = false, e2 = 0) {
318
+ const r2 = this._$AH, h2 = this._$AN;
319
+ if (void 0 !== h2 && 0 !== h2.size) if (t2) if (Array.isArray(r2)) for (let i4 = e2; i4 < r2.length; i4++) s$1(r2[i4], false), o(r2[i4]);
320
+ else null != r2 && (s$1(r2, false), o(r2));
321
+ else s$1(this, i3);
322
+ }
323
+ const c$1 = (i3) => {
324
+ i3.type == t.CHILD && (i3._$AP ?? (i3._$AP = n$1), i3._$AQ ?? (i3._$AQ = h$1));
325
+ };
326
+ class f extends i$1 {
327
+ constructor() {
328
+ super(...arguments), this._$AN = void 0;
329
+ }
330
+ _$AT(i3, t2, e2) {
331
+ super._$AT(i3, t2, e2), r(this), this.isConnected = i3._$AU;
332
+ }
333
+ _$AO(i3, t2 = true) {
334
+ var _a, _b;
335
+ i3 !== this.isConnected && (this.isConnected = i3, i3 ? (_a = this.reconnected) == null ? void 0 : _a.call(this) : (_b = this.disconnected) == null ? void 0 : _b.call(this)), t2 && (s$1(this, i3), o(this));
336
+ }
337
+ setValue(t2) {
338
+ if (f$1(this._$Ct)) this._$Ct._$AI(t2, this);
339
+ else {
340
+ const i3 = [...this._$Ct._$AH];
341
+ i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
342
+ }
343
+ }
344
+ disconnected() {
345
+ }
346
+ reconnected() {
347
+ }
348
+ }
349
+ /**
350
+ * @license
351
+ * Copyright 2021 Google LLC
352
+ * SPDX-License-Identifier: BSD-3-Clause
353
+ */
354
+ class s {
355
+ constructor(t2) {
356
+ this.G = t2;
357
+ }
358
+ disconnect() {
359
+ this.G = void 0;
360
+ }
361
+ reconnect(t2) {
362
+ this.G = t2;
363
+ }
364
+ deref() {
365
+ return this.G;
366
+ }
367
+ }
368
+ class i2 {
369
+ constructor() {
370
+ this.Y = void 0, this.Z = void 0;
371
+ }
372
+ get() {
373
+ return this.Y;
374
+ }
375
+ pause() {
376
+ this.Y ?? (this.Y = new Promise((t2) => this.Z = t2));
377
+ }
378
+ resume() {
379
+ var _a;
380
+ (_a = this.Z) == null ? void 0 : _a.call(this), this.Y = this.Z = void 0;
381
+ }
382
+ }
383
+ /**
384
+ * @license
385
+ * Copyright 2017 Google LLC
386
+ * SPDX-License-Identifier: BSD-3-Clause
387
+ */
388
+ const n = (t2) => !i$2(t2) && "function" == typeof t2.then, h = 1073741823;
389
+ class c extends f {
390
+ constructor() {
391
+ super(...arguments), this._$Cwt = h, this._$Cbt = [], this._$CK = new s(this), this._$CX = new i2();
392
+ }
393
+ render(...s2) {
394
+ return s2.find((t2) => !n(t2)) ?? T;
395
+ }
396
+ update(s2, i3) {
397
+ const e2 = this._$Cbt;
398
+ let r2 = e2.length;
399
+ this._$Cbt = i3;
400
+ const o2 = this._$CK, c2 = this._$CX;
401
+ this.isConnected || this.disconnected();
402
+ for (let t2 = 0; t2 < i3.length && !(t2 > this._$Cwt); t2++) {
403
+ const s3 = i3[t2];
404
+ if (!n(s3)) return this._$Cwt = t2, s3;
405
+ t2 < r2 && s3 === e2[t2] || (this._$Cwt = h, r2 = 0, Promise.resolve(s3).then(async (t3) => {
406
+ for (; c2.get(); ) await c2.get();
407
+ const i4 = o2.deref();
408
+ if (void 0 !== i4) {
409
+ const e3 = i4._$Cbt.indexOf(s3);
410
+ e3 > -1 && e3 < i4._$Cwt && (i4._$Cwt = e3, i4.setValue(t3));
411
+ }
412
+ }));
413
+ }
414
+ return T;
415
+ }
416
+ disconnected() {
417
+ this._$CK.disconnect(), this._$CX.pause();
418
+ }
419
+ reconnected() {
420
+ this._$CK.reconnect(this), this._$CX.resume();
421
+ }
422
+ }
423
+ const m = e$1(c);
424
+ class CacheUtil {
425
+ constructor() {
426
+ this.cache = /* @__PURE__ */ new Map();
427
+ }
428
+ set(key, value) {
429
+ this.cache.set(key, value);
430
+ }
431
+ get(key) {
432
+ return this.cache.get(key);
433
+ }
434
+ has(key) {
435
+ return this.cache.has(key);
436
+ }
437
+ delete(key) {
438
+ this.cache.delete(key);
439
+ }
440
+ clear() {
441
+ this.cache.clear();
442
+ }
443
+ }
444
+ const globalSvgCache = new CacheUtil();
445
+ const styles$5 = i$3`
446
+ :host {
447
+ display: flex;
448
+ aspect-ratio: var(--local-aspect-ratio);
449
+ color: var(--local-color);
450
+ width: var(--local-width);
451
+ }
452
+
453
+ svg {
454
+ width: inherit;
455
+ height: inherit;
456
+ object-fit: contain;
457
+ object-position: center;
458
+ }
459
+
460
+ .fallback {
461
+ width: var(--local-width);
462
+ height: var(--local-height);
463
+ }
464
+ `;
465
+ var __decorate$5 = function(decorators, target, key, desc) {
466
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
467
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
468
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
469
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
470
+ };
471
+ const ICONS = {
472
+ add: async () => (await import("./add-BJQPsA8k.js")).addSvg,
473
+ allWallets: async () => (await import("./all-wallets-B11_4Ybe.js")).allWalletsSvg,
474
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-Cs2knW0e.js")).arrowBottomCircleSvg,
475
+ appStore: async () => (await import("./app-store-CARimMW3.js")).appStoreSvg,
476
+ apple: async () => (await import("./apple-DEuxqvQi.js")).appleSvg,
477
+ arrowBottom: async () => (await import("./arrow-bottom-BsHbGBdB.js")).arrowBottomSvg,
478
+ arrowLeft: async () => (await import("./arrow-left-DzEykZh_.js")).arrowLeftSvg,
479
+ arrowRight: async () => (await import("./arrow-right-BhBVwf9g.js")).arrowRightSvg,
480
+ arrowTop: async () => (await import("./arrow-top-CQFpDrN4.js")).arrowTopSvg,
481
+ bank: async () => (await import("./bank-CjU2Dyen.js")).bankSvg,
482
+ browser: async () => (await import("./browser-DuTL2ZwF.js")).browserSvg,
483
+ card: async () => (await import("./card-H_VBjXH3.js")).cardSvg,
484
+ checkmark: async () => (await import("./checkmark-Dtjtjmf1.js")).checkmarkSvg,
485
+ checkmarkBold: async () => (await import("./checkmark-bold-z4hM-TsC.js")).checkmarkBoldSvg,
486
+ chevronBottom: async () => (await import("./chevron-bottom-CtArV2wF.js")).chevronBottomSvg,
487
+ chevronLeft: async () => (await import("./chevron-left-DdvY2CTb.js")).chevronLeftSvg,
488
+ chevronRight: async () => (await import("./chevron-right-CFXUESPe.js")).chevronRightSvg,
489
+ chevronTop: async () => (await import("./chevron-top-Dy9Hw3fV.js")).chevronTopSvg,
490
+ chromeStore: async () => (await import("./chrome-store-C_pTffOw.js")).chromeStoreSvg,
491
+ clock: async () => (await import("./clock-CMOyk9S9.js")).clockSvg,
492
+ close: async () => (await import("./close-Dms7aMSR.js")).closeSvg,
493
+ compass: async () => (await import("./compass-DNOfEAM2.js")).compassSvg,
494
+ coinPlaceholder: async () => (await import("./coinPlaceholder-B2cZTC3R.js")).coinPlaceholderSvg,
495
+ copy: async () => (await import("./copy-DZbibH1K.js")).copySvg,
496
+ cursor: async () => (await import("./cursor-BbBjTjwp.js")).cursorSvg,
497
+ cursorTransparent: async () => (await import("./cursor-transparent-DCOjv2sR.js")).cursorTransparentSvg,
498
+ desktop: async () => (await import("./desktop-uyYbF0Mn.js")).desktopSvg,
499
+ disconnect: async () => (await import("./disconnect-CetZ4edH.js")).disconnectSvg,
500
+ discord: async () => (await import("./discord-Cf_HZf3N.js")).discordSvg,
501
+ etherscan: async () => (await import("./etherscan-C4OLKng2.js")).etherscanSvg,
502
+ extension: async () => (await import("./extension-DxctmiWz.js")).extensionSvg,
503
+ externalLink: async () => (await import("./external-link-MqCcqsdd.js")).externalLinkSvg,
504
+ facebook: async () => (await import("./facebook-C4dd-ziA.js")).facebookSvg,
505
+ farcaster: async () => (await import("./farcaster-CeVdeAEP.js")).farcasterSvg,
506
+ filters: async () => (await import("./filters-BiMkQFV8.js")).filtersSvg,
507
+ github: async () => (await import("./github-CU_W_N6N.js")).githubSvg,
508
+ google: async () => (await import("./google-7s8MQVzB.js")).googleSvg,
509
+ helpCircle: async () => (await import("./help-circle-C3-nycKi.js")).helpCircleSvg,
510
+ image: async () => (await import("./image-DPaMR_cv.js")).imageSvg,
511
+ id: async () => (await import("./id-C2tHtjX6.js")).idSvg,
512
+ infoCircle: async () => (await import("./info-circle-B_IxCfxa.js")).infoCircleSvg,
513
+ lightbulb: async () => (await import("./lightbulb-1XI0Bxv-.js")).lightbulbSvg,
514
+ mail: async () => (await import("./mail-CJW1dmhW.js")).mailSvg,
515
+ mobile: async () => (await import("./mobile-DHY_7Eey.js")).mobileSvg,
516
+ more: async () => (await import("./more-CHCKQBcM.js")).moreSvg,
517
+ networkPlaceholder: async () => (await import("./network-placeholder-Bjoe5sTj.js")).networkPlaceholderSvg,
518
+ nftPlaceholder: async () => (await import("./nftPlaceholder-BfGB28hh.js")).nftPlaceholderSvg,
519
+ off: async () => (await import("./off-Bf2iuTEi.js")).offSvg,
520
+ playStore: async () => (await import("./play-store-BIvS0r4I.js")).playStoreSvg,
521
+ plus: async () => (await import("./plus-qgz3JQAB.js")).plusSvg,
522
+ qrCode: async () => (await import("./qr-code-BuWsCw2z.js")).qrCodeIcon,
523
+ recycleHorizontal: async () => (await import("./recycle-horizontal-B1CVSSLJ.js")).recycleHorizontalSvg,
524
+ refresh: async () => (await import("./refresh-BhvhNniM.js")).refreshSvg,
525
+ search: async () => (await import("./search-BTpo0HGA.js")).searchSvg,
526
+ send: async () => (await import("./send-B8pnkBAp.js")).sendSvg,
527
+ swapHorizontal: async () => (await import("./swapHorizontal-A29wlFie.js")).swapHorizontalSvg,
528
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-BZPbiWG7.js")).swapHorizontalMediumSvg,
529
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-CG4RbMR8.js")).swapHorizontalBoldSvg,
530
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-CgYvX4sR.js")).swapHorizontalRoundedBoldSvg,
531
+ swapVertical: async () => (await import("./swapVertical-DGjhPMtl.js")).swapVerticalSvg,
532
+ telegram: async () => (await import("./telegram-BTYv80UF.js")).telegramSvg,
533
+ threeDots: async () => (await import("./three-dots-CK7eAfOP.js")).threeDotsSvg,
534
+ twitch: async () => (await import("./twitch-K05X_UT8.js")).twitchSvg,
535
+ twitter: async () => (await import("./x-Dd85BL0v.js")).xSvg,
536
+ twitterIcon: async () => (await import("./twitterIcon-BE4qUrhF.js")).twitterIconSvg,
537
+ verify: async () => (await import("./verify-zHV40_w6.js")).verifySvg,
538
+ verifyFilled: async () => (await import("./verify-filled-BfZdE__v.js")).verifyFilledSvg,
539
+ wallet: async () => (await import("./wallet-BTbqWApb.js")).walletSvg,
540
+ walletConnect: async () => (await import("./walletconnect-BgwXLnVI.js")).walletConnectSvg,
541
+ walletConnectLightBrown: async () => (await import("./walletconnect-BgwXLnVI.js")).walletConnectLightBrownSvg,
542
+ walletConnectBrown: async () => (await import("./walletconnect-BgwXLnVI.js")).walletConnectBrownSvg,
543
+ walletPlaceholder: async () => (await import("./wallet-placeholder-B6hnZ20G.js")).walletPlaceholderSvg,
544
+ warningCircle: async () => (await import("./warning-circle-B-OJt-sc.js")).warningCircleSvg,
545
+ x: async () => (await import("./x-Dd85BL0v.js")).xSvg,
546
+ info: async () => (await import("./info-qKe_hnXy.js")).infoSvg,
547
+ exclamationTriangle: async () => (await import("./exclamation-triangle-uVxTDhvu.js")).exclamationTriangleSvg,
548
+ reown: async () => (await import("./reown-logo-C5z3wp07.js")).reownSvg
549
+ };
550
+ async function getSvg(name) {
551
+ if (globalSvgCache.has(name)) {
552
+ return globalSvgCache.get(name);
553
+ }
554
+ const importFn = ICONS[name] ?? ICONS.copy;
555
+ const svgPromise = importFn();
556
+ globalSvgCache.set(name, svgPromise);
557
+ return svgPromise;
558
+ }
559
+ let WuiIcon = class WuiIcon2 extends i$4 {
560
+ constructor() {
561
+ super(...arguments);
562
+ this.size = "md";
563
+ this.name = "copy";
564
+ this.color = "fg-300";
565
+ this.aspectRatio = "1 / 1";
566
+ }
567
+ render() {
568
+ this.style.cssText = `
569
+ --local-color: ${`var(--wui-color-${this.color});`}
570
+ --local-width: ${`var(--wui-icon-size-${this.size});`}
571
+ --local-aspect-ratio: ${this.aspectRatio}
572
+ `;
573
+ return x`${m(getSvg(this.name), x`<div class="fallback"></div>`)}`;
574
+ }
575
+ };
576
+ WuiIcon.styles = [resetStyles, colorStyles, styles$5];
577
+ __decorate$5([
578
+ n$2()
579
+ ], WuiIcon.prototype, "size", void 0);
580
+ __decorate$5([
581
+ n$2()
582
+ ], WuiIcon.prototype, "name", void 0);
583
+ __decorate$5([
584
+ n$2()
585
+ ], WuiIcon.prototype, "color", void 0);
586
+ __decorate$5([
587
+ n$2()
588
+ ], WuiIcon.prototype, "aspectRatio", void 0);
589
+ WuiIcon = __decorate$5([
590
+ customElement("wui-icon")
591
+ ], WuiIcon);
592
+ /**
593
+ * @license
594
+ * Copyright 2018 Google LLC
595
+ * SPDX-License-Identifier: BSD-3-Clause
596
+ */
597
+ const e = e$1(class extends i$1 {
598
+ constructor(t$1) {
599
+ var _a;
600
+ if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
601
+ }
602
+ render(t2) {
603
+ return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
604
+ }
605
+ update(s2, [i3]) {
606
+ var _a, _b;
607
+ if (void 0 === this.st) {
608
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
609
+ for (const t2 in i3) i3[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
610
+ return this.render(i3);
611
+ }
612
+ const r2 = s2.element.classList;
613
+ for (const t2 of this.st) t2 in i3 || (r2.remove(t2), this.st.delete(t2));
614
+ for (const t2 in i3) {
615
+ const s3 = !!i3[t2];
616
+ s3 === this.st.has(t2) || ((_b = this.nt) == null ? void 0 : _b.has(t2)) || (s3 ? (r2.add(t2), this.st.add(t2)) : (r2.remove(t2), this.st.delete(t2)));
617
+ }
618
+ return T;
619
+ }
620
+ });
621
+ const styles$4 = i$3`
622
+ :host {
623
+ display: inline-flex !important;
624
+ }
625
+
626
+ slot {
627
+ width: 100%;
628
+ display: inline-block;
629
+ font-style: normal;
630
+ font-family: var(--wui-font-family);
631
+ font-feature-settings:
632
+ 'tnum' on,
633
+ 'lnum' on,
634
+ 'case' on;
635
+ line-height: 130%;
636
+ font-weight: var(--wui-font-weight-regular);
637
+ overflow: inherit;
638
+ text-overflow: inherit;
639
+ text-align: var(--local-align);
640
+ color: var(--local-color);
641
+ }
642
+
643
+ .wui-line-clamp-1 {
644
+ overflow: hidden;
645
+ display: -webkit-box;
646
+ -webkit-box-orient: vertical;
647
+ -webkit-line-clamp: 1;
648
+ }
649
+
650
+ .wui-line-clamp-2 {
651
+ overflow: hidden;
652
+ display: -webkit-box;
653
+ -webkit-box-orient: vertical;
654
+ -webkit-line-clamp: 2;
655
+ }
656
+
657
+ .wui-font-medium-400 {
658
+ font-size: var(--wui-font-size-medium);
659
+ font-weight: var(--wui-font-weight-light);
660
+ letter-spacing: var(--wui-letter-spacing-medium);
661
+ }
662
+
663
+ .wui-font-medium-600 {
664
+ font-size: var(--wui-font-size-medium);
665
+ letter-spacing: var(--wui-letter-spacing-medium);
666
+ }
667
+
668
+ .wui-font-title-600 {
669
+ font-size: var(--wui-font-size-title);
670
+ letter-spacing: var(--wui-letter-spacing-title);
671
+ }
672
+
673
+ .wui-font-title-6-600 {
674
+ font-size: var(--wui-font-size-title-6);
675
+ letter-spacing: var(--wui-letter-spacing-title-6);
676
+ }
677
+
678
+ .wui-font-mini-700 {
679
+ font-size: var(--wui-font-size-mini);
680
+ letter-spacing: var(--wui-letter-spacing-mini);
681
+ text-transform: uppercase;
682
+ }
683
+
684
+ .wui-font-large-500,
685
+ .wui-font-large-600,
686
+ .wui-font-large-700 {
687
+ font-size: var(--wui-font-size-large);
688
+ letter-spacing: var(--wui-letter-spacing-large);
689
+ }
690
+
691
+ .wui-font-2xl-500,
692
+ .wui-font-2xl-600,
693
+ .wui-font-2xl-700 {
694
+ font-size: var(--wui-font-size-2xl);
695
+ letter-spacing: var(--wui-letter-spacing-2xl);
696
+ }
697
+
698
+ .wui-font-paragraph-400,
699
+ .wui-font-paragraph-500,
700
+ .wui-font-paragraph-600,
701
+ .wui-font-paragraph-700 {
702
+ font-size: var(--wui-font-size-paragraph);
703
+ letter-spacing: var(--wui-letter-spacing-paragraph);
704
+ }
705
+
706
+ .wui-font-small-400,
707
+ .wui-font-small-500,
708
+ .wui-font-small-600 {
709
+ font-size: var(--wui-font-size-small);
710
+ letter-spacing: var(--wui-letter-spacing-small);
711
+ }
712
+
713
+ .wui-font-tiny-400,
714
+ .wui-font-tiny-500,
715
+ .wui-font-tiny-600 {
716
+ font-size: var(--wui-font-size-tiny);
717
+ letter-spacing: var(--wui-letter-spacing-tiny);
718
+ }
719
+
720
+ .wui-font-micro-700,
721
+ .wui-font-micro-600 {
722
+ font-size: var(--wui-font-size-micro);
723
+ letter-spacing: var(--wui-letter-spacing-micro);
724
+ text-transform: uppercase;
725
+ }
726
+
727
+ .wui-font-tiny-400,
728
+ .wui-font-small-400,
729
+ .wui-font-medium-400,
730
+ .wui-font-paragraph-400 {
731
+ font-weight: var(--wui-font-weight-light);
732
+ }
733
+
734
+ .wui-font-large-700,
735
+ .wui-font-paragraph-700,
736
+ .wui-font-micro-700,
737
+ .wui-font-mini-700 {
738
+ font-weight: var(--wui-font-weight-bold);
739
+ }
740
+
741
+ .wui-font-medium-600,
742
+ .wui-font-medium-title-600,
743
+ .wui-font-title-6-600,
744
+ .wui-font-large-600,
745
+ .wui-font-paragraph-600,
746
+ .wui-font-small-600,
747
+ .wui-font-tiny-600,
748
+ .wui-font-micro-600 {
749
+ font-weight: var(--wui-font-weight-medium);
750
+ }
751
+
752
+ :host([disabled]) {
753
+ opacity: 0.4;
754
+ }
755
+ `;
756
+ var __decorate$4 = function(decorators, target, key, desc) {
757
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
758
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
759
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
760
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
761
+ };
762
+ let WuiText = class WuiText2 extends i$4 {
763
+ constructor() {
764
+ super(...arguments);
765
+ this.variant = "paragraph-500";
766
+ this.color = "fg-300";
767
+ this.align = "left";
768
+ this.lineClamp = void 0;
769
+ }
770
+ render() {
771
+ const classes = {
772
+ [`wui-font-${this.variant}`]: true,
773
+ [`wui-color-${this.color}`]: true,
774
+ [`wui-line-clamp-${this.lineClamp}`]: this.lineClamp ? true : false
775
+ };
776
+ this.style.cssText = `
777
+ --local-align: ${this.align};
778
+ --local-color: var(--wui-color-${this.color});
779
+ `;
780
+ return x`<slot class=${e(classes)}></slot>`;
781
+ }
782
+ };
783
+ WuiText.styles = [resetStyles, styles$4];
784
+ __decorate$4([
785
+ n$2()
786
+ ], WuiText.prototype, "variant", void 0);
787
+ __decorate$4([
788
+ n$2()
789
+ ], WuiText.prototype, "color", void 0);
790
+ __decorate$4([
791
+ n$2()
792
+ ], WuiText.prototype, "align", void 0);
793
+ __decorate$4([
794
+ n$2()
795
+ ], WuiText.prototype, "lineClamp", void 0);
796
+ WuiText = __decorate$4([
797
+ customElement("wui-text")
798
+ ], WuiText);
799
+ const styles$3 = i$3`
800
+ :host {
801
+ display: inline-flex;
802
+ justify-content: center;
803
+ align-items: center;
804
+ position: relative;
805
+ overflow: hidden;
806
+ background-color: var(--wui-color-gray-glass-020);
807
+ border-radius: var(--local-border-radius);
808
+ border: var(--local-border);
809
+ box-sizing: content-box;
810
+ width: var(--local-size);
811
+ height: var(--local-size);
812
+ min-height: var(--local-size);
813
+ min-width: var(--local-size);
814
+ }
815
+
816
+ @supports (background: color-mix(in srgb, white 50%, black)) {
817
+ :host {
818
+ background-color: color-mix(in srgb, var(--local-bg-value) var(--local-bg-mix), transparent);
819
+ }
820
+ }
821
+ `;
822
+ var __decorate$3 = function(decorators, target, key, desc) {
823
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
824
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
825
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
826
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
827
+ };
828
+ let WuiIconBox = class WuiIconBox2 extends i$4 {
829
+ constructor() {
830
+ super(...arguments);
831
+ this.size = "md";
832
+ this.backgroundColor = "accent-100";
833
+ this.iconColor = "accent-100";
834
+ this.background = "transparent";
835
+ this.border = false;
836
+ this.borderColor = "wui-color-bg-125";
837
+ this.icon = "copy";
838
+ }
839
+ render() {
840
+ const iconSize = this.iconSize || this.size;
841
+ const isLg = this.size === "lg";
842
+ const isXl = this.size === "xl";
843
+ const bgMix = isLg ? "12%" : "16%";
844
+ const borderRadius = isLg ? "xxs" : isXl ? "s" : "3xl";
845
+ const isGray = this.background === "gray";
846
+ const isOpaque = this.background === "opaque";
847
+ const isColorChange = this.backgroundColor === "accent-100" && isOpaque || this.backgroundColor === "success-100" && isOpaque || this.backgroundColor === "error-100" && isOpaque || this.backgroundColor === "inverse-100" && isOpaque;
848
+ let bgValueVariable = `var(--wui-color-${this.backgroundColor})`;
849
+ if (isColorChange) {
850
+ bgValueVariable = `var(--wui-icon-box-bg-${this.backgroundColor})`;
851
+ } else if (isGray) {
852
+ bgValueVariable = `var(--wui-color-gray-${this.backgroundColor})`;
853
+ }
854
+ this.style.cssText = `
855
+ --local-bg-value: ${bgValueVariable};
856
+ --local-bg-mix: ${isColorChange || isGray ? `100%` : bgMix};
857
+ --local-border-radius: var(--wui-border-radius-${borderRadius});
858
+ --local-size: var(--wui-icon-box-size-${this.size});
859
+ --local-border: ${this.borderColor === "wui-color-bg-125" ? `2px` : `1px`} solid ${this.border ? `var(--${this.borderColor})` : `transparent`}
860
+ `;
861
+ return x` <wui-icon color=${this.iconColor} size=${iconSize} name=${this.icon}></wui-icon> `;
862
+ }
863
+ };
864
+ WuiIconBox.styles = [resetStyles, elementStyles, styles$3];
865
+ __decorate$3([
866
+ n$2()
867
+ ], WuiIconBox.prototype, "size", void 0);
868
+ __decorate$3([
869
+ n$2()
870
+ ], WuiIconBox.prototype, "backgroundColor", void 0);
871
+ __decorate$3([
872
+ n$2()
873
+ ], WuiIconBox.prototype, "iconColor", void 0);
874
+ __decorate$3([
875
+ n$2()
876
+ ], WuiIconBox.prototype, "iconSize", void 0);
877
+ __decorate$3([
878
+ n$2()
879
+ ], WuiIconBox.prototype, "background", void 0);
880
+ __decorate$3([
881
+ n$2({ type: Boolean })
882
+ ], WuiIconBox.prototype, "border", void 0);
883
+ __decorate$3([
884
+ n$2()
885
+ ], WuiIconBox.prototype, "borderColor", void 0);
886
+ __decorate$3([
887
+ n$2()
888
+ ], WuiIconBox.prototype, "icon", void 0);
889
+ WuiIconBox = __decorate$3([
890
+ customElement("wui-icon-box")
891
+ ], WuiIconBox);
892
+ const styles$2 = i$3`
893
+ :host {
894
+ display: block;
895
+ width: var(--local-width);
896
+ height: var(--local-height);
897
+ }
898
+
899
+ img {
900
+ display: block;
901
+ width: 100%;
902
+ height: 100%;
903
+ object-fit: cover;
904
+ object-position: center center;
905
+ border-radius: inherit;
906
+ }
907
+ `;
908
+ var __decorate$2 = function(decorators, target, key, desc) {
909
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
910
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
911
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
912
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
913
+ };
914
+ let WuiImage = class WuiImage2 extends i$4 {
915
+ constructor() {
916
+ super(...arguments);
917
+ this.src = "./path/to/image.jpg";
918
+ this.alt = "Image";
919
+ this.size = void 0;
920
+ }
921
+ render() {
922
+ this.style.cssText = `
923
+ --local-width: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
924
+ --local-height: ${this.size ? `var(--wui-icon-size-${this.size});` : "100%"};
925
+ `;
926
+ return x`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`;
927
+ }
928
+ handleImageError() {
929
+ this.dispatchEvent(new CustomEvent("onLoadError", { bubbles: true, composed: true }));
930
+ }
931
+ };
932
+ WuiImage.styles = [resetStyles, colorStyles, styles$2];
933
+ __decorate$2([
934
+ n$2()
935
+ ], WuiImage.prototype, "src", void 0);
936
+ __decorate$2([
937
+ n$2()
938
+ ], WuiImage.prototype, "alt", void 0);
939
+ __decorate$2([
940
+ n$2()
941
+ ], WuiImage.prototype, "size", void 0);
942
+ WuiImage = __decorate$2([
943
+ customElement("wui-image")
944
+ ], WuiImage);
945
+ const styles$1 = i$3`
946
+ :host {
947
+ display: flex;
948
+ justify-content: center;
949
+ align-items: center;
950
+ height: var(--wui-spacing-m);
951
+ padding: 0 var(--wui-spacing-3xs) !important;
952
+ border-radius: var(--wui-border-radius-5xs);
953
+ transition:
954
+ border-radius var(--wui-duration-lg) var(--wui-ease-out-power-1),
955
+ background-color var(--wui-duration-lg) var(--wui-ease-out-power-1);
956
+ will-change: border-radius, background-color;
957
+ }
958
+
959
+ :host > wui-text {
960
+ transform: translateY(5%);
961
+ }
962
+
963
+ :host([data-variant='main']) {
964
+ background-color: var(--wui-color-accent-glass-015);
965
+ color: var(--wui-color-accent-100);
966
+ }
967
+
968
+ :host([data-variant='shade']) {
969
+ background-color: var(--wui-color-gray-glass-010);
970
+ color: var(--wui-color-fg-200);
971
+ }
972
+
973
+ :host([data-variant='success']) {
974
+ background-color: var(--wui-icon-box-bg-success-100);
975
+ color: var(--wui-color-success-100);
976
+ }
977
+
978
+ :host([data-variant='error']) {
979
+ background-color: var(--wui-icon-box-bg-error-100);
980
+ color: var(--wui-color-error-100);
981
+ }
982
+
983
+ :host([data-size='lg']) {
984
+ padding: 11px 5px !important;
985
+ }
986
+
987
+ :host([data-size='lg']) > wui-text {
988
+ transform: translateY(2%);
989
+ }
990
+ `;
991
+ var __decorate$1 = function(decorators, target, key, desc) {
992
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
993
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
994
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
995
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
996
+ };
997
+ let WuiTag = class WuiTag2 extends i$4 {
998
+ constructor() {
999
+ super(...arguments);
1000
+ this.variant = "main";
1001
+ this.size = "lg";
1002
+ }
1003
+ render() {
1004
+ this.dataset["variant"] = this.variant;
1005
+ this.dataset["size"] = this.size;
1006
+ const textVariant = this.size === "md" ? "mini-700" : "micro-700";
1007
+ return x`
1008
+ <wui-text data-variant=${this.variant} variant=${textVariant} color="inherit">
1009
+ <slot></slot>
1010
+ </wui-text>
1011
+ `;
1012
+ }
1013
+ };
1014
+ WuiTag.styles = [resetStyles, styles$1];
1015
+ __decorate$1([
1016
+ n$2()
1017
+ ], WuiTag.prototype, "variant", void 0);
1018
+ __decorate$1([
1019
+ n$2()
1020
+ ], WuiTag.prototype, "size", void 0);
1021
+ WuiTag = __decorate$1([
1022
+ customElement("wui-tag")
1023
+ ], WuiTag);
1024
+ const styles = i$3`
1025
+ :host {
1026
+ display: flex;
1027
+ }
1028
+
1029
+ :host([data-size='sm']) > svg {
1030
+ width: 12px;
1031
+ height: 12px;
1032
+ }
1033
+
1034
+ :host([data-size='md']) > svg {
1035
+ width: 16px;
1036
+ height: 16px;
1037
+ }
1038
+
1039
+ :host([data-size='lg']) > svg {
1040
+ width: 24px;
1041
+ height: 24px;
1042
+ }
1043
+
1044
+ :host([data-size='xl']) > svg {
1045
+ width: 32px;
1046
+ height: 32px;
1047
+ }
1048
+
1049
+ svg {
1050
+ animation: rotate 2s linear infinite;
1051
+ }
1052
+
1053
+ circle {
1054
+ fill: none;
1055
+ stroke: var(--local-color);
1056
+ stroke-width: 4px;
1057
+ stroke-dasharray: 1, 124;
1058
+ stroke-dashoffset: 0;
1059
+ stroke-linecap: round;
1060
+ animation: dash 1.5s ease-in-out infinite;
1061
+ }
1062
+
1063
+ :host([data-size='md']) > svg > circle {
1064
+ stroke-width: 6px;
1065
+ }
1066
+
1067
+ :host([data-size='sm']) > svg > circle {
1068
+ stroke-width: 8px;
1069
+ }
1070
+
1071
+ @keyframes rotate {
1072
+ 100% {
1073
+ transform: rotate(360deg);
1074
+ }
1075
+ }
1076
+
1077
+ @keyframes dash {
1078
+ 0% {
1079
+ stroke-dasharray: 1, 124;
1080
+ stroke-dashoffset: 0;
1081
+ }
1082
+
1083
+ 50% {
1084
+ stroke-dasharray: 90, 124;
1085
+ stroke-dashoffset: -35;
1086
+ }
1087
+
1088
+ 100% {
1089
+ stroke-dashoffset: -125;
1090
+ }
1091
+ }
1092
+ `;
1093
+ var __decorate = function(decorators, target, key, desc) {
1094
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1095
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1096
+ else for (var i3 = decorators.length - 1; i3 >= 0; i3--) if (d = decorators[i3]) r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
1097
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1098
+ };
1099
+ let WuiLoadingSpinner = class WuiLoadingSpinner2 extends i$4 {
1100
+ constructor() {
1101
+ super(...arguments);
1102
+ this.color = "accent-100";
1103
+ this.size = "lg";
1104
+ }
1105
+ render() {
1106
+ this.style.cssText = `--local-color: ${this.color === "inherit" ? "inherit" : `var(--wui-color-${this.color})`}`;
1107
+ this.dataset["size"] = this.size;
1108
+ return x`<svg viewBox="25 25 50 50">
1109
+ <circle r="20" cy="50" cx="50"></circle>
1110
+ </svg>`;
1111
+ }
1112
+ };
1113
+ WuiLoadingSpinner.styles = [resetStyles, styles];
1114
+ __decorate([
1115
+ n$2()
1116
+ ], WuiLoadingSpinner.prototype, "color", void 0);
1117
+ __decorate([
1118
+ n$2()
1119
+ ], WuiLoadingSpinner.prototype, "size", void 0);
1120
+ WuiLoadingSpinner = __decorate([
1121
+ customElement("wui-loading-spinner")
1122
+ ], WuiLoadingSpinner);
1123
+ export {
1124
+ UiHelperUtil as U,
1125
+ e as a,
1126
+ customElement as c,
1127
+ e$1 as e,
1128
+ f,
1129
+ n$2 as n,
1130
+ o$1 as o,
1131
+ r$1 as r
1132
+ };