0xtrails 0.0.1 → 0.0.2

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 (359) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +42 -0
  3. package/dist/abi.d.ts +37 -0
  4. package/dist/abi.d.ts.map +1 -0
  5. package/dist/abi.js +36 -0
  6. package/dist/apiClient.d.ts +9 -0
  7. package/dist/apiClient.d.ts.map +1 -0
  8. package/dist/apiClient.js +18 -0
  9. package/dist/buffer.d.ts +3 -0
  10. package/dist/buffer.d.ts.map +1 -0
  11. package/dist/buffer.js +8 -0
  12. package/dist/cctp.d.ts +84 -0
  13. package/dist/cctp.d.ts.map +1 -0
  14. package/dist/cctp.js +401 -0
  15. package/dist/chainSwitch.d.ts +7 -0
  16. package/dist/chainSwitch.d.ts.map +1 -0
  17. package/dist/chainSwitch.js +33 -0
  18. package/dist/chains.d.ts +13 -0
  19. package/dist/chains.d.ts.map +1 -0
  20. package/dist/chains.js +95 -0
  21. package/dist/constants.d.ts +11 -0
  22. package/dist/constants.d.ts.map +1 -0
  23. package/dist/constants.js +16 -0
  24. package/dist/encoders.d.ts +7 -0
  25. package/dist/encoders.d.ts.map +1 -0
  26. package/dist/encoders.js +8 -0
  27. package/dist/error.d.ts +2 -0
  28. package/dist/error.d.ts.map +1 -0
  29. package/dist/error.js +12 -0
  30. package/dist/explorer.d.ts +12 -0
  31. package/dist/explorer.d.ts.map +1 -0
  32. package/dist/explorer.js +18 -0
  33. package/dist/gasless.d.ts +116 -0
  34. package/dist/gasless.d.ts.map +1 -0
  35. package/dist/gasless.js +297 -0
  36. package/dist/index.d.ts +13 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +9 -0
  39. package/dist/indexerClient.d.ts +9 -0
  40. package/dist/indexerClient.d.ts.map +1 -0
  41. package/dist/indexerClient.js +18 -0
  42. package/dist/intents.d.ts +83 -0
  43. package/dist/intents.d.ts.map +1 -0
  44. package/dist/intents.js +288 -0
  45. package/dist/metaTxnMonitor.d.ts +14 -0
  46. package/dist/metaTxnMonitor.d.ts.map +1 -0
  47. package/dist/metaTxnMonitor.js +121 -0
  48. package/dist/metaTxns.d.ts +6 -0
  49. package/dist/metaTxns.d.ts.map +1 -0
  50. package/dist/metaTxns.js +4 -0
  51. package/dist/paymasterSend.d.ts +90 -0
  52. package/dist/paymasterSend.d.ts.map +1 -0
  53. package/dist/paymasterSend.js +329 -0
  54. package/dist/preconditions.d.ts +11 -0
  55. package/dist/preconditions.d.ts.map +1 -0
  56. package/dist/preconditions.js +29 -0
  57. package/dist/prepareSend.d.ts +102 -0
  58. package/dist/prepareSend.d.ts.map +1 -0
  59. package/dist/prepareSend.js +1080 -0
  60. package/dist/prices.d.ts +18 -0
  61. package/dist/prices.d.ts.map +1 -0
  62. package/dist/prices.js +142 -0
  63. package/dist/queryParams.d.ts +9 -0
  64. package/dist/queryParams.d.ts.map +1 -0
  65. package/dist/queryParams.js +66 -0
  66. package/dist/relaySdk.d.ts +65 -0
  67. package/dist/relaySdk.d.ts.map +1 -0
  68. package/dist/relaySdk.js +314 -0
  69. package/dist/relayer.d.ts +23 -0
  70. package/dist/relayer.d.ts.map +1 -0
  71. package/dist/relayer.js +230 -0
  72. package/dist/sendUserOp.d.ts +140 -0
  73. package/dist/sendUserOp.d.ts.map +1 -0
  74. package/dist/sendUserOp.js +388 -0
  75. package/dist/sequenceWallet.d.ts +79 -0
  76. package/dist/sequenceWallet.d.ts.map +1 -0
  77. package/dist/sequenceWallet.js +374 -0
  78. package/dist/theme.d.ts +3 -0
  79. package/dist/theme.d.ts.map +1 -0
  80. package/dist/theme.js +1 -0
  81. package/dist/toSimpleSmartAccount.d.ts +95 -0
  82. package/dist/toSimpleSmartAccount.d.ts.map +1 -0
  83. package/dist/toSimpleSmartAccount.js +373 -0
  84. package/dist/tokenBalances.d.ts +118 -0
  85. package/dist/tokenBalances.d.ts.map +1 -0
  86. package/dist/tokenBalances.js +492 -0
  87. package/dist/tokens.d.ts +50 -0
  88. package/dist/tokens.d.ts.map +1 -0
  89. package/dist/tokens.js +356 -0
  90. package/dist/trails.d.ts +128 -0
  91. package/dist/trails.d.ts.map +1 -0
  92. package/dist/trails.js +1031 -0
  93. package/dist/umd/trails.min.js +12610 -0
  94. package/dist/umd/trails.min.js.map +1 -0
  95. package/dist/umd.d.ts +24 -0
  96. package/dist/umd.d.ts.map +1 -0
  97. package/dist/utils.d.ts +5 -0
  98. package/dist/utils.d.ts.map +1 -0
  99. package/dist/utils.js +9 -0
  100. package/dist/widget/ConstantsUtil-B-_-u8aQ.js +6 -0
  101. package/dist/widget/add-hVLs3ldJ.js +20 -0
  102. package/dist/widget/all-wallets-Cwxnx4BT.js +11 -0
  103. package/dist/widget/app-store-CAAVQjW0.js +22 -0
  104. package/dist/widget/apple-C3BSbglw.js +23 -0
  105. package/dist/widget/arrow-bottom-circle-BGU9MmsZ.js +16 -0
  106. package/dist/widget/arrow-bottom-hS_SA8Gp.js +13 -0
  107. package/dist/widget/arrow-left-CJZanWz7.js +13 -0
  108. package/dist/widget/arrow-right-C1qL8EMd.js +13 -0
  109. package/dist/widget/arrow-top-CbuCmbQs.js +13 -0
  110. package/dist/widget/bank-CXBEEGbb.js +19 -0
  111. package/dist/widget/bin-Dqzv3zCZ.js +9 -0
  112. package/dist/widget/bitcoin-4y3sovZp.js +18 -0
  113. package/dist/widget/browser-DyOl4_8m.js +1413 -0
  114. package/dist/widget/browser-t7Fh0sEU.js +19 -0
  115. package/dist/widget/card-Bo4CZkTs.js +19 -0
  116. package/dist/widget/ccip-BynehMIN.js +232 -0
  117. package/dist/widget/checkmark-DV6OKvnY.js +16 -0
  118. package/dist/widget/checkmark-bold-CAp1-IQ2.js +13 -0
  119. package/dist/widget/chevron-bottom-BjzsVzk9.js +13 -0
  120. package/dist/widget/chevron-left-CQZBDCiR.js +13 -0
  121. package/dist/widget/chevron-right-Dhg4zeZM.js +13 -0
  122. package/dist/widget/chevron-top-CDQmfJef.js +13 -0
  123. package/dist/widget/chrome-store-BNaC_b6w.js +66 -0
  124. package/dist/widget/circle-BC_GBj91.js +9 -0
  125. package/dist/widget/clock-BmF8-4a0.js +13 -0
  126. package/dist/widget/close-Bf61nZ8o.js +13 -0
  127. package/dist/widget/coinPlaceholder-7cZW2058.js +13 -0
  128. package/dist/widget/compass-CFC3yhnW.js +13 -0
  129. package/dist/widget/components/ChainImage.d.ts +8 -0
  130. package/dist/widget/components/ChainImage.d.ts.map +1 -0
  131. package/dist/widget/components/ChainImage.js +6 -0
  132. package/dist/widget/components/ConnectWallet.d.ts +18 -0
  133. package/dist/widget/components/ConnectWallet.d.ts.map +1 -0
  134. package/dist/widget/components/ConnectWallet.js +66 -0
  135. package/dist/widget/components/DebugScreensDropdown.d.ts +9 -0
  136. package/dist/widget/components/DebugScreensDropdown.d.ts.map +1 -0
  137. package/dist/widget/components/DebugScreensDropdown.js +40 -0
  138. package/dist/widget/components/FeeOptions.d.ts +17 -0
  139. package/dist/widget/components/FeeOptions.d.ts.map +1 -0
  140. package/dist/widget/components/FeeOptions.js +65 -0
  141. package/dist/widget/components/Footer.d.ts +9 -0
  142. package/dist/widget/components/Footer.d.ts.map +1 -0
  143. package/dist/widget/components/Footer.js +13 -0
  144. package/dist/widget/components/GreenCheckAnimation.d.ts +2 -0
  145. package/dist/widget/components/GreenCheckAnimation.d.ts.map +1 -0
  146. package/dist/widget/components/GreenCheckAnimation.js +74 -0
  147. package/dist/widget/components/Modal.d.ts +11 -0
  148. package/dist/widget/components/Modal.d.ts.map +1 -0
  149. package/dist/widget/components/Modal.js +36 -0
  150. package/dist/widget/components/Receipt.d.ts +13 -0
  151. package/dist/widget/components/Receipt.d.ts.map +1 -0
  152. package/dist/widget/components/Receipt.js +36 -0
  153. package/dist/widget/components/SendForm.d.ts +44 -0
  154. package/dist/widget/components/SendForm.d.ts.map +1 -0
  155. package/dist/widget/components/SendForm.js +177 -0
  156. package/dist/widget/components/TokenImage.d.ts +10 -0
  157. package/dist/widget/components/TokenImage.d.ts.map +1 -0
  158. package/dist/widget/components/TokenImage.js +8 -0
  159. package/dist/widget/components/TokenList.d.ts +16 -0
  160. package/dist/widget/components/TokenList.d.ts.map +1 -0
  161. package/dist/widget/components/TokenList.js +39 -0
  162. package/dist/widget/components/TransferPending.d.ts +11 -0
  163. package/dist/widget/components/TransferPending.d.ts.map +1 -0
  164. package/dist/widget/components/TransferPending.js +77 -0
  165. package/dist/widget/components/TransferPendingVertical.d.ts +18 -0
  166. package/dist/widget/components/TransferPendingVertical.d.ts.map +1 -0
  167. package/dist/widget/components/TransferPendingVertical.js +183 -0
  168. package/dist/widget/components/WalletConfirmation.d.ts +18 -0
  169. package/dist/widget/components/WalletConfirmation.d.ts.map +1 -0
  170. package/dist/widget/components/WalletConfirmation.js +22 -0
  171. package/dist/widget/config.d.ts +4 -0
  172. package/dist/widget/config.d.ts.map +1 -0
  173. package/dist/widget/config.js +3 -0
  174. package/dist/widget/copy-e0xXvKN0.js +20 -0
  175. package/dist/widget/cursor-CqM3v0xJ.js +8 -0
  176. package/dist/widget/cursor-transparent-CUQpdsCG.js +17 -0
  177. package/dist/widget/desktop-DUDGIRpM.js +14 -0
  178. package/dist/widget/disconnect-DUFST9QQ.js +13 -0
  179. package/dist/widget/discord-C1cj365Z.js +22 -0
  180. package/dist/widget/email-BHhmb_lX.js +703 -0
  181. package/dist/widget/embedded-wallet-CuuC4eah.js +467 -0
  182. package/dist/widget/ethereum-CfmBVfeB.js +15 -0
  183. package/dist/widget/etherscan-BSiynDhW.js +11 -0
  184. package/dist/widget/exclamation-triangle-DEiFNpHw.js +9 -0
  185. package/dist/widget/extension-mRmfCDxo.js +13 -0
  186. package/dist/widget/external-link-B4xMIVnW.js +13 -0
  187. package/dist/widget/facebook-CBAZStBR.js +31 -0
  188. package/dist/widget/farcaster-LHDEDf5S.js +17 -0
  189. package/dist/widget/filters-CBijuvFv.js +13 -0
  190. package/dist/widget/github-C3ILD420.js +23 -0
  191. package/dist/widget/google-CSj73POX.js +23 -0
  192. package/dist/widget/help-circle-2hdG5IdB.js +17 -0
  193. package/dist/widget/hooks/useAmountUsd.d.ts +13 -0
  194. package/dist/widget/hooks/useAmountUsd.d.ts.map +1 -0
  195. package/dist/widget/hooks/useAmountUsd.js +35 -0
  196. package/dist/widget/hooks/useSendForm.d.ts +125 -0
  197. package/dist/widget/hooks/useSendForm.d.ts.map +1 -0
  198. package/dist/widget/hooks/useSendForm.js +450 -0
  199. package/dist/widget/hooks/useTokenList.d.ts +52 -0
  200. package/dist/widget/hooks/useTokenList.d.ts.map +1 -0
  201. package/dist/widget/hooks/useTokenList.js +252 -0
  202. package/dist/widget/id-ByYSrwsd.js +17 -0
  203. package/dist/widget/if-defined-DRXJEhv7.js +752 -0
  204. package/dist/widget/image-C90L4Rf6.js +9 -0
  205. package/dist/widget/index-B3SlQ9v3.js +46 -0
  206. package/dist/widget/index-B8LPuLXQ.js +78 -0
  207. package/dist/widget/index-BDbworWA.js +171 -0
  208. package/dist/widget/index-BTlDgFSK.js +98 -0
  209. package/dist/widget/index-BUCcjXbd.js +306 -0
  210. package/dist/widget/index-BZ34edi2.js +1055 -0
  211. package/dist/widget/index-BiCU29wK.js +147 -0
  212. package/dist/widget/index-BlmqIKsY.js +266 -0
  213. package/dist/widget/index-BlviH5nG.js +55 -0
  214. package/dist/widget/index-Bwd5X3fS.js +8306 -0
  215. package/dist/widget/index-C5gmknHK.js +78 -0
  216. package/dist/widget/index-CD6dBcRj.js +76 -0
  217. package/dist/widget/index-CDlhy529.js +63 -0
  218. package/dist/widget/index-CHXa5ke-.js +59 -0
  219. package/dist/widget/index-CK94R-H7.js +22498 -0
  220. package/dist/widget/index-CQzo3m3x.js +182 -0
  221. package/dist/widget/index-CRT8cAwG.js +325 -0
  222. package/dist/widget/index-CY7Lt2Yu.js +310 -0
  223. package/dist/widget/index-CiKfAu1E.js +79 -0
  224. package/dist/widget/index-CkCu6rMi.js +258 -0
  225. package/dist/widget/index-CngLTu_R.js +517 -0
  226. package/dist/widget/index-CsMV8-em.js +2577 -0
  227. package/dist/widget/index-Cu2Wva8v.js +200 -0
  228. package/dist/widget/index-DKBxLTEF.js +240 -0
  229. package/dist/widget/index-DQEVT3dx.js +511 -0
  230. package/dist/widget/index-DU2HcCis.js +200 -0
  231. package/dist/widget/index-DutZGWNW.js +321 -0
  232. package/dist/widget/index-O0glArmc.js +182 -0
  233. package/dist/widget/index-O8FmRjKe.js +63719 -0
  234. package/dist/widget/index-RtKXrB6I.js +576 -0
  235. package/dist/widget/index-TIYtS0gE.js +88 -0
  236. package/dist/widget/index-dQNJvWHs.js +66 -0
  237. package/dist/widget/index-wmEwdsq7.js +909 -0
  238. package/dist/widget/index.d.ts +3 -0
  239. package/dist/widget/index.d.ts.map +1 -0
  240. package/dist/widget/index.js +2 -0
  241. package/dist/widget/info-DMPChDjV.js +8 -0
  242. package/dist/widget/info-circle-DAvS_7nY.js +17 -0
  243. package/dist/widget/lightbulb-DnZ9mNEs.js +8 -0
  244. package/dist/widget/lit-html-BRjl1r6K.js +243 -0
  245. package/dist/widget/mail-DpaVSOP8.js +13 -0
  246. package/dist/widget/mobile-CRvdyu7I.js +14 -0
  247. package/dist/widget/more-C5VqW9PR.js +16 -0
  248. package/dist/widget/network-placeholder-CZ0vApma.js +19 -0
  249. package/dist/widget/nftPlaceholder-7jjIK2bT.js +13 -0
  250. package/dist/widget/off-4mHjJLLX.js +9 -0
  251. package/dist/widget/onramp-Bc0ozVsw.js +929 -0
  252. package/dist/widget/play-store-Uocul8nC.js +37 -0
  253. package/dist/widget/plus-DrYF7siO.js +18 -0
  254. package/dist/widget/prepareSend-BQJmzM5B.js +54987 -0
  255. package/dist/widget/qr-code-DcnGMUB3.js +11 -0
  256. package/dist/widget/receive-fvIVd7R_.js +184 -0
  257. package/dist/widget/recycle-horizontal-DrDwXC4D.js +14 -0
  258. package/dist/widget/ref-CXNmEjML.js +41 -0
  259. package/dist/widget/refresh-OK9lIPLS.js +13 -0
  260. package/dist/widget/reown-logo-C-Qn7mS3.js +17 -0
  261. package/dist/widget/search-DZqv1oKg.js +13 -0
  262. package/dist/widget/send-CJlmI-xe.js +1039 -0
  263. package/dist/widget/send-otoEC8uU.js +20 -0
  264. package/dist/widget/socials-BJciurWF.js +599 -0
  265. package/dist/widget/solana-Bv5Hs_0T.js +18 -0
  266. package/dist/widget/swapHorizontal-BzOPGV37.js +13 -0
  267. package/dist/widget/swapHorizontalBold-axyHnSmj.js +13 -0
  268. package/dist/widget/swapHorizontalMedium-C6YOPfPz.js +21 -0
  269. package/dist/widget/swapHorizontalRoundedBold-yVcLbWNT.js +13 -0
  270. package/dist/widget/swapVertical-BDjxt9pE.js +13 -0
  271. package/dist/widget/swaps-DEWNj4kd.js +1637 -0
  272. package/dist/widget/telegram-BQJD7dlP.js +21 -0
  273. package/dist/widget/three-dots-DW9jmSMG.js +10 -0
  274. package/dist/widget/transactions-uCseGQQt.js +38 -0
  275. package/dist/widget/twitch-XugxDfOE.js +23 -0
  276. package/dist/widget/twitterIcon-DQVObQUL.js +11 -0
  277. package/dist/widget/types.d.ts +51 -0
  278. package/dist/widget/types.d.ts.map +1 -0
  279. package/dist/widget/types.js +1 -0
  280. package/dist/widget/verify-DpMYHxLf.js +13 -0
  281. package/dist/widget/verify-filled-KpEL6ZJ_.js +13 -0
  282. package/dist/widget/w3m-modal-C8e-6Kba.js +1047 -0
  283. package/dist/widget/wallet-D8ssEB0o.js +13 -0
  284. package/dist/widget/wallet-placeholder-HtAy21Wc.js +19 -0
  285. package/dist/widget/walletconnect-Bp_4XfrY.js +37 -0
  286. package/dist/widget/warning-circle-FgYS7P7n.js +17 -0
  287. package/dist/widget/widget/index.js +7 -0
  288. package/dist/widget/widget.d.ts +47 -0
  289. package/dist/widget/widget.d.ts.map +1 -0
  290. package/dist/widget/widget.js +932 -0
  291. package/dist/widget/x-DlZBoP9k.js +17 -0
  292. package/dist/widget/x-mark-Ba9pt-_h.js +8 -0
  293. package/package.json +102 -8
  294. package/src/abi.ts +38 -0
  295. package/src/apiClient.ts +32 -0
  296. package/src/buffer.ts +10 -0
  297. package/src/cctp.ts +579 -0
  298. package/src/chainSwitch.ts +55 -0
  299. package/src/chains.ts +124 -0
  300. package/src/constants.ts +26 -0
  301. package/src/encoders.ts +20 -0
  302. package/src/error.ts +15 -0
  303. package/src/explorer.ts +37 -0
  304. package/src/gasless.ts +545 -0
  305. package/src/index.ts +48 -0
  306. package/src/indexerClient.ts +36 -0
  307. package/src/intents.ts +537 -0
  308. package/src/metaTxnMonitor.ts +163 -0
  309. package/src/metaTxns.ts +21 -0
  310. package/src/paymasterSend.ts +503 -0
  311. package/src/preconditions.ts +52 -0
  312. package/src/prepareSend.ts +1849 -0
  313. package/src/prices.ts +186 -0
  314. package/src/queryParams.ts +80 -0
  315. package/src/relaySdk.ts +481 -0
  316. package/src/relayer.ts +255 -0
  317. package/src/sendUserOp.ts +570 -0
  318. package/src/sequenceWallet.ts +579 -0
  319. package/src/theme.ts +2 -0
  320. package/src/toSimpleSmartAccount.ts +567 -0
  321. package/src/tokenBalances.ts +760 -0
  322. package/src/tokens.ts +471 -0
  323. package/src/trails.ts +1591 -0
  324. package/src/types.d.ts +11 -0
  325. package/src/umd.tsx +49 -0
  326. package/src/utils.ts +16 -0
  327. package/src/vite-env.d.ts +4 -0
  328. package/src/widget/assets/MetaMask-icon-fox-with-margins.svg +31 -0
  329. package/src/widget/assets/MetaMask-icon-fox.svg +26 -0
  330. package/src/widget/assets/MetaMask-logo-black.svg +3 -0
  331. package/src/widget/assets/MetaMask-logo-white.svg +16 -0
  332. package/src/widget/assets/Privy_Brandmark_Black.svg +9 -0
  333. package/src/widget/assets/Privy_Brandmark_White.svg +9 -0
  334. package/src/widget/assets/Trails-logo-black.svg +11 -0
  335. package/src/widget/assets/Trails-logo-white.svg +11 -0
  336. package/src/widget/components/ChainImage.tsx +28 -0
  337. package/src/widget/components/ConnectWallet.tsx +206 -0
  338. package/src/widget/components/DebugScreensDropdown.tsx +88 -0
  339. package/src/widget/components/FeeOptions.tsx +199 -0
  340. package/src/widget/components/Footer.tsx +51 -0
  341. package/src/widget/components/GreenCheckAnimation.tsx +119 -0
  342. package/src/widget/components/Modal.tsx +97 -0
  343. package/src/widget/components/Receipt.tsx +237 -0
  344. package/src/widget/components/SendForm.tsx +695 -0
  345. package/src/widget/components/TokenImage.tsx +37 -0
  346. package/src/widget/components/TokenList.tsx +287 -0
  347. package/src/widget/components/TransferPending.tsx +204 -0
  348. package/src/widget/components/TransferPendingVertical.tsx +412 -0
  349. package/src/widget/components/WalletConfirmation.tsx +172 -0
  350. package/src/widget/config.ts +5 -0
  351. package/src/widget/hooks/useAmountUsd.ts +59 -0
  352. package/src/widget/hooks/useSendForm.ts +715 -0
  353. package/src/widget/hooks/useTokenList.ts +397 -0
  354. package/src/widget/index.css +2 -0
  355. package/src/widget/index.tsx +8 -0
  356. package/src/widget/types/svg.d.ts +8 -0
  357. package/src/widget/types.ts +59 -0
  358. package/src/widget/widget.tsx +1438 -0
  359. package/index.js +0 -1
@@ -0,0 +1,752 @@
1
+ import { a1 as H, a2 as I, i as _, r as z, U as L, a as A } from "./index-CK94R-H7.js";
2
+ import { T as x, x as S, E as O } from "./lit-html-BRjl1r6K.js";
3
+ const g = {
4
+ getSpacingStyles(t, e) {
5
+ if (Array.isArray(t))
6
+ return t[e] ? `var(--wui-spacing-${t[e]})` : void 0;
7
+ if (typeof t == "string")
8
+ return `var(--wui-spacing-${t})`;
9
+ },
10
+ getFormattedDate(t) {
11
+ return new Intl.DateTimeFormat("en-US", { month: "short", day: "numeric" }).format(t);
12
+ },
13
+ getHostName(t) {
14
+ try {
15
+ return new URL(t).hostname;
16
+ } catch {
17
+ return "";
18
+ }
19
+ },
20
+ getTruncateString({ string: t, charsStart: e, charsEnd: i, truncate: r }) {
21
+ return t.length <= e + i ? t : r === "end" ? `${t.substring(0, e)}...` : r === "start" ? `...${t.substring(t.length - i)}` : `${t.substring(0, Math.floor(e))}...${t.substring(t.length - Math.floor(i))}`;
22
+ },
23
+ generateAvatarColors(t) {
24
+ const i = t.toLowerCase().replace(/^0x/iu, "").replace(/[^a-f0-9]/gu, "").substring(0, 6).padEnd(6, "0"), r = this.hexToRgb(i), a = getComputedStyle(document.documentElement).getPropertyValue("--w3m-border-radius-master"), n = 100 - 3 * Number(a == null ? void 0 : a.replace("px", "")), s = `${n}% ${n}% at 65% 40%`, l = [];
25
+ for (let m = 0; m < 5; m += 1) {
26
+ const h = this.tintColor(r, 0.15 * m);
27
+ l.push(`rgb(${h[0]}, ${h[1]}, ${h[2]})`);
28
+ }
29
+ return `
30
+ --local-color-1: ${l[0]};
31
+ --local-color-2: ${l[1]};
32
+ --local-color-3: ${l[2]};
33
+ --local-color-4: ${l[3]};
34
+ --local-color-5: ${l[4]};
35
+ --local-radial-circle: ${s}
36
+ `;
37
+ },
38
+ hexToRgb(t) {
39
+ const e = parseInt(t, 16), i = e >> 16 & 255, r = e >> 8 & 255, a = e & 255;
40
+ return [i, r, a];
41
+ },
42
+ tintColor(t, e) {
43
+ const [i, r, a] = t, o = Math.round(i + (255 - i) * e), n = Math.round(r + (255 - r) * e), s = Math.round(a + (255 - a) * e);
44
+ return [o, n, s];
45
+ },
46
+ isNumber(t) {
47
+ return {
48
+ number: /^[0-9]+$/u
49
+ }.number.test(t);
50
+ },
51
+ getColorTheme(t) {
52
+ var e;
53
+ return t || (typeof window < "u" && window.matchMedia && typeof window.matchMedia == "function" ? (e = window.matchMedia("(prefers-color-scheme: dark)")) != null && e.matches ? "dark" : "light" : "dark");
54
+ },
55
+ splitBalance(t) {
56
+ const e = t.split(".");
57
+ return e.length === 2 ? [e[0], e[1]] : ["0", "00"];
58
+ },
59
+ roundNumber(t, e, i) {
60
+ return t.toString().length >= e ? Number(t).toFixed(i) : t;
61
+ },
62
+ formatNumberToLocalString(t, e = 2) {
63
+ return t === void 0 ? "0.00" : typeof t == "number" ? t.toLocaleString("en-US", {
64
+ maximumFractionDigits: e,
65
+ minimumFractionDigits: e
66
+ }) : parseFloat(t).toLocaleString("en-US", {
67
+ maximumFractionDigits: e,
68
+ minimumFractionDigits: e
69
+ });
70
+ }
71
+ };
72
+ function D(t, e) {
73
+ const { kind: i, elements: r } = e;
74
+ return {
75
+ kind: i,
76
+ elements: r,
77
+ finisher(a) {
78
+ customElements.get(t) || customElements.define(t, a);
79
+ }
80
+ };
81
+ }
82
+ function F(t, e) {
83
+ return customElements.get(t) || customElements.define(t, e), e;
84
+ }
85
+ function T(t) {
86
+ return function(i) {
87
+ return typeof i == "function" ? F(t, i) : D(t, i);
88
+ };
89
+ }
90
+ /**
91
+ * @license
92
+ * Copyright 2017 Google LLC
93
+ * SPDX-License-Identifier: BSD-3-Clause
94
+ */
95
+ const G = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: H }, N = (t = G, e, i) => {
96
+ const { kind: r, metadata: a } = i;
97
+ let o = globalThis.litPropertyMetadata.get(a);
98
+ if (o === void 0 && globalThis.litPropertyMetadata.set(a, o = /* @__PURE__ */ new Map()), r === "setter" && ((t = Object.create(t)).wrapped = !0), o.set(i.name, t), r === "accessor") {
99
+ const { name: n } = i;
100
+ return { set(s) {
101
+ const l = e.get.call(this);
102
+ e.set.call(this, s), this.requestUpdate(n, l, t);
103
+ }, init(s) {
104
+ return s !== void 0 && this.C(n, void 0, t, s), s;
105
+ } };
106
+ }
107
+ if (r === "setter") {
108
+ const { name: n } = i;
109
+ return function(s) {
110
+ const l = this[n];
111
+ e.call(this, s), this.requestUpdate(n, l, t);
112
+ };
113
+ }
114
+ throw Error("Unsupported decorator location: " + r);
115
+ };
116
+ function c(t) {
117
+ return (e, i) => typeof i == "object" ? N(t, e, i) : ((r, a, o) => {
118
+ const n = a.hasOwnProperty(o);
119
+ return a.constructor.createProperty(o, r), n ? Object.getOwnPropertyDescriptor(a, o) : void 0;
120
+ })(t, e, i);
121
+ }
122
+ /**
123
+ * @license
124
+ * Copyright 2017 Google LLC
125
+ * SPDX-License-Identifier: BSD-3-Clause
126
+ */
127
+ function ct(t) {
128
+ return c({ ...t, state: !0, attribute: !1 });
129
+ }
130
+ /**
131
+ * @license
132
+ * Copyright 2020 Google LLC
133
+ * SPDX-License-Identifier: BSD-3-Clause
134
+ */
135
+ const E = (t) => t === null || typeof t != "object" && typeof t != "function", W = (t) => t.strings === void 0;
136
+ /**
137
+ * @license
138
+ * Copyright 2017 Google LLC
139
+ * SPDX-License-Identifier: BSD-3-Clause
140
+ */
141
+ const M = { ATTRIBUTE: 1, CHILD: 2 }, j = (t) => (...e) => ({ _$litDirective$: t, values: e });
142
+ let B = class {
143
+ constructor(e) {
144
+ }
145
+ get _$AU() {
146
+ return this._$AM._$AU;
147
+ }
148
+ _$AT(e, i, r) {
149
+ this._$Ct = e, this._$AM = i, this._$Ci = r;
150
+ }
151
+ _$AS(e, i) {
152
+ return this.update(e, i);
153
+ }
154
+ update(e, i) {
155
+ return this.render(...i);
156
+ }
157
+ };
158
+ /**
159
+ * @license
160
+ * Copyright 2017 Google LLC
161
+ * SPDX-License-Identifier: BSD-3-Clause
162
+ */
163
+ const d = (t, e) => {
164
+ var r;
165
+ const i = t._$AN;
166
+ if (i === void 0) return !1;
167
+ for (const a of i) (r = a._$AO) == null || r.call(a, e, !1), d(a, e);
168
+ return !0;
169
+ }, $ = (t) => {
170
+ let e, i;
171
+ do {
172
+ if ((e = t._$AM) === void 0) break;
173
+ i = e._$AN, i.delete(t), t = e;
174
+ } while ((i == null ? void 0 : i.size) === 0);
175
+ }, U = (t) => {
176
+ for (let e; e = t._$AM; t = e) {
177
+ let i = e._$AN;
178
+ if (i === void 0) e._$AN = i = /* @__PURE__ */ new Set();
179
+ else if (i.has(t)) break;
180
+ i.add(t), K(e);
181
+ }
182
+ };
183
+ function V(t) {
184
+ this._$AN !== void 0 ? ($(this), this._$AM = t, U(this)) : this._$AM = t;
185
+ }
186
+ function q(t, e = !1, i = 0) {
187
+ const r = this._$AH, a = this._$AN;
188
+ if (a !== void 0 && a.size !== 0) if (e) if (Array.isArray(r)) for (let o = i; o < r.length; o++) d(r[o], !1), $(r[o]);
189
+ else r != null && (d(r, !1), $(r));
190
+ else d(this, t);
191
+ }
192
+ const K = (t) => {
193
+ t.type == M.CHILD && (t._$AP ?? (t._$AP = q), t._$AQ ?? (t._$AQ = V));
194
+ };
195
+ class X extends B {
196
+ constructor() {
197
+ super(...arguments), this._$AN = void 0;
198
+ }
199
+ _$AT(e, i, r) {
200
+ super._$AT(e, i, r), U(this), this.isConnected = e._$AU;
201
+ }
202
+ _$AO(e, i = !0) {
203
+ var r, a;
204
+ e !== this.isConnected && (this.isConnected = e, e ? (r = this.reconnected) == null || r.call(this) : (a = this.disconnected) == null || a.call(this)), i && (d(this, e), $(this));
205
+ }
206
+ setValue(e) {
207
+ if (W(this._$Ct)) this._$Ct._$AI(e, this);
208
+ else {
209
+ const i = [...this._$Ct._$AH];
210
+ i[this._$Ci] = e, this._$Ct._$AI(i, this, 0);
211
+ }
212
+ }
213
+ disconnected() {
214
+ }
215
+ reconnected() {
216
+ }
217
+ }
218
+ /**
219
+ * @license
220
+ * Copyright 2021 Google LLC
221
+ * SPDX-License-Identifier: BSD-3-Clause
222
+ */
223
+ class Y {
224
+ constructor(e) {
225
+ this.G = e;
226
+ }
227
+ disconnect() {
228
+ this.G = void 0;
229
+ }
230
+ reconnect(e) {
231
+ this.G = e;
232
+ }
233
+ deref() {
234
+ return this.G;
235
+ }
236
+ }
237
+ class Z {
238
+ constructor() {
239
+ this.Y = void 0, this.Z = void 0;
240
+ }
241
+ get() {
242
+ return this.Y;
243
+ }
244
+ pause() {
245
+ this.Y ?? (this.Y = new Promise((e) => this.Z = e));
246
+ }
247
+ resume() {
248
+ var e;
249
+ (e = this.Z) == null || e.call(this), this.Y = this.Z = void 0;
250
+ }
251
+ }
252
+ /**
253
+ * @license
254
+ * Copyright 2017 Google LLC
255
+ * SPDX-License-Identifier: BSD-3-Clause
256
+ */
257
+ const k = (t) => !E(t) && typeof t.then == "function", P = 1073741823;
258
+ class Q extends X {
259
+ constructor() {
260
+ super(...arguments), this._$Cwt = P, this._$Cbt = [], this._$CK = new Y(this), this._$CX = new Z();
261
+ }
262
+ render(...e) {
263
+ return e.find((i) => !k(i)) ?? x;
264
+ }
265
+ update(e, i) {
266
+ const r = this._$Cbt;
267
+ let a = r.length;
268
+ this._$Cbt = i;
269
+ const o = this._$CK, n = this._$CX;
270
+ this.isConnected || this.disconnected();
271
+ for (let s = 0; s < i.length && !(s > this._$Cwt); s++) {
272
+ const l = i[s];
273
+ if (!k(l)) return this._$Cwt = s, l;
274
+ s < a && l === r[s] || (this._$Cwt = P, a = 0, Promise.resolve(l).then(async (m) => {
275
+ for (; n.get(); ) await n.get();
276
+ const h = o.deref();
277
+ if (h !== void 0) {
278
+ const b = h._$Cbt.indexOf(l);
279
+ b > -1 && b < h._$Cwt && (h._$Cwt = b, h.setValue(m));
280
+ }
281
+ }));
282
+ }
283
+ return x;
284
+ }
285
+ disconnected() {
286
+ this._$CK.disconnect(), this._$CX.pause();
287
+ }
288
+ reconnected() {
289
+ this._$CK.reconnect(this), this._$CX.resume();
290
+ }
291
+ }
292
+ const J = j(Q);
293
+ class tt {
294
+ constructor() {
295
+ this.cache = /* @__PURE__ */ new Map();
296
+ }
297
+ set(e, i) {
298
+ this.cache.set(e, i);
299
+ }
300
+ get(e) {
301
+ return this.cache.get(e);
302
+ }
303
+ has(e) {
304
+ return this.cache.has(e);
305
+ }
306
+ delete(e) {
307
+ this.cache.delete(e);
308
+ }
309
+ clear() {
310
+ this.cache.clear();
311
+ }
312
+ }
313
+ const C = new tt(), et = _`
314
+ :host {
315
+ display: flex;
316
+ aspect-ratio: var(--local-aspect-ratio);
317
+ color: var(--local-color);
318
+ width: var(--local-width);
319
+ }
320
+
321
+ svg {
322
+ width: inherit;
323
+ height: inherit;
324
+ object-fit: contain;
325
+ object-position: center;
326
+ }
327
+
328
+ .fallback {
329
+ width: var(--local-width);
330
+ height: var(--local-height);
331
+ }
332
+ `;
333
+ var v = function(t, e, i, r) {
334
+ var a = arguments.length, o = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, n;
335
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
336
+ else for (var s = t.length - 1; s >= 0; s--) (n = t[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(e, i, o) : n(e, i)) || o);
337
+ return a > 3 && o && Object.defineProperty(e, i, o), o;
338
+ };
339
+ const R = {
340
+ add: async () => (await import("./add-hVLs3ldJ.js")).addSvg,
341
+ allWallets: async () => (await import("./all-wallets-Cwxnx4BT.js")).allWalletsSvg,
342
+ arrowBottomCircle: async () => (await import("./arrow-bottom-circle-BGU9MmsZ.js")).arrowBottomCircleSvg,
343
+ appStore: async () => (await import("./app-store-CAAVQjW0.js")).appStoreSvg,
344
+ apple: async () => (await import("./apple-C3BSbglw.js")).appleSvg,
345
+ arrowBottom: async () => (await import("./arrow-bottom-hS_SA8Gp.js")).arrowBottomSvg,
346
+ arrowLeft: async () => (await import("./arrow-left-CJZanWz7.js")).arrowLeftSvg,
347
+ arrowRight: async () => (await import("./arrow-right-C1qL8EMd.js")).arrowRightSvg,
348
+ arrowTop: async () => (await import("./arrow-top-CbuCmbQs.js")).arrowTopSvg,
349
+ bank: async () => (await import("./bank-CXBEEGbb.js")).bankSvg,
350
+ browser: async () => (await import("./browser-t7Fh0sEU.js")).browserSvg,
351
+ bin: async () => (await import("./bin-Dqzv3zCZ.js")).binSvg,
352
+ bitcoin: async () => (await import("./bitcoin-4y3sovZp.js")).bitcoinSvg,
353
+ card: async () => (await import("./card-Bo4CZkTs.js")).cardSvg,
354
+ checkmark: async () => (await import("./checkmark-DV6OKvnY.js")).checkmarkSvg,
355
+ checkmarkBold: async () => (await import("./checkmark-bold-CAp1-IQ2.js")).checkmarkBoldSvg,
356
+ chevronBottom: async () => (await import("./chevron-bottom-BjzsVzk9.js")).chevronBottomSvg,
357
+ chevronLeft: async () => (await import("./chevron-left-CQZBDCiR.js")).chevronLeftSvg,
358
+ chevronRight: async () => (await import("./chevron-right-Dhg4zeZM.js")).chevronRightSvg,
359
+ chevronTop: async () => (await import("./chevron-top-CDQmfJef.js")).chevronTopSvg,
360
+ chromeStore: async () => (await import("./chrome-store-BNaC_b6w.js")).chromeStoreSvg,
361
+ clock: async () => (await import("./clock-BmF8-4a0.js")).clockSvg,
362
+ close: async () => (await import("./close-Bf61nZ8o.js")).closeSvg,
363
+ compass: async () => (await import("./compass-CFC3yhnW.js")).compassSvg,
364
+ coinPlaceholder: async () => (await import("./coinPlaceholder-7cZW2058.js")).coinPlaceholderSvg,
365
+ copy: async () => (await import("./copy-e0xXvKN0.js")).copySvg,
366
+ cursor: async () => (await import("./cursor-CqM3v0xJ.js")).cursorSvg,
367
+ cursorTransparent: async () => (await import("./cursor-transparent-CUQpdsCG.js")).cursorTransparentSvg,
368
+ circle: async () => (await import("./circle-BC_GBj91.js")).circleSvg,
369
+ desktop: async () => (await import("./desktop-DUDGIRpM.js")).desktopSvg,
370
+ disconnect: async () => (await import("./disconnect-DUFST9QQ.js")).disconnectSvg,
371
+ discord: async () => (await import("./discord-C1cj365Z.js")).discordSvg,
372
+ ethereum: async () => (await import("./ethereum-CfmBVfeB.js")).ethereumSvg,
373
+ etherscan: async () => (await import("./etherscan-BSiynDhW.js")).etherscanSvg,
374
+ extension: async () => (await import("./extension-mRmfCDxo.js")).extensionSvg,
375
+ externalLink: async () => (await import("./external-link-B4xMIVnW.js")).externalLinkSvg,
376
+ facebook: async () => (await import("./facebook-CBAZStBR.js")).facebookSvg,
377
+ farcaster: async () => (await import("./farcaster-LHDEDf5S.js")).farcasterSvg,
378
+ filters: async () => (await import("./filters-CBijuvFv.js")).filtersSvg,
379
+ github: async () => (await import("./github-C3ILD420.js")).githubSvg,
380
+ google: async () => (await import("./google-CSj73POX.js")).googleSvg,
381
+ helpCircle: async () => (await import("./help-circle-2hdG5IdB.js")).helpCircleSvg,
382
+ image: async () => (await import("./image-C90L4Rf6.js")).imageSvg,
383
+ id: async () => (await import("./id-ByYSrwsd.js")).idSvg,
384
+ infoCircle: async () => (await import("./info-circle-DAvS_7nY.js")).infoCircleSvg,
385
+ lightbulb: async () => (await import("./lightbulb-DnZ9mNEs.js")).lightbulbSvg,
386
+ mail: async () => (await import("./mail-DpaVSOP8.js")).mailSvg,
387
+ mobile: async () => (await import("./mobile-CRvdyu7I.js")).mobileSvg,
388
+ more: async () => (await import("./more-C5VqW9PR.js")).moreSvg,
389
+ networkPlaceholder: async () => (await import("./network-placeholder-CZ0vApma.js")).networkPlaceholderSvg,
390
+ nftPlaceholder: async () => (await import("./nftPlaceholder-7jjIK2bT.js")).nftPlaceholderSvg,
391
+ off: async () => (await import("./off-4mHjJLLX.js")).offSvg,
392
+ playStore: async () => (await import("./play-store-Uocul8nC.js")).playStoreSvg,
393
+ plus: async () => (await import("./plus-DrYF7siO.js")).plusSvg,
394
+ qrCode: async () => (await import("./qr-code-DcnGMUB3.js")).qrCodeIcon,
395
+ recycleHorizontal: async () => (await import("./recycle-horizontal-DrDwXC4D.js")).recycleHorizontalSvg,
396
+ refresh: async () => (await import("./refresh-OK9lIPLS.js")).refreshSvg,
397
+ search: async () => (await import("./search-DZqv1oKg.js")).searchSvg,
398
+ send: async () => (await import("./send-otoEC8uU.js")).sendSvg,
399
+ swapHorizontal: async () => (await import("./swapHorizontal-BzOPGV37.js")).swapHorizontalSvg,
400
+ swapHorizontalMedium: async () => (await import("./swapHorizontalMedium-C6YOPfPz.js")).swapHorizontalMediumSvg,
401
+ swapHorizontalBold: async () => (await import("./swapHorizontalBold-axyHnSmj.js")).swapHorizontalBoldSvg,
402
+ swapHorizontalRoundedBold: async () => (await import("./swapHorizontalRoundedBold-yVcLbWNT.js")).swapHorizontalRoundedBoldSvg,
403
+ swapVertical: async () => (await import("./swapVertical-BDjxt9pE.js")).swapVerticalSvg,
404
+ solana: async () => (await import("./solana-Bv5Hs_0T.js")).solanaSvg,
405
+ telegram: async () => (await import("./telegram-BQJD7dlP.js")).telegramSvg,
406
+ threeDots: async () => (await import("./three-dots-DW9jmSMG.js")).threeDotsSvg,
407
+ twitch: async () => (await import("./twitch-XugxDfOE.js")).twitchSvg,
408
+ twitter: async () => (await import("./x-DlZBoP9k.js")).xSvg,
409
+ twitterIcon: async () => (await import("./twitterIcon-DQVObQUL.js")).twitterIconSvg,
410
+ verify: async () => (await import("./verify-DpMYHxLf.js")).verifySvg,
411
+ verifyFilled: async () => (await import("./verify-filled-KpEL6ZJ_.js")).verifyFilledSvg,
412
+ wallet: async () => (await import("./wallet-D8ssEB0o.js")).walletSvg,
413
+ walletConnect: async () => (await import("./walletconnect-Bp_4XfrY.js")).walletConnectSvg,
414
+ walletConnectLightBrown: async () => (await import("./walletconnect-Bp_4XfrY.js")).walletConnectLightBrownSvg,
415
+ walletConnectBrown: async () => (await import("./walletconnect-Bp_4XfrY.js")).walletConnectBrownSvg,
416
+ walletPlaceholder: async () => (await import("./wallet-placeholder-HtAy21Wc.js")).walletPlaceholderSvg,
417
+ warningCircle: async () => (await import("./warning-circle-FgYS7P7n.js")).warningCircleSvg,
418
+ x: async () => (await import("./x-DlZBoP9k.js")).xSvg,
419
+ info: async () => (await import("./info-DMPChDjV.js")).infoSvg,
420
+ exclamationTriangle: async () => (await import("./exclamation-triangle-DEiFNpHw.js")).exclamationTriangleSvg,
421
+ reown: async () => (await import("./reown-logo-C-Qn7mS3.js")).reownSvg,
422
+ "x-mark": async () => (await import("./x-mark-Ba9pt-_h.js")).xMarkSvg
423
+ };
424
+ async function it(t) {
425
+ if (C.has(t))
426
+ return C.get(t);
427
+ const i = (R[t] ?? R.copy)();
428
+ return C.set(t, i), i;
429
+ }
430
+ let w = class extends A {
431
+ constructor() {
432
+ super(...arguments), this.size = "md", this.name = "copy", this.color = "fg-300", this.aspectRatio = "1 / 1";
433
+ }
434
+ render() {
435
+ return this.style.cssText = `
436
+ --local-color: ${`var(--wui-color-${this.color});`}
437
+ --local-width: ${`var(--wui-icon-size-${this.size});`}
438
+ --local-aspect-ratio: ${this.aspectRatio}
439
+ `, S`${J(it(this.name), S`<div class="fallback"></div>`)}`;
440
+ }
441
+ };
442
+ w.styles = [z, L, et];
443
+ v([
444
+ c()
445
+ ], w.prototype, "size", void 0);
446
+ v([
447
+ c()
448
+ ], w.prototype, "name", void 0);
449
+ v([
450
+ c()
451
+ ], w.prototype, "color", void 0);
452
+ v([
453
+ c()
454
+ ], w.prototype, "aspectRatio", void 0);
455
+ w = v([
456
+ T("wui-icon")
457
+ ], w);
458
+ /**
459
+ * @license
460
+ * Copyright 2018 Google LLC
461
+ * SPDX-License-Identifier: BSD-3-Clause
462
+ */
463
+ const ot = j(class extends B {
464
+ constructor(t) {
465
+ var e;
466
+ if (super(t), t.type !== M.ATTRIBUTE || t.name !== "class" || ((e = t.strings) == null ? void 0 : e.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
467
+ }
468
+ render(t) {
469
+ return " " + Object.keys(t).filter((e) => t[e]).join(" ") + " ";
470
+ }
471
+ update(t, [e]) {
472
+ var r, a;
473
+ if (this.st === void 0) {
474
+ this.st = /* @__PURE__ */ new Set(), t.strings !== void 0 && (this.nt = new Set(t.strings.join(" ").split(/\s/).filter((o) => o !== "")));
475
+ for (const o in e) e[o] && !((r = this.nt) != null && r.has(o)) && this.st.add(o);
476
+ return this.render(e);
477
+ }
478
+ const i = t.element.classList;
479
+ for (const o of this.st) o in e || (i.remove(o), this.st.delete(o));
480
+ for (const o in e) {
481
+ const n = !!e[o];
482
+ n === this.st.has(o) || (a = this.nt) != null && a.has(o) || (n ? (i.add(o), this.st.add(o)) : (i.remove(o), this.st.delete(o)));
483
+ }
484
+ return x;
485
+ }
486
+ }), rt = _`
487
+ :host {
488
+ display: inline-flex !important;
489
+ }
490
+
491
+ slot {
492
+ width: 100%;
493
+ display: inline-block;
494
+ font-style: normal;
495
+ font-family: var(--wui-font-family);
496
+ font-feature-settings:
497
+ 'tnum' on,
498
+ 'lnum' on,
499
+ 'case' on;
500
+ line-height: 130%;
501
+ font-weight: var(--wui-font-weight-regular);
502
+ overflow: inherit;
503
+ text-overflow: inherit;
504
+ text-align: var(--local-align);
505
+ color: var(--local-color);
506
+ }
507
+
508
+ .wui-line-clamp-1 {
509
+ overflow: hidden;
510
+ display: -webkit-box;
511
+ -webkit-box-orient: vertical;
512
+ -webkit-line-clamp: 1;
513
+ }
514
+
515
+ .wui-line-clamp-2 {
516
+ overflow: hidden;
517
+ display: -webkit-box;
518
+ -webkit-box-orient: vertical;
519
+ -webkit-line-clamp: 2;
520
+ }
521
+
522
+ .wui-font-medium-400 {
523
+ font-size: var(--wui-font-size-medium);
524
+ font-weight: var(--wui-font-weight-light);
525
+ letter-spacing: var(--wui-letter-spacing-medium);
526
+ }
527
+
528
+ .wui-font-medium-600 {
529
+ font-size: var(--wui-font-size-medium);
530
+ letter-spacing: var(--wui-letter-spacing-medium);
531
+ }
532
+
533
+ .wui-font-title-600 {
534
+ font-size: var(--wui-font-size-title);
535
+ letter-spacing: var(--wui-letter-spacing-title);
536
+ }
537
+
538
+ .wui-font-title-6-600 {
539
+ font-size: var(--wui-font-size-title-6);
540
+ letter-spacing: var(--wui-letter-spacing-title-6);
541
+ }
542
+
543
+ .wui-font-mini-700 {
544
+ font-size: var(--wui-font-size-mini);
545
+ letter-spacing: var(--wui-letter-spacing-mini);
546
+ text-transform: uppercase;
547
+ }
548
+
549
+ .wui-font-large-500,
550
+ .wui-font-large-600,
551
+ .wui-font-large-700 {
552
+ font-size: var(--wui-font-size-large);
553
+ letter-spacing: var(--wui-letter-spacing-large);
554
+ }
555
+
556
+ .wui-font-2xl-500,
557
+ .wui-font-2xl-600,
558
+ .wui-font-2xl-700 {
559
+ font-size: var(--wui-font-size-2xl);
560
+ letter-spacing: var(--wui-letter-spacing-2xl);
561
+ }
562
+
563
+ .wui-font-paragraph-400,
564
+ .wui-font-paragraph-500,
565
+ .wui-font-paragraph-600,
566
+ .wui-font-paragraph-700 {
567
+ font-size: var(--wui-font-size-paragraph);
568
+ letter-spacing: var(--wui-letter-spacing-paragraph);
569
+ }
570
+
571
+ .wui-font-small-400,
572
+ .wui-font-small-500,
573
+ .wui-font-small-600 {
574
+ font-size: var(--wui-font-size-small);
575
+ letter-spacing: var(--wui-letter-spacing-small);
576
+ }
577
+
578
+ .wui-font-tiny-400,
579
+ .wui-font-tiny-500,
580
+ .wui-font-tiny-600 {
581
+ font-size: var(--wui-font-size-tiny);
582
+ letter-spacing: var(--wui-letter-spacing-tiny);
583
+ }
584
+
585
+ .wui-font-micro-700,
586
+ .wui-font-micro-600,
587
+ .wui-font-micro-500 {
588
+ font-size: var(--wui-font-size-micro);
589
+ letter-spacing: var(--wui-letter-spacing-micro);
590
+ text-transform: uppercase;
591
+ }
592
+
593
+ .wui-font-tiny-400,
594
+ .wui-font-small-400,
595
+ .wui-font-medium-400,
596
+ .wui-font-paragraph-400 {
597
+ font-weight: var(--wui-font-weight-light);
598
+ }
599
+
600
+ .wui-font-large-700,
601
+ .wui-font-paragraph-700,
602
+ .wui-font-micro-700,
603
+ .wui-font-mini-700 {
604
+ font-weight: var(--wui-font-weight-bold);
605
+ }
606
+
607
+ .wui-font-medium-600,
608
+ .wui-font-medium-title-600,
609
+ .wui-font-title-6-600,
610
+ .wui-font-large-600,
611
+ .wui-font-paragraph-600,
612
+ .wui-font-small-600,
613
+ .wui-font-tiny-600,
614
+ .wui-font-micro-600 {
615
+ font-weight: var(--wui-font-weight-medium);
616
+ }
617
+
618
+ :host([disabled]) {
619
+ opacity: 0.4;
620
+ }
621
+ `;
622
+ var y = function(t, e, i, r) {
623
+ var a = arguments.length, o = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, n;
624
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
625
+ else for (var s = t.length - 1; s >= 0; s--) (n = t[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(e, i, o) : n(e, i)) || o);
626
+ return a > 3 && o && Object.defineProperty(e, i, o), o;
627
+ };
628
+ let f = class extends A {
629
+ constructor() {
630
+ super(...arguments), this.variant = "paragraph-500", this.color = "fg-300", this.align = "left", this.lineClamp = void 0;
631
+ }
632
+ render() {
633
+ const e = {
634
+ [`wui-font-${this.variant}`]: !0,
635
+ [`wui-color-${this.color}`]: !0,
636
+ [`wui-line-clamp-${this.lineClamp}`]: !!this.lineClamp
637
+ };
638
+ return this.style.cssText = `
639
+ --local-align: ${this.align};
640
+ --local-color: var(--wui-color-${this.color});
641
+ `, S`<slot class=${ot(e)}></slot>`;
642
+ }
643
+ };
644
+ f.styles = [z, rt];
645
+ y([
646
+ c()
647
+ ], f.prototype, "variant", void 0);
648
+ y([
649
+ c()
650
+ ], f.prototype, "color", void 0);
651
+ y([
652
+ c()
653
+ ], f.prototype, "align", void 0);
654
+ y([
655
+ c()
656
+ ], f.prototype, "lineClamp", void 0);
657
+ f = y([
658
+ T("wui-text")
659
+ ], f);
660
+ const at = _`
661
+ :host {
662
+ display: flex;
663
+ width: inherit;
664
+ height: inherit;
665
+ }
666
+ `;
667
+ var u = function(t, e, i, r) {
668
+ var a = arguments.length, o = a < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, i) : r, n;
669
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(t, e, i, r);
670
+ else for (var s = t.length - 1; s >= 0; s--) (n = t[s]) && (o = (a < 3 ? n(o) : a > 3 ? n(e, i, o) : n(e, i)) || o);
671
+ return a > 3 && o && Object.defineProperty(e, i, o), o;
672
+ };
673
+ let p = class extends A {
674
+ render() {
675
+ return this.style.cssText = `
676
+ flex-direction: ${this.flexDirection};
677
+ flex-wrap: ${this.flexWrap};
678
+ flex-basis: ${this.flexBasis};
679
+ flex-grow: ${this.flexGrow};
680
+ flex-shrink: ${this.flexShrink};
681
+ align-items: ${this.alignItems};
682
+ justify-content: ${this.justifyContent};
683
+ column-gap: ${this.columnGap && `var(--wui-spacing-${this.columnGap})`};
684
+ row-gap: ${this.rowGap && `var(--wui-spacing-${this.rowGap})`};
685
+ gap: ${this.gap && `var(--wui-spacing-${this.gap})`};
686
+ padding-top: ${this.padding && g.getSpacingStyles(this.padding, 0)};
687
+ padding-right: ${this.padding && g.getSpacingStyles(this.padding, 1)};
688
+ padding-bottom: ${this.padding && g.getSpacingStyles(this.padding, 2)};
689
+ padding-left: ${this.padding && g.getSpacingStyles(this.padding, 3)};
690
+ margin-top: ${this.margin && g.getSpacingStyles(this.margin, 0)};
691
+ margin-right: ${this.margin && g.getSpacingStyles(this.margin, 1)};
692
+ margin-bottom: ${this.margin && g.getSpacingStyles(this.margin, 2)};
693
+ margin-left: ${this.margin && g.getSpacingStyles(this.margin, 3)};
694
+ `, S`<slot></slot>`;
695
+ }
696
+ };
697
+ p.styles = [z, at];
698
+ u([
699
+ c()
700
+ ], p.prototype, "flexDirection", void 0);
701
+ u([
702
+ c()
703
+ ], p.prototype, "flexWrap", void 0);
704
+ u([
705
+ c()
706
+ ], p.prototype, "flexBasis", void 0);
707
+ u([
708
+ c()
709
+ ], p.prototype, "flexGrow", void 0);
710
+ u([
711
+ c()
712
+ ], p.prototype, "flexShrink", void 0);
713
+ u([
714
+ c()
715
+ ], p.prototype, "alignItems", void 0);
716
+ u([
717
+ c()
718
+ ], p.prototype, "justifyContent", void 0);
719
+ u([
720
+ c()
721
+ ], p.prototype, "columnGap", void 0);
722
+ u([
723
+ c()
724
+ ], p.prototype, "rowGap", void 0);
725
+ u([
726
+ c()
727
+ ], p.prototype, "gap", void 0);
728
+ u([
729
+ c()
730
+ ], p.prototype, "padding", void 0);
731
+ u([
732
+ c()
733
+ ], p.prototype, "margin", void 0);
734
+ p = u([
735
+ T("wui-flex")
736
+ ], p);
737
+ /**
738
+ * @license
739
+ * Copyright 2018 Google LLC
740
+ * SPDX-License-Identifier: BSD-3-Clause
741
+ */
742
+ const gt = (t) => t ?? O;
743
+ export {
744
+ g as U,
745
+ j as a,
746
+ T as c,
747
+ ot as e,
748
+ X as f,
749
+ c as n,
750
+ gt as o,
751
+ ct as r
752
+ };