@reown/appkit-cdn 1.8.15-ea982070c1d274f5971447c430b6d77717082e78.0 → 1.8.15-viem-upgrade.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/package.json +10 -10
  2. package/dist/ConstantsUtil-BTJjr2qs.js +0 -24
  3. package/dist/ConstantsUtil-BTJjr2qs.js.map +0 -1
  4. package/dist/ExchangeController-CncqkHeT.js +0 -265
  5. package/dist/ExchangeController-CncqkHeT.js.map +0 -1
  6. package/dist/HelpersUtil-CwxnHyjS.js +0 -141
  7. package/dist/HelpersUtil-CwxnHyjS.js.map +0 -1
  8. package/dist/NavigationUtil-Ci15WS4K.js +0 -9
  9. package/dist/NavigationUtil-Ci15WS4K.js.map +0 -1
  10. package/dist/PhArrowCircleDown-B41iUlWV.js +0 -74
  11. package/dist/PhArrowCircleDown-B41iUlWV.js.map +0 -1
  12. package/dist/PhArrowClockwise-BY8u5n41.js +0 -74
  13. package/dist/PhArrowClockwise-BY8u5n41.js.map +0 -1
  14. package/dist/PhArrowDown-ClD8GZ65.js +0 -74
  15. package/dist/PhArrowDown-ClD8GZ65.js.map +0 -1
  16. package/dist/PhArrowLeft-B8MXUz60.js +0 -74
  17. package/dist/PhArrowLeft-B8MXUz60.js.map +0 -1
  18. package/dist/PhArrowRight-Cewa_Slb.js +0 -74
  19. package/dist/PhArrowRight-Cewa_Slb.js.map +0 -1
  20. package/dist/PhArrowSquareOut-whgWh-lD.js +0 -74
  21. package/dist/PhArrowSquareOut-whgWh-lD.js.map +0 -1
  22. package/dist/PhArrowUp-B1HXBxie.js +0 -74
  23. package/dist/PhArrowUp-B1HXBxie.js.map +0 -1
  24. package/dist/PhArrowUpRight-CfFYe4FP.js +0 -74
  25. package/dist/PhArrowUpRight-CfFYe4FP.js.map +0 -1
  26. package/dist/PhArrowsClockwise-gL1Gkrtx.js +0 -74
  27. package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +0 -1
  28. package/dist/PhArrowsDownUp-BqUEdUQr.js +0 -74
  29. package/dist/PhArrowsDownUp-BqUEdUQr.js.map +0 -1
  30. package/dist/PhArrowsLeftRight-BlZU63eY.js +0 -74
  31. package/dist/PhArrowsLeftRight-BlZU63eY.js.map +0 -1
  32. package/dist/PhBank-gbg_jlI7.js +0 -74
  33. package/dist/PhBank-gbg_jlI7.js.map +0 -1
  34. package/dist/PhBrowser-CMlD-YJw.js +0 -74
  35. package/dist/PhBrowser-CMlD-YJw.js.map +0 -1
  36. package/dist/PhCaretDown-3agTO8Jp.js +0 -74
  37. package/dist/PhCaretDown-3agTO8Jp.js.map +0 -1
  38. package/dist/PhCaretLeft-_MTni7Z5.js +0 -74
  39. package/dist/PhCaretLeft-_MTni7Z5.js.map +0 -1
  40. package/dist/PhCaretRight-Ci9fAHPG.js +0 -74
  41. package/dist/PhCaretRight-Ci9fAHPG.js.map +0 -1
  42. package/dist/PhCaretUp-vFG4Fame.js +0 -74
  43. package/dist/PhCaretUp-vFG4Fame.js.map +0 -1
  44. package/dist/PhCheck-mChGK6K_.js +0 -74
  45. package/dist/PhCheck-mChGK6K_.js.map +0 -1
  46. package/dist/PhCircleHalf-DZ7-vfxf.js +0 -74
  47. package/dist/PhCircleHalf-DZ7-vfxf.js.map +0 -1
  48. package/dist/PhClock-Bc5XWXb6.js +0 -74
  49. package/dist/PhClock-Bc5XWXb6.js.map +0 -1
  50. package/dist/PhCompass-Cu2MB-55.js +0 -74
  51. package/dist/PhCompass-Cu2MB-55.js.map +0 -1
  52. package/dist/PhCopy-BGUjyTts.js +0 -74
  53. package/dist/PhCopy-BGUjyTts.js.map +0 -1
  54. package/dist/PhCreditCard-vxFWID4B.js +0 -74
  55. package/dist/PhCreditCard-vxFWID4B.js.map +0 -1
  56. package/dist/PhCurrencyDollar-BfOoDhJr.js +0 -74
  57. package/dist/PhCurrencyDollar-BfOoDhJr.js.map +0 -1
  58. package/dist/PhDesktop-Cq6jwzbS.js +0 -74
  59. package/dist/PhDesktop-Cq6jwzbS.js.map +0 -1
  60. package/dist/PhDeviceMobile-BCtTp6jj.js +0 -74
  61. package/dist/PhDeviceMobile-BCtTp6jj.js.map +0 -1
  62. package/dist/PhDotsThree-BGgD-WIO.js +0 -74
  63. package/dist/PhDotsThree-BGgD-WIO.js.map +0 -1
  64. package/dist/PhEnvelope-CQiV0-zG.js +0 -74
  65. package/dist/PhEnvelope-CQiV0-zG.js.map +0 -1
  66. package/dist/PhFunnelSimple-BHGtxTNf.js +0 -74
  67. package/dist/PhFunnelSimple-BHGtxTNf.js.map +0 -1
  68. package/dist/PhGlobe-Q8oVkf6X.js +0 -74
  69. package/dist/PhGlobe-Q8oVkf6X.js.map +0 -1
  70. package/dist/PhIdentificationCard-Cz9LzvVR.js +0 -74
  71. package/dist/PhIdentificationCard-Cz9LzvVR.js.map +0 -1
  72. package/dist/PhImage-CP5_qKk-.js +0 -74
  73. package/dist/PhImage-CP5_qKk-.js.map +0 -1
  74. package/dist/PhInfo-CTlE1X9Z.js +0 -74
  75. package/dist/PhInfo-CTlE1X9Z.js.map +0 -1
  76. package/dist/PhLightbulb-CcLpnAAb.js +0 -74
  77. package/dist/PhLightbulb-CcLpnAAb.js.map +0 -1
  78. package/dist/PhMagnifyingGlass-n58GUAck.js +0 -74
  79. package/dist/PhMagnifyingGlass-n58GUAck.js.map +0 -1
  80. package/dist/PhPaperPlaneRight-C0sf2XV8.js +0 -74
  81. package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +0 -1
  82. package/dist/PhPlus-BJxvt7Uc.js +0 -74
  83. package/dist/PhPlus-BJxvt7Uc.js.map +0 -1
  84. package/dist/PhPower-BvktxO2-.js +0 -74
  85. package/dist/PhPower-BvktxO2-.js.map +0 -1
  86. package/dist/PhPuzzlePiece-CDDyUPYo.js +0 -74
  87. package/dist/PhPuzzlePiece-CDDyUPYo.js.map +0 -1
  88. package/dist/PhQrCode-BlGI8529.js +0 -74
  89. package/dist/PhQrCode-BlGI8529.js.map +0 -1
  90. package/dist/PhQuestion-DGZj6iDZ.js +0 -74
  91. package/dist/PhQuestion-DGZj6iDZ.js.map +0 -1
  92. package/dist/PhQuestionMark-CTmeI7MQ.js +0 -74
  93. package/dist/PhQuestionMark-CTmeI7MQ.js.map +0 -1
  94. package/dist/PhSealCheck-BSlqkxnH.js +0 -74
  95. package/dist/PhSealCheck-BSlqkxnH.js.map +0 -1
  96. package/dist/PhSignOut-CEXxlRk3.js +0 -74
  97. package/dist/PhSignOut-CEXxlRk3.js.map +0 -1
  98. package/dist/PhSpinner-Do1pY8fG.js +0 -74
  99. package/dist/PhSpinner-Do1pY8fG.js.map +0 -1
  100. package/dist/PhTrash-JNKavmpg.js +0 -74
  101. package/dist/PhTrash-JNKavmpg.js.map +0 -1
  102. package/dist/PhUser-BW7E-xYg.js +0 -74
  103. package/dist/PhUser-BW7E-xYg.js.map +0 -1
  104. package/dist/PhVault-mzxUgBYN.js +0 -74
  105. package/dist/PhVault-mzxUgBYN.js.map +0 -1
  106. package/dist/PhWallet-BR9JThKU.js +0 -74
  107. package/dist/PhWallet-BR9JThKU.js.map +0 -1
  108. package/dist/PhWarning-DxuQ70WM.js +0 -74
  109. package/dist/PhWarning-DxuQ70WM.js.map +0 -1
  110. package/dist/PhWarningCircle-DCI0JC1F.js +0 -74
  111. package/dist/PhWarningCircle-DCI0JC1F.js.map +0 -1
  112. package/dist/PhX-CWNXqpGn.js +0 -74
  113. package/dist/PhX-CWNXqpGn.js.map +0 -1
  114. package/dist/SwapController-DsYbP4IS.js +0 -684
  115. package/dist/SwapController-DsYbP4IS.js.map +0 -1
  116. package/dist/WebCryptoP256-Czt7ZkJ7.js +0 -3299
  117. package/dist/WebCryptoP256-Czt7ZkJ7.js.map +0 -1
  118. package/dist/add-UkulHTXi.js +0 -20
  119. package/dist/add-UkulHTXi.js.map +0 -1
  120. package/dist/all-wallets-DhJCVmL_.js +0 -11
  121. package/dist/all-wallets-DhJCVmL_.js.map +0 -1
  122. package/dist/app-store-Ern3I2La.js +0 -22
  123. package/dist/app-store-Ern3I2La.js.map +0 -1
  124. package/dist/appkit-ppmICUF1.js +0 -118106
  125. package/dist/appkit-ppmICUF1.js.map +0 -1
  126. package/dist/appkit.js +0 -11
  127. package/dist/appkit.js.map +0 -1
  128. package/dist/apple-_SZ-XSIx.js +0 -23
  129. package/dist/apple-_SZ-XSIx.js.map +0 -1
  130. package/dist/arrow-bottom-D7Qlu6xE.js +0 -13
  131. package/dist/arrow-bottom-D7Qlu6xE.js.map +0 -1
  132. package/dist/arrow-bottom-circle-Cel-TDaT.js +0 -16
  133. package/dist/arrow-bottom-circle-Cel-TDaT.js.map +0 -1
  134. package/dist/arrow-left-ByNxCvA_.js +0 -13
  135. package/dist/arrow-left-ByNxCvA_.js.map +0 -1
  136. package/dist/arrow-right-yep9R_ud.js +0 -13
  137. package/dist/arrow-right-yep9R_ud.js.map +0 -1
  138. package/dist/arrow-top-C1WlBAfk.js +0 -13
  139. package/dist/arrow-top-C1WlBAfk.js.map +0 -1
  140. package/dist/async-directive-C9EnweIr.js +0 -73
  141. package/dist/async-directive-C9EnweIr.js.map +0 -1
  142. package/dist/bank-Dm8zmIr0.js +0 -19
  143. package/dist/bank-Dm8zmIr0.js.map +0 -1
  144. package/dist/basic-UB459qAF.js +0 -4914
  145. package/dist/basic-UB459qAF.js.map +0 -1
  146. package/dist/browser-5XoTmr4n.js +0 -1991
  147. package/dist/browser-5XoTmr4n.js.map +0 -1
  148. package/dist/browser-LYv8PF5c.js +0 -19
  149. package/dist/browser-LYv8PF5c.js.map +0 -1
  150. package/dist/card-CEQLkIir.js +0 -19
  151. package/dist/card-CEQLkIir.js.map +0 -1
  152. package/dist/ccip-Dj8tRQd7.js +0 -164
  153. package/dist/ccip-Dj8tRQd7.js.map +0 -1
  154. package/dist/checkmark-DPFC_0yn.js +0 -16
  155. package/dist/checkmark-DPFC_0yn.js.map +0 -1
  156. package/dist/checkmark-bold-Hwfezlkn.js +0 -13
  157. package/dist/checkmark-bold-Hwfezlkn.js.map +0 -1
  158. package/dist/chevron-bottom-qsPvhQDo.js +0 -13
  159. package/dist/chevron-bottom-qsPvhQDo.js.map +0 -1
  160. package/dist/chevron-left-CA4SOr_F.js +0 -13
  161. package/dist/chevron-left-CA4SOr_F.js.map +0 -1
  162. package/dist/chevron-right-TeVZyORZ.js +0 -13
  163. package/dist/chevron-right-TeVZyORZ.js.map +0 -1
  164. package/dist/chevron-top-B7LCiM2n.js +0 -13
  165. package/dist/chevron-top-B7LCiM2n.js.map +0 -1
  166. package/dist/chrome-store-CU7w_5QC.js +0 -66
  167. package/dist/chrome-store-CU7w_5QC.js.map +0 -1
  168. package/dist/class-map-B814K2ej.js +0 -101
  169. package/dist/class-map-B814K2ej.js.map +0 -1
  170. package/dist/clock-DcbItfiJ.js +0 -13
  171. package/dist/clock-DcbItfiJ.js.map +0 -1
  172. package/dist/close-B22QsrS0.js +0 -13
  173. package/dist/close-B22QsrS0.js.map +0 -1
  174. package/dist/clsx.m-D57qXwfE.js +0 -21
  175. package/dist/clsx.m-D57qXwfE.js.map +0 -1
  176. package/dist/coinPlaceholder-BNrjpg6-.js +0 -13
  177. package/dist/coinPlaceholder-BNrjpg6-.js.map +0 -1
  178. package/dist/compass-C7GRFU39.js +0 -13
  179. package/dist/compass-C7GRFU39.js.map +0 -1
  180. package/dist/copy-BcrOhyLL.js +0 -20
  181. package/dist/copy-BcrOhyLL.js.map +0 -1
  182. package/dist/core-BI_Ap4BF.js +0 -16288
  183. package/dist/core-BI_Ap4BF.js.map +0 -1
  184. package/dist/cursor-AJkpyAWk.js +0 -8
  185. package/dist/cursor-AJkpyAWk.js.map +0 -1
  186. package/dist/cursor-transparent-C1dF4GFm.js +0 -17
  187. package/dist/cursor-transparent-C1dF4GFm.js.map +0 -1
  188. package/dist/data-capture-CqwQ1053.js +0 -549
  189. package/dist/data-capture-CqwQ1053.js.map +0 -1
  190. package/dist/desktop-C60oOo59.js +0 -14
  191. package/dist/desktop-C60oOo59.js.map +0 -1
  192. package/dist/disconnect-DqS517fE.js +0 -13
  193. package/dist/disconnect-DqS517fE.js.map +0 -1
  194. package/dist/discord-D1qNpgLJ.js +0 -22
  195. package/dist/discord-D1qNpgLJ.js.map +0 -1
  196. package/dist/email-UK97sxf8.js +0 -421
  197. package/dist/email-UK97sxf8.js.map +0 -1
  198. package/dist/embedded-wallet-f8ft4R2q.js +0 -952
  199. package/dist/embedded-wallet-f8ft4R2q.js.map +0 -1
  200. package/dist/etherscan-BWSY3GuJ.js +0 -11
  201. package/dist/etherscan-BWSY3GuJ.js.map +0 -1
  202. package/dist/exclamation-triangle-nypPoZ5T.js +0 -9
  203. package/dist/exclamation-triangle-nypPoZ5T.js.map +0 -1
  204. package/dist/extension-BuFHuaRl.js +0 -13
  205. package/dist/extension-BuFHuaRl.js.map +0 -1
  206. package/dist/external-link-L3QQJwck.js +0 -13
  207. package/dist/external-link-L3QQJwck.js.map +0 -1
  208. package/dist/facebook-BbbjiGyt.js +0 -31
  209. package/dist/facebook-BbbjiGyt.js.map +0 -1
  210. package/dist/farcaster-CDar3vjq.js +0 -17
  211. package/dist/farcaster-CDar3vjq.js.map +0 -1
  212. package/dist/features-Dne1ZyJy.js +0 -319
  213. package/dist/features-Dne1ZyJy.js.map +0 -1
  214. package/dist/filters-BprVfwTM.js +0 -13
  215. package/dist/filters-BprVfwTM.js.map +0 -1
  216. package/dist/github-BFRFSS65.js +0 -23
  217. package/dist/github-BFRFSS65.js.map +0 -1
  218. package/dist/google-DX3b-tuu.js +0 -23
  219. package/dist/google-DX3b-tuu.js.map +0 -1
  220. package/dist/hashTypedData-MEx8_Z-J.js +0 -262
  221. package/dist/hashTypedData-MEx8_Z-J.js.map +0 -1
  222. package/dist/help-circle-PtWG4XV9.js +0 -17
  223. package/dist/help-circle-PtWG4XV9.js.map +0 -1
  224. package/dist/id-BKzsrqpW.js +0 -17
  225. package/dist/id-BKzsrqpW.js.map +0 -1
  226. package/dist/if-defined-CyuCf775.js +0 -11
  227. package/dist/if-defined-CyuCf775.js.map +0 -1
  228. package/dist/image-2qjHFSqv.js +0 -9
  229. package/dist/image-2qjHFSqv.js.map +0 -1
  230. package/dist/index-57er67ch.js +0 -131
  231. package/dist/index-57er67ch.js.map +0 -1
  232. package/dist/index-B-MpJOWW.js +0 -3987
  233. package/dist/index-B-MpJOWW.js.map +0 -1
  234. package/dist/index-B2f4UbAK.js +0 -257
  235. package/dist/index-B2f4UbAK.js.map +0 -1
  236. package/dist/index-B4xD2s69.js +0 -62
  237. package/dist/index-B4xD2s69.js.map +0 -1
  238. package/dist/index-BF4uePO9.js +0 -126
  239. package/dist/index-BF4uePO9.js.map +0 -1
  240. package/dist/index-BG3007yu.js +0 -542
  241. package/dist/index-BG3007yu.js.map +0 -1
  242. package/dist/index-BPqsyCu1.js +0 -249
  243. package/dist/index-BPqsyCu1.js.map +0 -1
  244. package/dist/index-BTFeMb7h.js +0 -2277
  245. package/dist/index-BTFeMb7h.js.map +0 -1
  246. package/dist/index-B_z_MPZ-.js +0 -180
  247. package/dist/index-B_z_MPZ-.js.map +0 -1
  248. package/dist/index-Biw_bFmP.js +0 -70
  249. package/dist/index-Biw_bFmP.js.map +0 -1
  250. package/dist/index-BnY1urGu.js +0 -441
  251. package/dist/index-BnY1urGu.js.map +0 -1
  252. package/dist/index-C1OrBJOZ.js +0 -218
  253. package/dist/index-C1OrBJOZ.js.map +0 -1
  254. package/dist/index-CHvzOG0E.js +0 -1372
  255. package/dist/index-CHvzOG0E.js.map +0 -1
  256. package/dist/index-CKaIBA_q.js +0 -153
  257. package/dist/index-CKaIBA_q.js.map +0 -1
  258. package/dist/index-CLefivQ6.js +0 -124
  259. package/dist/index-CLefivQ6.js.map +0 -1
  260. package/dist/index-COvWUE72.js +0 -716
  261. package/dist/index-COvWUE72.js.map +0 -1
  262. package/dist/index-CRhk6ovx.js +0 -198
  263. package/dist/index-CRhk6ovx.js.map +0 -1
  264. package/dist/index-CfTNvhZC.js +0 -967
  265. package/dist/index-CfTNvhZC.js.map +0 -1
  266. package/dist/index-CjCwufpz.js +0 -120
  267. package/dist/index-CjCwufpz.js.map +0 -1
  268. package/dist/index-Ck3zz_LE.js +0 -984
  269. package/dist/index-Ck3zz_LE.js.map +0 -1
  270. package/dist/index-CqVDx2Ua.js +0 -9350
  271. package/dist/index-CqVDx2Ua.js.map +0 -1
  272. package/dist/index-CrF2nCtM.js +0 -211
  273. package/dist/index-CrF2nCtM.js.map +0 -1
  274. package/dist/index-Crnbnlbl.js +0 -8825
  275. package/dist/index-Crnbnlbl.js.map +0 -1
  276. package/dist/index-D7bwcPcO.js +0 -147
  277. package/dist/index-D7bwcPcO.js.map +0 -1
  278. package/dist/index-DAmhDlFG.js +0 -985
  279. package/dist/index-DAmhDlFG.js.map +0 -1
  280. package/dist/index-DF9XlWjQ.js +0 -456
  281. package/dist/index-DF9XlWjQ.js.map +0 -1
  282. package/dist/index-DGtLnlsD.js +0 -521
  283. package/dist/index-DGtLnlsD.js.map +0 -1
  284. package/dist/index-DIDlQZ9c.js +0 -1582
  285. package/dist/index-DIDlQZ9c.js.map +0 -1
  286. package/dist/index-DJe9wj3q.js +0 -136
  287. package/dist/index-DJe9wj3q.js.map +0 -1
  288. package/dist/index-DPlE9Qgr.js +0 -73
  289. package/dist/index-DPlE9Qgr.js.map +0 -1
  290. package/dist/index-DVXtgl7V.js +0 -7481
  291. package/dist/index-DVXtgl7V.js.map +0 -1
  292. package/dist/index-DWLAu0nH.js +0 -110
  293. package/dist/index-DWLAu0nH.js.map +0 -1
  294. package/dist/index-DXCwyaz_.js +0 -147
  295. package/dist/index-DXCwyaz_.js.map +0 -1
  296. package/dist/index-D_NteNrS.js +0 -198
  297. package/dist/index-D_NteNrS.js.map +0 -1
  298. package/dist/index-Dg65-p7m.js +0 -7258
  299. package/dist/index-Dg65-p7m.js.map +0 -1
  300. package/dist/index-Du7PdWv1.js +0 -181
  301. package/dist/index-Du7PdWv1.js.map +0 -1
  302. package/dist/index-HOjNYM_k.js +0 -92
  303. package/dist/index-HOjNYM_k.js.map +0 -1
  304. package/dist/index-MwW0rp8T.js +0 -286
  305. package/dist/index-MwW0rp8T.js.map +0 -1
  306. package/dist/index-OCzLDbWt.js +0 -18322
  307. package/dist/index-OCzLDbWt.js.map +0 -1
  308. package/dist/index-Sf3UCmHB.js +0 -611
  309. package/dist/index-Sf3UCmHB.js.map +0 -1
  310. package/dist/index-Zt_Jj4gf.js +0 -520
  311. package/dist/index-Zt_Jj4gf.js.map +0 -1
  312. package/dist/index-kb6zqfNt.js +0 -1178
  313. package/dist/index-kb6zqfNt.js.map +0 -1
  314. package/dist/index-rYPftA0P.js +0 -52
  315. package/dist/index-rYPftA0P.js.map +0 -1
  316. package/dist/index-tdPUUHj0.js +0 -281
  317. package/dist/index-tdPUUHj0.js.map +0 -1
  318. package/dist/index-wVp4UjVg.js +0 -182
  319. package/dist/index-wVp4UjVg.js.map +0 -1
  320. package/dist/index-ywRnp0Bi.js +0 -109
  321. package/dist/index-ywRnp0Bi.js.map +0 -1
  322. package/dist/index.es-BrfaQK0n.js +0 -8391
  323. package/dist/index.es-BrfaQK0n.js.map +0 -1
  324. package/dist/info-BhM-vMtG.js +0 -8
  325. package/dist/info-BhM-vMtG.js.map +0 -1
  326. package/dist/info-circle-DwGnsKMj.js +0 -17
  327. package/dist/info-circle-DwGnsKMj.js.map +0 -1
  328. package/dist/jsxRuntime.module-BW0yCO8A.js +0 -14
  329. package/dist/jsxRuntime.module-BW0yCO8A.js.map +0 -1
  330. package/dist/lightbulb-BvGmXMuo.js +0 -8
  331. package/dist/lightbulb-BvGmXMuo.js.map +0 -1
  332. package/dist/localBatchGatewayRequest-CLL1gABv.js +0 -103
  333. package/dist/localBatchGatewayRequest-CLL1gABv.js.map +0 -1
  334. package/dist/mail-Cl70v1Dx.js +0 -13
  335. package/dist/mail-Cl70v1Dx.js.map +0 -1
  336. package/dist/metamask-sdk-BzQ933Ju.js +0 -16699
  337. package/dist/metamask-sdk-BzQ933Ju.js.map +0 -1
  338. package/dist/mobile-BCINjy0Y.js +0 -14
  339. package/dist/mobile-BCINjy0Y.js.map +0 -1
  340. package/dist/more-Cozw6-SQ.js +0 -16
  341. package/dist/more-Cozw6-SQ.js.map +0 -1
  342. package/dist/native-Dc_5StoC.js +0 -17
  343. package/dist/native-Dc_5StoC.js.map +0 -1
  344. package/dist/network-placeholder-o2Dz_YnK.js +0 -19
  345. package/dist/network-placeholder-o2Dz_YnK.js.map +0 -1
  346. package/dist/nftPlaceholder-Bjf9SAC-.js +0 -13
  347. package/dist/nftPlaceholder-Bjf9SAC-.js.map +0 -1
  348. package/dist/off-BsVJ8v6H.js +0 -13
  349. package/dist/off-BsVJ8v6H.js.map +0 -1
  350. package/dist/onramp-C4DqYEmw.js +0 -979
  351. package/dist/onramp-C4DqYEmw.js.map +0 -1
  352. package/dist/parseAbiParameters-DfJcIE_w.js +0 -757
  353. package/dist/parseAbiParameters-DfJcIE_w.js.map +0 -1
  354. package/dist/parseSignature-MJforcG6.js +0 -4690
  355. package/dist/parseSignature-MJforcG6.js.map +0 -1
  356. package/dist/pay-with-exchange-DC29BzBo.js +0 -603
  357. package/dist/pay-with-exchange-DC29BzBo.js.map +0 -1
  358. package/dist/play-store-DIOK4cBW.js +0 -37
  359. package/dist/play-store-DIOK4cBW.js.map +0 -1
  360. package/dist/plus-Cxls3O6G.js +0 -18
  361. package/dist/plus-Cxls3O6G.js.map +0 -1
  362. package/dist/property-8UcTqffH.js +0 -623
  363. package/dist/property-8UcTqffH.js.map +0 -1
  364. package/dist/qr-code-Cp6lpAcY.js +0 -11
  365. package/dist/qr-code-Cp6lpAcY.js.map +0 -1
  366. package/dist/receive-BLI57snb.js +0 -262
  367. package/dist/receive-BLI57snb.js.map +0 -1
  368. package/dist/recycle-horizontal-AEJ_nbSP.js +0 -14
  369. package/dist/recycle-horizontal-AEJ_nbSP.js.map +0 -1
  370. package/dist/ref-BobNUvS_.js +0 -43
  371. package/dist/ref-BobNUvS_.js.map +0 -1
  372. package/dist/refresh-7roUeD2M.js +0 -13
  373. package/dist/refresh-7roUeD2M.js.map +0 -1
  374. package/dist/reown-logo-xggoIKX2.js +0 -17
  375. package/dist/reown-logo-xggoIKX2.js.map +0 -1
  376. package/dist/search-DgzcpMUb.js +0 -13
  377. package/dist/search-DgzcpMUb.js.map +0 -1
  378. package/dist/secp256k1-D_j0Z4BY.js +0 -2031
  379. package/dist/secp256k1-D_j0Z4BY.js.map +0 -1
  380. package/dist/send-D7M2-Upc.js +0 -20
  381. package/dist/send-D7M2-Upc.js.map +0 -1
  382. package/dist/send-TAzhXOOa.js +0 -1365
  383. package/dist/send-TAzhXOOa.js.map +0 -1
  384. package/dist/socials-BXTq602s.js +0 -796
  385. package/dist/socials-BXTq602s.js.map +0 -1
  386. package/dist/swapHorizontal-2gzDDUNF.js +0 -13
  387. package/dist/swapHorizontal-2gzDDUNF.js.map +0 -1
  388. package/dist/swapHorizontalBold-C1cHwAjU.js +0 -13
  389. package/dist/swapHorizontalBold-C1cHwAjU.js.map +0 -1
  390. package/dist/swapHorizontalMedium-BQno5vep.js +0 -21
  391. package/dist/swapHorizontalMedium-BQno5vep.js.map +0 -1
  392. package/dist/swapHorizontalRoundedBold-CYmZDeQ5.js +0 -13
  393. package/dist/swapHorizontalRoundedBold-CYmZDeQ5.js.map +0 -1
  394. package/dist/swapVertical-BhRPysBs.js +0 -13
  395. package/dist/swapVertical-BhRPysBs.js.map +0 -1
  396. package/dist/swaps-DQ-uUZvX.js +0 -2121
  397. package/dist/swaps-DQ-uUZvX.js.map +0 -1
  398. package/dist/telegram-B-YOyhte.js +0 -21
  399. package/dist/telegram-B-YOyhte.js.map +0 -1
  400. package/dist/three-dots-8mr70UzU.js +0 -10
  401. package/dist/three-dots-8mr70UzU.js.map +0 -1
  402. package/dist/transactions-C4p83vMQ.js +0 -38
  403. package/dist/transactions-C4p83vMQ.js.map +0 -1
  404. package/dist/twitch-C2ccExfT.js +0 -23
  405. package/dist/twitch-C2ccExfT.js.map +0 -1
  406. package/dist/twitterIcon-IkT5wPxq.js +0 -11
  407. package/dist/twitterIcon-IkT5wPxq.js.map +0 -1
  408. package/dist/vanilla-CgG5xMJO.js +0 -448
  409. package/dist/vanilla-CgG5xMJO.js.map +0 -1
  410. package/dist/verify-BfilAaob.js +0 -13
  411. package/dist/verify-BfilAaob.js.map +0 -1
  412. package/dist/verify-filled-COkWKgPo.js +0 -13
  413. package/dist/verify-filled-COkWKgPo.js.map +0 -1
  414. package/dist/w3m-modal-9MzgEqm3.js +0 -1725
  415. package/dist/w3m-modal-9MzgEqm3.js.map +0 -1
  416. package/dist/w3m-modal-DBQU256b.js +0 -2008
  417. package/dist/w3m-modal-DBQU256b.js.map +0 -1
  418. package/dist/wallet-9D5svrZj.js +0 -13
  419. package/dist/wallet-9D5svrZj.js.map +0 -1
  420. package/dist/wallet-placeholder-CfLGKG93.js +0 -19
  421. package/dist/wallet-placeholder-CfLGKG93.js.map +0 -1
  422. package/dist/wallet-standard-CkMoUaGA.js +0 -523
  423. package/dist/wallet-standard-CkMoUaGA.js.map +0 -1
  424. package/dist/walletconnect-MtAz2u7z.js +0 -39
  425. package/dist/walletconnect-MtAz2u7z.js.map +0 -1
  426. package/dist/warning-circle-Cf2AJecu.js +0 -17
  427. package/dist/warning-circle-Cf2AJecu.js.map +0 -1
  428. package/dist/x-B0KhGb39.js +0 -17
  429. package/dist/x-B0KhGb39.js.map +0 -1
@@ -1,1582 +0,0 @@
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-ppmICUF1.js";
2
- import { n, r } from "./class-map-B814K2ej.js";
3
- import { U as UiHelperUtil, c as customElement } from "./index-kb6zqfNt.js";
4
- import "./index-BF4uePO9.js";
5
- import "./index-CjCwufpz.js";
6
- import { o } from "./if-defined-CyuCf775.js";
7
- import "./index-D7bwcPcO.js";
8
- import "./index-Biw_bFmP.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-DIDlQZ9c.js.map