@blockend/widget 1.0.31 → 1.0.32

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 (162) hide show
  1. package/dist/AllRoutes-CPwuTwqd.js +2209 -0
  2. package/dist/Box-CIChapvH.js +55 -0
  3. package/dist/EstGas-CEFILtyf.js +12867 -0
  4. package/dist/Grow-DJZj9zjv.js +1656 -0
  5. package/dist/InputComp-DqF1JGIu.js +106 -0
  6. package/dist/LoadRoute-r3sHTYXM.js +126 -0
  7. package/dist/QuotesProgress-BXVLxZ8U.js +28 -0
  8. package/dist/SwapAsset-07WvVwl-.js +64 -0
  9. package/dist/Tooltip-CNAsCF8n.js +572 -0
  10. package/dist/TxnButton-D2TTkFYA.js +207 -0
  11. package/dist/WidgetForm.module-QHJ0-m5f.js +9 -0
  12. package/dist/{add-B8AfyNIx.js → add-t2GqC9VA.js} +3 -3
  13. package/dist/{all-wallets-BaLLU39i.js → all-wallets-DFyf0q31.js} +3 -3
  14. package/dist/{app-store-DNpoABj1.js → app-store-aAahwmBP.js} +3 -3
  15. package/dist/{apple-DzzHtaL4.js → apple-DeRgpwlc.js} +3 -3
  16. package/dist/{arrow-bottom-D2c13c51.js → arrow-bottom-DdEOkaAj.js} +3 -3
  17. package/dist/{arrow-bottom-circle-ls9OCLx1.js → arrow-bottom-circle-BWwREWcv.js} +3 -3
  18. package/dist/{arrow-left-BI3rQkNI.js → arrow-left-CulyLmoH.js} +3 -3
  19. package/dist/{arrow-right-rnMzhVod.js → arrow-right-Dwr7TISn.js} +3 -3
  20. package/dist/{arrow-top-CfA6PVMz.js → arrow-top-pL4rM_y8.js} +3 -3
  21. package/dist/{bank-CmpAmHgg.js → bank-CPuyK_08.js} +3 -3
  22. package/dist/basic-CVc9xEvb.js +5783 -0
  23. package/dist/{browser-mEcjgS1H.js → browser-Cbq2Zbp4.js} +3 -3
  24. package/dist/{card-DkgIWcMc.js → card-B_hUtPWK.js} +3 -3
  25. package/dist/ccip-BLVGcR4A.js +228 -0
  26. package/dist/{checkmark-B_A013n2.js → checkmark-WEqTsFAc.js} +3 -3
  27. package/dist/{checkmark-bold-DestuG2T.js → checkmark-bold-Du_ZvhqM.js} +3 -3
  28. package/dist/{chevron-bottom-Di3S86dj.js → chevron-bottom-C-s-lv4L.js} +3 -3
  29. package/dist/{chevron-left-A9Wj-3tj.js → chevron-left-C7NcRElx.js} +3 -3
  30. package/dist/{chevron-right-UFxJogOZ.js → chevron-right-CSzmAmdn.js} +3 -3
  31. package/dist/{chevron-top-BbZs3eaC.js → chevron-top-Dd99Wfel.js} +3 -3
  32. package/dist/{chrome-store-B4F6hJmy.js → chrome-store-C4p77Of0.js} +3 -3
  33. package/dist/{clock-BbAQ09uV.js → clock-Cib24qjH.js} +3 -3
  34. package/dist/clockIcon-C2W5xvyt.js +76 -0
  35. package/dist/{close-CY3oZP_D.js → close-BXjEkTvS.js} +3 -3
  36. package/dist/{coinPlaceholder-DpfsobZT.js → coinPlaceholder-BFNC7cQN.js} +3 -3
  37. package/dist/{compass-CHS7RZFk.js → compass-CXPX5Ycp.js} +3 -3
  38. package/dist/{copy-CEd4nGhs.js → copy-BEawMbmF.js} +3 -3
  39. package/dist/core-Bez9Ow7F.js +14967 -0
  40. package/dist/cursor-Cxq4Q9jk.js +7 -0
  41. package/dist/{cursor-transparent-Tm6k6Ws4.js → cursor-transparent-ZjJ0P2vr.js} +3 -3
  42. package/dist/{desktop-CrSyXZkL.js → desktop-BhZVovAp.js} +3 -3
  43. package/dist/{disconnect-BooT10E1.js → disconnect-AC-bffZO.js} +3 -3
  44. package/dist/{discord-B982Qaml.js → discord-dT97h-CC.js} +3 -3
  45. package/dist/down-DP56YSKp.js +606 -0
  46. package/dist/{etherscan-CFL0IcNl.js → etherscan-rYFRhRTM.js} +3 -3
  47. package/dist/ethertousd-CC_ezooz.js +6 -0
  48. package/dist/{exclamation-triangle-BBeGXYgt.js → exclamation-triangle-C-pCuC08.js} +3 -3
  49. package/dist/{extension-C5WqJw73.js → extension-BnqauLSn.js} +3 -3
  50. package/dist/{external-link-CcSxVDcd.js → external-link-M9D6e_F3.js} +3 -3
  51. package/dist/{facebook-DF0v9ED8.js → facebook-DHezcoD-.js} +3 -3
  52. package/dist/{farcaster-Boq7M4VK.js → farcaster-D0Ky-Imv.js} +3 -3
  53. package/dist/{filters-DfeymbPx.js → filters-B02NYLWq.js} +3 -3
  54. package/dist/getChainIds-CJd2TZYT.js +1888 -0
  55. package/dist/getCosmosAddress-DTZfw04G.js +9565 -0
  56. package/dist/{github-DQ8FV4bD.js → github-BzQkIMuE.js} +3 -3
  57. package/dist/{google-Dm8FDDZR.js → google-BpwCJ4Fs.js} +3 -3
  58. package/dist/hamburger-BzqwkUjE.js +3915 -0
  59. package/dist/{help-circle-CbgiAebR.js → help-circle-C0nOySHC.js} +3 -3
  60. package/dist/{id-CzqxUksI.js → id-DFP_kFd4.js} +3 -3
  61. package/dist/{image-CsCGTIN-.js → image-QiYOAGjM.js} +3 -3
  62. package/dist/index-CDq3vNnP.js +22 -0
  63. package/dist/index-CLzkn733.js +28223 -0
  64. package/dist/index-CjtwASJt.js +252 -0
  65. package/dist/index-CrC4B7xn.js +331 -0
  66. package/dist/index-D5hLIe-N.js +9 -0
  67. package/dist/index-DDk00SOL.js +159 -0
  68. package/dist/index-DTish3yr.js +1014 -0
  69. package/dist/index-DW3W7zaF.js +473 -0
  70. package/dist/index-DXdD3L9f.js +1460 -0
  71. package/dist/index-DaJ1272l.js +18613 -0
  72. package/dist/index-DxPp2gBS.js +992 -0
  73. package/dist/index-Dy_n2MPD.js +3010 -0
  74. package/dist/index-oc8HPfOF.js +13583 -0
  75. package/dist/index.es-Bsr7zP98.js +366 -0
  76. package/dist/index.es-C-j-Ghef.js +11678 -0
  77. package/dist/index.es.js +4 -4
  78. package/dist/{info-fKCfLW0k.js → info-BTLQJ-wd.js} +3 -3
  79. package/dist/{info-circle-Bt350Yzj.js → info-circle-Dla9169_.js} +3 -3
  80. package/dist/{lightbulb-BL9YBxiA.js → lightbulb-PN8DA_Wh.js} +3 -3
  81. package/dist/{mail-_g6CHQeQ.js → mail-BGYZut_4.js} +3 -3
  82. package/dist/{mobile-B-EQ4IcH.js → mobile-BM760ZzX.js} +3 -3
  83. package/dist/{more-C3rpOdUy.js → more-rHGnl2ck.js} +3 -3
  84. package/dist/{network-placeholder-D9Ak7Xj_.js → network-placeholder-CyQl-3_2.js} +3 -3
  85. package/dist/{nftPlaceholder-CIIm2V_o.js → nftPlaceholder-nuUJ8nKY.js} +3 -3
  86. package/dist/{off-DZjgI0eE.js → off-GYlwYDrT.js} +3 -3
  87. package/dist/{play-store-DvRnagoF.js → play-store-Ck01Ez1F.js} +3 -3
  88. package/dist/{plus-C2jN2huZ.js → plus-CQfXWgLw.js} +3 -3
  89. package/dist/{qr-code-B64HnZgi.js → qr-code-CyLVwLY7.js} +3 -3
  90. package/dist/{recycle-horizontal-CovcJGa_.js → recycle-horizontal-DvnWPcEQ.js} +3 -3
  91. package/dist/{refresh-J1Vw6QMA.js → refresh-BOxj8b2n.js} +3 -3
  92. package/dist/{reown-logo-BsXoZ3KT.js → reown-logo-D1iprOTg.js} +3 -3
  93. package/dist/{search-BC86wYXR.js → search-DrPaZPnc.js} +3 -3
  94. package/dist/secp256k1-DgmH1qVg.js +1251 -0
  95. package/dist/{send-BPA1bK5G.js → send-ybBREe4b.js} +3 -3
  96. package/dist/shareicon-D3Qj5j1T.js +262 -0
  97. package/dist/{sortDown-cDA6MpOw.js → sortDown-CjBaDQTU.js} +13 -13
  98. package/dist/{swapHorizontal-47_8ePle.js → swapHorizontal-BddjZdXK.js} +3 -3
  99. package/dist/{swapHorizontalBold-CJ7TzeQP.js → swapHorizontalBold-B6AWjPZ9.js} +3 -3
  100. package/dist/{swapHorizontalMedium-CTACgUR9.js → swapHorizontalMedium-CNacWoBn.js} +3 -3
  101. package/dist/{swapHorizontalRoundedBold-Ht3_LABp.js → swapHorizontalRoundedBold-B8VcPnqt.js} +3 -3
  102. package/dist/{swapVertical-DlS0V6DD.js → swapVertical-zY2BbSyQ.js} +3 -3
  103. package/dist/{telegram-UZ00kvIE.js → telegram-DS4l-8Oc.js} +3 -3
  104. package/dist/{three-dots-D9zVXr1j.js → three-dots-RctNqamK.js} +3 -3
  105. package/dist/truncate-D9t92mVX.js +7 -0
  106. package/dist/{twitch-CP6rpz4m.js → twitch-CJ0llIIH.js} +3 -3
  107. package/dist/{twitterIcon-Cm3I3FRU.js → twitterIcon-pgvN9-bP.js} +3 -3
  108. package/dist/unsupportedProp-BJVuEW_b.js +10 -0
  109. package/dist/useRegisterError-C_YLA1dw.js +9857 -0
  110. package/dist/validError-CDlJpg_f.js +6 -0
  111. package/dist/{verify-DuUE85WT.js → verify-BeZLo1Fq.js} +3 -3
  112. package/dist/{verify-filled-CfgydKPa.js → verify-filled-meyb7E16.js} +3 -3
  113. package/dist/w3m-modal-C-Jp9NVv.js +1471 -0
  114. package/dist/{wallet-BC2LSDlF.js → wallet-CFcOgSsz.js} +3 -3
  115. package/dist/{wallet-placeholder-DugEJ7xM.js → wallet-placeholder-CeUMILZq.js} +3 -3
  116. package/dist/{walletconnect-wayCaYfk.js → walletconnect-D6LB1PyC.js} +7 -9
  117. package/dist/{warning-circle-Cy9YuvwU.js → warning-circle-BRtzofvT.js} +3 -3
  118. package/dist/{x-jggPFiy-.js → x-DKQAOOh3.js} +3 -3
  119. package/package.json +1 -1
  120. package/dist/AllRoutes-Bdi5ZW8W.js +0 -2604
  121. package/dist/Box-e4gA-y_H.js +0 -60
  122. package/dist/EstGas-C5ihS0Mw.js +0 -17108
  123. package/dist/Grow-B4K-I-E-.js +0 -2212
  124. package/dist/InputComp-C_UUZxNU.js +0 -114
  125. package/dist/LoadRoute-CnDhVKdh.js +0 -142
  126. package/dist/QuotesProgress-DxgPgPJE.js +0 -29
  127. package/dist/SwapAsset-CmmuxeQF.js +0 -65
  128. package/dist/Tooltip-D8YjOOKU.js +0 -718
  129. package/dist/TxnButton-CF-TLZrD.js +0 -302
  130. package/dist/WidgetForm.module-DhUUlwZP.js +0 -13
  131. package/dist/basic-Cx2xxgd9.js +0 -7109
  132. package/dist/ccip-BKpquA5i.js +0 -250
  133. package/dist/clockIcon-jSNFFrLy.js +0 -76
  134. package/dist/core-C-gr9X18.js +0 -17217
  135. package/dist/cursor-BTtIlTHP.js +0 -7
  136. package/dist/down-DDk8OoJG.js +0 -809
  137. package/dist/ethertousd-BOknTgU4.js +0 -7
  138. package/dist/getChainIds-6iugk2h0.js +0 -2431
  139. package/dist/getCosmosAddress-BgD5iV6f.js +0 -13998
  140. package/dist/hamburger-BYe_G11E.js +0 -4562
  141. package/dist/index-BAmjBHYR.js +0 -1087
  142. package/dist/index-BxHeZ9IF.js +0 -543
  143. package/dist/index-C7cb2O7r.js +0 -16078
  144. package/dist/index-CF9p4S_X.js +0 -11
  145. package/dist/index-C_vo1L7p.js +0 -24384
  146. package/dist/index-Ch7w83dW.js +0 -4217
  147. package/dist/index-Crhenmgw.js +0 -188
  148. package/dist/index-Cz5Dosd2.js +0 -412
  149. package/dist/index-D5OnT-__.js +0 -35858
  150. package/dist/index-DArR1lwi.js +0 -1759
  151. package/dist/index-hEJSpZe-.js +0 -308
  152. package/dist/index-m2O0cbD8.js +0 -1883
  153. package/dist/index-sLx4Edw4.js +0 -22
  154. package/dist/index.es-DIbGJsfa.js +0 -475
  155. package/dist/index.es-t6sHlseh.js +0 -12916
  156. package/dist/secp256k1-BkBK0mD5.js +0 -1681
  157. package/dist/shareicon-C88Wx-AM.js +0 -314
  158. package/dist/truncate-DSxFWEga.js +0 -7
  159. package/dist/unsupportedProp-DkeDzLfM.js +0 -14
  160. package/dist/useRegisterError-W_UfecIN.js +0 -19288
  161. package/dist/validError-rariWQ7G.js +0 -14
  162. package/dist/w3m-modal-Bl-DPlah.js +0 -1721
@@ -0,0 +1,992 @@
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-Bez9Ow7F.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-t2GqC9VA.js")).addSvg,
383
+ allWallets: async () => (await import("./all-wallets-DFyf0q31.js")).allWalletsSvg,
384
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-BWwREWcv.js")).arrowBottomCircleSvg,
385
+ appStore: async () => (await import("./app-store-aAahwmBP.js")).appStoreSvg,
386
+ apple: async () => (await import("./apple-DeRgpwlc.js")).appleSvg,
387
+ arrowBottom: async () => (await import("./arrow-bottom-DdEOkaAj.js")).arrowBottomSvg,
388
+ arrowLeft: async () => (await import("./arrow-left-CulyLmoH.js")).arrowLeftSvg,
389
+ arrowRight: async () => (await import("./arrow-right-Dwr7TISn.js")).arrowRightSvg,
390
+ arrowTop: async () => (await import("./arrow-top-pL4rM_y8.js")).arrowTopSvg,
391
+ bank: async () => (await import("./bank-CPuyK_08.js")).bankSvg,
392
+ browser: async () => (await import("./browser-Cbq2Zbp4.js")).browserSvg,
393
+ card: async () => (await import("./card-B_hUtPWK.js")).cardSvg,
394
+ checkmark: async () => (await import("./checkmark-WEqTsFAc.js")).checkmarkSvg,
395
+ checkmarkBold: async () => (await import("./checkmark-bold-Du_ZvhqM.js")).checkmarkBoldSvg,
396
+ chevronBottom: async () => (await import("./chevron-bottom-C-s-lv4L.js")).chevronBottomSvg,
397
+ chevronLeft: async () => (await import("./chevron-left-C7NcRElx.js")).chevronLeftSvg,
398
+ chevronRight: async () => (await import("./chevron-right-CSzmAmdn.js")).chevronRightSvg,
399
+ chevronTop: async () => (await import("./chevron-top-Dd99Wfel.js")).chevronTopSvg,
400
+ chromeStore: async () => (await import("./chrome-store-C4p77Of0.js")).chromeStoreSvg,
401
+ clock: async () => (await import("./clock-Cib24qjH.js")).clockSvg,
402
+ close: async () => (await import("./close-BXjEkTvS.js")).closeSvg,
403
+ compass: async () => (await import("./compass-CXPX5Ycp.js")).compassSvg,
404
+ coinPlaceholder: async () => (await import("./coinPlaceholder-BFNC7cQN.js")).coinPlaceholderSvg,
405
+ copy: async () => (await import("./copy-BEawMbmF.js")).copySvg,
406
+ cursor: async () => (await import("./cursor-Cxq4Q9jk.js")).cursorSvg,
407
+ cursorTransparent: async () => (await import("./cursor-transparent-ZjJ0P2vr.js")).cursorTransparentSvg,
408
+ desktop: async () => (await import("./desktop-BhZVovAp.js")).desktopSvg,
409
+ disconnect: async () => (await import("./disconnect-AC-bffZO.js")).disconnectSvg,
410
+ discord: async () => (await import("./discord-dT97h-CC.js")).discordSvg,
411
+ etherscan: async () => (await import("./etherscan-rYFRhRTM.js")).etherscanSvg,
412
+ extension: async () => (await import("./extension-BnqauLSn.js")).extensionSvg,
413
+ externalLink: async () => (await import("./external-link-M9D6e_F3.js")).externalLinkSvg,
414
+ facebook: async () => (await import("./facebook-DHezcoD-.js")).facebookSvg,
415
+ farcaster: async () => (await import("./farcaster-D0Ky-Imv.js")).farcasterSvg,
416
+ filters: async () => (await import("./filters-B02NYLWq.js")).filtersSvg,
417
+ github: async () => (await import("./github-BzQkIMuE.js")).githubSvg,
418
+ google: async () => (await import("./google-BpwCJ4Fs.js")).googleSvg,
419
+ helpCircle: async () => (await import("./help-circle-C0nOySHC.js")).helpCircleSvg,
420
+ image: async () => (await import("./image-QiYOAGjM.js")).imageSvg,
421
+ id: async () => (await import("./id-DFP_kFd4.js")).idSvg,
422
+ infoCircle: async () => (await import("./info-circle-Dla9169_.js")).infoCircleSvg,
423
+ lightbulb: async () => (await import("./lightbulb-PN8DA_Wh.js")).lightbulbSvg,
424
+ mail: async () => (await import("./mail-BGYZut_4.js")).mailSvg,
425
+ mobile: async () => (await import("./mobile-BM760ZzX.js")).mobileSvg,
426
+ more: async () => (await import("./more-rHGnl2ck.js")).moreSvg,
427
+ networkPlaceholder: async () => (await import("./network-placeholder-CyQl-3_2.js")).networkPlaceholderSvg,
428
+ nftPlaceholder: async () => (await import("./nftPlaceholder-nuUJ8nKY.js")).nftPlaceholderSvg,
429
+ off: async () => (await import("./off-GYlwYDrT.js")).offSvg,
430
+ playStore: async () => (await import("./play-store-Ck01Ez1F.js")).playStoreSvg,
431
+ plus: async () => (await import("./plus-CQfXWgLw.js")).plusSvg,
432
+ qrCode: async () => (await import("./qr-code-CyLVwLY7.js")).qrCodeIcon,
433
+ recycleHorizontal: async () => (await import("./recycle-horizontal-DvnWPcEQ.js")).recycleHorizontalSvg,
434
+ refresh: async () => (await import("./refresh-BOxj8b2n.js")).refreshSvg,
435
+ search: async () => (await import("./search-DrPaZPnc.js")).searchSvg,
436
+ send: async () => (await import("./send-ybBREe4b.js")).sendSvg,
437
+ swapHorizontal: async () => (await import("./swapHorizontal-BddjZdXK.js")).swapHorizontalSvg,
438
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CNacWoBn.js")).swapHorizontalMediumSvg,
439
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-B6AWjPZ9.js")).swapHorizontalBoldSvg,
440
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-B8VcPnqt.js")).swapHorizontalRoundedBoldSvg,
441
+ swapVertical: async () => (await import("./swapVertical-zY2BbSyQ.js")).swapVerticalSvg,
442
+ telegram: async () => (await import("./telegram-DS4l-8Oc.js")).telegramSvg,
443
+ threeDots: async () => (await import("./three-dots-RctNqamK.js")).threeDotsSvg,
444
+ twitch: async () => (await import("./twitch-CJ0llIIH.js")).twitchSvg,
445
+ twitter: async () => (await import("./x-DKQAOOh3.js")).xSvg,
446
+ twitterIcon: async () => (await import("./twitterIcon-pgvN9-bP.js")).twitterIconSvg,
447
+ verify: async () => (await import("./verify-BeZLo1Fq.js")).verifySvg,
448
+ verifyFilled: async () => (await import("./verify-filled-meyb7E16.js")).verifyFilledSvg,
449
+ wallet: async () => (await import("./wallet-CFcOgSsz.js")).walletSvg,
450
+ walletConnect: async () => (await import("./walletconnect-D6LB1PyC.js")).walletConnectSvg,
451
+ walletConnectLightBrown: async () => (await import("./walletconnect-D6LB1PyC.js")).walletConnectLightBrownSvg,
452
+ walletConnectBrown: async () => (await import("./walletconnect-D6LB1PyC.js")).walletConnectBrownSvg,
453
+ walletPlaceholder: async () => (await import("./wallet-placeholder-CeUMILZq.js")).walletPlaceholderSvg,
454
+ warningCircle: async () => (await import("./warning-circle-BRtzofvT.js")).warningCircleSvg,
455
+ x: async () => (await import("./x-DKQAOOh3.js")).xSvg,
456
+ info: async () => (await import("./info-BTLQJ-wd.js")).infoSvg,
457
+ exclamationTriangle: async () => (await import("./exclamation-triangle-C-pCuC08.js")).exclamationTriangleSvg,
458
+ reown: async () => (await import("./reown-logo-D1iprOTg.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
+ };