@skip-go/widget 3.15.1 → 3.16.0-alpha.10

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 (163) hide show
  1. package/build/{add-CBdyvgS1.js → add-Cs1k51Yo.js} +1 -1
  2. package/build/add-p8s5lzKj.js +19 -0
  3. package/build/{all-wallets-BKGoOEsK.js → all-wallets-CSEd_f2e.js} +1 -1
  4. package/build/all-wallets-DQ836eH5.js +10 -0
  5. package/build/{app-store-K1ZJPdjc.js → app-store-NBESrDD4.js} +1 -1
  6. package/build/app-store-wtU2BJsh.js +21 -0
  7. package/build/{apple-BUDAdwN8.js → apple-DZy6wx1F.js} +1 -1
  8. package/build/apple-yWQYFUyn.js +22 -0
  9. package/build/{arrow-bottom-CiA6jFBl.js → arrow-bottom-D_Lnwg8T.js} +1 -1
  10. package/build/arrow-bottom-Do9SI4bz.js +12 -0
  11. package/build/{arrow-bottom-circle-CG7h-wqC.js → arrow-bottom-circle-CXg7T3J6.js} +1 -1
  12. package/build/arrow-bottom-circle-Cf_w_L4e.js +15 -0
  13. package/build/{arrow-left-SZVXmgv8.js → arrow-left-CBAUeAuO.js} +1 -1
  14. package/build/arrow-left-DEQj8yOd.js +12 -0
  15. package/build/{arrow-right-DVVf2cHG.js → arrow-right-BaDPVVFO.js} +1 -1
  16. package/build/arrow-right-BkSRtF14.js +12 -0
  17. package/build/{arrow-top-B9ghndwi.js → arrow-top-BqKe69DL.js} +1 -1
  18. package/build/arrow-top-pb4AJkbU.js +12 -0
  19. package/build/{bank-CtdQ8S2u.js → bank-NVJzlDWe.js} +1 -1
  20. package/build/bank-Yn1Jikm6.js +18 -0
  21. package/build/{basic-Bd0oMfq9.js → basic-CJu0hxxz.js} +2 -2
  22. package/build/basic-CyVv5BB-.js +6930 -0
  23. package/build/{browser-CSKSQd2K.js → browser-BHwVkj6g.js} +1 -1
  24. package/build/browser-GWPMnhHb.js +18 -0
  25. package/build/{card-Dc-gORH2.js → card-BKjfm3-_.js} +1 -1
  26. package/build/card-DEBk5GRl.js +18 -0
  27. package/build/{checkmark-Cc2ciaOW.js → checkmark-DfehV30l.js} +1 -1
  28. package/build/checkmark-DsAjblkT.js +15 -0
  29. package/build/{checkmark-bold-_IO7gKX0.js → checkmark-bold-B4wPagUd.js} +1 -1
  30. package/build/checkmark-bold-C8JVyQmL.js +12 -0
  31. package/build/{chevron-bottom-CNhZ6tjv.js → chevron-bottom-BQ5DE-5P.js} +1 -1
  32. package/build/chevron-bottom-BlUXj-NY.js +12 -0
  33. package/build/{chevron-left-wEMAJ5UO.js → chevron-left-BDFIzM0S.js} +1 -1
  34. package/build/chevron-left-Cp_YSJi9.js +12 -0
  35. package/build/{chevron-right-JOCww_7C.js → chevron-right-BAl2G4qR.js} +1 -1
  36. package/build/chevron-right-CT-v6Rok.js +12 -0
  37. package/build/{chevron-top-DavGBDrV.js → chevron-top-oIPAjbd1.js} +1 -1
  38. package/build/chevron-top-yI3G2XgW.js +12 -0
  39. package/build/{chrome-store-BTmHcG6X.js → chrome-store-BqURTNmE.js} +1 -1
  40. package/build/chrome-store-Btn9RZWe.js +65 -0
  41. package/build/{clock-CN05goWg.js → clock-BeLlzXJo.js} +1 -1
  42. package/build/clock-Bg8I6ES6.js +12 -0
  43. package/build/{close-B3NFLCqT.js → close-Clbk-p2L.js} +1 -1
  44. package/build/close-ZsXTPbDh.js +12 -0
  45. package/build/{coinPlaceholder-B3aOll4_.js → coinPlaceholder-BexJqrS1.js} +1 -1
  46. package/build/coinPlaceholder-DUhrkSJt.js +12 -0
  47. package/build/{compass-CkiKA0vK.js → compass-CEQWI4gK.js} +1 -1
  48. package/build/compass-kBQEvIxD.js +12 -0
  49. package/build/{copy-1RaYFMwg.js → copy-CZCt_jC0.js} +1 -1
  50. package/build/copy-sZrUML61.js +19 -0
  51. package/build/{core-OUSWkLqB.js → core-BRiN2qc7.js} +4 -4
  52. package/build/core-ULbIwWer.js +13138 -0
  53. package/build/{cursor-CO5BoPNd.js → cursor-BU9d9tzz.js} +1 -1
  54. package/build/cursor-CGezLQGR.js +7 -0
  55. package/build/{cursor-transparent-DMSNUwF9.js → cursor-transparent-C_9d2ozq.js} +1 -1
  56. package/build/cursor-transparent-sm5iONub.js +16 -0
  57. package/build/{desktop-HiLcoNTp.js → desktop-CAIVh7l4.js} +1 -1
  58. package/build/desktop-CrIlbTqv.js +13 -0
  59. package/build/{disconnect-FavM-FTj.js → disconnect-CMcbWUET.js} +1 -1
  60. package/build/disconnect-DOj7T9BN.js +12 -0
  61. package/build/{discord-h8d17mMG.js → discord-B4oFai1X.js} +1 -1
  62. package/build/discord-LU3TEsMl.js +21 -0
  63. package/build/{etherscan-B4LfZFWM.js → etherscan-B_2cBCUD.js} +1 -1
  64. package/build/etherscan-shEclS_A.js +10 -0
  65. package/build/{exclamation-triangle-_1Qn-tkZ.js → exclamation-triangle-B_QtpTgc.js} +1 -1
  66. package/build/exclamation-triangle-D2Sjs_Nf.js +8 -0
  67. package/build/{extension-BrlLesqx.js → extension-Dt1QxqQZ.js} +1 -1
  68. package/build/extension-vmXcqLhW.js +12 -0
  69. package/build/{external-link-CFOFP_-l.js → external-link-Bvfm_jld.js} +1 -1
  70. package/build/external-link-CoO0lh6u.js +12 -0
  71. package/build/{facebook-VCkWmPxR.js → facebook-6wk-IK_p.js} +1 -1
  72. package/build/facebook-Dgg4La1b.js +30 -0
  73. package/build/{farcaster-Q4PtVcJT.js → farcaster-BM_2t2KK.js} +1 -1
  74. package/build/farcaster-BN8muvwL.js +16 -0
  75. package/build/{filters-Bbpi8QH1.js → filters-55v1qbyK.js} +1 -1
  76. package/build/filters-CDxc1RF9.js +12 -0
  77. package/build/{github-VG6FkwOD.js → github-DEPH8bEy.js} +1 -1
  78. package/build/github-DccOczAH.js +22 -0
  79. package/build/{google--pXLoKKg.js → google-DC93WT7B.js} +1 -1
  80. package/build/google-DdAJK86W.js +22 -0
  81. package/build/{help-circle-3n6HsleW.js → help-circle-D1L5qNcR.js} +1 -1
  82. package/build/help-circle-iauTViDc.js +16 -0
  83. package/build/{id-BW4NOQAT.js → id-Cv5srsKG.js} +1 -1
  84. package/build/id-RqrJvNpt.js +16 -0
  85. package/build/{image-C3p06tLi.js → image-CsZDryN0.js} +1 -1
  86. package/build/image-XSL6mn0_.js +8 -0
  87. package/build/{index-Du7MuJNH.js → index-D9n6iNIJ.js} +124 -31
  88. package/build/{index-CDmBek_W.js → index-Db_gTtmm.js} +78 -78
  89. package/build/index-P8mqz33_.js +56840 -0
  90. package/build/index-eP98z9aP.js +1132 -0
  91. package/build/index.d.ts +7 -2
  92. package/build/{index.es-B3OjbUKh.js → index.es-Bt7ChEGW.js} +2 -2
  93. package/build/index.es-DjBtB1zl.js +6945 -0
  94. package/build/index.js +1 -1
  95. package/build/{info-B7Qr2NXG.js → info-Bqhp97V5.js} +1 -1
  96. package/build/info-D1arL-VG.js +7 -0
  97. package/build/{info-circle-DqZcPCfZ.js → info-circle-3WyFRynN.js} +1 -1
  98. package/build/info-circle-BVvYlfMh.js +16 -0
  99. package/build/{lightbulb-DVx7djyt.js → lightbulb-9Ilc-BSE.js} +1 -1
  100. package/build/lightbulb-CJnbVEJN.js +7 -0
  101. package/build/{mail-CdVDuCHz.js → mail-BWR-OJfR.js} +1 -1
  102. package/build/mail-l41ycFYI.js +12 -0
  103. package/build/{mobile-Bwd7pfb8.js → mobile-BKktRaVf.js} +1 -1
  104. package/build/mobile-DWOjZ5qk.js +13 -0
  105. package/build/{more-DT4biIKo.js → more-0KyBhoke.js} +1 -1
  106. package/build/more-De3XMYRk.js +15 -0
  107. package/build/{network-placeholder-mtCHU3Bz.js → network-placeholder-DMNEKHRm.js} +1 -1
  108. package/build/network-placeholder-DWtX8-qr.js +18 -0
  109. package/build/{nftPlaceholder-DUR6Mg0Q.js → nftPlaceholder-1QkT7D8a.js} +1 -1
  110. package/build/nftPlaceholder-TqWzleuE.js +12 -0
  111. package/build/{off-DOHq9zrh.js → off-R5NAYmvZ.js} +1 -1
  112. package/build/off-vt2n3oeS.js +12 -0
  113. package/build/{play-store-DS8OBCTl.js → play-store-BEY2OFEw.js} +1 -1
  114. package/build/play-store-CGWbbrqB.js +36 -0
  115. package/build/{plus-DSMXPR-y.js → plus-CgO6_964.js} +1 -1
  116. package/build/plus-DwnxgyhT.js +17 -0
  117. package/build/{qr-code-BEPX8O49.js → qr-code-BmO6Oti0.js} +1 -1
  118. package/build/qr-code-CrtZMkm4.js +10 -0
  119. package/build/{recycle-horizontal-B2O40cRT.js → recycle-horizontal-40_Hg0OW.js} +1 -1
  120. package/build/recycle-horizontal-9rT6BiKg.js +13 -0
  121. package/build/{refresh-ByKcC462.js → refresh-3sKBvR4P.js} +1 -1
  122. package/build/refresh-hPl-aZCi.js +12 -0
  123. package/build/{reown-logo-D7ihS6pN.js → reown-logo-BQGnFKJY.js} +1 -1
  124. package/build/reown-logo-Dpn8JpgB.js +16 -0
  125. package/build/{search-CY-XXoVa.js → search-DCtkKDtV.js} +1 -1
  126. package/build/search-kBtkiS9x.js +12 -0
  127. package/build/{send-BqCU-hxq.js → send-CGWk1h_l.js} +1 -1
  128. package/build/send-CuabQp8B.js +19 -0
  129. package/build/{swapHorizontal-wVtwWeo1.js → swapHorizontal-DfCsMaXT.js} +1 -1
  130. package/build/swapHorizontal-KOQtIsWs.js +12 -0
  131. package/build/{swapHorizontalBold-rlcDDU_N.js → swapHorizontalBold-CncY7iMf.js} +1 -1
  132. package/build/swapHorizontalBold-HQXa4QD0.js +12 -0
  133. package/build/{swapHorizontalMedium-BU2vbT5K.js → swapHorizontalMedium-BVeowd5I.js} +1 -1
  134. package/build/swapHorizontalMedium-DCjkr6HK.js +20 -0
  135. package/build/{swapHorizontalRoundedBold-DaybIRf-.js → swapHorizontalRoundedBold--_cZ7EV-.js} +1 -1
  136. package/build/swapHorizontalRoundedBold-D1Lz1rCT.js +12 -0
  137. package/build/{swapVertical-C3NkkoO9.js → swapVertical-BRTog4Y9.js} +1 -1
  138. package/build/swapVertical-yG-sLbTQ.js +12 -0
  139. package/build/{telegram-Ci7zQXsA.js → telegram-B9AjALQ0.js} +1 -1
  140. package/build/telegram-Bavz3-yP.js +20 -0
  141. package/build/{three-dots-BWvtn33N.js → three-dots-BgQ1DVNd.js} +1 -1
  142. package/build/three-dots-DtI1_TmZ.js +9 -0
  143. package/build/{twitch-C2T2df15.js → twitch-CptKCNZf.js} +1 -1
  144. package/build/twitch-aRDbUqO3.js +22 -0
  145. package/build/{twitterIcon-DhC5Qpzh.js → twitterIcon-CQpP9dmh.js} +1 -1
  146. package/build/twitterIcon-Cq1IDdw5.js +10 -0
  147. package/build/{verify-CWycWL2z.js → verify-K-_ORP1W.js} +1 -1
  148. package/build/verify-agQ1xcQS.js +12 -0
  149. package/build/{verify-filled-Bx90GPwr.js → verify-filled-AVOd2sMH.js} +1 -1
  150. package/build/verify-filled-CYKVz-yT.js +12 -0
  151. package/build/{w3m-modal-iQjI0dF0.js → w3m-modal-C1sGeFii.js} +2 -2
  152. package/build/w3m-modal-DxV360Kf.js +1721 -0
  153. package/build/{wallet-BcPvmowf.js → wallet-BE_j-wwi.js} +1 -1
  154. package/build/wallet-BXn9ORPH.js +12 -0
  155. package/build/{wallet-placeholder-DZrxAECO.js → wallet-placeholder-fv-K969p.js} +1 -1
  156. package/build/wallet-placeholder-iYtBquyY.js +18 -0
  157. package/build/{walletconnect-v9pOhxzQ.js → walletconnect-COqGYWl0.js} +1 -1
  158. package/build/walletconnect-D0UuJTBK.js +38 -0
  159. package/build/{warning-circle-BfUoogN0.js → warning-circle-0LfMjgxC.js} +1 -1
  160. package/build/warning-circle-C0cogKWe.js +16 -0
  161. package/build/{x-DoJKHlXe.js → x-Ceu8vEbx.js} +1 -1
  162. package/build/x-DhVM8DC2.js +16 -0
  163. package/package.json +3 -3
@@ -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-BRiN2qc7.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-Cs1k51Yo.js")).addSvg,
473
+ allWallets: async () => (await import("./all-wallets-CSEd_f2e.js")).allWalletsSvg,
474
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-CXg7T3J6.js")).arrowBottomCircleSvg,
475
+ appStore: async () => (await import("./app-store-NBESrDD4.js")).appStoreSvg,
476
+ apple: async () => (await import("./apple-DZy6wx1F.js")).appleSvg,
477
+ arrowBottom: async () => (await import("./arrow-bottom-D_Lnwg8T.js")).arrowBottomSvg,
478
+ arrowLeft: async () => (await import("./arrow-left-CBAUeAuO.js")).arrowLeftSvg,
479
+ arrowRight: async () => (await import("./arrow-right-BaDPVVFO.js")).arrowRightSvg,
480
+ arrowTop: async () => (await import("./arrow-top-pb4AJkbU.js")).arrowTopSvg,
481
+ bank: async () => (await import("./bank-NVJzlDWe.js")).bankSvg,
482
+ browser: async () => (await import("./browser-GWPMnhHb.js")).browserSvg,
483
+ card: async () => (await import("./card-DEBk5GRl.js")).cardSvg,
484
+ checkmark: async () => (await import("./checkmark-DsAjblkT.js")).checkmarkSvg,
485
+ checkmarkBold: async () => (await import("./checkmark-bold-C8JVyQmL.js")).checkmarkBoldSvg,
486
+ chevronBottom: async () => (await import("./chevron-bottom-BQ5DE-5P.js")).chevronBottomSvg,
487
+ chevronLeft: async () => (await import("./chevron-left-BDFIzM0S.js")).chevronLeftSvg,
488
+ chevronRight: async () => (await import("./chevron-right-CT-v6Rok.js")).chevronRightSvg,
489
+ chevronTop: async () => (await import("./chevron-top-oIPAjbd1.js")).chevronTopSvg,
490
+ chromeStore: async () => (await import("./chrome-store-Btn9RZWe.js")).chromeStoreSvg,
491
+ clock: async () => (await import("./clock-BeLlzXJo.js")).clockSvg,
492
+ close: async () => (await import("./close-Clbk-p2L.js")).closeSvg,
493
+ compass: async () => (await import("./compass-CEQWI4gK.js")).compassSvg,
494
+ coinPlaceholder: async () => (await import("./coinPlaceholder-BexJqrS1.js")).coinPlaceholderSvg,
495
+ copy: async () => (await import("./copy-CZCt_jC0.js")).copySvg,
496
+ cursor: async () => (await import("./cursor-BU9d9tzz.js")).cursorSvg,
497
+ cursorTransparent: async () => (await import("./cursor-transparent-sm5iONub.js")).cursorTransparentSvg,
498
+ desktop: async () => (await import("./desktop-CrIlbTqv.js")).desktopSvg,
499
+ disconnect: async () => (await import("./disconnect-DOj7T9BN.js")).disconnectSvg,
500
+ discord: async () => (await import("./discord-B4oFai1X.js")).discordSvg,
501
+ etherscan: async () => (await import("./etherscan-shEclS_A.js")).etherscanSvg,
502
+ extension: async () => (await import("./extension-vmXcqLhW.js")).extensionSvg,
503
+ externalLink: async () => (await import("./external-link-Bvfm_jld.js")).externalLinkSvg,
504
+ facebook: async () => (await import("./facebook-Dgg4La1b.js")).facebookSvg,
505
+ farcaster: async () => (await import("./farcaster-BM_2t2KK.js")).farcasterSvg,
506
+ filters: async () => (await import("./filters-CDxc1RF9.js")).filtersSvg,
507
+ github: async () => (await import("./github-DccOczAH.js")).githubSvg,
508
+ google: async () => (await import("./google-DC93WT7B.js")).googleSvg,
509
+ helpCircle: async () => (await import("./help-circle-iauTViDc.js")).helpCircleSvg,
510
+ image: async () => (await import("./image-XSL6mn0_.js")).imageSvg,
511
+ id: async () => (await import("./id-Cv5srsKG.js")).idSvg,
512
+ infoCircle: async () => (await import("./info-circle-3WyFRynN.js")).infoCircleSvg,
513
+ lightbulb: async () => (await import("./lightbulb-9Ilc-BSE.js")).lightbulbSvg,
514
+ mail: async () => (await import("./mail-BWR-OJfR.js")).mailSvg,
515
+ mobile: async () => (await import("./mobile-BKktRaVf.js")).mobileSvg,
516
+ more: async () => (await import("./more-0KyBhoke.js")).moreSvg,
517
+ networkPlaceholder: async () => (await import("./network-placeholder-DWtX8-qr.js")).networkPlaceholderSvg,
518
+ nftPlaceholder: async () => (await import("./nftPlaceholder-1QkT7D8a.js")).nftPlaceholderSvg,
519
+ off: async () => (await import("./off-R5NAYmvZ.js")).offSvg,
520
+ playStore: async () => (await import("./play-store-BEY2OFEw.js")).playStoreSvg,
521
+ plus: async () => (await import("./plus-DwnxgyhT.js")).plusSvg,
522
+ qrCode: async () => (await import("./qr-code-BmO6Oti0.js")).qrCodeIcon,
523
+ recycleHorizontal: async () => (await import("./recycle-horizontal-40_Hg0OW.js")).recycleHorizontalSvg,
524
+ refresh: async () => (await import("./refresh-3sKBvR4P.js")).refreshSvg,
525
+ search: async () => (await import("./search-DCtkKDtV.js")).searchSvg,
526
+ send: async () => (await import("./send-CuabQp8B.js")).sendSvg,
527
+ swapHorizontal: async () => (await import("./swapHorizontal-DfCsMaXT.js")).swapHorizontalSvg,
528
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-DCjkr6HK.js")).swapHorizontalMediumSvg,
529
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-HQXa4QD0.js")).swapHorizontalBoldSvg,
530
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-D1Lz1rCT.js")).swapHorizontalRoundedBoldSvg,
531
+ swapVertical: async () => (await import("./swapVertical-BRTog4Y9.js")).swapVerticalSvg,
532
+ telegram: async () => (await import("./telegram-B9AjALQ0.js")).telegramSvg,
533
+ threeDots: async () => (await import("./three-dots-BgQ1DVNd.js")).threeDotsSvg,
534
+ twitch: async () => (await import("./twitch-aRDbUqO3.js")).twitchSvg,
535
+ twitter: async () => (await import("./x-DhVM8DC2.js")).xSvg,
536
+ twitterIcon: async () => (await import("./twitterIcon-CQpP9dmh.js")).twitterIconSvg,
537
+ verify: async () => (await import("./verify-agQ1xcQS.js")).verifySvg,
538
+ verifyFilled: async () => (await import("./verify-filled-AVOd2sMH.js")).verifyFilledSvg,
539
+ wallet: async () => (await import("./wallet-BXn9ORPH.js")).walletSvg,
540
+ walletConnect: async () => (await import("./walletconnect-D0UuJTBK.js")).walletConnectSvg,
541
+ walletConnectLightBrown: async () => (await import("./walletconnect-D0UuJTBK.js")).walletConnectLightBrownSvg,
542
+ walletConnectBrown: async () => (await import("./walletconnect-D0UuJTBK.js")).walletConnectBrownSvg,
543
+ walletPlaceholder: async () => (await import("./wallet-placeholder-fv-K969p.js")).walletPlaceholderSvg,
544
+ warningCircle: async () => (await import("./warning-circle-0LfMjgxC.js")).warningCircleSvg,
545
+ x: async () => (await import("./x-DhVM8DC2.js")).xSvg,
546
+ info: async () => (await import("./info-Bqhp97V5.js")).infoSvg,
547
+ exclamationTriangle: async () => (await import("./exclamation-triangle-B_QtpTgc.js")).exclamationTriangleSvg,
548
+ reown: async () => (await import("./reown-logo-Dpn8JpgB.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
+ };