@reown/appkit-cdn 1.8.15-viem-upgrade.0 → 1.8.15-wc-linking-reset-headless.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 (429) hide show
  1. package/dist/ConstantsUtil-CbwdoWl-.js +24 -0
  2. package/dist/ConstantsUtil-CbwdoWl-.js.map +1 -0
  3. package/dist/ExchangeController-Dqyc5bBG.js +265 -0
  4. package/dist/ExchangeController-Dqyc5bBG.js.map +1 -0
  5. package/dist/HelpersUtil-DU2h_IDh.js +141 -0
  6. package/dist/HelpersUtil-DU2h_IDh.js.map +1 -0
  7. package/dist/NavigationUtil-Ci15WS4K.js +9 -0
  8. package/dist/NavigationUtil-Ci15WS4K.js.map +1 -0
  9. package/dist/PhArrowCircleDown-B41iUlWV.js +74 -0
  10. package/dist/PhArrowCircleDown-B41iUlWV.js.map +1 -0
  11. package/dist/PhArrowClockwise-BY8u5n41.js +74 -0
  12. package/dist/PhArrowClockwise-BY8u5n41.js.map +1 -0
  13. package/dist/PhArrowDown-ClD8GZ65.js +74 -0
  14. package/dist/PhArrowDown-ClD8GZ65.js.map +1 -0
  15. package/dist/PhArrowLeft-B8MXUz60.js +74 -0
  16. package/dist/PhArrowLeft-B8MXUz60.js.map +1 -0
  17. package/dist/PhArrowRight-Cewa_Slb.js +74 -0
  18. package/dist/PhArrowRight-Cewa_Slb.js.map +1 -0
  19. package/dist/PhArrowSquareOut-whgWh-lD.js +74 -0
  20. package/dist/PhArrowSquareOut-whgWh-lD.js.map +1 -0
  21. package/dist/PhArrowUp-B1HXBxie.js +74 -0
  22. package/dist/PhArrowUp-B1HXBxie.js.map +1 -0
  23. package/dist/PhArrowUpRight-CfFYe4FP.js +74 -0
  24. package/dist/PhArrowUpRight-CfFYe4FP.js.map +1 -0
  25. package/dist/PhArrowsClockwise-gL1Gkrtx.js +74 -0
  26. package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +1 -0
  27. package/dist/PhArrowsDownUp-BqUEdUQr.js +74 -0
  28. package/dist/PhArrowsDownUp-BqUEdUQr.js.map +1 -0
  29. package/dist/PhArrowsLeftRight-BlZU63eY.js +74 -0
  30. package/dist/PhArrowsLeftRight-BlZU63eY.js.map +1 -0
  31. package/dist/PhBank-gbg_jlI7.js +74 -0
  32. package/dist/PhBank-gbg_jlI7.js.map +1 -0
  33. package/dist/PhBrowser-CMlD-YJw.js +74 -0
  34. package/dist/PhBrowser-CMlD-YJw.js.map +1 -0
  35. package/dist/PhCaretDown-3agTO8Jp.js +74 -0
  36. package/dist/PhCaretDown-3agTO8Jp.js.map +1 -0
  37. package/dist/PhCaretLeft-_MTni7Z5.js +74 -0
  38. package/dist/PhCaretLeft-_MTni7Z5.js.map +1 -0
  39. package/dist/PhCaretRight-Ci9fAHPG.js +74 -0
  40. package/dist/PhCaretRight-Ci9fAHPG.js.map +1 -0
  41. package/dist/PhCaretUp-vFG4Fame.js +74 -0
  42. package/dist/PhCaretUp-vFG4Fame.js.map +1 -0
  43. package/dist/PhCheck-mChGK6K_.js +74 -0
  44. package/dist/PhCheck-mChGK6K_.js.map +1 -0
  45. package/dist/PhCircleHalf-DZ7-vfxf.js +74 -0
  46. package/dist/PhCircleHalf-DZ7-vfxf.js.map +1 -0
  47. package/dist/PhClock-Bc5XWXb6.js +74 -0
  48. package/dist/PhClock-Bc5XWXb6.js.map +1 -0
  49. package/dist/PhCompass-Cu2MB-55.js +74 -0
  50. package/dist/PhCompass-Cu2MB-55.js.map +1 -0
  51. package/dist/PhCopy-BGUjyTts.js +74 -0
  52. package/dist/PhCopy-BGUjyTts.js.map +1 -0
  53. package/dist/PhCreditCard-vxFWID4B.js +74 -0
  54. package/dist/PhCreditCard-vxFWID4B.js.map +1 -0
  55. package/dist/PhCurrencyDollar-BfOoDhJr.js +74 -0
  56. package/dist/PhCurrencyDollar-BfOoDhJr.js.map +1 -0
  57. package/dist/PhDesktop-Cq6jwzbS.js +74 -0
  58. package/dist/PhDesktop-Cq6jwzbS.js.map +1 -0
  59. package/dist/PhDeviceMobile-BCtTp6jj.js +74 -0
  60. package/dist/PhDeviceMobile-BCtTp6jj.js.map +1 -0
  61. package/dist/PhDotsThree-BGgD-WIO.js +74 -0
  62. package/dist/PhDotsThree-BGgD-WIO.js.map +1 -0
  63. package/dist/PhEnvelope-CQiV0-zG.js +74 -0
  64. package/dist/PhEnvelope-CQiV0-zG.js.map +1 -0
  65. package/dist/PhFunnelSimple-BHGtxTNf.js +74 -0
  66. package/dist/PhFunnelSimple-BHGtxTNf.js.map +1 -0
  67. package/dist/PhGlobe-Q8oVkf6X.js +74 -0
  68. package/dist/PhGlobe-Q8oVkf6X.js.map +1 -0
  69. package/dist/PhIdentificationCard-Cz9LzvVR.js +74 -0
  70. package/dist/PhIdentificationCard-Cz9LzvVR.js.map +1 -0
  71. package/dist/PhImage-CP5_qKk-.js +74 -0
  72. package/dist/PhImage-CP5_qKk-.js.map +1 -0
  73. package/dist/PhInfo-CTlE1X9Z.js +74 -0
  74. package/dist/PhInfo-CTlE1X9Z.js.map +1 -0
  75. package/dist/PhLightbulb-CcLpnAAb.js +74 -0
  76. package/dist/PhLightbulb-CcLpnAAb.js.map +1 -0
  77. package/dist/PhMagnifyingGlass-n58GUAck.js +74 -0
  78. package/dist/PhMagnifyingGlass-n58GUAck.js.map +1 -0
  79. package/dist/PhPaperPlaneRight-C0sf2XV8.js +74 -0
  80. package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +1 -0
  81. package/dist/PhPlus-BJxvt7Uc.js +74 -0
  82. package/dist/PhPlus-BJxvt7Uc.js.map +1 -0
  83. package/dist/PhPower-BvktxO2-.js +74 -0
  84. package/dist/PhPower-BvktxO2-.js.map +1 -0
  85. package/dist/PhPuzzlePiece-CDDyUPYo.js +74 -0
  86. package/dist/PhPuzzlePiece-CDDyUPYo.js.map +1 -0
  87. package/dist/PhQrCode-BlGI8529.js +74 -0
  88. package/dist/PhQrCode-BlGI8529.js.map +1 -0
  89. package/dist/PhQuestion-DGZj6iDZ.js +74 -0
  90. package/dist/PhQuestion-DGZj6iDZ.js.map +1 -0
  91. package/dist/PhQuestionMark-CTmeI7MQ.js +74 -0
  92. package/dist/PhQuestionMark-CTmeI7MQ.js.map +1 -0
  93. package/dist/PhSealCheck-BSlqkxnH.js +74 -0
  94. package/dist/PhSealCheck-BSlqkxnH.js.map +1 -0
  95. package/dist/PhSignOut-CEXxlRk3.js +74 -0
  96. package/dist/PhSignOut-CEXxlRk3.js.map +1 -0
  97. package/dist/PhSpinner-Do1pY8fG.js +74 -0
  98. package/dist/PhSpinner-Do1pY8fG.js.map +1 -0
  99. package/dist/PhTrash-JNKavmpg.js +74 -0
  100. package/dist/PhTrash-JNKavmpg.js.map +1 -0
  101. package/dist/PhUser-BW7E-xYg.js +74 -0
  102. package/dist/PhUser-BW7E-xYg.js.map +1 -0
  103. package/dist/PhVault-mzxUgBYN.js +74 -0
  104. package/dist/PhVault-mzxUgBYN.js.map +1 -0
  105. package/dist/PhWallet-BR9JThKU.js +74 -0
  106. package/dist/PhWallet-BR9JThKU.js.map +1 -0
  107. package/dist/PhWarning-DxuQ70WM.js +74 -0
  108. package/dist/PhWarning-DxuQ70WM.js.map +1 -0
  109. package/dist/PhWarningCircle-DCI0JC1F.js +74 -0
  110. package/dist/PhWarningCircle-DCI0JC1F.js.map +1 -0
  111. package/dist/PhX-CWNXqpGn.js +74 -0
  112. package/dist/PhX-CWNXqpGn.js.map +1 -0
  113. package/dist/SwapController-jMZttK6h.js +684 -0
  114. package/dist/SwapController-jMZttK6h.js.map +1 -0
  115. package/dist/WebCryptoP256-BBztc0iu.js +3299 -0
  116. package/dist/WebCryptoP256-BBztc0iu.js.map +1 -0
  117. package/dist/add--c4dzQ5a.js +20 -0
  118. package/dist/add--c4dzQ5a.js.map +1 -0
  119. package/dist/all-wallets-qDP3dIqp.js +11 -0
  120. package/dist/all-wallets-qDP3dIqp.js.map +1 -0
  121. package/dist/app-store-D9l7eF2W.js +22 -0
  122. package/dist/app-store-D9l7eF2W.js.map +1 -0
  123. package/dist/appkit-BelUXm_6.js +117838 -0
  124. package/dist/appkit-BelUXm_6.js.map +1 -0
  125. package/dist/appkit.js +11 -0
  126. package/dist/appkit.js.map +1 -0
  127. package/dist/apple-CpoWHbAl.js +23 -0
  128. package/dist/apple-CpoWHbAl.js.map +1 -0
  129. package/dist/arrow-bottom-Duw4wyrB.js +13 -0
  130. package/dist/arrow-bottom-Duw4wyrB.js.map +1 -0
  131. package/dist/arrow-bottom-circle-jzrzTJTi.js +16 -0
  132. package/dist/arrow-bottom-circle-jzrzTJTi.js.map +1 -0
  133. package/dist/arrow-left-DZ8261mb.js +13 -0
  134. package/dist/arrow-left-DZ8261mb.js.map +1 -0
  135. package/dist/arrow-right-BkSWH-o2.js +13 -0
  136. package/dist/arrow-right-BkSWH-o2.js.map +1 -0
  137. package/dist/arrow-top-CZ-VhKD6.js +13 -0
  138. package/dist/arrow-top-CZ-VhKD6.js.map +1 -0
  139. package/dist/async-directive-DxJWJE9R.js +73 -0
  140. package/dist/async-directive-DxJWJE9R.js.map +1 -0
  141. package/dist/bank-Dqp8PTLk.js +19 -0
  142. package/dist/bank-Dqp8PTLk.js.map +1 -0
  143. package/dist/basic-DFEi41zA.js +4914 -0
  144. package/dist/basic-DFEi41zA.js.map +1 -0
  145. package/dist/browser-5XoTmr4n.js +1991 -0
  146. package/dist/browser-5XoTmr4n.js.map +1 -0
  147. package/dist/browser-BPO6XEtY.js +19 -0
  148. package/dist/browser-BPO6XEtY.js.map +1 -0
  149. package/dist/card-V3yaUpoc.js +19 -0
  150. package/dist/card-V3yaUpoc.js.map +1 -0
  151. package/dist/ccip-BoFoMwtu.js +164 -0
  152. package/dist/ccip-BoFoMwtu.js.map +1 -0
  153. package/dist/checkmark-DSiyB22o.js +16 -0
  154. package/dist/checkmark-DSiyB22o.js.map +1 -0
  155. package/dist/checkmark-bold-Bv7-ZO8v.js +13 -0
  156. package/dist/checkmark-bold-Bv7-ZO8v.js.map +1 -0
  157. package/dist/chevron-bottom-B2TGsNMu.js +13 -0
  158. package/dist/chevron-bottom-B2TGsNMu.js.map +1 -0
  159. package/dist/chevron-left-Cwx-XOsq.js +13 -0
  160. package/dist/chevron-left-Cwx-XOsq.js.map +1 -0
  161. package/dist/chevron-right-BGnzEWju.js +13 -0
  162. package/dist/chevron-right-BGnzEWju.js.map +1 -0
  163. package/dist/chevron-top-C-e2sCE8.js +13 -0
  164. package/dist/chevron-top-C-e2sCE8.js.map +1 -0
  165. package/dist/chrome-store-Dk-JjvFO.js +66 -0
  166. package/dist/chrome-store-Dk-JjvFO.js.map +1 -0
  167. package/dist/class-map-ZEs4CrSH.js +101 -0
  168. package/dist/class-map-ZEs4CrSH.js.map +1 -0
  169. package/dist/clock-DqVZkTjt.js +13 -0
  170. package/dist/clock-DqVZkTjt.js.map +1 -0
  171. package/dist/close-iWBWiaHR.js +13 -0
  172. package/dist/close-iWBWiaHR.js.map +1 -0
  173. package/dist/clsx.m-D57qXwfE.js +21 -0
  174. package/dist/clsx.m-D57qXwfE.js.map +1 -0
  175. package/dist/coinPlaceholder-DamDZh25.js +13 -0
  176. package/dist/coinPlaceholder-DamDZh25.js.map +1 -0
  177. package/dist/compass-DK4o4OBL.js +13 -0
  178. package/dist/compass-DK4o4OBL.js.map +1 -0
  179. package/dist/copy-eQpimOO_.js +20 -0
  180. package/dist/copy-eQpimOO_.js.map +1 -0
  181. package/dist/core-Blm5BnNJ.js +16288 -0
  182. package/dist/core-Blm5BnNJ.js.map +1 -0
  183. package/dist/cursor-k5vr3_IY.js +8 -0
  184. package/dist/cursor-k5vr3_IY.js.map +1 -0
  185. package/dist/cursor-transparent-C72dSWkl.js +17 -0
  186. package/dist/cursor-transparent-C72dSWkl.js.map +1 -0
  187. package/dist/data-capture-BYDXaTJ7.js +549 -0
  188. package/dist/data-capture-BYDXaTJ7.js.map +1 -0
  189. package/dist/desktop-BKt6U1LK.js +14 -0
  190. package/dist/desktop-BKt6U1LK.js.map +1 -0
  191. package/dist/disconnect-BN2JhgmS.js +13 -0
  192. package/dist/disconnect-BN2JhgmS.js.map +1 -0
  193. package/dist/discord-BPXpxniL.js +22 -0
  194. package/dist/discord-BPXpxniL.js.map +1 -0
  195. package/dist/email-CNuZeI4u.js +421 -0
  196. package/dist/email-CNuZeI4u.js.map +1 -0
  197. package/dist/embedded-wallet-LWvrPF_o.js +952 -0
  198. package/dist/embedded-wallet-LWvrPF_o.js.map +1 -0
  199. package/dist/etherscan-DDKRPzA-.js +11 -0
  200. package/dist/etherscan-DDKRPzA-.js.map +1 -0
  201. package/dist/exclamation-triangle-D-8fgdY1.js +9 -0
  202. package/dist/exclamation-triangle-D-8fgdY1.js.map +1 -0
  203. package/dist/extension-Dxcr6kcX.js +13 -0
  204. package/dist/extension-Dxcr6kcX.js.map +1 -0
  205. package/dist/external-link-CAGwU0J9.js +13 -0
  206. package/dist/external-link-CAGwU0J9.js.map +1 -0
  207. package/dist/facebook-CLDxOaIb.js +31 -0
  208. package/dist/facebook-CLDxOaIb.js.map +1 -0
  209. package/dist/farcaster-Cw3u-UPo.js +17 -0
  210. package/dist/farcaster-Cw3u-UPo.js.map +1 -0
  211. package/dist/features-vg2POspn.js +319 -0
  212. package/dist/features-vg2POspn.js.map +1 -0
  213. package/dist/filters-COA9syz-.js +13 -0
  214. package/dist/filters-COA9syz-.js.map +1 -0
  215. package/dist/github-D7S2v9I4.js +23 -0
  216. package/dist/github-D7S2v9I4.js.map +1 -0
  217. package/dist/google-D0CqK5v9.js +23 -0
  218. package/dist/google-D0CqK5v9.js.map +1 -0
  219. package/dist/hashTypedData-CSpZpAVZ.js +262 -0
  220. package/dist/hashTypedData-CSpZpAVZ.js.map +1 -0
  221. package/dist/help-circle-DUNo_nkC.js +17 -0
  222. package/dist/help-circle-DUNo_nkC.js.map +1 -0
  223. package/dist/id-I68XskJD.js +17 -0
  224. package/dist/id-I68XskJD.js.map +1 -0
  225. package/dist/if-defined-CZFxJBnA.js +11 -0
  226. package/dist/if-defined-CZFxJBnA.js.map +1 -0
  227. package/dist/image-B5cNqRyN.js +9 -0
  228. package/dist/image-B5cNqRyN.js.map +1 -0
  229. package/dist/index-104DdYHO.js +985 -0
  230. package/dist/index-104DdYHO.js.map +1 -0
  231. package/dist/index-B3zs1e7u.js +181 -0
  232. package/dist/index-B3zs1e7u.js.map +1 -0
  233. package/dist/index-B5NSdMiU.js +218 -0
  234. package/dist/index-B5NSdMiU.js.map +1 -0
  235. package/dist/index-B6iHFF4h.js +136 -0
  236. package/dist/index-B6iHFF4h.js.map +1 -0
  237. package/dist/index-B8jsF--g.js +1582 -0
  238. package/dist/index-B8jsF--g.js.map +1 -0
  239. package/dist/index-BB3tQw2Z.js +9350 -0
  240. package/dist/index-BB3tQw2Z.js.map +1 -0
  241. package/dist/index-BKk3ruzQ.js +456 -0
  242. package/dist/index-BKk3ruzQ.js.map +1 -0
  243. package/dist/index-BLjdKVPF.js +18322 -0
  244. package/dist/index-BLjdKVPF.js.map +1 -0
  245. package/dist/index-BOoc_x7l.js +180 -0
  246. package/dist/index-BOoc_x7l.js.map +1 -0
  247. package/dist/index-BeheLXdB.js +441 -0
  248. package/dist/index-BeheLXdB.js.map +1 -0
  249. package/dist/index-BgqBk_dY.js +147 -0
  250. package/dist/index-BgqBk_dY.js.map +1 -0
  251. package/dist/index-Bnorl9_z.js +1372 -0
  252. package/dist/index-Bnorl9_z.js.map +1 -0
  253. package/dist/index-C26sVife.js +967 -0
  254. package/dist/index-C26sVife.js.map +1 -0
  255. package/dist/index-C32JOlST.js +198 -0
  256. package/dist/index-C32JOlST.js.map +1 -0
  257. package/dist/index-C78ZsEMq.js +211 -0
  258. package/dist/index-C78ZsEMq.js.map +1 -0
  259. package/dist/index-C8oew4P6.js +153 -0
  260. package/dist/index-C8oew4P6.js.map +1 -0
  261. package/dist/index-CNlrW5cy.js +126 -0
  262. package/dist/index-CNlrW5cy.js.map +1 -0
  263. package/dist/index-CWtAW9yD.js +70 -0
  264. package/dist/index-CWtAW9yD.js.map +1 -0
  265. package/dist/index-CZYTg7wq.js +7258 -0
  266. package/dist/index-CZYTg7wq.js.map +1 -0
  267. package/dist/index-CcLQYms1.js +109 -0
  268. package/dist/index-CcLQYms1.js.map +1 -0
  269. package/dist/index-Cmdv-EKc.js +3987 -0
  270. package/dist/index-Cmdv-EKc.js.map +1 -0
  271. package/dist/index-D0jIxjP5.js +611 -0
  272. package/dist/index-D0jIxjP5.js.map +1 -0
  273. package/dist/index-D1RMkx4Z.js +73 -0
  274. package/dist/index-D1RMkx4Z.js.map +1 -0
  275. package/dist/index-D80ztMVu.js +7481 -0
  276. package/dist/index-D80ztMVu.js.map +1 -0
  277. package/dist/index-D9I51xNN.js +124 -0
  278. package/dist/index-D9I51xNN.js.map +1 -0
  279. package/dist/index-DC3uHGx5.js +281 -0
  280. package/dist/index-DC3uHGx5.js.map +1 -0
  281. package/dist/index-DKaSbFmS.js +62 -0
  282. package/dist/index-DKaSbFmS.js.map +1 -0
  283. package/dist/index-DMfKX7xa.js +52 -0
  284. package/dist/index-DMfKX7xa.js.map +1 -0
  285. package/dist/index-DRONCFaf.js +521 -0
  286. package/dist/index-DRONCFaf.js.map +1 -0
  287. package/dist/index-DWU2cJP9.js +984 -0
  288. package/dist/index-DWU2cJP9.js.map +1 -0
  289. package/dist/index-Dk1HiwFn.js +110 -0
  290. package/dist/index-Dk1HiwFn.js.map +1 -0
  291. package/dist/index-DoDZtBzt.js +257 -0
  292. package/dist/index-DoDZtBzt.js.map +1 -0
  293. package/dist/index-DrMicDEk.js +8825 -0
  294. package/dist/index-DrMicDEk.js.map +1 -0
  295. package/dist/index-DwCIGVjJ.js +2277 -0
  296. package/dist/index-DwCIGVjJ.js.map +1 -0
  297. package/dist/index-G39WAG_u.js +249 -0
  298. package/dist/index-G39WAG_u.js.map +1 -0
  299. package/dist/index-LKmHdTip.js +120 -0
  300. package/dist/index-LKmHdTip.js.map +1 -0
  301. package/dist/index-Q4ByiA8h.js +92 -0
  302. package/dist/index-Q4ByiA8h.js.map +1 -0
  303. package/dist/index-WWBlLBf0.js +286 -0
  304. package/dist/index-WWBlLBf0.js.map +1 -0
  305. package/dist/index-YriocA8k.js +542 -0
  306. package/dist/index-YriocA8k.js.map +1 -0
  307. package/dist/index-iZY344lJ.js +131 -0
  308. package/dist/index-iZY344lJ.js.map +1 -0
  309. package/dist/index-jvpHgQNC.js +1178 -0
  310. package/dist/index-jvpHgQNC.js.map +1 -0
  311. package/dist/index-l79JdXA-.js +198 -0
  312. package/dist/index-l79JdXA-.js.map +1 -0
  313. package/dist/index-ln8WeuTF.js +520 -0
  314. package/dist/index-ln8WeuTF.js.map +1 -0
  315. package/dist/index-qKPbj0fN.js +147 -0
  316. package/dist/index-qKPbj0fN.js.map +1 -0
  317. package/dist/index-vbfIJzga.js +182 -0
  318. package/dist/index-vbfIJzga.js.map +1 -0
  319. package/dist/index-ydt0zLSU.js +716 -0
  320. package/dist/index-ydt0zLSU.js.map +1 -0
  321. package/dist/index.es-DRqDW831.js +8503 -0
  322. package/dist/index.es-DRqDW831.js.map +1 -0
  323. package/dist/info-2WDwQZjB.js +8 -0
  324. package/dist/info-2WDwQZjB.js.map +1 -0
  325. package/dist/info-circle-CtSQ1Thr.js +17 -0
  326. package/dist/info-circle-CtSQ1Thr.js.map +1 -0
  327. package/dist/jsxRuntime.module-xbg0Y-2w.js +14 -0
  328. package/dist/jsxRuntime.module-xbg0Y-2w.js.map +1 -0
  329. package/dist/lightbulb-BSt44yHY.js +8 -0
  330. package/dist/lightbulb-BSt44yHY.js.map +1 -0
  331. package/dist/localBatchGatewayRequest-BfhYO3yz.js +103 -0
  332. package/dist/localBatchGatewayRequest-BfhYO3yz.js.map +1 -0
  333. package/dist/mail-BrPzu8JI.js +13 -0
  334. package/dist/mail-BrPzu8JI.js.map +1 -0
  335. package/dist/metamask-sdk-BH2upH2a.js +16699 -0
  336. package/dist/metamask-sdk-BH2upH2a.js.map +1 -0
  337. package/dist/mobile-qOQzY1mQ.js +14 -0
  338. package/dist/mobile-qOQzY1mQ.js.map +1 -0
  339. package/dist/more-Q55BhoHR.js +16 -0
  340. package/dist/more-Q55BhoHR.js.map +1 -0
  341. package/dist/native-NhO1oTAz.js +17 -0
  342. package/dist/native-NhO1oTAz.js.map +1 -0
  343. package/dist/network-placeholder-CNNFAqAN.js +19 -0
  344. package/dist/network-placeholder-CNNFAqAN.js.map +1 -0
  345. package/dist/nftPlaceholder-XepUac1F.js +13 -0
  346. package/dist/nftPlaceholder-XepUac1F.js.map +1 -0
  347. package/dist/off-B5pFs_h0.js +13 -0
  348. package/dist/off-B5pFs_h0.js.map +1 -0
  349. package/dist/onramp-Cmf4-Qlj.js +979 -0
  350. package/dist/onramp-Cmf4-Qlj.js.map +1 -0
  351. package/dist/parseAbiParameters-DfJcIE_w.js +757 -0
  352. package/dist/parseAbiParameters-DfJcIE_w.js.map +1 -0
  353. package/dist/parseSignature-DLIuU8h-.js +4690 -0
  354. package/dist/parseSignature-DLIuU8h-.js.map +1 -0
  355. package/dist/pay-with-exchange-BiRfWQtt.js +603 -0
  356. package/dist/pay-with-exchange-BiRfWQtt.js.map +1 -0
  357. package/dist/play-store-CHMgTh6o.js +37 -0
  358. package/dist/play-store-CHMgTh6o.js.map +1 -0
  359. package/dist/plus-DAYpNXcX.js +18 -0
  360. package/dist/plus-DAYpNXcX.js.map +1 -0
  361. package/dist/property-8UcTqffH.js +623 -0
  362. package/dist/property-8UcTqffH.js.map +1 -0
  363. package/dist/qr-code-5EvgAs5C.js +11 -0
  364. package/dist/qr-code-5EvgAs5C.js.map +1 -0
  365. package/dist/receive-oh6JkMzT.js +262 -0
  366. package/dist/receive-oh6JkMzT.js.map +1 -0
  367. package/dist/recycle-horizontal-C0EVYvdu.js +14 -0
  368. package/dist/recycle-horizontal-C0EVYvdu.js.map +1 -0
  369. package/dist/ref-DYqCwuKj.js +43 -0
  370. package/dist/ref-DYqCwuKj.js.map +1 -0
  371. package/dist/refresh-Tz7Hx6xG.js +13 -0
  372. package/dist/refresh-Tz7Hx6xG.js.map +1 -0
  373. package/dist/reown-logo-DKFEGfm5.js +17 -0
  374. package/dist/reown-logo-DKFEGfm5.js.map +1 -0
  375. package/dist/search-DJmD5Dmk.js +13 -0
  376. package/dist/search-DJmD5Dmk.js.map +1 -0
  377. package/dist/secp256k1-ZaBTFi_B.js +2031 -0
  378. package/dist/secp256k1-ZaBTFi_B.js.map +1 -0
  379. package/dist/send-CkjE5TE2.js +1365 -0
  380. package/dist/send-CkjE5TE2.js.map +1 -0
  381. package/dist/send-DcwwYxtP.js +20 -0
  382. package/dist/send-DcwwYxtP.js.map +1 -0
  383. package/dist/socials-TnAlgPAE.js +796 -0
  384. package/dist/socials-TnAlgPAE.js.map +1 -0
  385. package/dist/swapHorizontal-Zswl5rJe.js +13 -0
  386. package/dist/swapHorizontal-Zswl5rJe.js.map +1 -0
  387. package/dist/swapHorizontalBold-NXydKsqQ.js +13 -0
  388. package/dist/swapHorizontalBold-NXydKsqQ.js.map +1 -0
  389. package/dist/swapHorizontalMedium-HEMBHJa5.js +21 -0
  390. package/dist/swapHorizontalMedium-HEMBHJa5.js.map +1 -0
  391. package/dist/swapHorizontalRoundedBold-fNHd25RU.js +13 -0
  392. package/dist/swapHorizontalRoundedBold-fNHd25RU.js.map +1 -0
  393. package/dist/swapVertical-BcCPonRa.js +13 -0
  394. package/dist/swapVertical-BcCPonRa.js.map +1 -0
  395. package/dist/swaps-Cz2XSX5K.js +2121 -0
  396. package/dist/swaps-Cz2XSX5K.js.map +1 -0
  397. package/dist/telegram-CRGTc0Vs.js +21 -0
  398. package/dist/telegram-CRGTc0Vs.js.map +1 -0
  399. package/dist/three-dots-CprpVKTn.js +10 -0
  400. package/dist/three-dots-CprpVKTn.js.map +1 -0
  401. package/dist/transactions-ItRrEBwI.js +38 -0
  402. package/dist/transactions-ItRrEBwI.js.map +1 -0
  403. package/dist/twitch-vWuHTtgh.js +23 -0
  404. package/dist/twitch-vWuHTtgh.js.map +1 -0
  405. package/dist/twitterIcon-Bo4HL4oD.js +11 -0
  406. package/dist/twitterIcon-Bo4HL4oD.js.map +1 -0
  407. package/dist/vanilla-CgG5xMJO.js +448 -0
  408. package/dist/vanilla-CgG5xMJO.js.map +1 -0
  409. package/dist/verify-PpZz6LN4.js +13 -0
  410. package/dist/verify-PpZz6LN4.js.map +1 -0
  411. package/dist/verify-filled-CUpk2g5N.js +13 -0
  412. package/dist/verify-filled-CUpk2g5N.js.map +1 -0
  413. package/dist/w3m-modal-BZQIOBsI.js +1725 -0
  414. package/dist/w3m-modal-BZQIOBsI.js.map +1 -0
  415. package/dist/w3m-modal-D5sYObzl.js +2008 -0
  416. package/dist/w3m-modal-D5sYObzl.js.map +1 -0
  417. package/dist/wallet-Blc0Swur.js +13 -0
  418. package/dist/wallet-Blc0Swur.js.map +1 -0
  419. package/dist/wallet-placeholder-DkGnPkjp.js +19 -0
  420. package/dist/wallet-placeholder-DkGnPkjp.js.map +1 -0
  421. package/dist/wallet-standard-CDzUhZ2i.js +523 -0
  422. package/dist/wallet-standard-CDzUhZ2i.js.map +1 -0
  423. package/dist/walletconnect-CfJMuRWG.js +39 -0
  424. package/dist/walletconnect-CfJMuRWG.js.map +1 -0
  425. package/dist/warning-circle-BW2kbw7R.js +17 -0
  426. package/dist/warning-circle-BW2kbw7R.js.map +1 -0
  427. package/dist/x-CT_VClTi.js +17 -0
  428. package/dist/x-CT_VClTi.js.map +1 -0
  429. package/package.json +10 -10
@@ -0,0 +1,1582 @@
1
+ import { b7 as getDefaultExportFromCjs, b8 as commonjsGlobal, m as css, o as i, x, r as resetStyles, C as ChainController, b9 as TransactionsController, a as CoreHelperUtil, R as RouterController, O as OptionsController, E as EventsController, y as getPreferredAccountType, W as W3mFrameRpcConstants } from "./appkit-BelUXm_6.js";
2
+ import { n, r } from "./class-map-ZEs4CrSH.js";
3
+ import { U as UiHelperUtil, c as customElement } from "./index-jvpHgQNC.js";
4
+ import "./index-CNlrW5cy.js";
5
+ import "./index-LKmHdTip.js";
6
+ import { o } from "./if-defined-CZFxJBnA.js";
7
+ import "./index-BgqBk_dY.js";
8
+ import "./index-CWtAW9yD.js";
9
+ var dayjs_min = { exports: {} };
10
+ (function(module, exports) {
11
+ !(function(t, e) {
12
+ module.exports = e();
13
+ })(commonjsGlobal, (function() {
14
+ var t = 1e3, e = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o2 = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
15
+ var e2 = ["th", "st", "nd", "rd"], n3 = t2 % 100;
16
+ return "[" + t2 + (e2[(n3 - 20) % 10] || e2[n3] || e2[0]) + "]";
17
+ } }, m = function(t2, e2, n3) {
18
+ var r3 = String(t2);
19
+ return !r3 || r3.length >= e2 ? t2 : "" + Array(e2 + 1 - r3.length).join(n3) + t2;
20
+ }, v = { s: m, z: function(t2) {
21
+ var e2 = -t2.utcOffset(), n3 = Math.abs(e2), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
22
+ return (e2 <= 0 ? "+" : "-") + m(r3, 2, "0") + ":" + m(i3, 2, "0");
23
+ }, m: function t2(e2, n3) {
24
+ if (e2.date() < n3.date()) return -t2(n3, e2);
25
+ var r3 = 12 * (n3.year() - e2.year()) + (n3.month() - e2.month()), i3 = e2.clone().add(r3, c), s2 = n3 - i3 < 0, u2 = e2.clone().add(r3 + (s2 ? -1 : 1), c);
26
+ return +(-(r3 + (n3 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
27
+ }, a: function(t2) {
28
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
29
+ }, p: function(t2) {
30
+ return { M: c, y: h, w: o2, d: a, D: d, h: u, m: s, s: i2, ms: r2, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
31
+ }, u: function(t2) {
32
+ return void 0 === t2;
33
+ } }, g = "en", D = {};
34
+ D[g] = M;
35
+ var p = "$isDayjsObject", S = function(t2) {
36
+ return t2 instanceof _ || !(!t2 || !t2[p]);
37
+ }, w = function t2(e2, n3, r3) {
38
+ var i3;
39
+ if (!e2) return g;
40
+ if ("string" == typeof e2) {
41
+ var s2 = e2.toLowerCase();
42
+ D[s2] && (i3 = s2), n3 && (D[s2] = n3, i3 = s2);
43
+ var u2 = e2.split("-");
44
+ if (!i3 && u2.length > 1) return t2(u2[0]);
45
+ } else {
46
+ var a2 = e2.name;
47
+ D[a2] = e2, i3 = a2;
48
+ }
49
+ return !r3 && i3 && (g = i3), i3 || !r3 && g;
50
+ }, O = function(t2, e2) {
51
+ if (S(t2)) return t2.clone();
52
+ var n3 = "object" == typeof e2 ? e2 : {};
53
+ return n3.date = t2, n3.args = arguments, new _(n3);
54
+ }, b = v;
55
+ b.l = w, b.i = S, b.w = function(t2, e2) {
56
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
57
+ };
58
+ var _ = (function() {
59
+ function M2(t2) {
60
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
61
+ }
62
+ var m2 = M2.prototype;
63
+ return m2.parse = function(t2) {
64
+ this.$d = (function(t3) {
65
+ var e2 = t3.date, n3 = t3.utc;
66
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
67
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
68
+ if (e2 instanceof Date) return new Date(e2);
69
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
70
+ var r3 = e2.match($);
71
+ if (r3) {
72
+ var i3 = r3[2] - 1 || 0, s2 = (r3[7] || "0").substring(0, 3);
73
+ return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s2);
74
+ }
75
+ }
76
+ return new Date(e2);
77
+ })(t2), this.init();
78
+ }, m2.init = function() {
79
+ var t2 = this.$d;
80
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
81
+ }, m2.$utils = function() {
82
+ return b;
83
+ }, m2.isValid = function() {
84
+ return !(this.$d.toString() === l);
85
+ }, m2.isSame = function(t2, e2) {
86
+ var n3 = O(t2);
87
+ return this.startOf(e2) <= n3 && n3 <= this.endOf(e2);
88
+ }, m2.isAfter = function(t2, e2) {
89
+ return O(t2) < this.startOf(e2);
90
+ }, m2.isBefore = function(t2, e2) {
91
+ return this.endOf(e2) < O(t2);
92
+ }, m2.$g = function(t2, e2, n3) {
93
+ return b.u(t2) ? this[e2] : this.set(n3, t2);
94
+ }, m2.unix = function() {
95
+ return Math.floor(this.valueOf() / 1e3);
96
+ }, m2.valueOf = function() {
97
+ return this.$d.getTime();
98
+ }, m2.startOf = function(t2, e2) {
99
+ var n3 = this, r3 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
100
+ var i3 = b.w(n3.$u ? Date.UTC(n3.$y, e3, t3) : new Date(n3.$y, e3, t3), n3);
101
+ return r3 ? i3 : i3.endOf(a);
102
+ }, $2 = function(t3, e3) {
103
+ return b.w(n3.toDate()[t3].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n3);
104
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
105
+ switch (f2) {
106
+ case h:
107
+ return r3 ? l2(1, 0) : l2(31, 11);
108
+ case c:
109
+ return r3 ? l2(1, M3) : l2(0, M3 + 1);
110
+ case o2:
111
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
112
+ return l2(r3 ? m3 - D2 : m3 + (6 - D2), M3);
113
+ case a:
114
+ case d:
115
+ return $2(v2 + "Hours", 0);
116
+ case u:
117
+ return $2(v2 + "Minutes", 1);
118
+ case s:
119
+ return $2(v2 + "Seconds", 2);
120
+ case i2:
121
+ return $2(v2 + "Milliseconds", 3);
122
+ default:
123
+ return this.clone();
124
+ }
125
+ }, m2.endOf = function(t2) {
126
+ return this.startOf(t2, false);
127
+ }, m2.$set = function(t2, e2) {
128
+ var n3, o3 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n3 = {}, n3[a] = f2 + "Date", n3[d] = f2 + "Date", n3[c] = f2 + "Month", n3[h] = f2 + "FullYear", n3[u] = f2 + "Hours", n3[s] = f2 + "Minutes", n3[i2] = f2 + "Seconds", n3[r2] = f2 + "Milliseconds", n3)[o3], $2 = o3 === a ? this.$D + (e2 - this.$W) : e2;
129
+ if (o3 === c || o3 === h) {
130
+ var y2 = this.clone().set(d, 1);
131
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
132
+ } else l2 && this.$d[l2]($2);
133
+ return this.init(), this;
134
+ }, m2.set = function(t2, e2) {
135
+ return this.clone().$set(t2, e2);
136
+ }, m2.get = function(t2) {
137
+ return this[b.p(t2)]();
138
+ }, m2.add = function(r3, f2) {
139
+ var d2, l2 = this;
140
+ r3 = Number(r3);
141
+ var $2 = b.p(f2), y2 = function(t2) {
142
+ var e2 = O(l2);
143
+ return b.w(e2.date(e2.date() + Math.round(t2 * r3)), l2);
144
+ };
145
+ if ($2 === c) return this.set(c, this.$M + r3);
146
+ if ($2 === h) return this.set(h, this.$y + r3);
147
+ if ($2 === a) return y2(1);
148
+ if ($2 === o2) return y2(7);
149
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n2, d2[i2] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r3 * M3;
150
+ return b.w(m3, this);
151
+ }, m2.subtract = function(t2, e2) {
152
+ return this.add(-1 * t2, e2);
153
+ }, m2.format = function(t2) {
154
+ var e2 = this, n3 = this.$locale();
155
+ if (!this.isValid()) return n3.invalidDate || l;
156
+ var r3 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o3 = n3.weekdays, c2 = n3.months, f2 = n3.meridiem, h2 = function(t3, n4, i4, s3) {
157
+ return t3 && (t3[n4] || t3(e2, r3)) || i4[n4].slice(0, s3);
158
+ }, d2 = function(t3) {
159
+ return b.s(s2 % 12 || 12, t3, "0");
160
+ }, $2 = f2 || function(t3, e3, n4) {
161
+ var r4 = t3 < 12 ? "AM" : "PM";
162
+ return n4 ? r4.toLowerCase() : r4;
163
+ };
164
+ return r3.replace(y, (function(t3, r4) {
165
+ return r4 || (function(t4) {
166
+ switch (t4) {
167
+ case "YY":
168
+ return String(e2.$y).slice(-2);
169
+ case "YYYY":
170
+ return b.s(e2.$y, 4, "0");
171
+ case "M":
172
+ return a2 + 1;
173
+ case "MM":
174
+ return b.s(a2 + 1, 2, "0");
175
+ case "MMM":
176
+ return h2(n3.monthsShort, a2, c2, 3);
177
+ case "MMMM":
178
+ return h2(c2, a2);
179
+ case "D":
180
+ return e2.$D;
181
+ case "DD":
182
+ return b.s(e2.$D, 2, "0");
183
+ case "d":
184
+ return String(e2.$W);
185
+ case "dd":
186
+ return h2(n3.weekdaysMin, e2.$W, o3, 2);
187
+ case "ddd":
188
+ return h2(n3.weekdaysShort, e2.$W, o3, 3);
189
+ case "dddd":
190
+ return o3[e2.$W];
191
+ case "H":
192
+ return String(s2);
193
+ case "HH":
194
+ return b.s(s2, 2, "0");
195
+ case "h":
196
+ return d2(1);
197
+ case "hh":
198
+ return d2(2);
199
+ case "a":
200
+ return $2(s2, u2, true);
201
+ case "A":
202
+ return $2(s2, u2, false);
203
+ case "m":
204
+ return String(u2);
205
+ case "mm":
206
+ return b.s(u2, 2, "0");
207
+ case "s":
208
+ return String(e2.$s);
209
+ case "ss":
210
+ return b.s(e2.$s, 2, "0");
211
+ case "SSS":
212
+ return b.s(e2.$ms, 3, "0");
213
+ case "Z":
214
+ return i3;
215
+ }
216
+ return null;
217
+ })(t3) || i3.replace(":", "");
218
+ }));
219
+ }, m2.utcOffset = function() {
220
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
221
+ }, m2.diff = function(r3, d2, l2) {
222
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r3), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
223
+ return b.m(y2, m3);
224
+ };
225
+ switch (M3) {
226
+ case h:
227
+ $2 = D2() / 12;
228
+ break;
229
+ case c:
230
+ $2 = D2();
231
+ break;
232
+ case f:
233
+ $2 = D2() / 3;
234
+ break;
235
+ case o2:
236
+ $2 = (g2 - v2) / 6048e5;
237
+ break;
238
+ case a:
239
+ $2 = (g2 - v2) / 864e5;
240
+ break;
241
+ case u:
242
+ $2 = g2 / n2;
243
+ break;
244
+ case s:
245
+ $2 = g2 / e;
246
+ break;
247
+ case i2:
248
+ $2 = g2 / t;
249
+ break;
250
+ default:
251
+ $2 = g2;
252
+ }
253
+ return l2 ? $2 : b.a($2);
254
+ }, m2.daysInMonth = function() {
255
+ return this.endOf(c).$D;
256
+ }, m2.$locale = function() {
257
+ return D[this.$L];
258
+ }, m2.locale = function(t2, e2) {
259
+ if (!t2) return this.$L;
260
+ var n3 = this.clone(), r3 = w(t2, e2, true);
261
+ return r3 && (n3.$L = r3), n3;
262
+ }, m2.clone = function() {
263
+ return b.w(this.$d, this);
264
+ }, m2.toDate = function() {
265
+ return new Date(this.valueOf());
266
+ }, m2.toJSON = function() {
267
+ return this.isValid() ? this.toISOString() : null;
268
+ }, m2.toISOString = function() {
269
+ return this.$d.toISOString();
270
+ }, m2.toString = function() {
271
+ return this.$d.toUTCString();
272
+ }, M2;
273
+ })(), k = _.prototype;
274
+ return O.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t2) {
275
+ k[t2[1]] = function(e2) {
276
+ return this.$g(e2, t2[0], t2[1]);
277
+ };
278
+ })), O.extend = function(t2, e2) {
279
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
280
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
281
+ return O(1e3 * t2);
282
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
283
+ }));
284
+ })(dayjs_min);
285
+ var dayjs_minExports = dayjs_min.exports;
286
+ const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
287
+ var en = { exports: {} };
288
+ (function(module, exports) {
289
+ !(function(e, n2) {
290
+ module.exports = n2();
291
+ })(commonjsGlobal, (function() {
292
+ return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(e) {
293
+ var n2 = ["th", "st", "nd", "rd"], t = e % 100;
294
+ return "[" + e + (n2[(t - 20) % 10] || n2[t] || n2[0]) + "]";
295
+ } };
296
+ }));
297
+ })(en);
298
+ var enExports = en.exports;
299
+ const englishLocale = /* @__PURE__ */ getDefaultExportFromCjs(enExports);
300
+ var relativeTime$1 = { exports: {} };
301
+ (function(module, exports) {
302
+ !(function(r2, e) {
303
+ module.exports = e();
304
+ })(commonjsGlobal, (function() {
305
+ return function(r2, e, t) {
306
+ r2 = r2 || {};
307
+ var n2 = e.prototype, o2 = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
308
+ function i2(r3, e2, t2, o3) {
309
+ return n2.fromToBase(r3, e2, t2, o3);
310
+ }
311
+ t.en.relativeTime = o2, n2.fromToBase = function(e2, n3, i3, d2, u) {
312
+ for (var f, a, s, l = i3.$locale().relativeTime || o2, h = r2.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
313
+ var y = h[c];
314
+ y.d && (f = d2 ? t(e2).diff(i3, y.d, true) : i3.diff(e2, y.d, true));
315
+ var p = (r2.rounding || Math.round)(Math.abs(f));
316
+ if (s = f > 0, p <= y.r || !y.r) {
317
+ p <= 1 && c > 0 && (y = h[c - 1]);
318
+ var v = l[y.l];
319
+ u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n3, y.l, s);
320
+ break;
321
+ }
322
+ }
323
+ if (n3) return a;
324
+ var M = s ? l.future : l.past;
325
+ return "function" == typeof M ? M(a) : M.replace("%s", a);
326
+ }, n2.to = function(r3, e2) {
327
+ return i2(r3, e2, this, true);
328
+ }, n2.from = function(r3, e2) {
329
+ return i2(r3, e2, this);
330
+ };
331
+ var d = function(r3) {
332
+ return r3.$u ? t.utc() : t();
333
+ };
334
+ n2.toNow = function(r3) {
335
+ return this.to(d(this), r3);
336
+ }, n2.fromNow = function(r3) {
337
+ return this.from(d(this), r3);
338
+ };
339
+ };
340
+ }));
341
+ })(relativeTime$1);
342
+ var relativeTimeExports = relativeTime$1.exports;
343
+ const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
344
+ var updateLocale$1 = { exports: {} };
345
+ (function(module, exports) {
346
+ !(function(e, n2) {
347
+ module.exports = n2();
348
+ })(commonjsGlobal, (function() {
349
+ return function(e, n2, t) {
350
+ t.updateLocale = function(e2, n3) {
351
+ var o2 = t.Ls[e2];
352
+ if (o2) return (n3 ? Object.keys(n3) : []).forEach((function(e3) {
353
+ o2[e3] = n3[e3];
354
+ })), o2;
355
+ };
356
+ };
357
+ }));
358
+ })(updateLocale$1);
359
+ var updateLocaleExports = updateLocale$1.exports;
360
+ const updateLocale = /* @__PURE__ */ getDefaultExportFromCjs(updateLocaleExports);
361
+ dayjs.extend(relativeTime);
362
+ dayjs.extend(updateLocale);
363
+ const localeObject = {
364
+ ...englishLocale,
365
+ name: "en-web3-modal",
366
+ relativeTime: {
367
+ future: "in %s",
368
+ past: "%s ago",
369
+ s: "%d sec",
370
+ m: "1 min",
371
+ mm: "%d min",
372
+ h: "1 hr",
373
+ hh: "%d hrs",
374
+ d: "1 d",
375
+ dd: "%d d",
376
+ M: "1 mo",
377
+ MM: "%d mo",
378
+ y: "1 yr",
379
+ yy: "%d yr"
380
+ }
381
+ };
382
+ const MONTH_NAMES = [
383
+ "January",
384
+ "February",
385
+ "March",
386
+ "April",
387
+ "May",
388
+ "June",
389
+ "July",
390
+ "August",
391
+ "September",
392
+ "October",
393
+ "November",
394
+ "December"
395
+ ];
396
+ dayjs.locale("en-web3-modal", localeObject);
397
+ const DateUtil = {
398
+ getMonthNameByIndex(monthIndex) {
399
+ return MONTH_NAMES[monthIndex];
400
+ },
401
+ getYear(date = (/* @__PURE__ */ new Date()).toISOString()) {
402
+ return dayjs(date).year();
403
+ },
404
+ getRelativeDateFromNow(date) {
405
+ return dayjs(date).locale("en-web3-modal").fromNow(true);
406
+ },
407
+ formatDate(date, format = "DD MMM") {
408
+ return dayjs(date).format(format);
409
+ }
410
+ };
411
+ const FLOAT_FIXED_VALUE = 3;
412
+ const GAS_FEE_THRESHOLD = 0.1;
413
+ const plusTypes = ["receive", "deposit", "borrow", "claim"];
414
+ const minusTypes = ["withdraw", "repay", "burn"];
415
+ const TransactionUtil = {
416
+ getTransactionGroupTitle(year, month) {
417
+ const currentYear = DateUtil.getYear();
418
+ const monthName = DateUtil.getMonthNameByIndex(month);
419
+ const isCurrentYear = year === currentYear;
420
+ const groupTitle = isCurrentYear ? monthName : `${monthName} ${year}`;
421
+ return groupTitle;
422
+ },
423
+ getTransactionImages(transfers) {
424
+ const [transfer] = transfers;
425
+ const hasMultipleTransfers = (transfers == null ? void 0 : transfers.length) > 1;
426
+ if (hasMultipleTransfers) {
427
+ return transfers.map((item) => this.getTransactionImage(item));
428
+ }
429
+ return [this.getTransactionImage(transfer)];
430
+ },
431
+ getTransactionImage(transfer) {
432
+ return {
433
+ type: TransactionUtil.getTransactionTransferTokenType(transfer),
434
+ url: TransactionUtil.getTransactionImageURL(transfer)
435
+ };
436
+ },
437
+ getTransactionImageURL(transfer) {
438
+ var _a, _b, _c, _d, _e;
439
+ let imageURL = void 0;
440
+ const isNFT = Boolean(transfer == null ? void 0 : transfer.nft_info);
441
+ const isFungible = Boolean(transfer == null ? void 0 : transfer.fungible_info);
442
+ if (transfer && isNFT) {
443
+ imageURL = (_c = (_b = (_a = transfer == null ? void 0 : transfer.nft_info) == null ? void 0 : _a.content) == null ? void 0 : _b.preview) == null ? void 0 : _c.url;
444
+ } else if (transfer && isFungible) {
445
+ imageURL = (_e = (_d = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _d.icon) == null ? void 0 : _e.url;
446
+ }
447
+ return imageURL;
448
+ },
449
+ getTransactionTransferTokenType(transfer) {
450
+ if (transfer == null ? void 0 : transfer.fungible_info) {
451
+ return "FUNGIBLE";
452
+ } else if (transfer == null ? void 0 : transfer.nft_info) {
453
+ return "NFT";
454
+ }
455
+ return void 0;
456
+ },
457
+ getTransactionDescriptions(transaction, mergedTransfers) {
458
+ var _a;
459
+ const type = (_a = transaction == null ? void 0 : transaction.metadata) == null ? void 0 : _a.operationType;
460
+ const transfers = mergedTransfers || (transaction == null ? void 0 : transaction.transfers);
461
+ const hasTransfer = transfers && transfers.length > 0;
462
+ const hasMultipleTransfers = transfers && transfers.length > 1;
463
+ const isFungible = hasTransfer && transfers.every((transfer) => Boolean(transfer == null ? void 0 : transfer.fungible_info));
464
+ const [firstTransfer, secondTransfer] = transfers || [];
465
+ let firstDescription = this.getTransferDescription(firstTransfer);
466
+ let secondDescription = this.getTransferDescription(secondTransfer);
467
+ if (!hasTransfer) {
468
+ const isSendOrReceive = type === "send" || type === "receive";
469
+ if (isSendOrReceive && isFungible) {
470
+ firstDescription = UiHelperUtil.getTruncateString({
471
+ string: transaction == null ? void 0 : transaction.metadata.sentFrom,
472
+ charsStart: 4,
473
+ charsEnd: 6,
474
+ truncate: "middle"
475
+ });
476
+ secondDescription = UiHelperUtil.getTruncateString({
477
+ string: transaction == null ? void 0 : transaction.metadata.sentTo,
478
+ charsStart: 4,
479
+ charsEnd: 6,
480
+ truncate: "middle"
481
+ });
482
+ return [firstDescription, secondDescription];
483
+ }
484
+ return [transaction.metadata.status];
485
+ }
486
+ if (hasMultipleTransfers) {
487
+ return transfers == null ? void 0 : transfers.map((item) => this.getTransferDescription(item));
488
+ }
489
+ let prefix = "";
490
+ if (plusTypes.includes(type)) {
491
+ prefix = "+";
492
+ } else if (minusTypes.includes(type)) {
493
+ prefix = "-";
494
+ }
495
+ firstDescription = prefix.concat(firstDescription);
496
+ return [firstDescription];
497
+ },
498
+ getTransferDescription(transfer) {
499
+ var _a;
500
+ let description = "";
501
+ if (!transfer) {
502
+ return description;
503
+ }
504
+ if (transfer == null ? void 0 : transfer.nft_info) {
505
+ description = ((_a = transfer == null ? void 0 : transfer.nft_info) == null ? void 0 : _a.name) || "-";
506
+ } else if (transfer == null ? void 0 : transfer.fungible_info) {
507
+ description = this.getFungibleTransferDescription(transfer) || "-";
508
+ }
509
+ return description;
510
+ },
511
+ getFungibleTransferDescription(transfer) {
512
+ var _a;
513
+ if (!transfer) {
514
+ return null;
515
+ }
516
+ const quantity = this.getQuantityFixedValue(transfer == null ? void 0 : transfer.quantity.numeric);
517
+ const description = [quantity, (_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.symbol].join(" ").trim();
518
+ return description;
519
+ },
520
+ mergeTransfers(transfers) {
521
+ if ((transfers == null ? void 0 : transfers.length) <= 1) {
522
+ return transfers;
523
+ }
524
+ const filteredTransfers = this.filterGasFeeTransfers(transfers);
525
+ const mergedTransfers = filteredTransfers.reduce((acc, t) => {
526
+ var _a;
527
+ const name = (_a = t == null ? void 0 : t.fungible_info) == null ? void 0 : _a.name;
528
+ const existingTransfer = acc.find(({ fungible_info, direction }) => name && name === (fungible_info == null ? void 0 : fungible_info.name) && direction === t.direction);
529
+ if (existingTransfer) {
530
+ const quantity = Number(existingTransfer.quantity.numeric) + Number(t.quantity.numeric);
531
+ existingTransfer.quantity.numeric = quantity.toString();
532
+ existingTransfer.value = (existingTransfer.value || 0) + (t.value || 0);
533
+ } else {
534
+ acc.push(t);
535
+ }
536
+ return acc;
537
+ }, []);
538
+ let finalTransfers = mergedTransfers;
539
+ if (mergedTransfers.length > 2) {
540
+ finalTransfers = mergedTransfers.sort((a, b) => (b.value || 0) - (a.value || 0)).slice(0, 2);
541
+ }
542
+ finalTransfers = finalTransfers.sort((a, b) => {
543
+ if (a.direction === "out" && b.direction === "in") {
544
+ return -1;
545
+ }
546
+ if (a.direction === "in" && b.direction === "out") {
547
+ return 1;
548
+ }
549
+ return 0;
550
+ });
551
+ return finalTransfers;
552
+ },
553
+ filterGasFeeTransfers(transfers) {
554
+ const tokenGroups = transfers == null ? void 0 : transfers.reduce((groups, transfer) => {
555
+ var _a;
556
+ const tokenName = (_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.name;
557
+ if (tokenName) {
558
+ if (!groups[tokenName]) {
559
+ groups[tokenName] = [];
560
+ }
561
+ groups[tokenName].push(transfer);
562
+ }
563
+ return groups;
564
+ }, {});
565
+ const filteredTransfers = [];
566
+ Object.values(tokenGroups ?? {}).forEach((tokenTransfers) => {
567
+ if (tokenTransfers.length === 1) {
568
+ const firstTransfer = tokenTransfers[0];
569
+ if (firstTransfer) {
570
+ filteredTransfers.push(firstTransfer);
571
+ }
572
+ } else {
573
+ const inTransfers = tokenTransfers.filter((t) => t.direction === "in");
574
+ const outTransfers = tokenTransfers.filter((t) => t.direction === "out");
575
+ if (inTransfers.length === 1 && outTransfers.length === 1) {
576
+ const inTransfer = inTransfers[0];
577
+ const outTransfer = outTransfers[0];
578
+ let didApplyGasFeeFilter = false;
579
+ if (inTransfer && outTransfer) {
580
+ const inAmount = Number(inTransfer.quantity.numeric);
581
+ const outAmount = Number(outTransfer.quantity.numeric);
582
+ if (outAmount < inAmount * GAS_FEE_THRESHOLD) {
583
+ filteredTransfers.push(inTransfer);
584
+ didApplyGasFeeFilter = true;
585
+ } else if (inAmount < outAmount * GAS_FEE_THRESHOLD) {
586
+ filteredTransfers.push(outTransfer);
587
+ didApplyGasFeeFilter = true;
588
+ }
589
+ }
590
+ if (!didApplyGasFeeFilter) {
591
+ filteredTransfers.push(...tokenTransfers);
592
+ }
593
+ } else {
594
+ const significantTransfers = this.filterGasFeesFromTokenGroup(tokenTransfers);
595
+ filteredTransfers.push(...significantTransfers);
596
+ }
597
+ }
598
+ });
599
+ transfers == null ? void 0 : transfers.forEach((transfer) => {
600
+ var _a;
601
+ if (!((_a = transfer == null ? void 0 : transfer.fungible_info) == null ? void 0 : _a.name)) {
602
+ filteredTransfers.push(transfer);
603
+ }
604
+ });
605
+ return filteredTransfers;
606
+ },
607
+ filterGasFeesFromTokenGroup(tokenTransfers) {
608
+ if (tokenTransfers.length <= 1) {
609
+ return tokenTransfers;
610
+ }
611
+ const amounts = tokenTransfers == null ? void 0 : tokenTransfers.map((t) => Number(t.quantity.numeric));
612
+ const maxAmount = Math.max(...amounts);
613
+ const minAmount = Math.min(...amounts);
614
+ const extremeGasThreshold = 0.01;
615
+ if (minAmount < maxAmount * extremeGasThreshold) {
616
+ const filtered = tokenTransfers == null ? void 0 : tokenTransfers.filter((t) => {
617
+ const amount = Number(t.quantity.numeric);
618
+ return amount >= maxAmount * extremeGasThreshold;
619
+ });
620
+ return filtered;
621
+ }
622
+ const inTransfers = tokenTransfers == null ? void 0 : tokenTransfers.filter((t) => t.direction === "in");
623
+ const outTransfers = tokenTransfers == null ? void 0 : tokenTransfers.filter((t) => t.direction === "out");
624
+ if (inTransfers.length === 1 && outTransfers.length === 1) {
625
+ const inTransfer = inTransfers[0];
626
+ const outTransfer = outTransfers[0];
627
+ if (inTransfer && outTransfer) {
628
+ const inAmount = Number(inTransfer.quantity.numeric);
629
+ const outAmount = Number(outTransfer.quantity.numeric);
630
+ if (outAmount < inAmount * GAS_FEE_THRESHOLD) {
631
+ return [inTransfer];
632
+ } else if (inAmount < outAmount * GAS_FEE_THRESHOLD) {
633
+ return [outTransfer];
634
+ }
635
+ }
636
+ }
637
+ return tokenTransfers;
638
+ },
639
+ getQuantityFixedValue(value) {
640
+ if (!value) {
641
+ return null;
642
+ }
643
+ const parsedValue = parseFloat(value);
644
+ return parsedValue.toFixed(FLOAT_FIXED_VALUE);
645
+ }
646
+ };
647
+ var TransactionTypePastTense;
648
+ (function(TransactionTypePastTense2) {
649
+ TransactionTypePastTense2["approve"] = "approved";
650
+ TransactionTypePastTense2["bought"] = "bought";
651
+ TransactionTypePastTense2["borrow"] = "borrowed";
652
+ TransactionTypePastTense2["burn"] = "burnt";
653
+ TransactionTypePastTense2["cancel"] = "canceled";
654
+ TransactionTypePastTense2["claim"] = "claimed";
655
+ TransactionTypePastTense2["deploy"] = "deployed";
656
+ TransactionTypePastTense2["deposit"] = "deposited";
657
+ TransactionTypePastTense2["execute"] = "executed";
658
+ TransactionTypePastTense2["mint"] = "minted";
659
+ TransactionTypePastTense2["receive"] = "received";
660
+ TransactionTypePastTense2["repay"] = "repaid";
661
+ TransactionTypePastTense2["send"] = "sent";
662
+ TransactionTypePastTense2["sell"] = "sold";
663
+ TransactionTypePastTense2["stake"] = "staked";
664
+ TransactionTypePastTense2["trade"] = "swapped";
665
+ TransactionTypePastTense2["unstake"] = "unstaked";
666
+ TransactionTypePastTense2["withdraw"] = "withdrawn";
667
+ })(TransactionTypePastTense || (TransactionTypePastTense = {}));
668
+ const styles$4 = css`
669
+ :host > wui-flex {
670
+ display: flex;
671
+ justify-content: center;
672
+ align-items: center;
673
+ position: relative;
674
+ width: 40px;
675
+ height: 40px;
676
+ box-shadow: inset 0 0 0 1px ${({ tokens }) => tokens.core.glass010};
677
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
678
+ }
679
+
680
+ :host([data-no-images='true']) > wui-flex {
681
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
682
+ border-radius: ${({ borderRadius }) => borderRadius[3]} !important;
683
+ }
684
+
685
+ :host > wui-flex wui-image {
686
+ display: block;
687
+ }
688
+
689
+ :host > wui-flex,
690
+ :host > wui-flex wui-image,
691
+ .swap-images-container,
692
+ .swap-images-container.nft,
693
+ wui-image.nft {
694
+ border-top-left-radius: var(--local-left-border-radius);
695
+ border-top-right-radius: var(--local-right-border-radius);
696
+ border-bottom-left-radius: var(--local-left-border-radius);
697
+ border-bottom-right-radius: var(--local-right-border-radius);
698
+ }
699
+
700
+ .swap-images-container {
701
+ position: relative;
702
+ width: 40px;
703
+ height: 40px;
704
+ overflow: hidden;
705
+ }
706
+
707
+ .swap-images-container wui-image:first-child {
708
+ position: absolute;
709
+ width: 40px;
710
+ height: 40px;
711
+ top: 0;
712
+ left: 0%;
713
+ clip-path: inset(0px calc(50% + 2px) 0px 0%);
714
+ }
715
+
716
+ .swap-images-container wui-image:last-child {
717
+ clip-path: inset(0px 0px 0px calc(50% + 2px));
718
+ }
719
+
720
+ .swap-fallback-container {
721
+ position: absolute;
722
+ inset: 0;
723
+ width: 40px;
724
+ height: 40px;
725
+ display: flex;
726
+ align-items: center;
727
+ justify-content: center;
728
+ }
729
+
730
+ .swap-fallback-container.first {
731
+ clip-path: inset(0px calc(50% + 2px) 0px 0%);
732
+ }
733
+
734
+ .swap-fallback-container.last {
735
+ clip-path: inset(0px 0px 0px calc(50% + 2px));
736
+ }
737
+
738
+ wui-flex.status-box {
739
+ position: absolute;
740
+ right: 0;
741
+ bottom: 0;
742
+ transform: translate(20%, 20%);
743
+ border-radius: ${({ borderRadius }) => borderRadius[4]};
744
+ background-color: ${({ tokens }) => tokens.theme.backgroundPrimary};
745
+ box-shadow: 0 0 0 2px ${({ tokens }) => tokens.theme.backgroundPrimary};
746
+ overflow: hidden;
747
+ width: 16px;
748
+ height: 16px;
749
+ }
750
+ `;
751
+ var __decorate$4 = function(decorators, target, key, desc) {
752
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
753
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
754
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
755
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
756
+ };
757
+ let WuiTransactionVisual = class WuiTransactionVisual2 extends i {
758
+ constructor() {
759
+ super(...arguments);
760
+ this.images = [];
761
+ this.secondImage = {
762
+ type: void 0,
763
+ url: ""
764
+ };
765
+ this.failedImageUrls = /* @__PURE__ */ new Set();
766
+ }
767
+ handleImageError(url) {
768
+ return (event) => {
769
+ event.stopPropagation();
770
+ this.failedImageUrls.add(url);
771
+ this.requestUpdate();
772
+ };
773
+ }
774
+ render() {
775
+ const [firstImage, secondImage] = this.images;
776
+ if (!this.images.length) {
777
+ this.dataset["noImages"] = "true";
778
+ }
779
+ const isLeftNFT = (firstImage == null ? void 0 : firstImage.type) === "NFT";
780
+ const isRightNFT = (secondImage == null ? void 0 : secondImage.url) ? secondImage.type === "NFT" : isLeftNFT;
781
+ const leftRadius = isLeftNFT ? "var(--apkt-borderRadius-3)" : "var(--apkt-borderRadius-5)";
782
+ const rightRadius = isRightNFT ? "var(--apkt-borderRadius-3)" : "var(--apkt-borderRadius-5)";
783
+ this.style.cssText = `
784
+ --local-left-border-radius: ${leftRadius};
785
+ --local-right-border-radius: ${rightRadius};
786
+ `;
787
+ return x`<wui-flex> ${this.templateVisual()} ${this.templateIcon()} </wui-flex>`;
788
+ }
789
+ templateVisual() {
790
+ const [firstImage, secondImage] = this.images;
791
+ const hasTwoImages = this.images.length === 2;
792
+ if (hasTwoImages && ((firstImage == null ? void 0 : firstImage.url) || (secondImage == null ? void 0 : secondImage.url))) {
793
+ return this.renderSwapImages(firstImage, secondImage);
794
+ }
795
+ if ((firstImage == null ? void 0 : firstImage.url) && !this.failedImageUrls.has(firstImage.url)) {
796
+ return this.renderSingleImage(firstImage);
797
+ }
798
+ if ((firstImage == null ? void 0 : firstImage.type) === "NFT") {
799
+ return this.renderPlaceholderIcon("nftPlaceholder");
800
+ }
801
+ return this.renderPlaceholderIcon("coinPlaceholder");
802
+ }
803
+ renderSwapImages(firstImage, secondImage) {
804
+ return x`<div class="swap-images-container">
805
+ ${(firstImage == null ? void 0 : firstImage.url) ? this.renderImageOrFallback(firstImage, "first", true) : null}
806
+ ${(secondImage == null ? void 0 : secondImage.url) ? this.renderImageOrFallback(secondImage, "last", true) : null}
807
+ </div>`;
808
+ }
809
+ renderSingleImage(image) {
810
+ return this.renderImageOrFallback(image, void 0, false);
811
+ }
812
+ renderImageOrFallback(image, position, isInSwapContainer = false) {
813
+ if (!image.url) {
814
+ return null;
815
+ }
816
+ if (this.failedImageUrls.has(image.url)) {
817
+ if (isInSwapContainer && position) {
818
+ return this.renderFallbackIconInContainer(position);
819
+ }
820
+ return this.renderFallbackIcon();
821
+ }
822
+ return x`<wui-image
823
+ src=${image.url}
824
+ alt="Transaction image"
825
+ @onLoadError=${this.handleImageError(image.url)}
826
+ ></wui-image>`;
827
+ }
828
+ renderFallbackIconInContainer(position) {
829
+ return x`<div class="swap-fallback-container ${position}">${this.renderFallbackIcon()}</div>`;
830
+ }
831
+ renderFallbackIcon() {
832
+ return x`<wui-icon
833
+ size="xl"
834
+ weight="regular"
835
+ color="default"
836
+ name="networkPlaceholder"
837
+ ></wui-icon>`;
838
+ }
839
+ renderPlaceholderIcon(iconName) {
840
+ return x`<wui-icon size="xl" weight="regular" color="default" name=${iconName}></wui-icon>`;
841
+ }
842
+ templateIcon() {
843
+ let color = "accent-primary";
844
+ let icon = void 0;
845
+ icon = this.getIcon();
846
+ if (this.status) {
847
+ color = this.getStatusColor();
848
+ }
849
+ if (!icon) {
850
+ return null;
851
+ }
852
+ return x`
853
+ <wui-flex alignItems="center" justifyContent="center" class="status-box">
854
+ <wui-icon-box size="sm" color=${color} icon=${icon}></wui-icon-box>
855
+ </wui-flex>
856
+ `;
857
+ }
858
+ getDirectionIcon() {
859
+ switch (this.direction) {
860
+ case "in":
861
+ return "arrowBottom";
862
+ case "out":
863
+ return "arrowTop";
864
+ default:
865
+ return void 0;
866
+ }
867
+ }
868
+ getIcon() {
869
+ if (this.onlyDirectionIcon) {
870
+ return this.getDirectionIcon();
871
+ }
872
+ if (this.type === "trade") {
873
+ return "swapHorizontal";
874
+ } else if (this.type === "approve") {
875
+ return "checkmark";
876
+ } else if (this.type === "cancel") {
877
+ return "close";
878
+ }
879
+ return this.getDirectionIcon();
880
+ }
881
+ getStatusColor() {
882
+ switch (this.status) {
883
+ case "confirmed":
884
+ return "success";
885
+ case "failed":
886
+ return "error";
887
+ case "pending":
888
+ return "inverse";
889
+ default:
890
+ return "accent-primary";
891
+ }
892
+ }
893
+ };
894
+ WuiTransactionVisual.styles = [styles$4];
895
+ __decorate$4([
896
+ n()
897
+ ], WuiTransactionVisual.prototype, "type", void 0);
898
+ __decorate$4([
899
+ n()
900
+ ], WuiTransactionVisual.prototype, "status", void 0);
901
+ __decorate$4([
902
+ n()
903
+ ], WuiTransactionVisual.prototype, "direction", void 0);
904
+ __decorate$4([
905
+ n({ type: Boolean })
906
+ ], WuiTransactionVisual.prototype, "onlyDirectionIcon", void 0);
907
+ __decorate$4([
908
+ n({ type: Array })
909
+ ], WuiTransactionVisual.prototype, "images", void 0);
910
+ __decorate$4([
911
+ n({ type: Object })
912
+ ], WuiTransactionVisual.prototype, "secondImage", void 0);
913
+ __decorate$4([
914
+ r()
915
+ ], WuiTransactionVisual.prototype, "failedImageUrls", void 0);
916
+ WuiTransactionVisual = __decorate$4([
917
+ customElement("wui-transaction-visual")
918
+ ], WuiTransactionVisual);
919
+ const styles$3 = css`
920
+ :host {
921
+ width: 100%;
922
+ }
923
+
924
+ :host > wui-flex:first-child {
925
+ align-items: center;
926
+ column-gap: ${({ spacing }) => spacing[2]};
927
+ padding: ${({ spacing }) => spacing[1]} ${({ spacing }) => spacing[2]};
928
+ width: 100%;
929
+ }
930
+
931
+ :host > wui-flex:first-child wui-text:nth-child(1) {
932
+ text-transform: capitalize;
933
+ }
934
+
935
+ wui-transaction-visual {
936
+ width: 40px;
937
+ height: 40px;
938
+ }
939
+
940
+ wui-flex {
941
+ flex: 1;
942
+ }
943
+
944
+ :host wui-flex wui-flex {
945
+ overflow: hidden;
946
+ }
947
+
948
+ :host .description-container wui-text span {
949
+ word-break: break-all;
950
+ }
951
+
952
+ :host .description-container wui-text {
953
+ overflow: hidden;
954
+ }
955
+
956
+ :host .description-separator-icon {
957
+ margin: 0px 6px;
958
+ }
959
+
960
+ :host wui-text > span {
961
+ overflow: hidden;
962
+ display: -webkit-box;
963
+ -webkit-box-orient: vertical;
964
+ -webkit-line-clamp: 1;
965
+ }
966
+ `;
967
+ var __decorate$3 = function(decorators, target, key, desc) {
968
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
969
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
970
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
971
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
972
+ };
973
+ let WuiTransactionListItem = class WuiTransactionListItem2 extends i {
974
+ constructor() {
975
+ super(...arguments);
976
+ this.type = "approve";
977
+ this.onlyDirectionIcon = false;
978
+ this.images = [];
979
+ }
980
+ render() {
981
+ return x`
982
+ <wui-flex>
983
+ <wui-transaction-visual
984
+ .status=${this.status}
985
+ direction=${o(this.direction)}
986
+ type=${this.type}
987
+ .onlyDirectionIcon=${this.onlyDirectionIcon}
988
+ .images=${this.images}
989
+ ></wui-transaction-visual>
990
+ <wui-flex flexDirection="column" gap="1">
991
+ <wui-text variant="lg-medium" color="primary">
992
+ ${TransactionTypePastTense[this.type] || this.type}
993
+ </wui-text>
994
+ <wui-flex class="description-container">
995
+ ${this.templateDescription()} ${this.templateSecondDescription()}
996
+ </wui-flex>
997
+ </wui-flex>
998
+ <wui-text variant="sm-medium" color="secondary"><span>${this.date}</span></wui-text>
999
+ </wui-flex>
1000
+ `;
1001
+ }
1002
+ templateDescription() {
1003
+ var _a;
1004
+ const description = (_a = this.descriptions) == null ? void 0 : _a[0];
1005
+ return description ? x`
1006
+ <wui-text variant="md-regular" color="secondary">
1007
+ <span>${description}</span>
1008
+ </wui-text>
1009
+ ` : null;
1010
+ }
1011
+ templateSecondDescription() {
1012
+ var _a;
1013
+ const description = (_a = this.descriptions) == null ? void 0 : _a[1];
1014
+ return description ? x`
1015
+ <wui-icon class="description-separator-icon" size="sm" name="arrowRight"></wui-icon>
1016
+ <wui-text variant="md-regular" color="secondary">
1017
+ <span>${description}</span>
1018
+ </wui-text>
1019
+ ` : null;
1020
+ }
1021
+ };
1022
+ WuiTransactionListItem.styles = [resetStyles, styles$3];
1023
+ __decorate$3([
1024
+ n()
1025
+ ], WuiTransactionListItem.prototype, "type", void 0);
1026
+ __decorate$3([
1027
+ n({ type: Array })
1028
+ ], WuiTransactionListItem.prototype, "descriptions", void 0);
1029
+ __decorate$3([
1030
+ n()
1031
+ ], WuiTransactionListItem.prototype, "date", void 0);
1032
+ __decorate$3([
1033
+ n({ type: Boolean })
1034
+ ], WuiTransactionListItem.prototype, "onlyDirectionIcon", void 0);
1035
+ __decorate$3([
1036
+ n()
1037
+ ], WuiTransactionListItem.prototype, "status", void 0);
1038
+ __decorate$3([
1039
+ n()
1040
+ ], WuiTransactionListItem.prototype, "direction", void 0);
1041
+ __decorate$3([
1042
+ n({ type: Array })
1043
+ ], WuiTransactionListItem.prototype, "images", void 0);
1044
+ WuiTransactionListItem = __decorate$3([
1045
+ customElement("wui-transaction-list-item")
1046
+ ], WuiTransactionListItem);
1047
+ const styles$2 = css`
1048
+ wui-flex {
1049
+ position: relative;
1050
+ display: inline-flex;
1051
+ justify-content: center;
1052
+ align-items: center;
1053
+ }
1054
+
1055
+ wui-image {
1056
+ border-radius: ${({ borderRadius }) => borderRadius[128]};
1057
+ }
1058
+
1059
+ .fallback-icon {
1060
+ color: ${({ tokens }) => tokens.theme.iconInverse};
1061
+ border-radius: ${({ borderRadius }) => borderRadius[3]};
1062
+ background-color: ${({ tokens }) => tokens.theme.foregroundPrimary};
1063
+ }
1064
+
1065
+ .direction-icon,
1066
+ .status-image {
1067
+ position: absolute;
1068
+ right: 0;
1069
+ bottom: 0;
1070
+ border-radius: ${({ borderRadius }) => borderRadius[128]};
1071
+ border: 2px solid ${({ tokens }) => tokens.theme.backgroundPrimary};
1072
+ }
1073
+
1074
+ .direction-icon {
1075
+ padding: ${({ spacing }) => spacing["01"]};
1076
+ color: ${({ tokens }) => tokens.core.iconSuccess};
1077
+
1078
+ background-color: color-mix(
1079
+ in srgb,
1080
+ ${({ tokens }) => tokens.core.textSuccess} 30%,
1081
+ ${({ tokens }) => tokens.theme.backgroundPrimary} 70%
1082
+ );
1083
+ }
1084
+
1085
+ /* -- Sizes --------------------------------------------------- */
1086
+ :host([data-size='sm']) > wui-image:not(.status-image),
1087
+ :host([data-size='sm']) > wui-flex {
1088
+ width: 24px;
1089
+ height: 24px;
1090
+ }
1091
+
1092
+ :host([data-size='lg']) > wui-image:not(.status-image),
1093
+ :host([data-size='lg']) > wui-flex {
1094
+ width: 40px;
1095
+ height: 40px;
1096
+ }
1097
+
1098
+ :host([data-size='sm']) .fallback-icon {
1099
+ height: 16px;
1100
+ width: 16px;
1101
+ padding: ${({ spacing }) => spacing[1]};
1102
+ }
1103
+
1104
+ :host([data-size='lg']) .fallback-icon {
1105
+ height: 32px;
1106
+ width: 32px;
1107
+ padding: ${({ spacing }) => spacing[1]};
1108
+ }
1109
+
1110
+ :host([data-size='sm']) .direction-icon,
1111
+ :host([data-size='sm']) .status-image {
1112
+ transform: translate(40%, 30%);
1113
+ }
1114
+
1115
+ :host([data-size='lg']) .direction-icon,
1116
+ :host([data-size='lg']) .status-image {
1117
+ transform: translate(40%, 10%);
1118
+ }
1119
+
1120
+ :host([data-size='sm']) .status-image {
1121
+ height: 14px;
1122
+ width: 14px;
1123
+ }
1124
+
1125
+ :host([data-size='lg']) .status-image {
1126
+ height: 20px;
1127
+ width: 20px;
1128
+ }
1129
+
1130
+ /* -- Crop effects --------------------------------------------------- */
1131
+ .swap-crop-left-image,
1132
+ .swap-crop-right-image {
1133
+ position: absolute;
1134
+ top: 0;
1135
+ bottom: 0;
1136
+ }
1137
+
1138
+ .swap-crop-left-image {
1139
+ left: 0;
1140
+ clip-path: inset(0px calc(50% + 1.5px) 0px 0%);
1141
+ }
1142
+
1143
+ .swap-crop-right-image {
1144
+ right: 0;
1145
+ clip-path: inset(0px 0px 0px calc(50% + 1.5px));
1146
+ }
1147
+ `;
1148
+ var __decorate$2 = function(decorators, target, key, desc) {
1149
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1150
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1151
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1152
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1153
+ };
1154
+ const ICON_SIZE = {
1155
+ sm: "xxs",
1156
+ lg: "md"
1157
+ };
1158
+ let WuiTransactionThumbnail = class WuiTransactionThumbnail2 extends i {
1159
+ constructor() {
1160
+ super(...arguments);
1161
+ this.type = "approve";
1162
+ this.size = "lg";
1163
+ this.statusImageUrl = "";
1164
+ this.images = [];
1165
+ }
1166
+ render() {
1167
+ return x`<wui-flex>${this.templateVisual()} ${this.templateIcon()}</wui-flex>`;
1168
+ }
1169
+ templateVisual() {
1170
+ this.dataset["size"] = this.size;
1171
+ switch (this.type) {
1172
+ case "trade":
1173
+ return this.swapTemplate();
1174
+ case "fiat":
1175
+ return this.fiatTemplate();
1176
+ case "unknown":
1177
+ return this.unknownTemplate();
1178
+ default:
1179
+ return this.tokenTemplate();
1180
+ }
1181
+ }
1182
+ swapTemplate() {
1183
+ const [firstImageUrl, secondImageUrl] = this.images;
1184
+ const twoImages = this.images.length === 2 && (firstImageUrl || secondImageUrl);
1185
+ if (twoImages) {
1186
+ return x`
1187
+ <wui-image class="swap-crop-left-image" src=${firstImageUrl} alt="Swap image"></wui-image>
1188
+ <wui-image class="swap-crop-right-image" src=${secondImageUrl} alt="Swap image"></wui-image>
1189
+ `;
1190
+ }
1191
+ if (firstImageUrl) {
1192
+ return x`<wui-image src=${firstImageUrl} alt="Swap image"></wui-image>`;
1193
+ }
1194
+ return null;
1195
+ }
1196
+ fiatTemplate() {
1197
+ return x`<wui-icon
1198
+ class="fallback-icon"
1199
+ size=${ICON_SIZE[this.size]}
1200
+ name="dollar"
1201
+ ></wui-icon>`;
1202
+ }
1203
+ unknownTemplate() {
1204
+ return x`<wui-icon
1205
+ class="fallback-icon"
1206
+ size=${ICON_SIZE[this.size]}
1207
+ name="questionMark"
1208
+ ></wui-icon>`;
1209
+ }
1210
+ tokenTemplate() {
1211
+ const [imageUrl] = this.images;
1212
+ if (imageUrl) {
1213
+ return x`<wui-image src=${imageUrl} alt="Token image"></wui-image> `;
1214
+ }
1215
+ return x`<wui-icon
1216
+ class="fallback-icon"
1217
+ name=${this.type === "nft" ? "image" : "coinPlaceholder"}
1218
+ ></wui-icon>`;
1219
+ }
1220
+ templateIcon() {
1221
+ if (this.statusImageUrl) {
1222
+ return x`<wui-image
1223
+ class="status-image"
1224
+ src=${this.statusImageUrl}
1225
+ alt="Status image"
1226
+ ></wui-image>`;
1227
+ }
1228
+ return x`<wui-icon
1229
+ class="direction-icon"
1230
+ size=${ICON_SIZE[this.size]}
1231
+ name=${this.getTemplateIcon()}
1232
+ ></wui-icon>`;
1233
+ }
1234
+ getTemplateIcon() {
1235
+ if (this.type === "trade") {
1236
+ return "arrowClockWise";
1237
+ }
1238
+ return "arrowBottom";
1239
+ }
1240
+ };
1241
+ WuiTransactionThumbnail.styles = [styles$2];
1242
+ __decorate$2([
1243
+ n()
1244
+ ], WuiTransactionThumbnail.prototype, "type", void 0);
1245
+ __decorate$2([
1246
+ n()
1247
+ ], WuiTransactionThumbnail.prototype, "size", void 0);
1248
+ __decorate$2([
1249
+ n()
1250
+ ], WuiTransactionThumbnail.prototype, "statusImageUrl", void 0);
1251
+ __decorate$2([
1252
+ n({ type: Array })
1253
+ ], WuiTransactionThumbnail.prototype, "images", void 0);
1254
+ WuiTransactionThumbnail = __decorate$2([
1255
+ customElement("wui-transaction-thumbnail")
1256
+ ], WuiTransactionThumbnail);
1257
+ const styles$1 = css`
1258
+ :host > wui-flex:first-child {
1259
+ gap: ${({ spacing }) => spacing[2]};
1260
+ padding: ${({ spacing }) => spacing[3]};
1261
+ width: 100%;
1262
+ }
1263
+
1264
+ wui-flex {
1265
+ display: flex;
1266
+ flex: 1;
1267
+ }
1268
+ `;
1269
+ var __decorate$1 = function(decorators, target, key, desc) {
1270
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1271
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1272
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1273
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1274
+ };
1275
+ let WuiTransactionListItemLoader = class WuiTransactionListItemLoader2 extends i {
1276
+ render() {
1277
+ return x`
1278
+ <wui-flex alignItems="center" .padding=${["1", "2", "1", "2"]}>
1279
+ <wui-shimmer width="40px" height="40px" rounded></wui-shimmer>
1280
+ <wui-flex flexDirection="column" gap="1">
1281
+ <wui-shimmer width="124px" height="16px" rounded></wui-shimmer>
1282
+ <wui-shimmer width="60px" height="14px" rounded></wui-shimmer>
1283
+ </wui-flex>
1284
+ <wui-shimmer width="24px" height="12px" rounded></wui-shimmer>
1285
+ </wui-flex>
1286
+ `;
1287
+ }
1288
+ };
1289
+ WuiTransactionListItemLoader.styles = [resetStyles, styles$1];
1290
+ WuiTransactionListItemLoader = __decorate$1([
1291
+ customElement("wui-transaction-list-item-loader")
1292
+ ], WuiTransactionListItemLoader);
1293
+ const styles = css`
1294
+ :host {
1295
+ min-height: 100%;
1296
+ }
1297
+
1298
+ .group-container[last-group='true'] {
1299
+ padding-bottom: ${({ spacing }) => spacing["3"]};
1300
+ }
1301
+
1302
+ .contentContainer {
1303
+ height: 280px;
1304
+ }
1305
+
1306
+ .contentContainer > wui-icon-box {
1307
+ width: 40px;
1308
+ height: 40px;
1309
+ border-radius: ${({ borderRadius }) => borderRadius["3"]};
1310
+ }
1311
+
1312
+ .contentContainer > .textContent {
1313
+ width: 65%;
1314
+ }
1315
+
1316
+ .emptyContainer {
1317
+ height: 100%;
1318
+ }
1319
+ `;
1320
+ var __decorate = function(decorators, target, key, desc) {
1321
+ var c = arguments.length, r2 = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1322
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r2 = Reflect.decorate(decorators, target, key, desc);
1323
+ else for (var i2 = decorators.length - 1; i2 >= 0; i2--) if (d = decorators[i2]) r2 = (c < 3 ? d(r2) : c > 3 ? d(target, key, r2) : d(target, key)) || r2;
1324
+ return c > 3 && r2 && Object.defineProperty(target, key, r2), r2;
1325
+ };
1326
+ const PAGINATOR_ID = "last-transaction";
1327
+ const LOADING_ITEM_COUNT = 7;
1328
+ let W3mActivityList = class W3mActivityList2 extends i {
1329
+ constructor() {
1330
+ super();
1331
+ this.unsubscribe = [];
1332
+ this.paginationObserver = void 0;
1333
+ this.page = "activity";
1334
+ this.caipAddress = ChainController.state.activeCaipAddress;
1335
+ this.transactionsByYear = TransactionsController.state.transactionsByYear;
1336
+ this.loading = TransactionsController.state.loading;
1337
+ this.empty = TransactionsController.state.empty;
1338
+ this.next = TransactionsController.state.next;
1339
+ TransactionsController.clearCursor();
1340
+ this.unsubscribe.push(...[
1341
+ ChainController.subscribeKey("activeCaipAddress", (val) => {
1342
+ if (val) {
1343
+ if (this.caipAddress !== val) {
1344
+ TransactionsController.resetTransactions();
1345
+ TransactionsController.fetchTransactions(val);
1346
+ }
1347
+ }
1348
+ this.caipAddress = val;
1349
+ }),
1350
+ ChainController.subscribeKey("activeCaipNetwork", () => {
1351
+ this.updateTransactionView();
1352
+ }),
1353
+ TransactionsController.subscribe((val) => {
1354
+ this.transactionsByYear = val.transactionsByYear;
1355
+ this.loading = val.loading;
1356
+ this.empty = val.empty;
1357
+ this.next = val.next;
1358
+ })
1359
+ ]);
1360
+ }
1361
+ firstUpdated() {
1362
+ this.updateTransactionView();
1363
+ this.createPaginationObserver();
1364
+ }
1365
+ updated() {
1366
+ this.setPaginationObserver();
1367
+ }
1368
+ disconnectedCallback() {
1369
+ this.unsubscribe.forEach((unsubscribe) => unsubscribe());
1370
+ }
1371
+ render() {
1372
+ return x` ${this.empty ? null : this.templateTransactionsByYear()}
1373
+ ${this.loading ? this.templateLoading() : null}
1374
+ ${!this.loading && this.empty ? this.templateEmpty() : null}`;
1375
+ }
1376
+ updateTransactionView() {
1377
+ TransactionsController.resetTransactions();
1378
+ if (this.caipAddress) {
1379
+ TransactionsController.fetchTransactions(CoreHelperUtil.getPlainAddress(this.caipAddress));
1380
+ }
1381
+ }
1382
+ templateTransactionsByYear() {
1383
+ const sortedYearKeys = Object.keys(this.transactionsByYear).sort().reverse();
1384
+ return sortedYearKeys.map((year) => {
1385
+ const yearInt = parseInt(year, 10);
1386
+ const sortedMonthIndexes = new Array(12).fill(null).map((_, idx) => {
1387
+ var _a;
1388
+ const groupTitle = TransactionUtil.getTransactionGroupTitle(yearInt, idx);
1389
+ const transactions = (_a = this.transactionsByYear[yearInt]) == null ? void 0 : _a[idx];
1390
+ return {
1391
+ groupTitle,
1392
+ transactions
1393
+ };
1394
+ }).filter(({ transactions }) => transactions).reverse();
1395
+ return sortedMonthIndexes.map(({ groupTitle, transactions }, index) => {
1396
+ const isLastGroup = index === sortedMonthIndexes.length - 1;
1397
+ if (!transactions) {
1398
+ return null;
1399
+ }
1400
+ return x`
1401
+ <wui-flex
1402
+ flexDirection="column"
1403
+ class="group-container"
1404
+ last-group="${isLastGroup ? "true" : "false"}"
1405
+ data-testid="month-indexes"
1406
+ >
1407
+ <wui-flex
1408
+ alignItems="center"
1409
+ flexDirection="row"
1410
+ .padding=${["2", "3", "3", "3"]}
1411
+ >
1412
+ <wui-text variant="md-medium" color="secondary" data-testid="group-title">
1413
+ ${groupTitle}
1414
+ </wui-text>
1415
+ </wui-flex>
1416
+ <wui-flex flexDirection="column" gap="2">
1417
+ ${this.templateTransactions(transactions, isLastGroup)}
1418
+ </wui-flex>
1419
+ </wui-flex>
1420
+ `;
1421
+ });
1422
+ });
1423
+ }
1424
+ templateRenderTransaction(transaction, isLastTransaction) {
1425
+ const { date, descriptions, direction, images, status, type, transfers, isAllNFT } = this.getTransactionListItemProps(transaction);
1426
+ return x`
1427
+ <wui-transaction-list-item
1428
+ date=${date}
1429
+ .direction=${direction}
1430
+ id=${isLastTransaction && this.next ? PAGINATOR_ID : ""}
1431
+ status=${status}
1432
+ type=${type}
1433
+ .images=${images}
1434
+ .onlyDirectionIcon=${isAllNFT || transfers.length === 1}
1435
+ .descriptions=${descriptions}
1436
+ ></wui-transaction-list-item>
1437
+ `;
1438
+ }
1439
+ templateTransactions(transactions, isLastGroup) {
1440
+ return transactions.map((transaction, index) => {
1441
+ const isLastTransaction = isLastGroup && index === transactions.length - 1;
1442
+ return x`${this.templateRenderTransaction(transaction, isLastTransaction)}`;
1443
+ });
1444
+ }
1445
+ emptyStateActivity() {
1446
+ return x`<wui-flex
1447
+ class="emptyContainer"
1448
+ flexGrow="1"
1449
+ flexDirection="column"
1450
+ justifyContent="center"
1451
+ alignItems="center"
1452
+ .padding=${["10", "5", "10", "5"]}
1453
+ gap="5"
1454
+ data-testid="empty-activity-state"
1455
+ >
1456
+ <wui-icon-box color="default" icon="wallet" size="xl"></wui-icon-box>
1457
+ <wui-flex flexDirection="column" alignItems="center" gap="2">
1458
+ <wui-text align="center" variant="lg-medium" color="primary">No Transactions yet</wui-text>
1459
+ <wui-text align="center" variant="lg-regular" color="secondary"
1460
+ >Start trading on dApps <br />
1461
+ to grow your wallet!</wui-text
1462
+ >
1463
+ </wui-flex>
1464
+ </wui-flex>`;
1465
+ }
1466
+ emptyStateAccount() {
1467
+ return x`<wui-flex
1468
+ class="contentContainer"
1469
+ alignItems="center"
1470
+ justifyContent="center"
1471
+ flexDirection="column"
1472
+ gap="4"
1473
+ data-testid="empty-account-state"
1474
+ >
1475
+ <wui-icon-box icon="swapHorizontal" size="lg" color="default"></wui-icon-box>
1476
+ <wui-flex
1477
+ class="textContent"
1478
+ gap="2"
1479
+ flexDirection="column"
1480
+ justifyContent="center"
1481
+ flexDirection="column"
1482
+ >
1483
+ <wui-text variant="md-regular" align="center" color="primary">No activity yet</wui-text>
1484
+ <wui-text variant="sm-regular" align="center" color="secondary"
1485
+ >Your next transactions will appear here</wui-text
1486
+ >
1487
+ </wui-flex>
1488
+ <wui-link @click=${this.onReceiveClick.bind(this)}>Trade</wui-link>
1489
+ </wui-flex>`;
1490
+ }
1491
+ templateEmpty() {
1492
+ if (this.page === "account") {
1493
+ return x`${this.emptyStateAccount()}`;
1494
+ }
1495
+ return x`${this.emptyStateActivity()}`;
1496
+ }
1497
+ templateLoading() {
1498
+ if (this.page === "activity") {
1499
+ return x` <wui-flex flexDirection="column" width="100%">
1500
+ <wui-flex .padding=${["2", "3", "3", "3"]}>
1501
+ <wui-shimmer width="70px" height="16px" rounded></wui-shimmer>
1502
+ </wui-flex>
1503
+ <wui-flex flexDirection="column" gap="2" width="100%">
1504
+ ${Array(LOADING_ITEM_COUNT).fill(x` <wui-transaction-list-item-loader></wui-transaction-list-item-loader> `).map((item) => item)}
1505
+ </wui-flex>
1506
+ </wui-flex>`;
1507
+ }
1508
+ return null;
1509
+ }
1510
+ onReceiveClick() {
1511
+ RouterController.push("WalletReceive");
1512
+ }
1513
+ createPaginationObserver() {
1514
+ const { projectId } = OptionsController.state;
1515
+ this.paginationObserver = new IntersectionObserver(([element]) => {
1516
+ if ((element == null ? void 0 : element.isIntersecting) && !this.loading) {
1517
+ TransactionsController.fetchTransactions(CoreHelperUtil.getPlainAddress(this.caipAddress));
1518
+ EventsController.sendEvent({
1519
+ type: "track",
1520
+ event: "LOAD_MORE_TRANSACTIONS",
1521
+ properties: {
1522
+ address: CoreHelperUtil.getPlainAddress(this.caipAddress),
1523
+ projectId,
1524
+ cursor: this.next,
1525
+ isSmartAccount: getPreferredAccountType(ChainController.state.activeChain) === W3mFrameRpcConstants.ACCOUNT_TYPES.SMART_ACCOUNT
1526
+ }
1527
+ });
1528
+ }
1529
+ }, {});
1530
+ this.setPaginationObserver();
1531
+ }
1532
+ setPaginationObserver() {
1533
+ var _a, _b, _c;
1534
+ (_a = this.paginationObserver) == null ? void 0 : _a.disconnect();
1535
+ const lastItem = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector(`#${PAGINATOR_ID}`);
1536
+ if (lastItem) {
1537
+ (_c = this.paginationObserver) == null ? void 0 : _c.observe(lastItem);
1538
+ }
1539
+ }
1540
+ getTransactionListItemProps(transaction) {
1541
+ var _a, _b, _c;
1542
+ const date = DateUtil.formatDate((_a = transaction == null ? void 0 : transaction.metadata) == null ? void 0 : _a.minedAt);
1543
+ const transfers = TransactionUtil.mergeTransfers((transaction == null ? void 0 : transaction.transfers) || []);
1544
+ const descriptions = TransactionUtil.getTransactionDescriptions(transaction, transfers);
1545
+ const transfer = transfers == null ? void 0 : transfers[0];
1546
+ const isAllNFT = Boolean(transfer) && (transfers == null ? void 0 : transfers.every((item) => Boolean(item.nft_info)));
1547
+ const images = TransactionUtil.getTransactionImages(transfers);
1548
+ return {
1549
+ date,
1550
+ direction: transfer == null ? void 0 : transfer.direction,
1551
+ descriptions,
1552
+ isAllNFT,
1553
+ images,
1554
+ status: (_b = transaction.metadata) == null ? void 0 : _b.status,
1555
+ transfers,
1556
+ type: (_c = transaction.metadata) == null ? void 0 : _c.operationType
1557
+ };
1558
+ }
1559
+ };
1560
+ W3mActivityList.styles = styles;
1561
+ __decorate([
1562
+ n()
1563
+ ], W3mActivityList.prototype, "page", void 0);
1564
+ __decorate([
1565
+ r()
1566
+ ], W3mActivityList.prototype, "caipAddress", void 0);
1567
+ __decorate([
1568
+ r()
1569
+ ], W3mActivityList.prototype, "transactionsByYear", void 0);
1570
+ __decorate([
1571
+ r()
1572
+ ], W3mActivityList.prototype, "loading", void 0);
1573
+ __decorate([
1574
+ r()
1575
+ ], W3mActivityList.prototype, "empty", void 0);
1576
+ __decorate([
1577
+ r()
1578
+ ], W3mActivityList.prototype, "next", void 0);
1579
+ W3mActivityList = __decorate([
1580
+ customElement("w3m-activity-list")
1581
+ ], W3mActivityList);
1582
+ //# sourceMappingURL=index-B8jsF--g.js.map