@multiversx/sdk-dapp-liquidity 1.0.12 → 1.0.14

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 (302) hide show
  1. package/ConstantsUtil-BinYIDR2.mjs +8 -0
  2. package/ConstantsUtil-CbnVdQ5P.js +8 -0
  3. package/add-D-ECcdUh.mjs +19 -0
  4. package/add-Diz8heiY.js +20 -0
  5. package/all-wallets-_iOQf3bl.js +11 -0
  6. package/all-wallets-puIIQy3Y.mjs +10 -0
  7. package/app-store-BGTKFL27.js +22 -0
  8. package/app-store-Bsf7w3pv.mjs +21 -0
  9. package/apple-Cw8e8IGH.mjs +22 -0
  10. package/apple-DF7n_Yzl.js +23 -0
  11. package/arrow-bottom-Cp2C4fQv.mjs +12 -0
  12. package/arrow-bottom-DTvIR3s3.js +13 -0
  13. package/arrow-bottom-circle-CN6i5mHz.mjs +15 -0
  14. package/arrow-bottom-circle-CzPwiwWH.js +16 -0
  15. package/arrow-left-9VFYHQSW.js +13 -0
  16. package/arrow-left-BDQHoEvX.mjs +12 -0
  17. package/arrow-right-BxkuSpWU.mjs +12 -0
  18. package/arrow-right-DBLQ6w92.js +13 -0
  19. package/arrow-top-BiQd5Aey.js +13 -0
  20. package/arrow-top-BrLVX4Rj.mjs +12 -0
  21. package/bank-B7EC6Kdz.mjs +18 -0
  22. package/bank-CvPn9sfV.js +19 -0
  23. package/{bignumber-CKZkoo0g.mjs → bignumber-2Z7uapuD.mjs} +6 -6
  24. package/{bignumber-B8vjg9qn.js → bignumber-D1Wl54dL.js} +6 -6
  25. package/bin-BXO1kNZh.js +9 -0
  26. package/bin-CwiYVJ1L.mjs +8 -0
  27. package/bitcoin-C3kBVar_.mjs +17 -0
  28. package/bitcoin-DAvQGpeP.js +3251 -0
  29. package/bitcoin-dNBGbS2B.mjs +3251 -0
  30. package/bitcoin-k6bvmzMA.js +18 -0
  31. package/browser-ShRLuKKz.mjs +18 -0
  32. package/browser-t7nfT7HL.js +19 -0
  33. package/card-BJg5bdoM.mjs +18 -0
  34. package/card-hxUDXttT.js +19 -0
  35. package/checkmark-BpR0Yy93.mjs +15 -0
  36. package/checkmark-D9AVWgl5.js +16 -0
  37. package/checkmark-bold-D3Xcby1U.mjs +12 -0
  38. package/checkmark-bold-De02hde8.js +13 -0
  39. package/chevron-bottom-DcBf7T5F.js +13 -0
  40. package/chevron-bottom-DfGpWIz7.mjs +12 -0
  41. package/chevron-left-BKvYVnUo.js +13 -0
  42. package/chevron-left-DGSG9WJQ.mjs +12 -0
  43. package/chevron-right-BLgYIEeO.js +13 -0
  44. package/chevron-right-C2nsTx_Y.mjs +12 -0
  45. package/chevron-top-CwFOEFy8.js +13 -0
  46. package/chevron-top-vk-9DvUU.mjs +12 -0
  47. package/chrome-store-4H_ie3vA.mjs +65 -0
  48. package/chrome-store-BWarxVMl.js +66 -0
  49. package/circle-BtqWJU0_.mjs +8 -0
  50. package/circle-DYjG6o7-.js +9 -0
  51. package/clock-Ba5SM-pl.mjs +12 -0
  52. package/clock-DPzNREdU.js +13 -0
  53. package/close-CJHKFOyp.mjs +12 -0
  54. package/close-DDWnJdJe.js +13 -0
  55. package/coinPlaceholder-Cbba3D1H.mjs +12 -0
  56. package/coinPlaceholder-DdxQIc2D.js +13 -0
  57. package/compass-CugCxeSC.js +13 -0
  58. package/compass-DbN5DkTl.mjs +12 -0
  59. package/copy-CHSZprYJ.mjs +19 -0
  60. package/copy-En5h5Uhu.js +20 -0
  61. package/cursor-DCRkvEhr.mjs +7 -0
  62. package/cursor-DnEQtrUK.js +8 -0
  63. package/cursor-transparent-CU8lk-xg.js +17 -0
  64. package/cursor-transparent-CliETg4d.mjs +16 -0
  65. package/desktop-BgD7aypB.js +14 -0
  66. package/desktop-Cg5I32-p.mjs +13 -0
  67. package/disconnect-CCyMbAdw.js +13 -0
  68. package/disconnect-Cp2vRWB2.mjs +12 -0
  69. package/discord-B1d-qeSk.mjs +21 -0
  70. package/discord-BEB5klec.js +22 -0
  71. package/email-CorlePKz.js +873 -0
  72. package/email-Znno7H8_.mjs +878 -0
  73. package/embedded-wallet-B9ro9Tel.js +549 -0
  74. package/embedded-wallet-CnTWeseG.mjs +552 -0
  75. package/ethereum-BRcsRjUU.mjs +14 -0
  76. package/ethereum-CZ_xe09e.js +15 -0
  77. package/etherscan-BZKGpKp8.mjs +10 -0
  78. package/etherscan-DtLi-C3z.js +11 -0
  79. package/exclamation-triangle-BLNnBLEc.js +9 -0
  80. package/exclamation-triangle-CFThXxRT.mjs +8 -0
  81. package/extension-CwUepr-W.mjs +12 -0
  82. package/extension-DOD67G1k.js +13 -0
  83. package/external-link-CZkQS5XK.js +13 -0
  84. package/external-link-ClYNKSPt.mjs +12 -0
  85. package/facebook-CFjrd4my.mjs +30 -0
  86. package/facebook-CbE6K6AK.js +31 -0
  87. package/farcaster-Ba7_C-Vm.js +17 -0
  88. package/farcaster-DyVJtVS9.mjs +16 -0
  89. package/filters-CpHaFNjT.mjs +12 -0
  90. package/filters-w5LC-r6e.js +13 -0
  91. package/github-CeO70C3E.mjs +22 -0
  92. package/github-uLFBWAa5.js +23 -0
  93. package/google-CyOdUlbw.mjs +22 -0
  94. package/google-ILGK-opP.js +23 -0
  95. package/help-circle-Dh3dRNoB.mjs +16 -0
  96. package/help-circle-HUMbz_KN.js +17 -0
  97. package/id-Cy3Qkrvb.js +17 -0
  98. package/id-D-Q0uPFM.mjs +16 -0
  99. package/if-defined-CJ5EZLw2.js +815 -0
  100. package/if-defined-DjC5UMfF.mjs +815 -0
  101. package/image-BTGOf8bb.mjs +8 -0
  102. package/image-WFQO5bWa.js +9 -0
  103. package/index--O5ypTeK.mjs +70 -0
  104. package/index--Vg7VI9t.js +173 -0
  105. package/index-2iRSO1sa.mjs +9964 -0
  106. package/index-42Rpweo5.mjs +95 -0
  107. package/index-70kjE43k.mjs +90 -0
  108. package/index-8VyNYS01.js +273 -0
  109. package/index-B-dx8l0g.mjs +82 -0
  110. package/index-BB0nW9RB.mjs +198 -0
  111. package/index-BBwuv2SS.js +97 -0
  112. package/index-BIe-kofv.mjs +273 -0
  113. package/index-BQf6VHil.js +278 -0
  114. package/index-BWIZXhFv.mjs +630 -0
  115. package/index-BXkamf-I.js +337 -0
  116. package/index-BYTxCmKH.js +64 -0
  117. package/index-BYoOxo0S.js +218 -0
  118. package/index-Ba0tVdql.js +200 -0
  119. package/index-BdOAPWyt.mjs +210 -0
  120. package/index-BirWzf8c.mjs +71 -0
  121. package/index-BnCJUHtW.mjs +346 -0
  122. package/index-BuL2FC61.mjs +216 -0
  123. package/index-BxSUTfaY.js +88 -0
  124. package/index-C49C5Rxf.js +743 -0
  125. package/index-CNMDBpW7.js +346 -0
  126. package/index-CP0CGjqQ.mjs +263 -0
  127. package/index-CQaHcTZM.mjs +86 -0
  128. package/index-CRGXQei1.js +178 -0
  129. package/index-CSykUIfV.mjs +176 -0
  130. package/index-CWIHaLkQ.mjs +101 -0
  131. package/index-CZSDJd0P.mjs +1070 -0
  132. package/index-CZaV8JgR.mjs +49 -0
  133. package/index-CZjdy6QP.js +101 -0
  134. package/index-C_lIGGlC.js +632 -0
  135. package/index-CcgeRPs2.mjs +57 -0
  136. package/index-CeY_DRuc.js +566 -0
  137. package/index-ChFNkSxT.js +92 -0
  138. package/index-CkjZc20w.js +677 -0
  139. package/index-CtFcWwAd.js +72 -0
  140. package/index-D0mOfznC.mjs +362 -0
  141. package/index-DAtWLY21.js +84 -0
  142. package/index-DEs8H3w2.js +262 -0
  143. package/index-DLnxotbC.mjs +566 -0
  144. package/index-DN4fGDgg.mjs +743 -0
  145. package/index-DT_mc1hV.mjs +335 -0
  146. package/index-DZEwxUMS.js +59 -0
  147. package/index-DaRH_4bD.js +9939 -0
  148. package/index-Daok2ZKn.js +73 -0
  149. package/index-DomzHmwk.js +210 -0
  150. package/index-Dx7NyDyv.mjs +101 -0
  151. package/index-DyGir6_2.mjs +675 -0
  152. package/index-GglJmM2C.js +2237 -0
  153. package/index-H5b7UTeJ.mjs +173 -0
  154. package/index-NNZ1lNuc.mjs +168 -0
  155. package/index-RJd-gQcv.mjs +2235 -0
  156. package/index-dnFzVpGy.js +103 -0
  157. package/index-kwVLu8EV.js +168 -0
  158. package/index-miQwZPmn.js +51 -0
  159. package/index-oCj_SpOa.mjs +62 -0
  160. package/index-pNK-h_x9.js +1069 -0
  161. package/index-r6Kre1rx.js +362 -0
  162. package/index-xBD0nXoB.mjs +276 -0
  163. package/index.js +3 -3
  164. package/index.mjs +3 -3
  165. package/info-BKNAiN0k.js +8 -0
  166. package/info-DQE0s-A4.mjs +7 -0
  167. package/info-circle-C3uTocjH.js +17 -0
  168. package/info-circle-CIn6yeQo.mjs +16 -0
  169. package/lightbulb-CB-BmIop.js +8 -0
  170. package/lightbulb-Gv7IbnzO.mjs +7 -0
  171. package/mail-CFYm95wn.mjs +12 -0
  172. package/mail-GEwk-Fzr.js +13 -0
  173. package/mobile-CZ7ZBfa5.js +14 -0
  174. package/mobile-OIbnpFsU.mjs +13 -0
  175. package/more-C8N_RV55.mjs +15 -0
  176. package/more-CiQpPZwq.js +16 -0
  177. package/network-placeholder-CxEcczEx.mjs +18 -0
  178. package/network-placeholder-DwR8E8hP.js +19 -0
  179. package/nftPlaceholder-BFexVcGX.js +13 -0
  180. package/nftPlaceholder-MiYL110I.mjs +12 -0
  181. package/off-BNiMlpUU.mjs +8 -0
  182. package/off-iJHSK3Z7.js +9 -0
  183. package/onramp-Bs8HHFFY.js +1474 -0
  184. package/onramp-C6fuQfX7.mjs +1480 -0
  185. package/package.json +11 -11
  186. package/play-store-B4ssIYUA.js +37 -0
  187. package/play-store-D6nmQXhX.mjs +36 -0
  188. package/plus-Bh7z7Oc0.js +18 -0
  189. package/plus-C8ioZuCD.mjs +17 -0
  190. package/qr-code-CSVwaBLf.mjs +10 -0
  191. package/qr-code-YgtXPokK.js +11 -0
  192. package/react-BWxe90Ar.mjs +6342 -0
  193. package/react-BzZcQig5.js +6342 -0
  194. package/react-C_wTMVq_.js +23003 -0
  195. package/react-M-DnxvZl.mjs +23003 -0
  196. package/reactjs/components/BridgeForm/BridgeForm.js +2 -1
  197. package/reactjs/components/BridgeForm/BridgeForm.mjs +2 -1
  198. package/reactjs/components/Connect/BridgeAccountDisplay.js +3 -2
  199. package/reactjs/components/Connect/BridgeAccountDisplay.mjs +3 -2
  200. package/reactjs/components/Connect/CustomConnectButton.js +3 -2
  201. package/reactjs/components/Connect/CustomConnectButton.mjs +3 -2
  202. package/reactjs/components/Connect/SwitchChainButton.js +4 -3
  203. package/reactjs/components/Connect/SwitchChainButton.mjs +4 -3
  204. package/reactjs/components/DisplayAmount/DisplayAmount.js +1 -1
  205. package/reactjs/components/DisplayAmount/DisplayAmount.mjs +1 -1
  206. package/reactjs/components/TokenSelector/components/TokenItem.js +1 -1
  207. package/reactjs/components/TokenSelector/components/TokenItem.mjs +1 -1
  208. package/reactjs/hooks/useAccount.d.ts +4 -4
  209. package/reactjs/hooks/useAccount.js +3 -2
  210. package/reactjs/hooks/useAccount.mjs +3 -2
  211. package/reactjs/hooks/useGetChainId.js +1 -1
  212. package/reactjs/hooks/useGetChainId.mjs +1 -1
  213. package/reactjs/index.js +3 -3
  214. package/reactjs/index.mjs +3 -3
  215. package/reactjs/init/init.js +4 -3
  216. package/reactjs/init/init.mjs +4 -3
  217. package/reactjs/init/tests/init.spec.js +2 -2
  218. package/reactjs/init/tests/init.spec.mjs +2 -2
  219. package/reactjs/queries/useGetEvmTokensBalances.query.js +3 -2
  220. package/reactjs/queries/useGetEvmTokensBalances.query.mjs +3 -2
  221. package/reactjs/reexports.js +3 -3
  222. package/reactjs/reexports.mjs +3 -3
  223. package/reactjs/utils/getCleanStringAmount.js +1 -1
  224. package/reactjs/utils/getCleanStringAmount.mjs +1 -1
  225. package/reactjs/utils/hasEnoughFunds.js +1 -1
  226. package/reactjs/utils/hasEnoughFunds.mjs +1 -1
  227. package/reactjs/utils/isStringFloat.js +1 -1
  228. package/reactjs/utils/isStringFloat.mjs +1 -1
  229. package/reactjs/utils/roundAmount.js +1 -1
  230. package/reactjs/utils/roundAmount.mjs +1 -1
  231. package/receive-CK0hRQPr.js +212 -0
  232. package/receive-CQcD6bZf.mjs +212 -0
  233. package/recycle-horizontal--x5cMoTE.js +14 -0
  234. package/recycle-horizontal-QI0xtDHK.mjs +13 -0
  235. package/ref-CqxfRkBm.mjs +41 -0
  236. package/ref-FGI2cUQB.js +41 -0
  237. package/refresh-CFNHjhDi.js +13 -0
  238. package/refresh-CSOC1NUY.mjs +12 -0
  239. package/reown-logo-BfU5xFX5.js +17 -0
  240. package/reown-logo-CZAEp1jU.mjs +16 -0
  241. package/search-Do_rb-9-.mjs +12 -0
  242. package/search-V9CGMHkm.js +13 -0
  243. package/send-D-5G7tDL.mjs +1204 -0
  244. package/send-D4yYsIHV.mjs +19 -0
  245. package/send-DoiSHLsX.js +1202 -0
  246. package/send-_jfNFrys.js +20 -0
  247. package/socials-BL7-97fT.mjs +758 -0
  248. package/socials-DF0CK9cN.js +756 -0
  249. package/solana-BQ0Jh8lh.js +18 -0
  250. package/solana-YAkDp6j_.mjs +17 -0
  251. package/swapHorizontal-DOIo-Ccx.mjs +12 -0
  252. package/swapHorizontal-OHKtz4Gu.js +13 -0
  253. package/swapHorizontalBold-D7QmFj-c.js +13 -0
  254. package/swapHorizontalBold-DDroA0Af.mjs +12 -0
  255. package/swapHorizontalMedium-CU_v0kFz.mjs +20 -0
  256. package/swapHorizontalMedium-D-yMmtml.js +21 -0
  257. package/swapHorizontalRoundedBold-CHvbmnjw.js +13 -0
  258. package/swapHorizontalRoundedBold-DXMH0sgK.mjs +12 -0
  259. package/swapVertical-CH7fTK6w.js +13 -0
  260. package/swapVertical-HJZ6rFcr.mjs +12 -0
  261. package/swaps-CETflhdU.js +1952 -0
  262. package/swaps-DRUV6d3p.mjs +1954 -0
  263. package/telegram-CsCauOwj.mjs +20 -0
  264. package/telegram-DKEcF_Tq.js +21 -0
  265. package/three-dots-B-7hr8Nl.js +10 -0
  266. package/three-dots-LNZ_fjP7.mjs +9 -0
  267. package/transactions-BTTsGV2W.mjs +37 -0
  268. package/transactions-mpNNlClw.js +37 -0
  269. package/twitch-CCWVT2ij.js +23 -0
  270. package/twitch-Dg1CCQvd.mjs +22 -0
  271. package/twitterIcon-BjR09Cj9.mjs +10 -0
  272. package/twitterIcon-CeEs0iDJ.js +11 -0
  273. package/verify-B8WZq7kt.mjs +12 -0
  274. package/verify-filled-BeqC1imk.mjs +12 -0
  275. package/verify-filled-C-mv3ApD.js +13 -0
  276. package/verify-yATdPqt-.js +13 -0
  277. package/w3m-modal-3GziKj7h.js +1254 -0
  278. package/w3m-modal-81Z5PngE.mjs +1255 -0
  279. package/wallet-BMXEH23x.js +13 -0
  280. package/wallet-CNAVQCfm.mjs +12 -0
  281. package/wallet-placeholder-CQ-7CmVN.mjs +18 -0
  282. package/wallet-placeholder-CdoQy2e6.js +19 -0
  283. package/walletconnect-ACr-R1QZ.mjs +38 -0
  284. package/walletconnect-BWSkiS2F.js +39 -0
  285. package/warning-circle-CYnuYwpt.js +17 -0
  286. package/warning-circle-HV2lOiCj.mjs +16 -0
  287. package/x-CW5dozRj.js +17 -0
  288. package/x-Cgm2OFpL.mjs +16 -0
  289. package/x-mark-CR8SpZvu.js +8 -0
  290. package/x-mark-u0KJjUJ1.mjs +7 -0
  291. package/index-B4Eq5P3w.mjs +0 -91
  292. package/index-C4WV9nam.js +0 -329
  293. package/index-CWMcKi_X.js +0 -107
  294. package/index-D8E0O3qL.mjs +0 -68744
  295. package/index-DJ8CdHSw.mjs +0 -107
  296. package/index-nigVQYBu.js +0 -68665
  297. package/react-C43nEIqn.js +0 -3133
  298. package/react-DKUsVej7.js +0 -50
  299. package/react-Dp0H8q2z.mjs +0 -50
  300. package/react-wMhOUFOm.mjs +0 -3133
  301. package/w3m-modal-DLyg7Voy.js +0 -356
  302. package/w3m-modal-hC-B8qZP.mjs +0 -356
@@ -0,0 +1,815 @@
1
+ import { l as f$2, m as u, T, i as i$3, c as resetStyles, d as colorStyles, f as i$4, x, E } from "./bitcoin-dNBGbS2B.mjs";
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 && typeof window.matchMedia === "function") {
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
+ /**
178
+ * @license
179
+ * Copyright 2020 Google LLC
180
+ * SPDX-License-Identifier: BSD-3-Clause
181
+ */
182
+ const i$2 = (o2) => null === o2 || "object" != typeof o2 && "function" != typeof o2, f$1 = (o2) => void 0 === o2.strings;
183
+ /**
184
+ * @license
185
+ * Copyright 2017 Google LLC
186
+ * SPDX-License-Identifier: BSD-3-Clause
187
+ */
188
+ const t = { ATTRIBUTE: 1, CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
189
+ let i$1 = class i {
190
+ constructor(t2) {
191
+ }
192
+ get _$AU() {
193
+ return this._$AM._$AU;
194
+ }
195
+ _$AT(t2, e2, i3) {
196
+ this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
197
+ }
198
+ _$AS(t2, e2) {
199
+ return this.update(t2, e2);
200
+ }
201
+ update(t2, e2) {
202
+ return this.render(...e2);
203
+ }
204
+ };
205
+ /**
206
+ * @license
207
+ * Copyright 2017 Google LLC
208
+ * SPDX-License-Identifier: BSD-3-Clause
209
+ */
210
+ const s$1 = (i3, t2) => {
211
+ var _a;
212
+ const e2 = i3._$AN;
213
+ if (void 0 === e2) return false;
214
+ for (const i4 of e2) (_a = i4._$AO) == null ? void 0 : _a.call(i4, t2, false), s$1(i4, t2);
215
+ return true;
216
+ }, o$1 = (i3) => {
217
+ let t2, e2;
218
+ do {
219
+ if (void 0 === (t2 = i3._$AM)) break;
220
+ e2 = t2._$AN, e2.delete(i3), i3 = t2;
221
+ } while (0 === (e2 == null ? void 0 : e2.size));
222
+ }, r = (i3) => {
223
+ for (let t2; t2 = i3._$AM; i3 = t2) {
224
+ let e2 = t2._$AN;
225
+ if (void 0 === e2) t2._$AN = e2 = /* @__PURE__ */ new Set();
226
+ else if (e2.has(i3)) break;
227
+ e2.add(i3), c$1(t2);
228
+ }
229
+ };
230
+ function h$1(i3) {
231
+ void 0 !== this._$AN ? (o$1(this), this._$AM = i3, r(this)) : this._$AM = i3;
232
+ }
233
+ function n$1(i3, t2 = false, e2 = 0) {
234
+ const r2 = this._$AH, h2 = this._$AN;
235
+ 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$1(r2[i4]);
236
+ else null != r2 && (s$1(r2, false), o$1(r2));
237
+ else s$1(this, i3);
238
+ }
239
+ const c$1 = (i3) => {
240
+ i3.type == t.CHILD && (i3._$AP ?? (i3._$AP = n$1), i3._$AQ ?? (i3._$AQ = h$1));
241
+ };
242
+ class f extends i$1 {
243
+ constructor() {
244
+ super(...arguments), this._$AN = void 0;
245
+ }
246
+ _$AT(i3, t2, e2) {
247
+ super._$AT(i3, t2, e2), r(this), this.isConnected = i3._$AU;
248
+ }
249
+ _$AO(i3, t2 = true) {
250
+ var _a, _b;
251
+ 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$1(this));
252
+ }
253
+ setValue(t2) {
254
+ if (f$1(this._$Ct)) this._$Ct._$AI(t2, this);
255
+ else {
256
+ const i3 = [...this._$Ct._$AH];
257
+ i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
258
+ }
259
+ }
260
+ disconnected() {
261
+ }
262
+ reconnected() {
263
+ }
264
+ }
265
+ /**
266
+ * @license
267
+ * Copyright 2021 Google LLC
268
+ * SPDX-License-Identifier: BSD-3-Clause
269
+ */
270
+ class s {
271
+ constructor(t2) {
272
+ this.G = t2;
273
+ }
274
+ disconnect() {
275
+ this.G = void 0;
276
+ }
277
+ reconnect(t2) {
278
+ this.G = t2;
279
+ }
280
+ deref() {
281
+ return this.G;
282
+ }
283
+ }
284
+ class i2 {
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((t2) => this.Z = t2));
293
+ }
294
+ resume() {
295
+ var _a;
296
+ (_a = this.Z) == null ? void 0 : _a.call(this), this.Y = this.Z = void 0;
297
+ }
298
+ }
299
+ /**
300
+ * @license
301
+ * Copyright 2017 Google LLC
302
+ * SPDX-License-Identifier: BSD-3-Clause
303
+ */
304
+ const n = (t2) => !i$2(t2) && "function" == typeof t2.then, h = 1073741823;
305
+ class c extends f {
306
+ constructor() {
307
+ super(...arguments), this._$Cwt = h, this._$Cbt = [], this._$CK = new s(this), this._$CX = new i2();
308
+ }
309
+ render(...s2) {
310
+ return s2.find((t2) => !n(t2)) ?? T;
311
+ }
312
+ update(s2, i3) {
313
+ const e2 = this._$Cbt;
314
+ let r2 = e2.length;
315
+ this._$Cbt = i3;
316
+ const o2 = this._$CK, c2 = this._$CX;
317
+ this.isConnected || this.disconnected();
318
+ for (let t2 = 0; t2 < i3.length && !(t2 > this._$Cwt); t2++) {
319
+ const s3 = i3[t2];
320
+ if (!n(s3)) return this._$Cwt = t2, s3;
321
+ t2 < r2 && s3 === e2[t2] || (this._$Cwt = h, r2 = 0, Promise.resolve(s3).then(async (t3) => {
322
+ for (; c2.get(); ) await c2.get();
323
+ const i4 = o2.deref();
324
+ if (void 0 !== i4) {
325
+ const e3 = i4._$Cbt.indexOf(s3);
326
+ e3 > -1 && e3 < i4._$Cwt && (i4._$Cwt = e3, i4.setValue(t3));
327
+ }
328
+ }));
329
+ }
330
+ return T;
331
+ }
332
+ disconnected() {
333
+ this._$CK.disconnect(), this._$CX.pause();
334
+ }
335
+ reconnected() {
336
+ this._$CK.reconnect(this), this._$CX.resume();
337
+ }
338
+ }
339
+ const m = e$1(c);
340
+ class CacheUtil {
341
+ constructor() {
342
+ this.cache = /* @__PURE__ */ new Map();
343
+ }
344
+ set(key, value) {
345
+ this.cache.set(key, value);
346
+ }
347
+ get(key) {
348
+ return this.cache.get(key);
349
+ }
350
+ has(key) {
351
+ return this.cache.has(key);
352
+ }
353
+ delete(key) {
354
+ this.cache.delete(key);
355
+ }
356
+ clear() {
357
+ this.cache.clear();
358
+ }
359
+ }
360
+ const globalSvgCache = new CacheUtil();
361
+ const styles$2 = i$3`
362
+ :host {
363
+ display: flex;
364
+ aspect-ratio: var(--local-aspect-ratio);
365
+ color: var(--local-color);
366
+ width: var(--local-width);
367
+ }
368
+
369
+ svg {
370
+ width: inherit;
371
+ height: inherit;
372
+ object-fit: contain;
373
+ object-position: center;
374
+ }
375
+
376
+ .fallback {
377
+ width: var(--local-width);
378
+ height: var(--local-height);
379
+ }
380
+ `;
381
+ var __decorate$2 = function(decorators, target, key, desc) {
382
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
383
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
384
+ 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;
385
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
386
+ };
387
+ const ICONS = {
388
+ add: async () => (await import("./add-D-ECcdUh.mjs")).addSvg,
389
+ allWallets: async () => (await import("./all-wallets-puIIQy3Y.mjs")).allWalletsSvg,
390
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-CN6i5mHz.mjs")).arrowBottomCircleSvg,
391
+ appStore: async () => (await import("./app-store-Bsf7w3pv.mjs")).appStoreSvg,
392
+ apple: async () => (await import("./apple-Cw8e8IGH.mjs")).appleSvg,
393
+ arrowBottom: async () => (await import("./arrow-bottom-Cp2C4fQv.mjs")).arrowBottomSvg,
394
+ arrowLeft: async () => (await import("./arrow-left-BDQHoEvX.mjs")).arrowLeftSvg,
395
+ arrowRight: async () => (await import("./arrow-right-BxkuSpWU.mjs")).arrowRightSvg,
396
+ arrowTop: async () => (await import("./arrow-top-BrLVX4Rj.mjs")).arrowTopSvg,
397
+ bank: async () => (await import("./bank-B7EC6Kdz.mjs")).bankSvg,
398
+ browser: async () => (await import("./browser-ShRLuKKz.mjs")).browserSvg,
399
+ bin: async () => (await import("./bin-CwiYVJ1L.mjs")).binSvg,
400
+ bitcoin: async () => (await import("./bitcoin-C3kBVar_.mjs")).bitcoinSvg,
401
+ card: async () => (await import("./card-BJg5bdoM.mjs")).cardSvg,
402
+ checkmark: async () => (await import("./checkmark-BpR0Yy93.mjs")).checkmarkSvg,
403
+ checkmarkBold: async () => (await import("./checkmark-bold-D3Xcby1U.mjs")).checkmarkBoldSvg,
404
+ chevronBottom: async () => (await import("./chevron-bottom-DfGpWIz7.mjs")).chevronBottomSvg,
405
+ chevronLeft: async () => (await import("./chevron-left-DGSG9WJQ.mjs")).chevronLeftSvg,
406
+ chevronRight: async () => (await import("./chevron-right-C2nsTx_Y.mjs")).chevronRightSvg,
407
+ chevronTop: async () => (await import("./chevron-top-vk-9DvUU.mjs")).chevronTopSvg,
408
+ chromeStore: async () => (await import("./chrome-store-4H_ie3vA.mjs")).chromeStoreSvg,
409
+ clock: async () => (await import("./clock-Ba5SM-pl.mjs")).clockSvg,
410
+ close: async () => (await import("./close-CJHKFOyp.mjs")).closeSvg,
411
+ compass: async () => (await import("./compass-DbN5DkTl.mjs")).compassSvg,
412
+ coinPlaceholder: async () => (await import("./coinPlaceholder-Cbba3D1H.mjs")).coinPlaceholderSvg,
413
+ copy: async () => (await import("./copy-CHSZprYJ.mjs")).copySvg,
414
+ cursor: async () => (await import("./cursor-DCRkvEhr.mjs")).cursorSvg,
415
+ cursorTransparent: async () => (await import("./cursor-transparent-CliETg4d.mjs")).cursorTransparentSvg,
416
+ circle: async () => (await import("./circle-BtqWJU0_.mjs")).circleSvg,
417
+ desktop: async () => (await import("./desktop-Cg5I32-p.mjs")).desktopSvg,
418
+ disconnect: async () => (await import("./disconnect-Cp2vRWB2.mjs")).disconnectSvg,
419
+ discord: async () => (await import("./discord-B1d-qeSk.mjs")).discordSvg,
420
+ ethereum: async () => (await import("./ethereum-BRcsRjUU.mjs")).ethereumSvg,
421
+ etherscan: async () => (await import("./etherscan-BZKGpKp8.mjs")).etherscanSvg,
422
+ extension: async () => (await import("./extension-CwUepr-W.mjs")).extensionSvg,
423
+ externalLink: async () => (await import("./external-link-ClYNKSPt.mjs")).externalLinkSvg,
424
+ facebook: async () => (await import("./facebook-CFjrd4my.mjs")).facebookSvg,
425
+ farcaster: async () => (await import("./farcaster-DyVJtVS9.mjs")).farcasterSvg,
426
+ filters: async () => (await import("./filters-CpHaFNjT.mjs")).filtersSvg,
427
+ github: async () => (await import("./github-CeO70C3E.mjs")).githubSvg,
428
+ google: async () => (await import("./google-CyOdUlbw.mjs")).googleSvg,
429
+ helpCircle: async () => (await import("./help-circle-Dh3dRNoB.mjs")).helpCircleSvg,
430
+ image: async () => (await import("./image-BTGOf8bb.mjs")).imageSvg,
431
+ id: async () => (await import("./id-D-Q0uPFM.mjs")).idSvg,
432
+ infoCircle: async () => (await import("./info-circle-CIn6yeQo.mjs")).infoCircleSvg,
433
+ lightbulb: async () => (await import("./lightbulb-Gv7IbnzO.mjs")).lightbulbSvg,
434
+ mail: async () => (await import("./mail-CFYm95wn.mjs")).mailSvg,
435
+ mobile: async () => (await import("./mobile-OIbnpFsU.mjs")).mobileSvg,
436
+ more: async () => (await import("./more-C8N_RV55.mjs")).moreSvg,
437
+ networkPlaceholder: async () => (await import("./network-placeholder-CxEcczEx.mjs")).networkPlaceholderSvg,
438
+ nftPlaceholder: async () => (await import("./nftPlaceholder-MiYL110I.mjs")).nftPlaceholderSvg,
439
+ off: async () => (await import("./off-BNiMlpUU.mjs")).offSvg,
440
+ playStore: async () => (await import("./play-store-D6nmQXhX.mjs")).playStoreSvg,
441
+ plus: async () => (await import("./plus-C8ioZuCD.mjs")).plusSvg,
442
+ qrCode: async () => (await import("./qr-code-CSVwaBLf.mjs")).qrCodeIcon,
443
+ recycleHorizontal: async () => (await import("./recycle-horizontal-QI0xtDHK.mjs")).recycleHorizontalSvg,
444
+ refresh: async () => (await import("./refresh-CSOC1NUY.mjs")).refreshSvg,
445
+ search: async () => (await import("./search-Do_rb-9-.mjs")).searchSvg,
446
+ send: async () => (await import("./send-D4yYsIHV.mjs")).sendSvg,
447
+ swapHorizontal: async () => (await import("./swapHorizontal-DOIo-Ccx.mjs")).swapHorizontalSvg,
448
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-CU_v0kFz.mjs")).swapHorizontalMediumSvg,
449
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-DDroA0Af.mjs")).swapHorizontalBoldSvg,
450
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-DXMH0sgK.mjs")).swapHorizontalRoundedBoldSvg,
451
+ swapVertical: async () => (await import("./swapVertical-HJZ6rFcr.mjs")).swapVerticalSvg,
452
+ solana: async () => (await import("./solana-YAkDp6j_.mjs")).solanaSvg,
453
+ telegram: async () => (await import("./telegram-CsCauOwj.mjs")).telegramSvg,
454
+ threeDots: async () => (await import("./three-dots-LNZ_fjP7.mjs")).threeDotsSvg,
455
+ twitch: async () => (await import("./twitch-Dg1CCQvd.mjs")).twitchSvg,
456
+ twitter: async () => (await import("./x-Cgm2OFpL.mjs")).xSvg,
457
+ twitterIcon: async () => (await import("./twitterIcon-BjR09Cj9.mjs")).twitterIconSvg,
458
+ verify: async () => (await import("./verify-B8WZq7kt.mjs")).verifySvg,
459
+ verifyFilled: async () => (await import("./verify-filled-BeqC1imk.mjs")).verifyFilledSvg,
460
+ wallet: async () => (await import("./wallet-CNAVQCfm.mjs")).walletSvg,
461
+ walletConnect: async () => (await import("./walletconnect-ACr-R1QZ.mjs")).walletConnectSvg,
462
+ walletConnectLightBrown: async () => (await import("./walletconnect-ACr-R1QZ.mjs")).walletConnectLightBrownSvg,
463
+ walletConnectBrown: async () => (await import("./walletconnect-ACr-R1QZ.mjs")).walletConnectBrownSvg,
464
+ walletPlaceholder: async () => (await import("./wallet-placeholder-CQ-7CmVN.mjs")).walletPlaceholderSvg,
465
+ warningCircle: async () => (await import("./warning-circle-HV2lOiCj.mjs")).warningCircleSvg,
466
+ x: async () => (await import("./x-Cgm2OFpL.mjs")).xSvg,
467
+ info: async () => (await import("./info-DQE0s-A4.mjs")).infoSvg,
468
+ exclamationTriangle: async () => (await import("./exclamation-triangle-CFThXxRT.mjs")).exclamationTriangleSvg,
469
+ reown: async () => (await import("./reown-logo-CZAEp1jU.mjs")).reownSvg,
470
+ "x-mark": async () => (await import("./x-mark-u0KJjUJ1.mjs")).xMarkSvg
471
+ };
472
+ async function getSvg(name) {
473
+ if (globalSvgCache.has(name)) {
474
+ return globalSvgCache.get(name);
475
+ }
476
+ const importFn = ICONS[name] ?? ICONS.copy;
477
+ const svgPromise = importFn();
478
+ globalSvgCache.set(name, svgPromise);
479
+ return svgPromise;
480
+ }
481
+ let WuiIcon = class WuiIcon2 extends i$4 {
482
+ constructor() {
483
+ super(...arguments);
484
+ this.size = "md";
485
+ this.name = "copy";
486
+ this.color = "fg-300";
487
+ this.aspectRatio = "1 / 1";
488
+ }
489
+ render() {
490
+ this.style.cssText = `
491
+ --local-color: ${`var(--wui-color-${this.color});`}
492
+ --local-width: ${`var(--wui-icon-size-${this.size});`}
493
+ --local-aspect-ratio: ${this.aspectRatio}
494
+ `;
495
+ return x`${m(getSvg(this.name), x`<div class="fallback"></div>`)}`;
496
+ }
497
+ };
498
+ WuiIcon.styles = [resetStyles, colorStyles, styles$2];
499
+ __decorate$2([
500
+ n$2()
501
+ ], WuiIcon.prototype, "size", void 0);
502
+ __decorate$2([
503
+ n$2()
504
+ ], WuiIcon.prototype, "name", void 0);
505
+ __decorate$2([
506
+ n$2()
507
+ ], WuiIcon.prototype, "color", void 0);
508
+ __decorate$2([
509
+ n$2()
510
+ ], WuiIcon.prototype, "aspectRatio", void 0);
511
+ WuiIcon = __decorate$2([
512
+ customElement("wui-icon")
513
+ ], WuiIcon);
514
+ /**
515
+ * @license
516
+ * Copyright 2018 Google LLC
517
+ * SPDX-License-Identifier: BSD-3-Clause
518
+ */
519
+ const e = e$1(class extends i$1 {
520
+ constructor(t$1) {
521
+ var _a;
522
+ 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.");
523
+ }
524
+ render(t2) {
525
+ return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
526
+ }
527
+ update(s2, [i3]) {
528
+ var _a, _b;
529
+ if (void 0 === this.st) {
530
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
531
+ for (const t2 in i3) i3[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
532
+ return this.render(i3);
533
+ }
534
+ const r2 = s2.element.classList;
535
+ for (const t2 of this.st) t2 in i3 || (r2.remove(t2), this.st.delete(t2));
536
+ for (const t2 in i3) {
537
+ const s3 = !!i3[t2];
538
+ 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)));
539
+ }
540
+ return T;
541
+ }
542
+ });
543
+ const styles$1 = i$3`
544
+ :host {
545
+ display: inline-flex !important;
546
+ }
547
+
548
+ slot {
549
+ width: 100%;
550
+ display: inline-block;
551
+ font-style: normal;
552
+ font-family: var(--wui-font-family);
553
+ font-feature-settings:
554
+ 'tnum' on,
555
+ 'lnum' on,
556
+ 'case' on;
557
+ line-height: 130%;
558
+ font-weight: var(--wui-font-weight-regular);
559
+ overflow: inherit;
560
+ text-overflow: inherit;
561
+ text-align: var(--local-align);
562
+ color: var(--local-color);
563
+ }
564
+
565
+ .wui-line-clamp-1 {
566
+ overflow: hidden;
567
+ display: -webkit-box;
568
+ -webkit-box-orient: vertical;
569
+ -webkit-line-clamp: 1;
570
+ }
571
+
572
+ .wui-line-clamp-2 {
573
+ overflow: hidden;
574
+ display: -webkit-box;
575
+ -webkit-box-orient: vertical;
576
+ -webkit-line-clamp: 2;
577
+ }
578
+
579
+ .wui-font-medium-400 {
580
+ font-size: var(--wui-font-size-medium);
581
+ font-weight: var(--wui-font-weight-light);
582
+ letter-spacing: var(--wui-letter-spacing-medium);
583
+ }
584
+
585
+ .wui-font-medium-600 {
586
+ font-size: var(--wui-font-size-medium);
587
+ letter-spacing: var(--wui-letter-spacing-medium);
588
+ }
589
+
590
+ .wui-font-title-600 {
591
+ font-size: var(--wui-font-size-title);
592
+ letter-spacing: var(--wui-letter-spacing-title);
593
+ }
594
+
595
+ .wui-font-title-6-600 {
596
+ font-size: var(--wui-font-size-title-6);
597
+ letter-spacing: var(--wui-letter-spacing-title-6);
598
+ }
599
+
600
+ .wui-font-mini-700 {
601
+ font-size: var(--wui-font-size-mini);
602
+ letter-spacing: var(--wui-letter-spacing-mini);
603
+ text-transform: uppercase;
604
+ }
605
+
606
+ .wui-font-large-500,
607
+ .wui-font-large-600,
608
+ .wui-font-large-700 {
609
+ font-size: var(--wui-font-size-large);
610
+ letter-spacing: var(--wui-letter-spacing-large);
611
+ }
612
+
613
+ .wui-font-2xl-500,
614
+ .wui-font-2xl-600,
615
+ .wui-font-2xl-700 {
616
+ font-size: var(--wui-font-size-2xl);
617
+ letter-spacing: var(--wui-letter-spacing-2xl);
618
+ }
619
+
620
+ .wui-font-paragraph-400,
621
+ .wui-font-paragraph-500,
622
+ .wui-font-paragraph-600,
623
+ .wui-font-paragraph-700 {
624
+ font-size: var(--wui-font-size-paragraph);
625
+ letter-spacing: var(--wui-letter-spacing-paragraph);
626
+ }
627
+
628
+ .wui-font-small-400,
629
+ .wui-font-small-500,
630
+ .wui-font-small-600 {
631
+ font-size: var(--wui-font-size-small);
632
+ letter-spacing: var(--wui-letter-spacing-small);
633
+ }
634
+
635
+ .wui-font-tiny-400,
636
+ .wui-font-tiny-500,
637
+ .wui-font-tiny-600 {
638
+ font-size: var(--wui-font-size-tiny);
639
+ letter-spacing: var(--wui-letter-spacing-tiny);
640
+ }
641
+
642
+ .wui-font-micro-700,
643
+ .wui-font-micro-600,
644
+ .wui-font-micro-500 {
645
+ font-size: var(--wui-font-size-micro);
646
+ letter-spacing: var(--wui-letter-spacing-micro);
647
+ text-transform: uppercase;
648
+ }
649
+
650
+ .wui-font-tiny-400,
651
+ .wui-font-small-400,
652
+ .wui-font-medium-400,
653
+ .wui-font-paragraph-400 {
654
+ font-weight: var(--wui-font-weight-light);
655
+ }
656
+
657
+ .wui-font-large-700,
658
+ .wui-font-paragraph-700,
659
+ .wui-font-micro-700,
660
+ .wui-font-mini-700 {
661
+ font-weight: var(--wui-font-weight-bold);
662
+ }
663
+
664
+ .wui-font-medium-600,
665
+ .wui-font-medium-title-600,
666
+ .wui-font-title-6-600,
667
+ .wui-font-large-600,
668
+ .wui-font-paragraph-600,
669
+ .wui-font-small-600,
670
+ .wui-font-tiny-600,
671
+ .wui-font-micro-600 {
672
+ font-weight: var(--wui-font-weight-medium);
673
+ }
674
+
675
+ :host([disabled]) {
676
+ opacity: 0.4;
677
+ }
678
+ `;
679
+ var __decorate$1 = function(decorators, target, key, desc) {
680
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
681
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
682
+ 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;
683
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
684
+ };
685
+ let WuiText = class WuiText2 extends i$4 {
686
+ constructor() {
687
+ super(...arguments);
688
+ this.variant = "paragraph-500";
689
+ this.color = "fg-300";
690
+ this.align = "left";
691
+ this.lineClamp = void 0;
692
+ }
693
+ render() {
694
+ const classes = {
695
+ [`wui-font-${this.variant}`]: true,
696
+ [`wui-color-${this.color}`]: true,
697
+ [`wui-line-clamp-${this.lineClamp}`]: this.lineClamp ? true : false
698
+ };
699
+ this.style.cssText = `
700
+ --local-align: ${this.align};
701
+ --local-color: var(--wui-color-${this.color});
702
+ `;
703
+ return x`<slot class=${e(classes)}></slot>`;
704
+ }
705
+ };
706
+ WuiText.styles = [resetStyles, styles$1];
707
+ __decorate$1([
708
+ n$2()
709
+ ], WuiText.prototype, "variant", void 0);
710
+ __decorate$1([
711
+ n$2()
712
+ ], WuiText.prototype, "color", void 0);
713
+ __decorate$1([
714
+ n$2()
715
+ ], WuiText.prototype, "align", void 0);
716
+ __decorate$1([
717
+ n$2()
718
+ ], WuiText.prototype, "lineClamp", void 0);
719
+ WuiText = __decorate$1([
720
+ customElement("wui-text")
721
+ ], WuiText);
722
+ const styles = i$3`
723
+ :host {
724
+ display: flex;
725
+ width: inherit;
726
+ height: inherit;
727
+ }
728
+ `;
729
+ var __decorate = function(decorators, target, key, desc) {
730
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
731
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
732
+ 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;
733
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
734
+ };
735
+ let WuiFlex = class WuiFlex2 extends i$4 {
736
+ render() {
737
+ this.style.cssText = `
738
+ flex-direction: ${this.flexDirection};
739
+ flex-wrap: ${this.flexWrap};
740
+ flex-basis: ${this.flexBasis};
741
+ flex-grow: ${this.flexGrow};
742
+ flex-shrink: ${this.flexShrink};
743
+ align-items: ${this.alignItems};
744
+ justify-content: ${this.justifyContent};
745
+ column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
746
+ row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
747
+ gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
748
+ padding-top: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 0)};
749
+ padding-right: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 1)};
750
+ padding-bottom: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 2)};
751
+ padding-left: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 3)};
752
+ margin-top: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 0)};
753
+ margin-right: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 1)};
754
+ margin-bottom: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 2)};
755
+ margin-left: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 3)};
756
+ `;
757
+ return x`<slot></slot>`;
758
+ }
759
+ };
760
+ WuiFlex.styles = [resetStyles, styles];
761
+ __decorate([
762
+ n$2()
763
+ ], WuiFlex.prototype, "flexDirection", void 0);
764
+ __decorate([
765
+ n$2()
766
+ ], WuiFlex.prototype, "flexWrap", void 0);
767
+ __decorate([
768
+ n$2()
769
+ ], WuiFlex.prototype, "flexBasis", void 0);
770
+ __decorate([
771
+ n$2()
772
+ ], WuiFlex.prototype, "flexGrow", void 0);
773
+ __decorate([
774
+ n$2()
775
+ ], WuiFlex.prototype, "flexShrink", void 0);
776
+ __decorate([
777
+ n$2()
778
+ ], WuiFlex.prototype, "alignItems", void 0);
779
+ __decorate([
780
+ n$2()
781
+ ], WuiFlex.prototype, "justifyContent", void 0);
782
+ __decorate([
783
+ n$2()
784
+ ], WuiFlex.prototype, "columnGap", void 0);
785
+ __decorate([
786
+ n$2()
787
+ ], WuiFlex.prototype, "rowGap", void 0);
788
+ __decorate([
789
+ n$2()
790
+ ], WuiFlex.prototype, "gap", void 0);
791
+ __decorate([
792
+ n$2()
793
+ ], WuiFlex.prototype, "padding", void 0);
794
+ __decorate([
795
+ n$2()
796
+ ], WuiFlex.prototype, "margin", void 0);
797
+ WuiFlex = __decorate([
798
+ customElement("wui-flex")
799
+ ], WuiFlex);
800
+ /**
801
+ * @license
802
+ * Copyright 2018 Google LLC
803
+ * SPDX-License-Identifier: BSD-3-Clause
804
+ */
805
+ const o = (o2) => o2 ?? E;
806
+ export {
807
+ UiHelperUtil as U,
808
+ e as a,
809
+ customElement as c,
810
+ e$1 as e,
811
+ f,
812
+ n$2 as n,
813
+ o,
814
+ r$1 as r
815
+ };