@reown/appkit-cdn 1.6.6-basic-test.4.0 → 1.6.6-basic-test.6.0

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 (251) hide show
  1. package/dist/add-NP7lbRpx.js +20 -0
  2. package/dist/add-NP7lbRpx.js.map +1 -0
  3. package/dist/all-wallets-3ZlmqaCY.js +11 -0
  4. package/dist/all-wallets-3ZlmqaCY.js.map +1 -0
  5. package/dist/app-store-DB2fNiqK.js +22 -0
  6. package/dist/app-store-DB2fNiqK.js.map +1 -0
  7. package/dist/{appkit-hZyGLfr5.js → appkit-CdqvngG9.js} +1814 -2472
  8. package/dist/{appkit-hZyGLfr5.js.map → appkit-CdqvngG9.js.map} +1 -1
  9. package/dist/appkit.js +8 -8
  10. package/dist/apple-BGz_ykHO.js +23 -0
  11. package/dist/apple-BGz_ykHO.js.map +1 -0
  12. package/dist/arrow-bottom-BYriFBEP.js +13 -0
  13. package/dist/arrow-bottom-BYriFBEP.js.map +1 -0
  14. package/dist/arrow-bottom-circle-Dd1SQL7h.js +16 -0
  15. package/dist/arrow-bottom-circle-Dd1SQL7h.js.map +1 -0
  16. package/dist/arrow-left-CjDxt4M-.js +13 -0
  17. package/dist/arrow-left-CjDxt4M-.js.map +1 -0
  18. package/dist/arrow-right-C6trxztG.js +13 -0
  19. package/dist/arrow-right-C6trxztG.js.map +1 -0
  20. package/dist/arrow-top-pHAOoGwr.js +13 -0
  21. package/dist/arrow-top-pHAOoGwr.js.map +1 -0
  22. package/dist/bank-Dn8OADA5.js +19 -0
  23. package/dist/bank-Dn8OADA5.js.map +1 -0
  24. package/dist/browser-CEUoIvO8.js +19 -0
  25. package/dist/browser-CEUoIvO8.js.map +1 -0
  26. package/dist/card-BLh_FYXC.js +19 -0
  27. package/dist/card-BLh_FYXC.js.map +1 -0
  28. package/dist/{ccip-B6Wvu04X.js → ccip-BFozjoZC.js} +2 -2
  29. package/dist/{ccip-B6Wvu04X.js.map → ccip-BFozjoZC.js.map} +1 -1
  30. package/dist/checkmark-C1WEjFNh.js +16 -0
  31. package/dist/checkmark-C1WEjFNh.js.map +1 -0
  32. package/dist/checkmark-bold-BTNdeTbW.js +13 -0
  33. package/dist/checkmark-bold-BTNdeTbW.js.map +1 -0
  34. package/dist/chevron-bottom-hbbpYzkK.js +13 -0
  35. package/dist/chevron-bottom-hbbpYzkK.js.map +1 -0
  36. package/dist/chevron-left-DJltpVmp.js +13 -0
  37. package/dist/chevron-left-DJltpVmp.js.map +1 -0
  38. package/dist/chevron-right-CWI1glTp.js +13 -0
  39. package/dist/chevron-right-CWI1glTp.js.map +1 -0
  40. package/dist/chevron-top-kYaCnKN2.js +13 -0
  41. package/dist/chevron-top-kYaCnKN2.js.map +1 -0
  42. package/dist/chrome-store-Pdpo7piH.js +66 -0
  43. package/dist/chrome-store-Pdpo7piH.js.map +1 -0
  44. package/dist/clock-CjA6cSAh.js +13 -0
  45. package/dist/clock-CjA6cSAh.js.map +1 -0
  46. package/dist/close-BJYekRPg.js +13 -0
  47. package/dist/close-BJYekRPg.js.map +1 -0
  48. package/dist/coinPlaceholder-D8UeO-Rg.js +13 -0
  49. package/dist/coinPlaceholder-D8UeO-Rg.js.map +1 -0
  50. package/dist/compass-y9pPnB8j.js +13 -0
  51. package/dist/compass-y9pPnB8j.js.map +1 -0
  52. package/dist/copy-BthuudTc.js +20 -0
  53. package/dist/copy-BthuudTc.js.map +1 -0
  54. package/dist/cursor-CvXxYc0W.js +8 -0
  55. package/dist/cursor-CvXxYc0W.js.map +1 -0
  56. package/dist/cursor-transparent-DqEJVC-Q.js +17 -0
  57. package/dist/cursor-transparent-DqEJVC-Q.js.map +1 -0
  58. package/dist/desktop-_PL1geEd.js +14 -0
  59. package/dist/desktop-_PL1geEd.js.map +1 -0
  60. package/dist/disconnect-BPHafuJd.js +13 -0
  61. package/dist/disconnect-BPHafuJd.js.map +1 -0
  62. package/dist/discord-NvcqsvlI.js +22 -0
  63. package/dist/discord-NvcqsvlI.js.map +1 -0
  64. package/dist/{email-7OXbz6hc.js → email-BbVm_Sx_.js} +8 -8
  65. package/dist/{email-7OXbz6hc.js.map → email-BbVm_Sx_.js.map} +1 -1
  66. package/dist/{embedded-wallet-CWsQPgCa.js → embedded-wallet-S7vcc456.js} +10 -10
  67. package/dist/{embedded-wallet-CWsQPgCa.js.map → embedded-wallet-S7vcc456.js.map} +1 -1
  68. package/dist/etherscan-CbHO3Asn.js +11 -0
  69. package/dist/etherscan-CbHO3Asn.js.map +1 -0
  70. package/dist/exclamation-triangle-CREdMNbJ.js +9 -0
  71. package/dist/exclamation-triangle-CREdMNbJ.js.map +1 -0
  72. package/dist/extension-Bgib8KWN.js +13 -0
  73. package/dist/extension-Bgib8KWN.js.map +1 -0
  74. package/dist/external-link-LEIw9Vg-.js +13 -0
  75. package/dist/external-link-LEIw9Vg-.js.map +1 -0
  76. package/dist/facebook-2_oeBQGg.js +31 -0
  77. package/dist/facebook-2_oeBQGg.js.map +1 -0
  78. package/dist/farcaster-DnbPiDY0.js +17 -0
  79. package/dist/farcaster-DnbPiDY0.js.map +1 -0
  80. package/dist/filters-D-P5jdUt.js +13 -0
  81. package/dist/filters-D-P5jdUt.js.map +1 -0
  82. package/dist/github-BfHeskBT.js +23 -0
  83. package/dist/github-BfHeskBT.js.map +1 -0
  84. package/dist/google-B0ZFcajM.js +23 -0
  85. package/dist/google-B0ZFcajM.js.map +1 -0
  86. package/dist/help-circle-C2jKpHH6.js +17 -0
  87. package/dist/help-circle-C2jKpHH6.js.map +1 -0
  88. package/dist/{hooks.module-4F6xH2-y.js → hooks.module-BHjthR6-.js} +2 -2
  89. package/dist/{hooks.module-4F6xH2-y.js.map → hooks.module-BHjthR6-.js.map} +1 -1
  90. package/dist/id-sbeKkW2J.js +17 -0
  91. package/dist/id-sbeKkW2J.js.map +1 -0
  92. package/dist/if-defined-D-8vNRJt.js +831 -0
  93. package/dist/if-defined-D-8vNRJt.js.map +1 -0
  94. package/dist/image-BuWMUN9a.js +9 -0
  95. package/dist/image-BuWMUN9a.js.map +1 -0
  96. package/dist/{index-ClYdxQHq.js → index-B9-69ui5.js} +4 -4
  97. package/dist/{index-ClYdxQHq.js.map → index-B9-69ui5.js.map} +1 -1
  98. package/dist/{index-CIFWL_Te.js → index-BARIxmDr.js} +4 -4
  99. package/dist/{index-CIFWL_Te.js.map → index-BARIxmDr.js.map} +1 -1
  100. package/dist/{index-C49v39-_.js → index-BM6-Oywy.js} +3 -3
  101. package/dist/{index-C49v39-_.js.map → index-BM6-Oywy.js.map} +1 -1
  102. package/dist/{index-WNHJ5PXY.js → index-BabqLvZG.js} +3 -3
  103. package/dist/{index-WNHJ5PXY.js.map → index-BabqLvZG.js.map} +1 -1
  104. package/dist/{index-BL61_ej1.js → index-Bcgazpyn.js} +3 -3
  105. package/dist/{index-BL61_ej1.js.map → index-Bcgazpyn.js.map} +1 -1
  106. package/dist/{index-C3KSKBRd.js → index-BkStz0d4.js} +4 -4
  107. package/dist/{index-C3KSKBRd.js.map → index-BkStz0d4.js.map} +1 -1
  108. package/dist/{index-C7DuE4bF.js → index-Bljtzwcl.js} +26 -104
  109. package/dist/index-Bljtzwcl.js.map +1 -0
  110. package/dist/{index-DYWDcSOu.js → index-BwYK0MDk.js} +3 -3
  111. package/dist/{index-DYWDcSOu.js.map → index-BwYK0MDk.js.map} +1 -1
  112. package/dist/{index-CB1JDQ6y.js → index-C2shNF1o.js} +3 -4
  113. package/dist/{index-CB1JDQ6y.js.map → index-C2shNF1o.js.map} +1 -1
  114. package/dist/{index-DFatup-x.js → index-CBYMZFJJ.js} +3 -3
  115. package/dist/{index-DFatup-x.js.map → index-CBYMZFJJ.js.map} +1 -1
  116. package/dist/{index-BduA1I0K.js → index-CHFmNFpG.js} +50 -28
  117. package/dist/index-CHFmNFpG.js.map +1 -0
  118. package/dist/{index-BTN5XFWn.js → index-CVUPbw2N.js} +2 -2
  119. package/dist/{index-BTN5XFWn.js.map → index-CVUPbw2N.js.map} +1 -1
  120. package/dist/{index-TZpNKUEf.js → index-CWzXkci8.js} +2 -2
  121. package/dist/{index-TZpNKUEf.js.map → index-CWzXkci8.js.map} +1 -1
  122. package/dist/{index-PNpm0-bd.js → index-CX-tdM1L.js} +3 -3
  123. package/dist/{index-PNpm0-bd.js.map → index-CX-tdM1L.js.map} +1 -1
  124. package/dist/{index-Ch4lVZT8.js → index-CkBR4B44.js} +6 -6
  125. package/dist/{index-Ch4lVZT8.js.map → index-CkBR4B44.js.map} +1 -1
  126. package/dist/index-CmzohUir.js +368 -0
  127. package/dist/index-CmzohUir.js.map +1 -0
  128. package/dist/index-D-uUCzNX.js +276 -0
  129. package/dist/index-D-uUCzNX.js.map +1 -0
  130. package/dist/{index-Brwaxkkt.js → index-DA0ito3L.js} +3 -3
  131. package/dist/{index-Brwaxkkt.js.map → index-DA0ito3L.js.map} +1 -1
  132. package/dist/{index-DiAf99cR.js → index-DFR_Im5v.js} +5 -12
  133. package/dist/index-DFR_Im5v.js.map +1 -0
  134. package/dist/{index-Df5vKTIW.js → index-DTMyYctC.js} +3 -3
  135. package/dist/{index-Df5vKTIW.js.map → index-DTMyYctC.js.map} +1 -1
  136. package/dist/{index-CvV6W9De.js → index-DYdsymZN.js} +3 -42
  137. package/dist/index-DYdsymZN.js.map +1 -0
  138. package/dist/{index-BYhbfdIT.js → index-DhH1H8VE.js} +4 -4
  139. package/dist/{index-BYhbfdIT.js.map → index-DhH1H8VE.js.map} +1 -1
  140. package/dist/{index-DmwSb988.js → index-Dk4ILci7.js} +5 -5
  141. package/dist/{index-DmwSb988.js.map → index-Dk4ILci7.js.map} +1 -1
  142. package/dist/{index-CewBInzg.js → index-DtpsFHmC.js} +3 -4
  143. package/dist/{index-CewBInzg.js.map → index-DtpsFHmC.js.map} +1 -1
  144. package/dist/{index-BbYzNK-e.js → index-L5MhmDPH.js} +3 -3
  145. package/dist/{index-BbYzNK-e.js.map → index-L5MhmDPH.js.map} +1 -1
  146. package/dist/{index-BgPMLnwu.js → index-NLlOtCU-.js} +3 -3
  147. package/dist/{index-BgPMLnwu.js.map → index-NLlOtCU-.js.map} +1 -1
  148. package/dist/{index-C4H1nkXm.js → index-gEda8IHF.js} +3 -3
  149. package/dist/{index-C4H1nkXm.js.map → index-gEda8IHF.js.map} +1 -1
  150. package/dist/{index-DAEKpLXx.js → index-iyYKZca6.js} +7 -7
  151. package/dist/{index-DAEKpLXx.js.map → index-iyYKZca6.js.map} +1 -1
  152. package/dist/{index-B7JVTsPu.js → index-w81WY8ru.js} +4 -4
  153. package/dist/{index-B7JVTsPu.js.map → index-w81WY8ru.js.map} +1 -1
  154. package/dist/{index-DQp_pmaP.js → index-yXeJfu4Y.js} +4 -4
  155. package/dist/{index-DQp_pmaP.js.map → index-yXeJfu4Y.js.map} +1 -1
  156. package/dist/{index.es-DxdP-k4H.js → index.es-BzD8rX-E.js} +3 -3
  157. package/dist/{index.es-DxdP-k4H.js.map → index.es-BzD8rX-E.js.map} +1 -1
  158. package/dist/info-DNoiQ3km.js +8 -0
  159. package/dist/info-DNoiQ3km.js.map +1 -0
  160. package/dist/info-circle-DbyCmpjj.js +17 -0
  161. package/dist/info-circle-DbyCmpjj.js.map +1 -0
  162. package/dist/lightbulb-BmBiXG1K.js +8 -0
  163. package/dist/lightbulb-BmBiXG1K.js.map +1 -0
  164. package/dist/mail-qfBaBElS.js +13 -0
  165. package/dist/mail-qfBaBElS.js.map +1 -0
  166. package/dist/{metamask-sdk-3_VOmd7d.js → metamask-sdk-DwEi4IJk.js} +2 -2
  167. package/dist/{metamask-sdk-3_VOmd7d.js.map → metamask-sdk-DwEi4IJk.js.map} +1 -1
  168. package/dist/mobile-B07ju1n8.js +14 -0
  169. package/dist/mobile-B07ju1n8.js.map +1 -0
  170. package/dist/more-BvZuZelF.js +16 -0
  171. package/dist/more-BvZuZelF.js.map +1 -0
  172. package/dist/{native-Ds9cEPoS.js → native-DyfcW3oi.js} +2 -2
  173. package/dist/{native-Ds9cEPoS.js.map → native-DyfcW3oi.js.map} +1 -1
  174. package/dist/network-placeholder-BhilMer9.js +19 -0
  175. package/dist/network-placeholder-BhilMer9.js.map +1 -0
  176. package/dist/nftPlaceholder-DyFaEose.js +13 -0
  177. package/dist/nftPlaceholder-DyFaEose.js.map +1 -0
  178. package/dist/off-BIvc3eKr.js +13 -0
  179. package/dist/off-BIvc3eKr.js.map +1 -0
  180. package/dist/{onramp-DAOC8iXd.js → onramp-Bqk-IRl6.js} +14 -135
  181. package/dist/onramp-Bqk-IRl6.js.map +1 -0
  182. package/dist/play-store-61CZ2B1s.js +37 -0
  183. package/dist/play-store-61CZ2B1s.js.map +1 -0
  184. package/dist/plus-Bu-eHL0h.js +18 -0
  185. package/dist/plus-Bu-eHL0h.js.map +1 -0
  186. package/dist/qr-code-DimNByBy.js +11 -0
  187. package/dist/qr-code-DimNByBy.js.map +1 -0
  188. package/dist/{receive-C_E76vQZ.js → receive-Bu73FXrh.js} +6 -6
  189. package/dist/{receive-C_E76vQZ.js.map → receive-Bu73FXrh.js.map} +1 -1
  190. package/dist/recycle-horizontal-Uo4s9ysJ.js +14 -0
  191. package/dist/recycle-horizontal-Uo4s9ysJ.js.map +1 -0
  192. package/dist/refresh-xUeUx7mv.js +13 -0
  193. package/dist/refresh-xUeUx7mv.js.map +1 -0
  194. package/dist/search-_aWp0A4B.js +13 -0
  195. package/dist/search-_aWp0A4B.js.map +1 -0
  196. package/dist/{send-C92cSKIt.js → send--qzOSynf.js} +11 -11
  197. package/dist/send--qzOSynf.js.map +1 -0
  198. package/dist/send-xMwE5ydw.js +20 -0
  199. package/dist/send-xMwE5ydw.js.map +1 -0
  200. package/dist/{socials-BlllTdW5.js → socials-B4UTNFGM.js} +10 -10
  201. package/dist/{socials-BlllTdW5.js.map → socials-B4UTNFGM.js.map} +1 -1
  202. package/dist/swapHorizontal-3gtVSxJ4.js +13 -0
  203. package/dist/swapHorizontal-3gtVSxJ4.js.map +1 -0
  204. package/dist/swapHorizontalBold-BmLFhIzv.js +13 -0
  205. package/dist/swapHorizontalBold-BmLFhIzv.js.map +1 -0
  206. package/dist/swapHorizontalMedium-DorGu47M.js +21 -0
  207. package/dist/swapHorizontalMedium-DorGu47M.js.map +1 -0
  208. package/dist/swapHorizontalRoundedBold-CNxXcJzg.js +13 -0
  209. package/dist/swapHorizontalRoundedBold-CNxXcJzg.js.map +1 -0
  210. package/dist/swapVertical-DUe5qSb3.js +13 -0
  211. package/dist/swapVertical-DUe5qSb3.js.map +1 -0
  212. package/dist/{swaps-BodIZ5Dv.js → swaps-1aY5Xp5u.js} +14 -14
  213. package/dist/swaps-1aY5Xp5u.js.map +1 -0
  214. package/dist/telegram-BGAoVZcd.js +21 -0
  215. package/dist/telegram-BGAoVZcd.js.map +1 -0
  216. package/dist/three-dots-CPIaGn46.js +10 -0
  217. package/dist/three-dots-CPIaGn46.js.map +1 -0
  218. package/dist/{transactions-DSiHT2Zb.js → transactions-BARQmV8t.js} +4 -4
  219. package/dist/{transactions-DSiHT2Zb.js.map → transactions-BARQmV8t.js.map} +1 -1
  220. package/dist/twitch-B9zM_E1c.js +23 -0
  221. package/dist/twitch-B9zM_E1c.js.map +1 -0
  222. package/dist/twitterIcon-BpH9pHVt.js +11 -0
  223. package/dist/twitterIcon-BpH9pHVt.js.map +1 -0
  224. package/dist/verify-RR70cyOE.js +13 -0
  225. package/dist/verify-RR70cyOE.js.map +1 -0
  226. package/dist/verify-filled-DAfpsoaF.js +13 -0
  227. package/dist/verify-filled-DAfpsoaF.js.map +1 -0
  228. package/dist/{w3m-modal-Cuv0zBPp.js → w3m-modal-buH-22LE.js} +9 -9
  229. package/dist/{w3m-modal-Cuv0zBPp.js.map → w3m-modal-buH-22LE.js.map} +1 -1
  230. package/dist/wallet-Bwnk7nDz.js +13 -0
  231. package/dist/wallet-Bwnk7nDz.js.map +1 -0
  232. package/dist/wallet-placeholder-TzI1N13t.js +19 -0
  233. package/dist/wallet-placeholder-TzI1N13t.js.map +1 -0
  234. package/dist/walletconnect-D23-2eVD.js +39 -0
  235. package/dist/walletconnect-D23-2eVD.js.map +1 -0
  236. package/dist/warning-circle-B47nZUj9.js +17 -0
  237. package/dist/warning-circle-B47nZUj9.js.map +1 -0
  238. package/dist/x-BEKl-RkZ.js +17 -0
  239. package/dist/x-BEKl-RkZ.js.map +1 -0
  240. package/package.json +7 -7
  241. package/dist/if-defined-dGSnGaje.js +0 -1481
  242. package/dist/if-defined-dGSnGaje.js.map +0 -1
  243. package/dist/index-BduA1I0K.js.map +0 -1
  244. package/dist/index-C7DuE4bF.js.map +0 -1
  245. package/dist/index-CvV6W9De.js.map +0 -1
  246. package/dist/index-CwuY13YQ.js +0 -608
  247. package/dist/index-CwuY13YQ.js.map +0 -1
  248. package/dist/index-DiAf99cR.js.map +0 -1
  249. package/dist/onramp-DAOC8iXd.js.map +0 -1
  250. package/dist/send-C92cSKIt.js.map +0 -1
  251. package/dist/swaps-BodIZ5Dv.js.map +0 -1
@@ -0,0 +1,831 @@
1
+ import { _ as u, $ as f$2, a0 as T, a as i$3, f as resetStyles, I as colorStyles, r as r$3, x, X as E } from "./appkit-CdqvngG9.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
+ if (theme) {
77
+ return theme;
78
+ } else if (typeof window !== "undefined" && window.matchMedia) {
79
+ if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
80
+ return "dark";
81
+ }
82
+ return "light";
83
+ }
84
+ return "dark";
85
+ },
86
+ splitBalance(input) {
87
+ const parts = input.split(".");
88
+ if (parts.length === 2) {
89
+ return [parts[0], parts[1]];
90
+ }
91
+ return ["0", "00"];
92
+ },
93
+ roundNumber(number, threshold, fixed) {
94
+ const roundedNumber = number.toString().length >= threshold ? Number(number).toFixed(fixed) : number;
95
+ return roundedNumber;
96
+ },
97
+ formatNumberToLocalString(value, decimals = 2) {
98
+ if (value === void 0) {
99
+ return "0.00";
100
+ }
101
+ if (typeof value === "number") {
102
+ return value.toLocaleString("en-US", {
103
+ maximumFractionDigits: decimals,
104
+ minimumFractionDigits: decimals
105
+ });
106
+ }
107
+ return parseFloat(value).toLocaleString("en-US", {
108
+ maximumFractionDigits: decimals,
109
+ minimumFractionDigits: decimals
110
+ });
111
+ }
112
+ };
113
+ function standardCustomElement(tagName, descriptor) {
114
+ const { kind, elements } = descriptor;
115
+ return {
116
+ kind,
117
+ elements,
118
+ finisher(clazz) {
119
+ if (!customElements.get(tagName)) {
120
+ customElements.define(tagName, clazz);
121
+ }
122
+ }
123
+ };
124
+ }
125
+ function legacyCustomElement(tagName, clazz) {
126
+ if (!customElements.get(tagName)) {
127
+ customElements.define(tagName, clazz);
128
+ }
129
+ return clazz;
130
+ }
131
+ function customElement(tagName) {
132
+ return function create(classOrDescriptor) {
133
+ return typeof classOrDescriptor === "function" ? legacyCustomElement(tagName, classOrDescriptor) : standardCustomElement(tagName, classOrDescriptor);
134
+ };
135
+ }
136
+ /**
137
+ * @license
138
+ * Copyright 2017 Google LLC
139
+ * SPDX-License-Identifier: BSD-3-Clause
140
+ */
141
+ const o$2 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f$2 }, r$2 = (t2 = o$2, e2, r2) => {
142
+ const { kind: n2, metadata: i3 } = r2;
143
+ let s2 = globalThis.litPropertyMetadata.get(i3);
144
+ if (void 0 === s2 && globalThis.litPropertyMetadata.set(i3, s2 = /* @__PURE__ */ new Map()), s2.set(r2.name, t2), "accessor" === n2) {
145
+ const { name: o2 } = r2;
146
+ return { set(r3) {
147
+ const n3 = e2.get.call(this);
148
+ e2.set.call(this, r3), this.requestUpdate(o2, n3, t2);
149
+ }, init(e3) {
150
+ return void 0 !== e3 && this.P(o2, void 0, t2), e3;
151
+ } };
152
+ }
153
+ if ("setter" === n2) {
154
+ const { name: o2 } = r2;
155
+ return function(r3) {
156
+ const n3 = this[o2];
157
+ e2.call(this, r3), this.requestUpdate(o2, n3, t2);
158
+ };
159
+ }
160
+ throw Error("Unsupported decorator location: " + n2);
161
+ };
162
+ function n$2(t2) {
163
+ return (e2, o2) => "object" == typeof o2 ? r$2(t2, e2, o2) : ((t3, e3, o3) => {
164
+ const r2 = e3.hasOwnProperty(o3);
165
+ return e3.constructor.createProperty(o3, r2 ? { ...t3, wrapped: true } : t3), r2 ? Object.getOwnPropertyDescriptor(e3, o3) : void 0;
166
+ })(t2, e2, o2);
167
+ }
168
+ /**
169
+ * @license
170
+ * Copyright 2017 Google LLC
171
+ * SPDX-License-Identifier: BSD-3-Clause
172
+ */
173
+ function r$1(r2) {
174
+ return n$2({ ...r2, state: true, attribute: false });
175
+ }
176
+ /**
177
+ * @license
178
+ * Copyright 2020 Google LLC
179
+ * SPDX-License-Identifier: BSD-3-Clause
180
+ */
181
+ const i$2 = (o2) => null === o2 || "object" != typeof o2 && "function" != typeof o2, f$1 = (o2) => void 0 === o2.strings;
182
+ /**
183
+ * @license
184
+ * Copyright 2017 Google LLC
185
+ * SPDX-License-Identifier: BSD-3-Clause
186
+ */
187
+ const t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
188
+ let i$1 = class i {
189
+ constructor(t2) {
190
+ }
191
+ get _$AU() {
192
+ return this._$AM._$AU;
193
+ }
194
+ _$AT(t2, e2, i3) {
195
+ this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
196
+ }
197
+ _$AS(t2, e2) {
198
+ return this.update(t2, e2);
199
+ }
200
+ update(t2, e2) {
201
+ return this.render(...e2);
202
+ }
203
+ };
204
+ /**
205
+ * @license
206
+ * Copyright 2017 Google LLC
207
+ * SPDX-License-Identifier: BSD-3-Clause
208
+ */
209
+ const s$1 = (i3, t2) => {
210
+ var _a;
211
+ const e2 = i3._$AN;
212
+ if (void 0 === e2)
213
+ return false;
214
+ for (const i4 of e2)
215
+ (_a = i4._$AO) == null ? void 0 : _a.call(i4, t2, false), s$1(i4, t2);
216
+ return true;
217
+ }, o$1 = (i3) => {
218
+ let t2, e2;
219
+ do {
220
+ if (void 0 === (t2 = i3._$AM))
221
+ break;
222
+ e2 = t2._$AN, e2.delete(i3), i3 = t2;
223
+ } while (0 === (e2 == null ? void 0 : e2.size));
224
+ }, r = (i3) => {
225
+ for (let t2; t2 = i3._$AM; i3 = t2) {
226
+ let e2 = t2._$AN;
227
+ if (void 0 === e2)
228
+ t2._$AN = e2 = /* @__PURE__ */ new Set();
229
+ else if (e2.has(i3))
230
+ break;
231
+ e2.add(i3), c$1(t2);
232
+ }
233
+ };
234
+ function h$1(i3) {
235
+ void 0 !== this._$AN ? (o$1(this), this._$AM = i3, r(this)) : this._$AM = i3;
236
+ }
237
+ function n$1(i3, t2 = false, e2 = 0) {
238
+ const r2 = this._$AH, h2 = this._$AN;
239
+ if (void 0 !== h2 && 0 !== h2.size)
240
+ if (t2)
241
+ if (Array.isArray(r2))
242
+ for (let i4 = e2; i4 < r2.length; i4++)
243
+ s$1(r2[i4], false), o$1(r2[i4]);
244
+ else
245
+ null != r2 && (s$1(r2, false), o$1(r2));
246
+ else
247
+ s$1(this, i3);
248
+ }
249
+ const c$1 = (i3) => {
250
+ i3.type == t.CHILD && (i3._$AP ?? (i3._$AP = n$1), i3._$AQ ?? (i3._$AQ = h$1));
251
+ };
252
+ class f extends i$1 {
253
+ constructor() {
254
+ super(...arguments), this._$AN = void 0;
255
+ }
256
+ _$AT(i3, t2, e2) {
257
+ super._$AT(i3, t2, e2), r(this), this.isConnected = i3._$AU;
258
+ }
259
+ _$AO(i3, t2 = true) {
260
+ var _a, _b;
261
+ 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));
262
+ }
263
+ setValue(t2) {
264
+ if (f$1(this._$Ct))
265
+ this._$Ct._$AI(t2, this);
266
+ else {
267
+ const i3 = [...this._$Ct._$AH];
268
+ i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
269
+ }
270
+ }
271
+ disconnected() {
272
+ }
273
+ reconnected() {
274
+ }
275
+ }
276
+ /**
277
+ * @license
278
+ * Copyright 2021 Google LLC
279
+ * SPDX-License-Identifier: BSD-3-Clause
280
+ */
281
+ class s {
282
+ constructor(t2) {
283
+ this.Y = t2;
284
+ }
285
+ disconnect() {
286
+ this.Y = void 0;
287
+ }
288
+ reconnect(t2) {
289
+ this.Y = t2;
290
+ }
291
+ deref() {
292
+ return this.Y;
293
+ }
294
+ }
295
+ class i2 {
296
+ constructor() {
297
+ this.Z = void 0, this.q = void 0;
298
+ }
299
+ get() {
300
+ return this.Z;
301
+ }
302
+ pause() {
303
+ this.Z ?? (this.Z = new Promise((t2) => this.q = t2));
304
+ }
305
+ resume() {
306
+ var _a;
307
+ (_a = this.q) == null ? void 0 : _a.call(this), this.Z = this.q = void 0;
308
+ }
309
+ }
310
+ /**
311
+ * @license
312
+ * Copyright 2017 Google LLC
313
+ * SPDX-License-Identifier: BSD-3-Clause
314
+ */
315
+ const n = (t2) => !i$2(t2) && "function" == typeof t2.then, h = 1073741823;
316
+ class c extends f {
317
+ constructor() {
318
+ super(...arguments), this._$Cwt = h, this._$Cbt = [], this._$CK = new s(this), this._$CX = new i2();
319
+ }
320
+ render(...s2) {
321
+ return s2.find((t2) => !n(t2)) ?? T;
322
+ }
323
+ update(s2, i3) {
324
+ const e2 = this._$Cbt;
325
+ let r2 = e2.length;
326
+ this._$Cbt = i3;
327
+ const o2 = this._$CK, c2 = this._$CX;
328
+ this.isConnected || this.disconnected();
329
+ for (let t2 = 0; t2 < i3.length && !(t2 > this._$Cwt); t2++) {
330
+ const s3 = i3[t2];
331
+ if (!n(s3))
332
+ return this._$Cwt = t2, s3;
333
+ t2 < r2 && s3 === e2[t2] || (this._$Cwt = h, r2 = 0, Promise.resolve(s3).then(async (t3) => {
334
+ for (; c2.get(); )
335
+ await c2.get();
336
+ const i4 = o2.deref();
337
+ if (void 0 !== i4) {
338
+ const e3 = i4._$Cbt.indexOf(s3);
339
+ e3 > -1 && e3 < i4._$Cwt && (i4._$Cwt = e3, i4.setValue(t3));
340
+ }
341
+ }));
342
+ }
343
+ return T;
344
+ }
345
+ disconnected() {
346
+ this._$CK.disconnect(), this._$CX.pause();
347
+ }
348
+ reconnected() {
349
+ this._$CK.reconnect(this), this._$CX.resume();
350
+ }
351
+ }
352
+ const m = e$1(c);
353
+ class CacheUtil {
354
+ constructor() {
355
+ this.cache = /* @__PURE__ */ new Map();
356
+ }
357
+ set(key, value) {
358
+ this.cache.set(key, value);
359
+ }
360
+ get(key) {
361
+ return this.cache.get(key);
362
+ }
363
+ has(key) {
364
+ return this.cache.has(key);
365
+ }
366
+ delete(key) {
367
+ this.cache.delete(key);
368
+ }
369
+ clear() {
370
+ this.cache.clear();
371
+ }
372
+ }
373
+ const globalSvgCache = new CacheUtil();
374
+ const styles$2 = i$3`
375
+ :host {
376
+ display: flex;
377
+ aspect-ratio: 1 / 1;
378
+ color: var(--local-color);
379
+ width: var(--local-width);
380
+ }
381
+
382
+ svg {
383
+ width: inherit;
384
+ height: inherit;
385
+ object-fit: contain;
386
+ object-position: center;
387
+ }
388
+
389
+ .fallback {
390
+ width: var(--local-width);
391
+ height: var(--local-height);
392
+ }
393
+ `;
394
+ var __decorate$2 = function(decorators, target, key, desc) {
395
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
396
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
397
+ r2 = Reflect.decorate(decorators, target, key, desc);
398
+ else
399
+ for (var i3 = decorators.length - 1; i3 >= 0; i3--)
400
+ if (d = decorators[i3])
401
+ r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
402
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
403
+ };
404
+ const ICONS = {
405
+ add: async () => (await import("./add-NP7lbRpx.js")).addSvg,
406
+ allWallets: async () => (await import("./all-wallets-3ZlmqaCY.js")).allWalletsSvg,
407
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-Dd1SQL7h.js")).arrowBottomCircleSvg,
408
+ appStore: async () => (await import("./app-store-DB2fNiqK.js")).appStoreSvg,
409
+ apple: async () => (await import("./apple-BGz_ykHO.js")).appleSvg,
410
+ arrowBottom: async () => (await import("./arrow-bottom-BYriFBEP.js")).arrowBottomSvg,
411
+ arrowLeft: async () => (await import("./arrow-left-CjDxt4M-.js")).arrowLeftSvg,
412
+ arrowRight: async () => (await import("./arrow-right-C6trxztG.js")).arrowRightSvg,
413
+ arrowTop: async () => (await import("./arrow-top-pHAOoGwr.js")).arrowTopSvg,
414
+ bank: async () => (await import("./bank-Dn8OADA5.js")).bankSvg,
415
+ browser: async () => (await import("./browser-CEUoIvO8.js")).browserSvg,
416
+ card: async () => (await import("./card-BLh_FYXC.js")).cardSvg,
417
+ checkmark: async () => (await import("./checkmark-C1WEjFNh.js")).checkmarkSvg,
418
+ checkmarkBold: async () => (await import("./checkmark-bold-BTNdeTbW.js")).checkmarkBoldSvg,
419
+ chevronBottom: async () => (await import("./chevron-bottom-hbbpYzkK.js")).chevronBottomSvg,
420
+ chevronLeft: async () => (await import("./chevron-left-DJltpVmp.js")).chevronLeftSvg,
421
+ chevronRight: async () => (await import("./chevron-right-CWI1glTp.js")).chevronRightSvg,
422
+ chevronTop: async () => (await import("./chevron-top-kYaCnKN2.js")).chevronTopSvg,
423
+ chromeStore: async () => (await import("./chrome-store-Pdpo7piH.js")).chromeStoreSvg,
424
+ clock: async () => (await import("./clock-CjA6cSAh.js")).clockSvg,
425
+ close: async () => (await import("./close-BJYekRPg.js")).closeSvg,
426
+ compass: async () => (await import("./compass-y9pPnB8j.js")).compassSvg,
427
+ coinPlaceholder: async () => (await import("./coinPlaceholder-D8UeO-Rg.js")).coinPlaceholderSvg,
428
+ copy: async () => (await import("./copy-BthuudTc.js")).copySvg,
429
+ cursor: async () => (await import("./cursor-CvXxYc0W.js")).cursorSvg,
430
+ cursorTransparent: async () => (await import("./cursor-transparent-DqEJVC-Q.js")).cursorTransparentSvg,
431
+ desktop: async () => (await import("./desktop-_PL1geEd.js")).desktopSvg,
432
+ disconnect: async () => (await import("./disconnect-BPHafuJd.js")).disconnectSvg,
433
+ discord: async () => (await import("./discord-NvcqsvlI.js")).discordSvg,
434
+ etherscan: async () => (await import("./etherscan-CbHO3Asn.js")).etherscanSvg,
435
+ extension: async () => (await import("./extension-Bgib8KWN.js")).extensionSvg,
436
+ externalLink: async () => (await import("./external-link-LEIw9Vg-.js")).externalLinkSvg,
437
+ facebook: async () => (await import("./facebook-2_oeBQGg.js")).facebookSvg,
438
+ farcaster: async () => (await import("./farcaster-DnbPiDY0.js")).farcasterSvg,
439
+ filters: async () => (await import("./filters-D-P5jdUt.js")).filtersSvg,
440
+ github: async () => (await import("./github-BfHeskBT.js")).githubSvg,
441
+ google: async () => (await import("./google-B0ZFcajM.js")).googleSvg,
442
+ helpCircle: async () => (await import("./help-circle-C2jKpHH6.js")).helpCircleSvg,
443
+ image: async () => (await import("./image-BuWMUN9a.js")).imageSvg,
444
+ id: async () => (await import("./id-sbeKkW2J.js")).idSvg,
445
+ infoCircle: async () => (await import("./info-circle-DbyCmpjj.js")).infoCircleSvg,
446
+ lightbulb: async () => (await import("./lightbulb-BmBiXG1K.js")).lightbulbSvg,
447
+ mail: async () => (await import("./mail-qfBaBElS.js")).mailSvg,
448
+ mobile: async () => (await import("./mobile-B07ju1n8.js")).mobileSvg,
449
+ more: async () => (await import("./more-BvZuZelF.js")).moreSvg,
450
+ networkPlaceholder: async () => (await import("./network-placeholder-BhilMer9.js")).networkPlaceholderSvg,
451
+ nftPlaceholder: async () => (await import("./nftPlaceholder-DyFaEose.js")).nftPlaceholderSvg,
452
+ off: async () => (await import("./off-BIvc3eKr.js")).offSvg,
453
+ playStore: async () => (await import("./play-store-61CZ2B1s.js")).playStoreSvg,
454
+ plus: async () => (await import("./plus-Bu-eHL0h.js")).plusSvg,
455
+ qrCode: async () => (await import("./qr-code-DimNByBy.js")).qrCodeIcon,
456
+ recycleHorizontal: async () => (await import("./recycle-horizontal-Uo4s9ysJ.js")).recycleHorizontalSvg,
457
+ refresh: async () => (await import("./refresh-xUeUx7mv.js")).refreshSvg,
458
+ search: async () => (await import("./search-_aWp0A4B.js")).searchSvg,
459
+ send: async () => (await import("./send-xMwE5ydw.js")).sendSvg,
460
+ swapHorizontal: async () => (await import("./swapHorizontal-3gtVSxJ4.js")).swapHorizontalSvg,
461
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-DorGu47M.js")).swapHorizontalMediumSvg,
462
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-BmLFhIzv.js")).swapHorizontalBoldSvg,
463
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-CNxXcJzg.js")).swapHorizontalRoundedBoldSvg,
464
+ swapVertical: async () => (await import("./swapVertical-DUe5qSb3.js")).swapVerticalSvg,
465
+ telegram: async () => (await import("./telegram-BGAoVZcd.js")).telegramSvg,
466
+ threeDots: async () => (await import("./three-dots-CPIaGn46.js")).threeDotsSvg,
467
+ twitch: async () => (await import("./twitch-B9zM_E1c.js")).twitchSvg,
468
+ twitter: async () => (await import("./x-BEKl-RkZ.js")).xSvg,
469
+ twitterIcon: async () => (await import("./twitterIcon-BpH9pHVt.js")).twitterIconSvg,
470
+ verify: async () => (await import("./verify-RR70cyOE.js")).verifySvg,
471
+ verifyFilled: async () => (await import("./verify-filled-DAfpsoaF.js")).verifyFilledSvg,
472
+ wallet: async () => (await import("./wallet-Bwnk7nDz.js")).walletSvg,
473
+ walletConnect: async () => (await import("./walletconnect-D23-2eVD.js")).walletConnectSvg,
474
+ walletConnectLightBrown: async () => (await import("./walletconnect-D23-2eVD.js")).walletConnectLightBrownSvg,
475
+ walletConnectBrown: async () => (await import("./walletconnect-D23-2eVD.js")).walletConnectBrownSvg,
476
+ walletPlaceholder: async () => (await import("./wallet-placeholder-TzI1N13t.js")).walletPlaceholderSvg,
477
+ warningCircle: async () => (await import("./warning-circle-B47nZUj9.js")).warningCircleSvg,
478
+ x: async () => (await import("./x-BEKl-RkZ.js")).xSvg,
479
+ info: async () => (await import("./info-DNoiQ3km.js")).infoSvg,
480
+ exclamationTriangle: async () => (await import("./exclamation-triangle-CREdMNbJ.js")).exclamationTriangleSvg
481
+ };
482
+ async function getSvg(name) {
483
+ if (globalSvgCache.has(name)) {
484
+ return globalSvgCache.get(name);
485
+ }
486
+ const importFn = ICONS[name] ?? ICONS.copy;
487
+ const svgPromise = importFn();
488
+ globalSvgCache.set(name, svgPromise);
489
+ return svgPromise;
490
+ }
491
+ let WuiIcon = class WuiIcon2 extends r$3 {
492
+ constructor() {
493
+ super(...arguments);
494
+ this.size = "md";
495
+ this.name = "copy";
496
+ this.color = "fg-300";
497
+ }
498
+ render() {
499
+ this.style.cssText = `
500
+ --local-color: ${`var(--wui-color-${this.color});`}
501
+ --local-width: ${`var(--wui-icon-size-${this.size});`}
502
+ `;
503
+ return x`${m(getSvg(this.name), x`<div class="fallback"></div>`)}`;
504
+ }
505
+ };
506
+ WuiIcon.styles = [resetStyles, colorStyles, styles$2];
507
+ __decorate$2([
508
+ n$2()
509
+ ], WuiIcon.prototype, "size", void 0);
510
+ __decorate$2([
511
+ n$2()
512
+ ], WuiIcon.prototype, "name", void 0);
513
+ __decorate$2([
514
+ n$2()
515
+ ], WuiIcon.prototype, "color", void 0);
516
+ WuiIcon = __decorate$2([
517
+ customElement("wui-icon")
518
+ ], WuiIcon);
519
+ /**
520
+ * @license
521
+ * Copyright 2018 Google LLC
522
+ * SPDX-License-Identifier: BSD-3-Clause
523
+ */
524
+ const e = e$1(class extends i$1 {
525
+ constructor(t$1) {
526
+ var _a;
527
+ if (super(t$1), t$1.type !== t.ATTRIBUTE || "class" !== t$1.name || ((_a = t$1.strings) == null ? void 0 : _a.length) > 2)
528
+ throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
529
+ }
530
+ render(t2) {
531
+ return " " + Object.keys(t2).filter((s2) => t2[s2]).join(" ") + " ";
532
+ }
533
+ update(s2, [i3]) {
534
+ var _a, _b;
535
+ if (void 0 === this.st) {
536
+ this.st = /* @__PURE__ */ new Set(), void 0 !== s2.strings && (this.nt = new Set(s2.strings.join(" ").split(/\s/).filter((t2) => "" !== t2)));
537
+ for (const t2 in i3)
538
+ i3[t2] && !((_a = this.nt) == null ? void 0 : _a.has(t2)) && this.st.add(t2);
539
+ return this.render(i3);
540
+ }
541
+ const r2 = s2.element.classList;
542
+ for (const t2 of this.st)
543
+ t2 in i3 || (r2.remove(t2), this.st.delete(t2));
544
+ for (const t2 in i3) {
545
+ const s3 = !!i3[t2];
546
+ 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)));
547
+ }
548
+ return T;
549
+ }
550
+ });
551
+ const styles$1 = i$3`
552
+ :host {
553
+ display: inline-flex !important;
554
+ }
555
+
556
+ slot {
557
+ width: 100%;
558
+ display: inline-block;
559
+ font-style: normal;
560
+ font-family: var(--wui-font-family);
561
+ font-feature-settings:
562
+ 'tnum' on,
563
+ 'lnum' on,
564
+ 'case' on;
565
+ line-height: 130%;
566
+ font-weight: var(--wui-font-weight-regular);
567
+ overflow: inherit;
568
+ text-overflow: inherit;
569
+ text-align: var(--local-align);
570
+ color: var(--local-color);
571
+ }
572
+
573
+ .wui-line-clamp-1 {
574
+ overflow: hidden;
575
+ display: -webkit-box;
576
+ -webkit-box-orient: vertical;
577
+ -webkit-line-clamp: 1;
578
+ }
579
+
580
+ .wui-line-clamp-2 {
581
+ overflow: hidden;
582
+ display: -webkit-box;
583
+ -webkit-box-orient: vertical;
584
+ -webkit-line-clamp: 2;
585
+ }
586
+
587
+ .wui-font-medium-400 {
588
+ font-size: var(--wui-font-size-medium);
589
+ font-weight: var(--wui-font-weight-light);
590
+ letter-spacing: var(--wui-letter-spacing-medium);
591
+ }
592
+
593
+ .wui-font-medium-600 {
594
+ font-size: var(--wui-font-size-medium);
595
+ letter-spacing: var(--wui-letter-spacing-medium);
596
+ }
597
+
598
+ .wui-font-title-600 {
599
+ font-size: var(--wui-font-size-title);
600
+ letter-spacing: var(--wui-letter-spacing-title);
601
+ }
602
+
603
+ .wui-font-title-6-600 {
604
+ font-size: var(--wui-font-size-title-6);
605
+ letter-spacing: var(--wui-letter-spacing-title-6);
606
+ }
607
+
608
+ .wui-font-mini-700 {
609
+ font-size: var(--wui-font-size-mini);
610
+ letter-spacing: var(--wui-letter-spacing-mini);
611
+ text-transform: uppercase;
612
+ }
613
+
614
+ .wui-font-large-500,
615
+ .wui-font-large-600,
616
+ .wui-font-large-700 {
617
+ font-size: var(--wui-font-size-large);
618
+ letter-spacing: var(--wui-letter-spacing-large);
619
+ }
620
+
621
+ .wui-font-2xl-500,
622
+ .wui-font-2xl-600,
623
+ .wui-font-2xl-700 {
624
+ font-size: var(--wui-font-size-2xl);
625
+ letter-spacing: var(--wui-letter-spacing-2xl);
626
+ }
627
+
628
+ .wui-font-paragraph-400,
629
+ .wui-font-paragraph-500,
630
+ .wui-font-paragraph-600,
631
+ .wui-font-paragraph-700 {
632
+ font-size: var(--wui-font-size-paragraph);
633
+ letter-spacing: var(--wui-letter-spacing-paragraph);
634
+ }
635
+
636
+ .wui-font-small-400,
637
+ .wui-font-small-500,
638
+ .wui-font-small-600 {
639
+ font-size: var(--wui-font-size-small);
640
+ letter-spacing: var(--wui-letter-spacing-small);
641
+ }
642
+
643
+ .wui-font-tiny-400,
644
+ .wui-font-tiny-500,
645
+ .wui-font-tiny-600 {
646
+ font-size: var(--wui-font-size-tiny);
647
+ letter-spacing: var(--wui-letter-spacing-tiny);
648
+ }
649
+
650
+ .wui-font-micro-700,
651
+ .wui-font-micro-600 {
652
+ font-size: var(--wui-font-size-micro);
653
+ letter-spacing: var(--wui-letter-spacing-micro);
654
+ text-transform: uppercase;
655
+ }
656
+
657
+ .wui-font-tiny-400,
658
+ .wui-font-small-400,
659
+ .wui-font-medium-400,
660
+ .wui-font-paragraph-400 {
661
+ font-weight: var(--wui-font-weight-light);
662
+ }
663
+
664
+ .wui-font-large-700,
665
+ .wui-font-paragraph-700,
666
+ .wui-font-micro-700,
667
+ .wui-font-mini-700 {
668
+ font-weight: var(--wui-font-weight-bold);
669
+ }
670
+
671
+ .wui-font-medium-600,
672
+ .wui-font-medium-title-600,
673
+ .wui-font-title-6-600,
674
+ .wui-font-large-600,
675
+ .wui-font-paragraph-600,
676
+ .wui-font-small-600,
677
+ .wui-font-tiny-600,
678
+ .wui-font-micro-600 {
679
+ font-weight: var(--wui-font-weight-medium);
680
+ }
681
+
682
+ :host([disabled]) {
683
+ opacity: 0.4;
684
+ }
685
+ `;
686
+ var __decorate$1 = function(decorators, target, key, desc) {
687
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
688
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
689
+ r2 = Reflect.decorate(decorators, target, key, desc);
690
+ else
691
+ for (var i3 = decorators.length - 1; i3 >= 0; i3--)
692
+ if (d = decorators[i3])
693
+ r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
694
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
695
+ };
696
+ let WuiText = class WuiText2 extends r$3 {
697
+ constructor() {
698
+ super(...arguments);
699
+ this.variant = "paragraph-500";
700
+ this.color = "fg-300";
701
+ this.align = "left";
702
+ this.lineClamp = void 0;
703
+ }
704
+ render() {
705
+ const classes = {
706
+ [`wui-font-${this.variant}`]: true,
707
+ [`wui-color-${this.color}`]: true,
708
+ [`wui-line-clamp-${this.lineClamp}`]: this.lineClamp ? true : false
709
+ };
710
+ this.style.cssText = `
711
+ --local-align: ${this.align};
712
+ --local-color: var(--wui-color-${this.color});
713
+ `;
714
+ return x`<slot class=${e(classes)}></slot>`;
715
+ }
716
+ };
717
+ WuiText.styles = [resetStyles, styles$1];
718
+ __decorate$1([
719
+ n$2()
720
+ ], WuiText.prototype, "variant", void 0);
721
+ __decorate$1([
722
+ n$2()
723
+ ], WuiText.prototype, "color", void 0);
724
+ __decorate$1([
725
+ n$2()
726
+ ], WuiText.prototype, "align", void 0);
727
+ __decorate$1([
728
+ n$2()
729
+ ], WuiText.prototype, "lineClamp", void 0);
730
+ WuiText = __decorate$1([
731
+ customElement("wui-text")
732
+ ], WuiText);
733
+ const styles = i$3`
734
+ :host {
735
+ display: flex;
736
+ width: inherit;
737
+ height: inherit;
738
+ }
739
+ `;
740
+ var __decorate = function(decorators, target, key, desc) {
741
+ var c2 = arguments.length, r2 = c2 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
742
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
743
+ r2 = Reflect.decorate(decorators, target, key, desc);
744
+ else
745
+ for (var i3 = decorators.length - 1; i3 >= 0; i3--)
746
+ if (d = decorators[i3])
747
+ r2 = (c2 < 3 ? d(r2) : c2 > 3 ? d(target, key, r2) : d(target, key)) || r2;
748
+ return c2 > 3 && r2 && Object.defineProperty(target, key, r2), r2;
749
+ };
750
+ let WuiFlex = class WuiFlex2 extends r$3 {
751
+ render() {
752
+ this.style.cssText = `
753
+ flex-direction: ${this.flexDirection};
754
+ flex-wrap: ${this.flexWrap};
755
+ flex-basis: ${this.flexBasis};
756
+ flex-grow: ${this.flexGrow};
757
+ flex-shrink: ${this.flexShrink};
758
+ align-items: ${this.alignItems};
759
+ justify-content: ${this.justifyContent};
760
+ column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
761
+ row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
762
+ gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
763
+ padding-top: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 0)};
764
+ padding-right: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 1)};
765
+ padding-bottom: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 2)};
766
+ padding-left: ${this.padding && UiHelperUtil.getSpacingStyles(this.padding, 3)};
767
+ margin-top: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 0)};
768
+ margin-right: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 1)};
769
+ margin-bottom: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 2)};
770
+ margin-left: ${this.margin && UiHelperUtil.getSpacingStyles(this.margin, 3)};
771
+ `;
772
+ return x`<slot></slot>`;
773
+ }
774
+ };
775
+ WuiFlex.styles = [resetStyles, styles];
776
+ __decorate([
777
+ n$2()
778
+ ], WuiFlex.prototype, "flexDirection", void 0);
779
+ __decorate([
780
+ n$2()
781
+ ], WuiFlex.prototype, "flexWrap", void 0);
782
+ __decorate([
783
+ n$2()
784
+ ], WuiFlex.prototype, "flexBasis", void 0);
785
+ __decorate([
786
+ n$2()
787
+ ], WuiFlex.prototype, "flexGrow", void 0);
788
+ __decorate([
789
+ n$2()
790
+ ], WuiFlex.prototype, "flexShrink", void 0);
791
+ __decorate([
792
+ n$2()
793
+ ], WuiFlex.prototype, "alignItems", void 0);
794
+ __decorate([
795
+ n$2()
796
+ ], WuiFlex.prototype, "justifyContent", void 0);
797
+ __decorate([
798
+ n$2()
799
+ ], WuiFlex.prototype, "columnGap", void 0);
800
+ __decorate([
801
+ n$2()
802
+ ], WuiFlex.prototype, "rowGap", void 0);
803
+ __decorate([
804
+ n$2()
805
+ ], WuiFlex.prototype, "gap", void 0);
806
+ __decorate([
807
+ n$2()
808
+ ], WuiFlex.prototype, "padding", void 0);
809
+ __decorate([
810
+ n$2()
811
+ ], WuiFlex.prototype, "margin", void 0);
812
+ WuiFlex = __decorate([
813
+ customElement("wui-flex")
814
+ ], WuiFlex);
815
+ /**
816
+ * @license
817
+ * Copyright 2018 Google LLC
818
+ * SPDX-License-Identifier: BSD-3-Clause
819
+ */
820
+ const o = (o2) => o2 ?? E;
821
+ export {
822
+ UiHelperUtil as U,
823
+ e$1 as a,
824
+ customElement as c,
825
+ e,
826
+ f,
827
+ n$2 as n,
828
+ o,
829
+ r$1 as r
830
+ };
831
+ //# sourceMappingURL=if-defined-D-8vNRJt.js.map