@multiversx/sdk-dapp 5.2.1 → 5.2.2-alpha.1

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 (407) hide show
  1. package/out/__chunks__/{chunk-TASSEE6N.mjs → chunk-26EQVDJ2.mjs} +2 -2
  2. package/out/__chunks__/chunk-2L23OQ3D.mjs +2 -0
  3. package/out/__chunks__/{chunk-DZ5FL2WV.mjs → chunk-2QW7XAGS.mjs} +2 -2
  4. package/out/__chunks__/chunk-2WIGLKYG.mjs +2 -0
  5. package/out/__chunks__/{chunk-IPIX74CB.mjs → chunk-3VA7OXBH.mjs} +2 -2
  6. package/out/__chunks__/{chunk-N2KEJEOD.mjs → chunk-3XKIU7VA.mjs} +2 -2
  7. package/out/__chunks__/{chunk-EPMKXFFR.mjs → chunk-5CJ4UDMA.mjs} +2 -2
  8. package/out/__chunks__/chunk-5FPOZ2AY.mjs +2 -0
  9. package/out/__chunks__/{chunk-SBOOJTIB.mjs → chunk-5HBNM4M2.mjs} +2 -2
  10. package/out/__chunks__/chunk-5JDTRILF.mjs +2 -0
  11. package/out/__chunks__/{chunk-BBCLPJC4.mjs → chunk-72BJ253L.mjs} +2 -2
  12. package/out/__chunks__/{chunk-HEA7NFOF.mjs → chunk-756GEXZI.mjs} +2 -2
  13. package/out/__chunks__/chunk-7BYCH7J2.mjs +2 -0
  14. package/out/__chunks__/{chunk-WVZRN2HX.mjs.map → chunk-7BYCH7J2.mjs.map} +1 -1
  15. package/out/__chunks__/chunk-7P3DNMWN.mjs +2 -0
  16. package/out/__chunks__/{chunk-2Y66XRQK.mjs → chunk-7ZUH3TQ2.mjs} +2 -2
  17. package/out/__chunks__/{chunk-62QLCUQH.mjs → chunk-ATGWLKGR.mjs} +2 -2
  18. package/out/__chunks__/{chunk-IV4LWBR3.mjs → chunk-BODBU56I.mjs} +2 -2
  19. package/out/__chunks__/{chunk-7JATWFXB.mjs → chunk-BPIUSUQG.mjs} +2 -2
  20. package/out/__chunks__/{chunk-R7667VN6.mjs → chunk-CRQHYOGT.mjs} +2 -2
  21. package/out/__chunks__/{chunk-O6RJHMIJ.mjs → chunk-CYWT37FT.mjs} +2 -2
  22. package/out/__chunks__/chunk-DBQCAF6H.mjs +2 -0
  23. package/out/__chunks__/{chunk-32ZBY2AE.mjs → chunk-EFZBU2L3.mjs} +2 -2
  24. package/out/__chunks__/{chunk-BKVZCTUG.mjs → chunk-EHMHIAOC.mjs} +2 -2
  25. package/out/__chunks__/{chunk-OMZ6A4DO.mjs → chunk-EHSW5LVN.mjs} +2 -2
  26. package/out/__chunks__/chunk-FAUGS6HG.mjs +2 -0
  27. package/out/__chunks__/{chunk-GYYCA57F.mjs → chunk-FEZKCHK7.mjs} +2 -2
  28. package/out/__chunks__/chunk-FKTD2GRY.mjs +2 -0
  29. package/out/__chunks__/{chunk-XV2BD67Y.mjs → chunk-FLJAPLZE.mjs} +2 -2
  30. package/out/__chunks__/{chunk-AS7XXEHY.mjs → chunk-FSJ6P7DN.mjs} +2 -2
  31. package/out/__chunks__/chunk-G6PZFECX.mjs +2 -0
  32. package/out/__chunks__/{chunk-XI2BWIQP.mjs → chunk-HBXJVW2D.mjs} +2 -2
  33. package/out/__chunks__/chunk-HNB7MO3A.mjs +2 -0
  34. package/out/__chunks__/{chunk-EIOADZ47.mjs → chunk-J7JGI5JV.mjs} +2 -2
  35. package/out/__chunks__/chunk-JLE5ZH6J.mjs +2 -0
  36. package/out/__chunks__/chunk-JLE5ZH6J.mjs.map +7 -0
  37. package/out/__chunks__/{chunk-PGGSHHQJ.mjs → chunk-JR7IKIR6.mjs} +2 -2
  38. package/out/__chunks__/chunk-KFS4ZIKP.mjs +2 -0
  39. package/out/__chunks__/chunk-KFS4ZIKP.mjs.map +7 -0
  40. package/out/__chunks__/{chunk-ZHGONRBM.mjs → chunk-KMNG6RHN.mjs} +2 -2
  41. package/out/__chunks__/{chunk-DHTRPE3R.mjs → chunk-LH7HQXQ7.mjs} +2 -2
  42. package/out/__chunks__/chunk-LKI7Z4RK.mjs +2 -0
  43. package/out/__chunks__/{chunk-IGTIIBN6.mjs → chunk-LNYGKGJE.mjs} +2 -2
  44. package/out/__chunks__/{chunk-RYOUAM3L.mjs → chunk-LSHOMXXT.mjs} +2 -2
  45. package/out/__chunks__/{chunk-WLXKUUZ3.mjs → chunk-LWYHD7UG.mjs} +2 -2
  46. package/out/__chunks__/{chunk-B5K6T6DF.mjs → chunk-MIODWPNV.mjs} +2 -2
  47. package/out/__chunks__/chunk-MMG52PCY.mjs +2 -0
  48. package/out/__chunks__/chunk-MRHKKGSJ.mjs +2 -0
  49. package/out/__chunks__/{chunk-4G2T73DC.mjs → chunk-MT47AO63.mjs} +2 -2
  50. package/out/__chunks__/{chunk-57P66SOT.mjs → chunk-MUPCSQI2.mjs} +2 -2
  51. package/out/__chunks__/{chunk-TZJL7CZF.mjs → chunk-MXO2L46I.mjs} +2 -2
  52. package/out/__chunks__/{chunk-DE6O7BFR.mjs → chunk-NSW7SBHH.mjs} +2 -2
  53. package/out/__chunks__/{chunk-ZEJRHV7U.mjs → chunk-NUUOYZJB.mjs} +2 -2
  54. package/out/__chunks__/chunk-OQWBS4SC.mjs +2 -0
  55. package/out/__chunks__/{chunk-W75ZD7BB.mjs → chunk-OWO6FJAZ.mjs} +2 -2
  56. package/out/__chunks__/{chunk-OFU3D2KB.mjs → chunk-PEBY7O46.mjs} +2 -2
  57. package/out/__chunks__/{chunk-SG5YZ37N.mjs → chunk-PGCZMYUZ.mjs} +2 -2
  58. package/out/__chunks__/{chunk-NE4YNYCQ.mjs → chunk-PQ2PJ25S.mjs} +2 -2
  59. package/out/__chunks__/{chunk-JV4IJH7L.mjs → chunk-QIN2VFBM.mjs} +2 -2
  60. package/out/__chunks__/{chunk-5VSKEHYA.mjs → chunk-QNT5Z55W.mjs} +2 -2
  61. package/out/__chunks__/{chunk-OYCDHRNS.mjs → chunk-R2VTYQ7O.mjs} +2 -2
  62. package/out/__chunks__/{chunk-IJKCH7CT.mjs → chunk-RI45GLZ7.mjs} +2 -2
  63. package/out/__chunks__/{chunk-4NQ35FCJ.mjs → chunk-RORFSL37.mjs} +2 -2
  64. package/out/__chunks__/{chunk-UCRVRBTA.mjs → chunk-S6NHNEQK.mjs} +2 -2
  65. package/out/__chunks__/chunk-SMON5ZO5.mjs +2 -0
  66. package/out/__chunks__/chunk-SOQYOVR7.mjs +2 -0
  67. package/out/__chunks__/{chunk-WQAFFPAS.mjs → chunk-SRHQKUXP.mjs} +2 -2
  68. package/out/__chunks__/{chunk-H2EFE4NU.mjs → chunk-TB2Y5M67.mjs} +2 -2
  69. package/out/__chunks__/{chunk-34ZJZYMC.mjs → chunk-TXRPUKQM.mjs} +2 -2
  70. package/out/__chunks__/{chunk-OHHNQ66F.mjs → chunk-UTU2EQJA.mjs} +2 -2
  71. package/out/__chunks__/{chunk-VNMU246H.mjs → chunk-VR7K4BBB.mjs} +2 -2
  72. package/out/__chunks__/{chunk-C3Y3ANFE.mjs → chunk-VV7CPNPW.mjs} +2 -2
  73. package/out/__chunks__/{chunk-R6QKRGY5.mjs → chunk-VVRC7ANW.mjs} +2 -2
  74. package/out/__chunks__/{chunk-5JVY6GJC.mjs → chunk-WNTY5HJN.mjs} +2 -2
  75. package/out/__chunks__/{chunk-5PGKBWB6.mjs → chunk-X4KR5OSC.mjs} +2 -2
  76. package/out/__chunks__/{chunk-4LTMFD6V.mjs → chunk-X5C4JWTG.mjs} +2 -2
  77. package/out/__chunks__/{chunk-OXPZVCKM.mjs → chunk-XHOY6ZTM.mjs} +2 -2
  78. package/out/__chunks__/{chunk-X5IHXBJ3.mjs → chunk-XJWZ6BDQ.mjs} +2 -2
  79. package/out/__chunks__/{chunk-OPX7XWAC.mjs → chunk-Y5UBM4II.mjs} +2 -2
  80. package/out/__chunks__/{chunk-EP4OBHW4.mjs → chunk-YDK5V2BZ.mjs} +2 -2
  81. package/out/__chunks__/chunk-YL7WVJQO.mjs +2 -0
  82. package/out/__chunks__/{chunk-AMS6KZTC.mjs → chunk-YOJ6MVBW.mjs} +2 -2
  83. package/out/__chunks__/{chunk-JIKCHL57.mjs → chunk-Z5RRBB6V.mjs} +2 -2
  84. package/out/__chunks__/{chunk-OLOOCCNU.mjs → chunk-ZEYX332S.mjs} +2 -2
  85. package/out/__chunks__/chunk-ZONHCECO.mjs +2 -0
  86. package/out/__chunks__/chunk-ZONHCECO.mjs.map +7 -0
  87. package/out/__chunks__/chunk-ZVIKYGX5.mjs +2 -0
  88. package/out/__chunks__/{chunk-6JSWL75O.mjs.map → chunk-ZVIKYGX5.mjs.map} +2 -2
  89. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  90. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  91. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  92. package/out/apiCalls/index.mjs +1 -1
  93. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  94. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  95. package/out/apiCalls/tokens/index.mjs +1 -1
  96. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  97. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  98. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  99. package/out/constants/browser.constants.mjs +1 -1
  100. package/out/constants/index.mjs +1 -1
  101. package/out/constants/providerFactory.constants.cjs +0 -1
  102. package/out/constants/providerFactory.constants.cjs.map +2 -2
  103. package/out/constants/providerFactory.constants.mjs +1 -1
  104. package/out/constants/storage.constants.mjs +1 -1
  105. package/out/constants/window.constants.cjs +1 -1
  106. package/out/constants/window.constants.cjs.map +1 -1
  107. package/out/constants/window.constants.mjs +1 -1
  108. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  109. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  110. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  111. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  112. package/out/index.mjs +1 -1
  113. package/out/lib/sdkDappUi.mjs +1 -1
  114. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  115. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  116. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  117. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  118. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  119. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  120. package/out/managers/ToastManager/index.mjs +1 -1
  121. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  122. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  123. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  124. package/out/managers/TransactionManager/index.mjs +1 -1
  125. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  126. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  127. package/out/managers/index.mjs +1 -1
  128. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  129. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  130. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  131. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  132. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  133. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  134. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  135. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  136. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  137. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  138. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  139. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  140. package/out/managers/internal/index.mjs +1 -1
  141. package/out/methods/account/getAccount.mjs +1 -1
  142. package/out/methods/account/getAccountInfo.mjs +1 -1
  143. package/out/methods/account/getAddress.mjs +1 -1
  144. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  145. package/out/methods/account/getLatestNonce.mjs +1 -1
  146. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  147. package/out/methods/initApp/initApp.mjs +1 -1
  148. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  149. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  150. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  151. package/out/methods/network/getEgldLabel.mjs +1 -1
  152. package/out/methods/network/getExplorerAddress.mjs +1 -1
  153. package/out/methods/network/getNetworkConfig.mjs +1 -1
  154. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  155. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  156. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  157. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  158. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  159. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  160. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  161. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  162. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  163. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  164. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  165. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  166. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  167. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  168. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  169. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  170. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  171. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  172. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  173. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  174. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  175. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  177. package/out/providers/DappProvider/index.mjs +1 -1
  178. package/out/providers/ProviderFactory.cjs +1 -10
  179. package/out/providers/ProviderFactory.cjs.map +2 -2
  180. package/out/providers/ProviderFactory.mjs +1 -1
  181. package/out/providers/helpers/accountProvider.mjs +1 -1
  182. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  183. package/out/providers/helpers/clearInitiatedLogins.mjs +1 -1
  184. package/out/providers/helpers/emptyProvider.mjs +1 -1
  185. package/out/providers/helpers/restoreProvider.mjs +1 -1
  186. package/out/providers/index.mjs +1 -1
  187. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  188. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  189. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  190. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  191. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  192. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs +9 -11
  193. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.cjs.map +2 -2
  194. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.d.ts +1 -2
  195. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  196. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  197. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.cjs.map +1 -1
  198. package/out/providers/strategies/IframeProviderStrategy/types/iframe.types.d.ts +0 -2
  199. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  205. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  206. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  207. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  208. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  209. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  210. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  211. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  212. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  213. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  214. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  215. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  216. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  217. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  218. package/out/providers/strategies/helpers/index.mjs +1 -1
  219. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  220. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  221. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs +4 -6
  222. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.cjs.map +2 -2
  223. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  224. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  225. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  226. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  227. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  228. package/out/providers/strategies/index.mjs +1 -1
  229. package/out/providers/types/providerFactory.types.cjs +0 -1
  230. package/out/providers/types/providerFactory.types.cjs.map +2 -2
  231. package/out/providers/types/providerFactory.types.d.ts +0 -1
  232. package/out/providers/types/providerFactory.types.mjs +1 -1
  233. package/out/react/account/useGetAccount.mjs +1 -1
  234. package/out/react/account/useGetAccountInfo.mjs +1 -1
  235. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  236. package/out/react/account/useGetLatestNonce.mjs +1 -1
  237. package/out/react/index.mjs +1 -1
  238. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  239. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  240. package/out/react/store/getReactStore.mjs +1 -1
  241. package/out/react/store/useSelector.mjs +1 -1
  242. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  243. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  244. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  245. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  246. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  247. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  248. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  249. package/out/services/index.mjs +1 -1
  250. package/out/services/nativeAuth/index.mjs +1 -1
  251. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  252. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  253. package/out/services/nativeAuth/methods/index.mjs +1 -1
  254. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  255. package/out/store/actions/account/accountActions.mjs +1 -1
  256. package/out/store/actions/account/index.mjs +1 -1
  257. package/out/store/actions/cache/cacheActions.mjs +1 -1
  258. package/out/store/actions/cache/index.mjs +1 -1
  259. package/out/store/actions/config/configActions.mjs +1 -1
  260. package/out/store/actions/config/index.mjs +1 -1
  261. package/out/store/actions/index.mjs +1 -1
  262. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  263. package/out/store/actions/network/index.mjs +1 -1
  264. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  265. package/out/store/actions/network/networkActions.mjs +1 -1
  266. package/out/store/actions/sharedActions/index.mjs +1 -1
  267. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  268. package/out/store/actions/toasts/index.mjs +1 -1
  269. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  270. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  271. package/out/store/actions/ui/index.mjs +1 -1
  272. package/out/store/actions/ui/uiActions.mjs +1 -1
  273. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  274. package/out/store/middleware/index.mjs +1 -1
  275. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  276. package/out/store/storage/index.mjs +1 -1
  277. package/out/store/storage/storageCallback.mjs +1 -1
  278. package/out/store/store.mjs +1 -1
  279. package/out/utils/ComponentFactory.mjs +1 -1
  280. package/out/utils/account/index.mjs +1 -1
  281. package/out/utils/account/refreshAccount.mjs +1 -1
  282. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  283. package/out/utils/index.mjs +1 -1
  284. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  285. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  286. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  287. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  288. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  289. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  290. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  291. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  292. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  293. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  294. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  295. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  296. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  297. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  298. package/out/utils/transactions/index.mjs +1 -1
  299. package/out/utils/visual/index.mjs +1 -1
  300. package/out/utils/visual/switchTheme.mjs +1 -1
  301. package/out/utils/window/getIsInIframe.mjs +1 -1
  302. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  303. package/out/utils/window/index.mjs +1 -1
  304. package/package.json +2 -2
  305. package/out/__chunks__/chunk-3JEK5A62.mjs +0 -2
  306. package/out/__chunks__/chunk-5LFB2H3K.mjs +0 -2
  307. package/out/__chunks__/chunk-5UYF2YJN.mjs +0 -2
  308. package/out/__chunks__/chunk-5W77GYVQ.mjs +0 -2
  309. package/out/__chunks__/chunk-6FPG2OTI.mjs +0 -2
  310. package/out/__chunks__/chunk-6JSWL75O.mjs +0 -2
  311. package/out/__chunks__/chunk-7Z665D57.mjs +0 -2
  312. package/out/__chunks__/chunk-CGLVVKZU.mjs +0 -2
  313. package/out/__chunks__/chunk-CTITNRKA.mjs +0 -2
  314. package/out/__chunks__/chunk-HSYMR5UW.mjs +0 -2
  315. package/out/__chunks__/chunk-IYVM5B26.mjs +0 -2
  316. package/out/__chunks__/chunk-K3OKY7NL.mjs +0 -2
  317. package/out/__chunks__/chunk-LJX4MW7B.mjs +0 -2
  318. package/out/__chunks__/chunk-LJX4MW7B.mjs.map +0 -7
  319. package/out/__chunks__/chunk-O72VJVJC.mjs +0 -2
  320. package/out/__chunks__/chunk-QB4NUTLA.mjs +0 -2
  321. package/out/__chunks__/chunk-QVGM6655.mjs +0 -2
  322. package/out/__chunks__/chunk-QVGM6655.mjs.map +0 -7
  323. package/out/__chunks__/chunk-R76CQZZH.mjs +0 -2
  324. package/out/__chunks__/chunk-SYWFZFFJ.mjs +0 -2
  325. package/out/__chunks__/chunk-TSBH5KYD.mjs +0 -2
  326. package/out/__chunks__/chunk-UN2MEJKC.mjs +0 -2
  327. package/out/__chunks__/chunk-UN2MEJKC.mjs.map +0 -7
  328. package/out/__chunks__/chunk-WAM7WNSA.mjs +0 -2
  329. package/out/__chunks__/chunk-WVZRN2HX.mjs +0 -2
  330. /package/out/__chunks__/{chunk-TASSEE6N.mjs.map → chunk-26EQVDJ2.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-CGLVVKZU.mjs.map → chunk-2L23OQ3D.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-DZ5FL2WV.mjs.map → chunk-2QW7XAGS.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-HSYMR5UW.mjs.map → chunk-2WIGLKYG.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-IPIX74CB.mjs.map → chunk-3VA7OXBH.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-N2KEJEOD.mjs.map → chunk-3XKIU7VA.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-EPMKXFFR.mjs.map → chunk-5CJ4UDMA.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-5UYF2YJN.mjs.map → chunk-5FPOZ2AY.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-SBOOJTIB.mjs.map → chunk-5HBNM4M2.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-QB4NUTLA.mjs.map → chunk-5JDTRILF.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-BBCLPJC4.mjs.map → chunk-72BJ253L.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-HEA7NFOF.mjs.map → chunk-756GEXZI.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-6FPG2OTI.mjs.map → chunk-7P3DNMWN.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-2Y66XRQK.mjs.map → chunk-7ZUH3TQ2.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-62QLCUQH.mjs.map → chunk-ATGWLKGR.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-IV4LWBR3.mjs.map → chunk-BODBU56I.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-7JATWFXB.mjs.map → chunk-BPIUSUQG.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-R7667VN6.mjs.map → chunk-CRQHYOGT.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-O6RJHMIJ.mjs.map → chunk-CYWT37FT.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-7Z665D57.mjs.map → chunk-DBQCAF6H.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-32ZBY2AE.mjs.map → chunk-EFZBU2L3.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-BKVZCTUG.mjs.map → chunk-EHMHIAOC.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-OMZ6A4DO.mjs.map → chunk-EHSW5LVN.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-TSBH5KYD.mjs.map → chunk-FAUGS6HG.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-GYYCA57F.mjs.map → chunk-FEZKCHK7.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-CTITNRKA.mjs.map → chunk-FKTD2GRY.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-XV2BD67Y.mjs.map → chunk-FLJAPLZE.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-AS7XXEHY.mjs.map → chunk-FSJ6P7DN.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-3JEK5A62.mjs.map → chunk-G6PZFECX.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-XI2BWIQP.mjs.map → chunk-HBXJVW2D.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-WAM7WNSA.mjs.map → chunk-HNB7MO3A.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-EIOADZ47.mjs.map → chunk-J7JGI5JV.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-PGGSHHQJ.mjs.map → chunk-JR7IKIR6.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-ZHGONRBM.mjs.map → chunk-KMNG6RHN.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-DHTRPE3R.mjs.map → chunk-LH7HQXQ7.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-5LFB2H3K.mjs.map → chunk-LKI7Z4RK.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-IGTIIBN6.mjs.map → chunk-LNYGKGJE.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-RYOUAM3L.mjs.map → chunk-LSHOMXXT.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-WLXKUUZ3.mjs.map → chunk-LWYHD7UG.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-B5K6T6DF.mjs.map → chunk-MIODWPNV.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-IYVM5B26.mjs.map → chunk-MMG52PCY.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-5W77GYVQ.mjs.map → chunk-MRHKKGSJ.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-4G2T73DC.mjs.map → chunk-MT47AO63.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-57P66SOT.mjs.map → chunk-MUPCSQI2.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-TZJL7CZF.mjs.map → chunk-MXO2L46I.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-DE6O7BFR.mjs.map → chunk-NSW7SBHH.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-ZEJRHV7U.mjs.map → chunk-NUUOYZJB.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-K3OKY7NL.mjs.map → chunk-OQWBS4SC.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-W75ZD7BB.mjs.map → chunk-OWO6FJAZ.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-OFU3D2KB.mjs.map → chunk-PEBY7O46.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-SG5YZ37N.mjs.map → chunk-PGCZMYUZ.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-NE4YNYCQ.mjs.map → chunk-PQ2PJ25S.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-JV4IJH7L.mjs.map → chunk-QIN2VFBM.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-5VSKEHYA.mjs.map → chunk-QNT5Z55W.mjs.map} +0 -0
  384. /package/out/__chunks__/{chunk-OYCDHRNS.mjs.map → chunk-R2VTYQ7O.mjs.map} +0 -0
  385. /package/out/__chunks__/{chunk-IJKCH7CT.mjs.map → chunk-RI45GLZ7.mjs.map} +0 -0
  386. /package/out/__chunks__/{chunk-4NQ35FCJ.mjs.map → chunk-RORFSL37.mjs.map} +0 -0
  387. /package/out/__chunks__/{chunk-UCRVRBTA.mjs.map → chunk-S6NHNEQK.mjs.map} +0 -0
  388. /package/out/__chunks__/{chunk-SYWFZFFJ.mjs.map → chunk-SMON5ZO5.mjs.map} +0 -0
  389. /package/out/__chunks__/{chunk-O72VJVJC.mjs.map → chunk-SOQYOVR7.mjs.map} +0 -0
  390. /package/out/__chunks__/{chunk-WQAFFPAS.mjs.map → chunk-SRHQKUXP.mjs.map} +0 -0
  391. /package/out/__chunks__/{chunk-H2EFE4NU.mjs.map → chunk-TB2Y5M67.mjs.map} +0 -0
  392. /package/out/__chunks__/{chunk-34ZJZYMC.mjs.map → chunk-TXRPUKQM.mjs.map} +0 -0
  393. /package/out/__chunks__/{chunk-OHHNQ66F.mjs.map → chunk-UTU2EQJA.mjs.map} +0 -0
  394. /package/out/__chunks__/{chunk-VNMU246H.mjs.map → chunk-VR7K4BBB.mjs.map} +0 -0
  395. /package/out/__chunks__/{chunk-C3Y3ANFE.mjs.map → chunk-VV7CPNPW.mjs.map} +0 -0
  396. /package/out/__chunks__/{chunk-R6QKRGY5.mjs.map → chunk-VVRC7ANW.mjs.map} +0 -0
  397. /package/out/__chunks__/{chunk-5JVY6GJC.mjs.map → chunk-WNTY5HJN.mjs.map} +0 -0
  398. /package/out/__chunks__/{chunk-5PGKBWB6.mjs.map → chunk-X4KR5OSC.mjs.map} +0 -0
  399. /package/out/__chunks__/{chunk-4LTMFD6V.mjs.map → chunk-X5C4JWTG.mjs.map} +0 -0
  400. /package/out/__chunks__/{chunk-OXPZVCKM.mjs.map → chunk-XHOY6ZTM.mjs.map} +0 -0
  401. /package/out/__chunks__/{chunk-X5IHXBJ3.mjs.map → chunk-XJWZ6BDQ.mjs.map} +0 -0
  402. /package/out/__chunks__/{chunk-OPX7XWAC.mjs.map → chunk-Y5UBM4II.mjs.map} +0 -0
  403. /package/out/__chunks__/{chunk-EP4OBHW4.mjs.map → chunk-YDK5V2BZ.mjs.map} +0 -0
  404. /package/out/__chunks__/{chunk-R76CQZZH.mjs.map → chunk-YL7WVJQO.mjs.map} +0 -0
  405. /package/out/__chunks__/{chunk-AMS6KZTC.mjs.map → chunk-YOJ6MVBW.mjs.map} +0 -0
  406. /package/out/__chunks__/{chunk-JIKCHL57.mjs.map → chunk-Z5RRBB6V.mjs.map} +0 -0
  407. /package/out/__chunks__/{chunk-OLOOCCNU.mjs.map → chunk-ZEYX332S.mjs.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.ts"],
4
+ "sourcesContent": ["import { BigNumber } from 'bignumber.js';\nimport { ACCOUNTS_ENDPOINT } from 'apiCalls';\nimport { getPersistedTokenDetails } from 'apiCalls/tokens/getPersistedTokenDetails';\nimport { MULTI_TRANSFER_EGLD_TOKEN } from 'constants/mvx.constants';\nimport { safeWindow } from 'constants/window.constants';\nimport { DECIMALS, DIGITS, formatAmount } from 'lib/sdkDappUtils';\nimport {\n FungibleTransactionType,\n ISignTransactionsPanelCommonData\n} from 'managers/internal/SignTransactionsStateManager/types';\nimport { getExplorerAddress } from 'methods/network/getExplorerAddress';\nimport { getAccountProvider } from 'providers/helpers/accountProvider';\nimport { NetworkType } from 'types/network.types';\nimport { NftEnumType } from 'types/tokens.types';\nimport {\n MultiSignTransactionType,\n TransactionDataTokenType\n} from 'types/transactions.types';\nimport { decodeBase64 } from 'utils/decoders/base64Utils';\nimport { capitalize } from 'utils/operations/capitalize';\nimport { getUsdValue } from 'utils/operations/getUsdValue';\nimport { getExplorerLink } from 'utils/transactions/getExplorerLink';\nimport { getFeeData } from '../getFeeData';\nimport { getAllDecodedFormats } from './helpers/decodeDataField';\nimport { getExtractTransactionsInfo } from './helpers/getExtractTransactionsInfo';\nimport { getHighlight } from './helpers/getHighlight';\nimport { getPpuOptions } from './helpers/getPpuOptions';\nimport { getRecommendedGasPrice } from './helpers/getRecommendedGasPrice';\nimport { getScCall } from './helpers/getScCall';\nimport { getTokenType } from './helpers/getTokenType';\n\nexport type GetCommonDataPropsType = {\n allTransactions: MultiSignTransactionType[];\n currentScreenIndex: number;\n price?: number;\n network: NetworkType;\n signedIndexes: number[];\n egldLabel: string;\n address: string;\n shard?: number;\n username?: string;\n parsedTransactionsByDataField: Record<string, TransactionDataTokenType>;\n gasPriceData: {\n initialGasPrice: number;\n ppu: ISignTransactionsPanelCommonData['ppu'];\n };\n};\n\nexport async function getCommonData({\n allTransactions,\n currentScreenIndex,\n egldLabel,\n network,\n gasPriceData,\n price,\n address,\n username,\n shard,\n signedIndexes,\n parsedTransactionsByDataField\n}: GetCommonDataPropsType) {\n const currentTransaction = allTransactions[currentScreenIndex];\n const sender = currentTransaction?.transaction?.sender.toString();\n const transaction = currentTransaction?.transaction;\n const plainTransaction = transaction.toPlainObject();\n\n let tokenTransaction: {\n identifier?: string;\n amount: string;\n usdValue: string;\n } | null = null;\n\n let fungibleTransaction:\n | (FungibleTransactionType & {\n type: NftEnumType.NonFungibleESDT | NftEnumType.SemiFungibleESDT;\n })\n | null = null;\n\n const extractTransactionsInfo = getExtractTransactionsInfo({\n egldLabel,\n sender,\n apiAddress: network.apiAddress,\n address,\n parsedTransactionsByDataField\n });\n\n const txInfo = await extractTransactionsInfo(currentTransaction);\n\n const isEgld = !txInfo?.transactionTokenInfo?.tokenId;\n const { tokenId, nonce, amount = '' } = txInfo?.transactionTokenInfo ?? {};\n\n const isNftOrSft = tokenId && nonce && nonce.length > 0;\n const tokenIdForTokenDetails = isNftOrSft ? `${tokenId}-${nonce}` : tokenId;\n\n const tokenDetails = await getPersistedTokenDetails({\n tokenId: tokenIdForTokenDetails\n });\n\n const { esdtPrice, tokenDecimals, type, identifier, tokenImageUrl } =\n tokenDetails;\n\n const isNft =\n type === NftEnumType.SemiFungibleESDT ||\n type === NftEnumType.NonFungibleESDT;\n\n if (isNft) {\n fungibleTransaction = {\n type,\n identifier,\n amount,\n imageURL: tokenImageUrl\n };\n } else {\n const getFormattedAmount = ({ addCommas }: { addCommas: boolean }) =>\n formatAmount({\n input: isEgld ? transaction.value.toString() : amount,\n decimals: isEgld ? Number(network.decimals) : tokenDecimals,\n digits: Number(network.digits),\n showLastNonZeroDecimal: false,\n addCommas\n });\n\n const formattedAmount = getFormattedAmount({ addCommas: true });\n const rawAmount = getFormattedAmount({ addCommas: false });\n const tokenPrice = Number(isEgld ? price : esdtPrice);\n const usdValue = getUsdValue({\n amount: rawAmount,\n usd: tokenPrice,\n addEqualSign: true\n });\n\n const esdtIdentifier =\n identifier === MULTI_TRANSFER_EGLD_TOKEN ? egldLabel : identifier;\n tokenTransaction = {\n identifier: esdtIdentifier ?? egldLabel,\n amount: formattedAmount,\n usdValue\n };\n }\n\n const { feeLimitFormatted, feeInFiatLimit } = getFeeData({\n transaction,\n price\n });\n\n const ppuOptions = getPpuOptions({\n shard,\n initialGasPrice: gasPriceData.initialGasPrice,\n transaction: plainTransaction,\n gasStationMetadata: network.gasStationMetadata\n });\n\n const gasPrice = getRecommendedGasPrice({\n transaction: plainTransaction,\n gasPriceData\n });\n\n const provider = getAccountProvider();\n const providerType = provider.getType();\n const providerName = capitalize(providerType as string);\n const transactionsCount = allTransactions.length;\n\n const currentIndexToSign =\n signedIndexes.length > 0 ? signedIndexes[signedIndexes.length - 1] + 1 : 0;\n\n const data = decodeBase64(plainTransaction?.data ?? '');\n const highlight = getHighlight(txInfo?.transactionTokenInfo);\n const decodedData = getAllDecodedFormats({ data, identifier, highlight });\n const explorerAddress = getExplorerAddress();\n const explorerLink = getExplorerLink({\n to: `/${ACCOUNTS_ENDPOINT}/${address}`,\n explorerAddress\n });\n\n const needsSigning =\n transactionsCount === 1 ||\n (txInfo?.needsSigning && !signedIndexes.includes(currentScreenIndex));\n\n const formattedGasPrice = formatAmount({\n input: gasPrice.toString(),\n decimals: DECIMALS,\n addCommas: true,\n digits: DIGITS\n });\n\n const formattedGasLimit = new BigNumber(plainTransaction.gasLimit).toFormat({\n decimalSeparator: ',',\n groupSeparator: '.',\n groupSize: 3\n });\n\n const commonData: ISignTransactionsPanelCommonData = {\n receiver: plainTransaction.receiver.toString(),\n data,\n decodedData,\n gasPrice: formattedGasPrice,\n gasLimit: formattedGasLimit,\n explorerLink,\n ppu: gasPriceData.ppu,\n ppuOptions,\n egldLabel,\n tokenType: getTokenType(type),\n feeLimit: feeLimitFormatted,\n feeInFiatLimit,\n transactionsCount,\n currentIndex: currentScreenIndex,\n currentIndexToSign,\n highlight,\n scCall: getScCall(txInfo?.transactionTokenInfo),\n needsSigning,\n isEditable: txInfo?.needsSigning,\n providerName,\n address,\n username,\n origin: safeWindow.location?.origin\n };\n\n return { commonData, tokenTransaction, fungibleTransaction };\n}\n"],
5
+ "mappings": "oxBAAA,OAAS,aAAAA,OAAiB,eAgD1B,eAAsBC,GAAc,CAClC,gBAAAC,EACA,mBAAAC,EACA,UAAAC,EACA,QAAAC,EACA,aAAAC,EACA,MAAAC,EACA,QAAAC,EACA,SAAAC,EACA,MAAAC,EACA,cAAAC,EACA,8BAAAC,CACF,EAA2B,CACzB,IAAMC,EAAqBX,EAAgBC,CAAkB,EACvDW,EAASD,GAAoB,aAAa,OAAO,SAAS,EAC1DE,EAAcF,GAAoB,YAClCG,EAAmBD,EAAY,cAAc,EAE/CE,EAIO,KAEPC,EAIO,KAULC,EAAS,MARiBC,EAA2B,CACzD,UAAAhB,EACA,OAAAU,EACA,WAAYT,EAAQ,WACpB,QAAAG,EACA,8BAAAI,CACF,CAAC,EAE4CC,CAAkB,EAEzDQ,EAAS,CAACF,GAAQ,sBAAsB,QACxC,CAAE,QAAAG,EAAS,MAAAC,EAAO,OAAAC,EAAS,EAAG,EAAIL,GAAQ,sBAAwB,CAAC,EAGnEM,EADaH,GAAWC,GAASA,EAAM,OAAS,EACV,GAAGD,CAAO,IAAIC,CAAK,GAAKD,EAE9DI,EAAe,MAAMC,EAAyB,CAClD,QAASF,CACX,CAAC,EAEK,CAAE,UAAAG,EAAW,cAAAC,EAAe,KAAAC,EAAM,WAAAC,EAAY,cAAAC,CAAc,EAChEN,EAMF,GAHEI,wBACAA,sBAGAZ,EAAsB,CACpB,KAAAY,EACA,WAAAC,EACA,OAAAP,EACA,SAAUQ,CACZ,MACK,CACL,IAAMC,EAAqB,CAAC,CAAE,UAAAC,EAAU,IACtCC,EAAa,CACX,MAAOd,EAASN,EAAY,MAAM,SAAS,EAAIS,EAC/C,SAAUH,EAAS,OAAOhB,EAAQ,QAAQ,EAAIwB,EAC9C,OAAQ,OAAOxB,EAAQ,MAAM,EAC7B,uBAAwB,GACxB,UAAA6B,EACF,CAAC,EAEGE,GAAkBH,EAAmB,CAAE,UAAW,EAAK,CAAC,EACxDI,GAAYJ,EAAmB,CAAE,UAAW,EAAM,CAAC,EACnDK,GAAa,OAAOjB,EAASd,EAAQqB,CAAS,EAC9CW,GAAWC,EAAY,CAC3B,OAAQH,GACR,IAAKC,GACL,aAAc,EAChB,CAAC,EAIDrB,EAAmB,CACjB,YAFAc,IAAeU,EAA4BrC,EAAY2B,IAEzB3B,EAC9B,OAAQgC,GACR,SAAAG,EACF,CACF,CAEA,GAAM,CAAE,kBAAAG,GAAmB,eAAAC,EAAe,EAAIC,EAAW,CACvD,YAAA7B,EACA,MAAAR,CACF,CAAC,EAEKsC,GAAaC,EAAc,CAC/B,MAAApC,EACA,gBAAiBJ,EAAa,gBAC9B,YAAaU,EACb,mBAAoBX,EAAQ,kBAC9B,CAAC,EAEK0C,GAAWC,EAAuB,CACtC,YAAahC,EACb,aAAAV,CACF,CAAC,EAGK2C,GADWC,EAAmB,EACN,QAAQ,EAChCC,GAAeC,EAAWH,EAAsB,EAChDI,EAAoBnD,EAAgB,OAEpCoD,GACJ3C,EAAc,OAAS,EAAIA,EAAcA,EAAc,OAAS,CAAC,EAAI,EAAI,EAErE4C,EAAOC,EAAaxC,GAAkB,MAAQ,EAAE,EAChDyC,EAAYC,EAAavC,GAAQ,oBAAoB,EACrDwC,GAAcC,EAAqB,CAAE,KAAAL,EAAM,WAAAxB,EAAY,UAAA0B,CAAU,CAAC,EAClEI,GAAkBC,EAAmB,EACrCC,GAAeC,EAAgB,CACnC,GAAI,IAAIC,CAAiB,IAAIzD,CAAO,GACpC,gBAAAqD,EACF,CAAC,EAEKK,GACJb,IAAsB,GACrBlC,GAAQ,cAAgB,CAACR,EAAc,SAASR,CAAkB,EAE/DgE,GAAoBhC,EAAa,CACrC,MAAOY,GAAS,SAAS,EACzB,SAAUqB,EACV,UAAW,GACX,OAAQC,CACV,CAAC,EAEKC,GAAoB,IAAIC,GAAUvD,EAAiB,QAAQ,EAAE,SAAS,CAC1E,iBAAkB,IAClB,eAAgB,IAChB,UAAW,CACb,CAAC,EA4BD,MAAO,CAAE,WA1B4C,CACnD,SAAUA,EAAiB,SAAS,SAAS,EAC7C,KAAAuC,EACA,YAAAI,GACA,SAAUQ,GACV,SAAUG,GACV,aAAAP,GACA,IAAKzD,EAAa,IAClB,WAAAuC,GACA,UAAAzC,EACA,UAAWoE,EAAa1C,CAAI,EAC5B,SAAUY,GACV,eAAAC,GACA,kBAAAU,EACA,aAAclD,EACd,mBAAAmD,GACA,UAAAG,EACA,OAAQgB,EAAUtD,GAAQ,oBAAoB,EAC9C,aAAA+C,GACA,WAAY/C,GAAQ,aACpB,aAAAgC,GACA,QAAA3C,EACA,SAAAC,EACA,OAAQiE,EAAW,UAAU,MAC/B,EAEqB,iBAAAzD,EAAkB,oBAAAC,CAAoB,CAC7D",
6
+ "names": ["BigNumber", "getCommonData", "allTransactions", "currentScreenIndex", "egldLabel", "network", "gasPriceData", "price", "address", "username", "shard", "signedIndexes", "parsedTransactionsByDataField", "currentTransaction", "sender", "transaction", "plainTransaction", "tokenTransaction", "fungibleTransaction", "txInfo", "getExtractTransactionsInfo", "isEgld", "tokenId", "nonce", "amount", "tokenIdForTokenDetails", "tokenDetails", "getPersistedTokenDetails", "esdtPrice", "tokenDecimals", "type", "identifier", "tokenImageUrl", "getFormattedAmount", "addCommas", "formatAmount", "formattedAmount", "rawAmount", "tokenPrice", "usdValue", "getUsdValue", "MULTI_TRANSFER_EGLD_TOKEN", "feeLimitFormatted", "feeInFiatLimit", "getFeeData", "ppuOptions", "getPpuOptions", "gasPrice", "getRecommendedGasPrice", "providerType", "getAccountProvider", "providerName", "capitalize", "transactionsCount", "currentIndexToSign", "data", "decodeBase64", "highlight", "getHighlight", "decodedData", "getAllDecodedFormats", "explorerAddress", "getExplorerAddress", "explorerLink", "getExplorerLink", "ACCOUNTS_ENDPOINT", "needsSigning", "formattedGasPrice", "DECIMALS", "DIGITS", "formattedGasLimit", "BigNumber", "getTokenType", "getScCall", "safeWindow"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-OXPZVCKM.mjs";import{b as r}from"./chunk-GYYCA57F.mjs";import{s as i}from"./chunk-4LTMFD6V.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
- //# sourceMappingURL=chunk-ZHGONRBM.mjs.map
1
+ import{a as n}from"./chunk-XHOY6ZTM.mjs";import{b as r}from"./chunk-FEZKCHK7.mjs";import{s as i}from"./chunk-X5C4JWTG.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";async function M({shard:t,apiAddress:s}){if(t!=null)try{let a=await n(t,s);if(!a?.[t]?.lastBlock)return;let e=o(i());(!e.gasStationMetadata||!e.gasStationMetadata[t]||e.gasStationMetadata[t].lastBlock!==a[t].lastBlock)&&r({...e,gasStationMetadata:{...e.gasStationMetadata,...a}})}catch(a){console.error("Error fetching gas station metadata:",a)}}export{M as a};
2
+ //# sourceMappingURL=chunk-KMNG6RHN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-WVZRN2HX.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
2
- //# sourceMappingURL=chunk-DHTRPE3R.mjs.map
1
+ import{a as o}from"./chunk-7BYCH7J2.mjs";var i=String(o?.navigator?.userAgent),t=/^((?!chrome|android).)*safari/i.test(i),r=/firefox/i.test(i)&&/windows/i.test(i),n=t||r;export{t as a,n as b};
2
+ //# sourceMappingURL=chunk-LH7HQXQ7.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as e}from"./chunk-X5C4JWTG.mjs";var o=t=>e().setState(({ui:n})=>{n.isSidePanelOpen=t},!1,"setIsSidePanelOpen");export{o as a};
2
+ //# sourceMappingURL=chunk-LKI7Z4RK.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-WVZRN2HX.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
- //# sourceMappingURL=chunk-IGTIIBN6.mjs.map
1
+ import{a as e}from"./chunk-7BYCH7J2.mjs";import{createJSONStorage as o}from"zustand/middleware";var r={persistReducersStorageType:"localStorage"},i=e?o(()=>e[r.persistReducersStorageType]):void 0,p=new Map,n=3e3;export{r as a,i as b,p as c,n as d};
2
+ //# sourceMappingURL=chunk-LNYGKGJE.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-4LTMFD6V.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
- //# sourceMappingURL=chunk-RYOUAM3L.mjs.map
1
+ import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-X5C4JWTG.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as s,u as o}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function I({tokenId:n}){let t=a(m()),r={tokenDecimals:Number(t.decimals),tokenLabel:"",tokenImageUrl:""},{isNft:k}=c(n),i=n,p=k?s:o;if(!i)return r;try{let e=await g(`${t.apiAddress}/${p}/${i}`),l=e?e?.decimals:Number(t.decimals),f=e?e?.name:"",T=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:l,tokenLabel:f,type:e?.type,tokenImageUrl:T,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{...r,error:`${e}`}}}export{I as a};
2
+ //# sourceMappingURL=chunk-LSHOMXXT.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-OPX7XWAC.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
2
- //# sourceMappingURL=chunk-WLXKUUZ3.mjs.map
1
+ import{a as s}from"./chunk-Y5UBM4II.mjs";var a=class{constructor({uiDataUpdateEvent:t,uiTag:e}){this.eventBus=null;this.uiElement=null;this.isCreatingElement=!1;this.unsubscribeFunctions=new Map;this.uiDataUpdateEvent=t,this.uiTag=e,this.data=this.getInitialData()}async init(t){this.anchor=t,await this.createUIElement(t),await this.setupEventListeners()}updateData(t){this.data={...this.data,...t},this.notifyDataUpdate()}subscribeToEventBus(t,e){if(!this.eventBus)throw new Error("eventBus is not initialized");let i=this.eventBus?.subscribe(t,e);if(i){let n=this.unsubscribeFunctions.get(t)||[];n.push(i),this.unsubscribeFunctions.set(t,n)}}notifyDataUpdate(){this.eventBus?.publish(this.uiDataUpdateEvent,this.data)}destroy(){this.unsubscribeFunctions.forEach(t=>t.forEach(e=>e())),this.unsubscribeFunctions.clear(),this.eventBus=null,this.uiElement?.remove?.(),this.uiElement=null}getInitialData(){return this.initialData}resetData(){this.data=this.getInitialData()}async createUIElement(t=this.anchor){if(this.isCreatingElement||this.uiElement)return this.uiElement;if(this.isCreatingElement=!0,this.uiElement=await s.create({name:this.uiTag,anchor:t}),this.isCreatingElement=!1,!this.uiElement)throw new Error(`Failed to create ${this.uiTag} element`);if(this.eventBus||(this.eventBus=await this.uiElement.getEventBus()),!this.eventBus)throw new Error("eventBus is not initialized");return this.uiElement}};export{a};
2
+ //# sourceMappingURL=chunk-LWYHD7UG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-OHHNQ66F.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
2
- //# sourceMappingURL=chunk-B5K6T6DF.mjs.map
1
+ import{a as e}from"./chunk-UTU2EQJA.mjs";async function i(a){let n=e.getInstance();return await n.openUI(),{manager:n,onClose:async({shouldCancelAction:t=!0}={})=>{n.closeUI(),t&&a?.cancelAction&&await a.cancelAction()}}}export{i as a};
2
+ //# sourceMappingURL=chunk-MIODWPNV.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-X5C4JWTG.mjs";import{a as t}from"./chunk-SAAOQW7P.mjs";function f(r=o()){return t(r)}export{f as a};
2
+ //# sourceMappingURL=chunk-MMG52PCY.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-X5C4JWTG.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";function g(r=t()){return e(r).egldLabel}export{g as a};
2
+ //# sourceMappingURL=chunk-MRHKKGSJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-O72VJVJC.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
- //# sourceMappingURL=chunk-4G2T73DC.mjs.map
1
+ import{a as o}from"./chunk-SOQYOVR7.mjs";import{c as e,g as s}from"./chunk-NTEMINYA.mjs";async function m({message:r,provider:a,options:n}){let g=o(),i=new s({address:new e(g),data:r.data});return await a.signMessage(i,n)}export{m as a};
2
+ //# sourceMappingURL=chunk-MT47AO63.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SG5YZ37N.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
- //# sourceMappingURL=chunk-57P66SOT.mjs.map
1
+ import{a as e}from"./chunk-PGCZMYUZ.mjs";import{a as r}from"./chunk-B2UIPHJ3.mjs";var o=()=>{try{return!r()||!e()?!1:window.self!==window.top}catch{return!0}};export{o as a};
2
+ //# sourceMappingURL=chunk-MUPCSQI2.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as a}from"./chunk-4LTMFD6V.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
- //# sourceMappingURL=chunk-TZJL7CZF.mjs.map
1
+ import{q as a}from"./chunk-X5C4JWTG.mjs";var r=({key:e,value:t})=>{a().setState(({cache:c})=>{c[e]=t},!1,"saveToCache")},s=e=>{a().setState(({cache:t})=>{delete t[e]},!1,"removeFromCache")},h=()=>{a().setState(({cache:e})=>{Object.keys(e).forEach(t=>{delete e[t]})},!1,"clearCache")};export{r as a,s as b,h as c};
2
+ //# sourceMappingURL=chunk-MXO2L46I.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-WLXKUUZ3.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a))}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
2
- //# sourceMappingURL=chunk-DE6O7BFR.mjs.map
1
+ import{a as i}from"./chunk-LWYHD7UG.mjs";var c=class n extends i{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-ledger-connect"});this.addressesPerPage=10;this.allAccounts=[];this.initialConnectScreenData={};this.connectScreenData={...this.initialConnectScreenData};this.initialAccountScreenData={accounts:this.allAccounts,startIndex:0,addressesPerPage:this.addressesPerPage,isLoading:!0};this.accountScreenData={...this.initialAccountScreenData};this.initialConfirmScreenData={selectedAddress:"",explorerLink:""};this.confirmScreenData={...this.initialConfirmScreenData};this.initialData={connectScreenData:this.initialConnectScreenData,accountScreenData:this.initialAccountScreenData,confirmScreenData:this.initialConfirmScreenData};this.data=this.getInitialData()}static getInstance(){return n.instance||(n.instance=new n),n.instance}updateAllAccounts(e){this.allAccounts=e,this.accountScreenData.accounts=e}updateStartIndex(e){this.accountScreenData.startIndex=e}updateConnectScreen(e){this.connectScreenData={...this.connectScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=null,this.data.connectScreenData=this.connectScreenData,this.notifyDataUpdate()}updateAccountScreen(e){this.accountScreenData={...this.accountScreenData,...e},this.data.confirmScreenData=null,this.data.accountScreenData=this.accountScreenData,this.notifyDataUpdate()}updateConfirmScreen(e){this.confirmScreenData={...this.confirmScreenData,...e},this.data.accountScreenData=null,this.data.confirmScreenData=this.confirmScreenData,this.notifyDataUpdate()}getAccountScreenData(){return this.data.accountScreenData}getConfirmScreenData(){return this.data.confirmScreenData}getAllAccounts(){return this.allAccounts}subscribeToProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.subscribe("CONNECT_DEVICE",e),this.eventBus.subscribe("CLOSE",t),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}unsubscribeFromProviderInit({handleRetry:e,handleCancel:t}){this.eventBus&&(this.eventBus.unsubscribe("CONNECT_DEVICE",e),this.eventBus.unsubscribe("CLOSE",t),this.eventBus.unsubscribe("UI_DISCONNECTED",this.destroy.bind(this)))}subscribeToAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.subscribe("CLOSE",e),this.eventBus.subscribe("ACCESS_WALLET",t),this.eventBus.subscribe("GO_TO_PAGE",a))}unsubscribeFromAuthEvents({handleCancel:e,handleAccessWallet:t,handleGoToPage:a}){this.eventBus&&(this.eventBus.unsubscribe("CLOSE",e),this.eventBus.unsubscribe("ACCESS_WALLET",t),this.eventBus.unsubscribe("GO_TO_PAGE",a))}handleClose(){this.anchor?this.anchor?.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy()}resetData(){this.accountScreenData={...this.initialAccountScreenData},this.confirmScreenData={...this.initialConfirmScreenData},this.connectScreenData={...this.initialConnectScreenData},super.resetData()}async setupEventListeners(){this.eventBus&&this.eventBus.subscribe("CLOSE",this.handleClose.bind(this))}};export{c as a};
2
+ //# sourceMappingURL=chunk-NSW7SBHH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-B5K6T6DF.mjs";import{a as e}from"./chunk-O72VJVJC.mjs";import{a as i}from"./chunk-6JSWL75O.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
2
- //# sourceMappingURL=chunk-ZEJRHV7U.mjs.map
1
+ import{a as s}from"./chunk-MIODWPNV.mjs";import{a as e}from"./chunk-SOQYOVR7.mjs";import{a as i}from"./chunk-ZVIKYGX5.mjs";var a=class{constructor(o){this.address="";this._login=null;this.loginAbortController=null;this.cancelLogin=()=>{this.loginAbortController&&this.loginAbortController.abort(),this.cancelAction?.(),this.loginAbortController=null};this.loginOperation=async o=>{if(!this._login)throw new Error("Provider is not initialized.");let r=await this._login(o);if(!r?.address)throw new Error("Provider is not initialized.");return{...r,address:r.address,signature:r.signature??""}};this.initializeAddress=()=>{if(this.address)return;let o=e();o&&(this.address=o)};this.cancelAction=void 0;this.address=o??""}getAccount(){throw new Error("Method not implemented.")}signTransaction(o,r){throw new Error("Method not implemented.")}async login(o){if(!this._login)throw new Error("Provider is not initialized.");this.loginAbortController&&this.loginAbortController.abort();let r=new AbortController;this.loginAbortController=r;let t=r.signal;try{let n=new Promise((p,c)=>{t.addEventListener("abort",()=>{c(new Error("Login cancelled"))})}),l=await Promise.race([this.loginOperation(o),n]);return this.loginAbortController=null,l}catch(n){throw this.loginAbortController=null,n}}async initSignState(){let{onClose:o,manager:r}=await s({cancelAction:this.cancelAction?.bind(this)}),t=this.getType();return r.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",o),r.updateData({name:i[t],type:t}),{onClose:o,manager:r}}};export{a};
2
+ //# sourceMappingURL=chunk-NUUOYZJB.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as e}from"./chunk-X5C4JWTG.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
+ //# sourceMappingURL=chunk-OQWBS4SC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-IJKCH7CT.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as S}from"./chunk-AS7XXEHY.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as y}from"./chunk-C3Y3ANFE.mjs";import{a as f}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-SYWFZFFJ.mjs";import{h as g}from"./chunk-2IUBMLF4.mjs";import{s as l}from"./chunk-4LTMFD6V.mjs";import{b as m}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=f(s),n=y({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=m(l());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=h(),{apiAddress:s,apiTimeout:o}=m(l());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${g}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
- //# sourceMappingURL=chunk-W75ZD7BB.mjs.map
1
+ import{a as A}from"./chunk-RI45GLZ7.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as S}from"./chunk-FSJ6P7DN.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as y}from"./chunk-VV7CPNPW.mjs";import{a as f}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-SMON5ZO5.mjs";import{h as g}from"./chunk-2IUBMLF4.mjs";import{s as l}from"./chunk-X5C4JWTG.mjs";import{b as m}from"./chunk-SAAOQW7P.mjs";import w from"axios";var r=class r{constructor(){this.setCallbacks=({onSuccess:t,onFail:a})=>{T({onSuccess:t,onFail:a})};this.send=async t=>{if(t.length===0)throw new Error("No transactions to send");try{if(!I(t))return await this.sendSignedTransactions(t);let a=await this.sendSignedBatchTransactions(t);if(!a.data||a.data.error)throw new Error(a.data?.error??"Failed to send transactions");return a.data.transactions}catch(a){throw a.response?.data?.message??a.message}};this.track=async(t,a={disableToasts:!1})=>{let s=this.sequentialToFlatArray(t).map(e=>({...e,status:e.status??"pending"})),o=f(s),n=y({transactions:s,transactionsDisplayInfo:a.transactionsDisplayInfo,status:o??"sent",sessionInformation:a.sessionInformation});if(a.disableToasts===!0)return n;a.onSuccess&&T({onSuccess:a.onSuccess,sessionId:n}),a.onFail&&T({onFail:a.onFail,sessionId:n});let i=A(t);return S({toastId:n,totalDuration:i}),n};this.sendSignedTransactions=async t=>{let{apiAddress:a,apiTimeout:s}=m(l());return await Promise.all(t.map(async n=>{let i=await w.post(`${a}/transactions`,n.toPlainObject(),{timeout:Number(s)}),e=i.data.txHash;return{...n.toPlainObject(),...i.data,status:"pending",hash:e}}))};this.sendSignedBatchTransactions=async t=>{let{address:a}=h(),{apiAddress:s,apiTimeout:o}=m(l());if(!a)return{error:"Invalid address provided. You need to be logged in to send transactions"};let n=this.buildBatchId(a),e={transactions:t.map(p=>p.map(c=>c.toPlainObject())),id:n},{data:u}=await w.post(`${s}/batch`,e,{timeout:Number(o)}),B=u.transactions.map(p=>p.map(c=>{let d={...c,status:"pending",hash:c.hash};return b({data:d.data})&&(delete d.senderUsername,delete d.receiverUsername),d}));return{data:{...u,transactions:B}}};this.buildBatchId=t=>`${Date.now().toString()}${g}${t}`;this.sequentialToFlatArray=(t=[])=>this.getIsSequential(t)?t.flat():t;this.getIsSequential=t=>t?.every(a=>Array.isArray(a))}static getInstance(){return r.instance||(r.instance=new r),r.instance}};r.instance=null;var v=r;export{v as a};
2
+ //# sourceMappingURL=chunk-OWO6FJAZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WVZRN2HX.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
2
- //# sourceMappingURL=chunk-OFU3D2KB.mjs.map
1
+ import{a as t}from"./chunk-7BYCH7J2.mjs";import{MvxLedgerConnect as r}from"@multiversx/sdk-dapp-ui/web-components/mvx-ledger-connect";async function i(n){if(!(typeof t.navigator<"u"&&t.navigator.product==="ReactNative"))try{(await import("@multiversx/sdk-dapp-ui")).defineCustomElements(n)}catch(e){console.warn("@multiversx/sdk-dapp-ui not found"+e)}}export{i as a,r as b};
2
+ //# sourceMappingURL=chunk-PEBY7O46.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-WVZRN2HX.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
2
- //# sourceMappingURL=chunk-SG5YZ37N.mjs.map
1
+ import{a as e}from"./chunk-7BYCH7J2.mjs";var t=()=>{if(!e)return"";try{let r=e.document?.referrer;return r?new URL(r).origin:""}catch(r){return console.error(r),""}};export{t as a};
2
+ //# sourceMappingURL=chunk-PGCZMYUZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as s}from"./chunk-UN2MEJKC.mjs";import{a as u}from"./chunk-JV4IJH7L.mjs";import{s as c}from"./chunk-4LTMFD6V.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-6JSWL75O.mjs";import{a}from"./chunk-LJX4MW7B.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
2
- //# sourceMappingURL=chunk-NE4YNYCQ.mjs.map
1
+ import{d as s}from"./chunk-JLE5ZH6J.mjs";import{a as u}from"./chunk-QIN2VFBM.mjs";import{s as c}from"./chunk-X5C4JWTG.mjs";import{b as d}from"./chunk-SAAOQW7P.mjs";import{a as v}from"./chunk-ZVIKYGX5.mjs";import{a}from"./chunk-ZONHCECO.mjs";var i=class i extends u{constructor(){super({uiTag:"mvx-unlock-panel",uiDataUpdateEvent:"OPEN"});this.initialData={providers:null,walletAddress:null};this.openUnlockPanel=async()=>{let{walletAddress:e}=d(c());this.data={providers:this.getProvidersList(),walletAddress:e},await this.openUI(),this.notifyDataUpdate()};this.setupEventListeners=async()=>{this.eventBus&&(this.subscribeToEventBus("LOGIN",this.handleLogin),this.subscribeToEventBus("CANCEL_LOGIN",this.handleCancelLogin),this.subscribeToEventBus("CLOSE",this.handleCloseUI))};this.handleCloseUI=async e=>{!e?.isLoginFinished&&i.onClose&&i.onClose(),this.closeUI()};this.handleLogin=async({type:e,anchor:o})=>{if(!i.loginHandler)throw new Error("Login callback not initialized. Please call `init()` first.");try{this.isSimpleLoginCallback(i.loginHandler)?(await(await s.create({type:e,anchor:o})).login(),i.loginHandler()):i.loginHandler({type:e,anchor:o}),await this.handleCloseUI({isLoginFinished:!0})}catch(t){console.error(t),this.eventBus?.publish("CANCEL_IN_PROVIDER",this.data)}};this.handleCancelLogin=async()=>{await s.destroy()};this.isSimpleLoginCallback=e=>e.length===0;this.data=this.initialData}static getInstance(){return i.instance||(i.instance=new i),i.instance}static init(e){return this.loginHandler=e.loginHandler,this.allowedProviders=e.allowedProviders,e.onClose&&(this.onClose=e.onClose),this.getInstance()}getProvidersList(){let e=s.customProviders,t=[...Object.values(a).filter(n=>![a.none,a.webview].includes(n)),...e.map(n=>n.type)],P=e.reduce((n,r)=>(n[r.type]=r.name,n),{}),l={...v,...P};return(i.allowedProviders?i?.allowedProviders.filter(n=>t.includes(n)):t).map(n=>{let r=e.find(g=>g.type===n);return r||{name:n in l?l[n]:n,type:n}})}};i.loginHandler=null,i.onClose=null,i.allowedProviders=null;var p=i;export{p as a};
2
+ //# sourceMappingURL=chunk-PQ2PJ25S.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-WLXKUUZ3.mjs";import{a as t}from"./chunk-5LFB2H3K.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
- //# sourceMappingURL=chunk-JV4IJH7L.mjs.map
1
+ import{a as n}from"./chunk-LWYHD7UG.mjs";import{a as t}from"./chunk-LKI7Z4RK.mjs";var i=class extends n{constructor({uiDataUpdateEvent:e,uiTag:s}){super({uiDataUpdateEvent:e,uiTag:s});this.isOpen=!1;this.data=this.getInitialData()}async openUI(){this.isOpen&&this.uiElement||(await super.init(),this.setIsSidePanelOpen(!0))}destroy(){if(this.setIsSidePanelOpen(!1),this.uiElement?.closeWithAnimation){this.uiElement?.closeWithAnimation?.().finally(()=>{super.destroy()});return}super.destroy()}closeUI(){this.resetData(),this.destroy()}setIsSidePanelOpen(e){this.isOpen=e,t(e)}};export{i as a};
2
+ //# sourceMappingURL=chunk-QIN2VFBM.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as r}from"./chunk-4LTMFD6V.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
- //# sourceMappingURL=chunk-5VSKEHYA.mjs.map
1
+ import{s as r}from"./chunk-X5C4JWTG.mjs";import{b as e}from"./chunk-SAAOQW7P.mjs";var d=s=>{let o=e(r()),t=s??o.apiAddress;return t.endsWith("/")?t.slice(0,-1):t};export{d as a};
2
+ //# sourceMappingURL=chunk-QNT5Z55W.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-H2EFE4NU.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
- //# sourceMappingURL=chunk-OYCDHRNS.mjs.map
1
+ import{a as t}from"./chunk-TB2Y5M67.mjs";async function g({originalLoginToken:i,extraInfoData:n,address:o}){let e=await t({loginToken:i,extraInfoData:n}),s=n.multisig||n.impersonate||o;return{address:e!=null?s:o,modifiedLoginToken:e}}export{g as a};
2
+ //# sourceMappingURL=chunk-R2VTYQ7O.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-2IUBMLF4.mjs";import{s as e}from"./chunk-4LTMFD6V.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
- //# sourceMappingURL=chunk-IJKCH7CT.mjs.map
1
+ import{a as S}from"./chunk-EAJBSX6Y.mjs";import{a as s}from"./chunk-NTOY6GTP.mjs";import{c as r,d as a}from"./chunk-2IUBMLF4.mjs";import{s as e}from"./chunk-X5C4JWTG.mjs";import{a as n}from"./chunk-UERJ6AKK.mjs";var u=t=>{let o=0,i=n(e())?.shard;return S(t)?(t.forEach(c=>{let m=s(c,i);o+=m?5*6e3:6e3}),o):(o=s(t,i)?5*6e3:6e3,o)};export{u as a};
2
+ //# sourceMappingURL=chunk-RI45GLZ7.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-SYWFZFFJ.mjs";import{s as e}from"./chunk-4LTMFD6V.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=o(e());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
2
- //# sourceMappingURL=chunk-4NQ35FCJ.mjs.map
1
+ import{a as s}from"./chunk-SUBC3H4J.mjs";import{a as t}from"./chunk-U64LDJTG.mjs";import{a as n}from"./chunk-SMON5ZO5.mjs";import{s as e}from"./chunk-X5C4JWTG.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";var w=async r=>{let{isGuarded:i}=n();if(!s({isGuarded:i,transactions:r}))return r;let a=r[0].sender.toBech32(),{walletAddress:d}=o(e());return await(await t({address:a,walletUrl:d}))?.guardTransactions(r)||[]};export{w as a};
2
+ //# sourceMappingURL=chunk-RORFSL37.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-LJX4MW7B.mjs";var o=s=>`Unable to perform ${s}, Provider not initialized`,e=class{init(){return Promise.resolve(!1)}login(n){throw new Error(o(`login with options: ${n}`))}logout(n){throw new Error(o(`logout with options: ${n}`))}getAccount(){throw new Error(o("unable to get account"))}setAccount(n){throw new Error(o(`unable to set account with: ${n}`))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(n,r){throw new Error(o(`sendTransaction with transactions: ${n} options: ${r}`))}signTransaction(n,r){throw new Error(o(`signTransaction with transactions: ${JSON.stringify(n)} options: ${r}`))}signTransactions(n){throw new Error(o(`signTransactions with transactions: ${JSON.stringify(n)}`))}signMessage(n,r){throw new Error(o(`signMessage with ${n} and options ${r}`))}sendCustomMessage({method:n,params:r}){throw new Error(o(`sendCustomMessage with method: ${n} params: ${r}`))}sendCustomRequest(n){throw new Error(o(`sendSessionEvent with options: ${n}`))}async getAddress(){throw new Error(o("getAddress"))}getType(){return t.none}},c=new e;export{e as a,c as b};
2
- //# sourceMappingURL=chunk-UCRVRBTA.mjs.map
1
+ import{a as t}from"./chunk-ZONHCECO.mjs";var o=s=>`Unable to perform ${s}, Provider not initialized`,e=class{init(){return Promise.resolve(!1)}login(n){throw new Error(o(`login with options: ${n}`))}logout(n){throw new Error(o(`logout with options: ${n}`))}getAccount(){throw new Error(o("unable to get account"))}setAccount(n){throw new Error(o(`unable to set account with: ${n}`))}isInitialized(){return!1}isConnected(){return!1}sendTransaction(n,r){throw new Error(o(`sendTransaction with transactions: ${n} options: ${r}`))}signTransaction(n,r){throw new Error(o(`signTransaction with transactions: ${JSON.stringify(n)} options: ${r}`))}signTransactions(n){throw new Error(o(`signTransactions with transactions: ${JSON.stringify(n)}`))}signMessage(n,r){throw new Error(o(`signMessage with ${n} and options ${r}`))}sendCustomMessage({method:n,params:r}){throw new Error(o(`sendCustomMessage with method: ${n} params: ${r}`))}sendCustomRequest(n){throw new Error(o(`sendSessionEvent with options: ${n}`))}async getAddress(){throw new Error(o("getAddress"))}getType(){return t.none}},c=new e;export{e as a,c as b};
2
+ //# sourceMappingURL=chunk-S6NHNEQK.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-X5C4JWTG.mjs";import{a as t}from"./chunk-UERJ6AKK.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-SMON5ZO5.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-X5C4JWTG.mjs";import{c as r}from"./chunk-UERJ6AKK.mjs";function m(e=t()){return r(e)}export{m as a};
2
+ //# sourceMappingURL=chunk-SOQYOVR7.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-JV4IJH7L.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
2
- //# sourceMappingURL=chunk-WQAFFPAS.mjs.map
1
+ import{a as s}from"./chunk-QIN2VFBM.mjs";import{c as e}from"./chunk-MGFIOCA4.mjs";var o=class i extends s{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_SIGN_TRANSACTIONS",uiTag:"mvx-sign-transactions-panel"});this.addressesPerPage=10;this._ppuMap={};this.initialData={commonData:{transactionsCount:0,currentIndexToSign:0,egldLabel:"",currentIndex:0,ppuOptions:[],address:"",origin:""},tokenTransaction:null,nftTransaction:null,sftTransaction:null};this.data={...this.initialData}}static getInstance(){return i.instance||(i.instance=new i),i.instance}get transactionsCount(){return this.data.commonData.transactionsCount}initializeGasPriceMap(a){let t=0;a.filter(n=>n!=null).forEach(n=>{let r=n?Number(n.gasPrice):0;this.updateGasPriceMap({nonce:Number(n.nonce),ppu:t,initialGasPrice:r})}),this.updateCommonData({ppu:t})}updateGasPriceMap({nonce:a,ppu:t,initialGasPrice:n}){this._ppuMap[a]={...this._ppuMap[a],ppu:t},n&&(this._ppuMap[a].initialGasPrice=n)}updateCommonData(a){this.data.commonData={...this.data.commonData,...a},this.notifyDataUpdate()}updateIsLoading(a){this.data.isLoading=a,this.notifyDataUpdate()}updateTokenTransaction(a){this.data.tokenTransaction=a,this.data.sftTransaction=null,this.data.nftTransaction=null,this.notifyDataUpdate()}updateNonFungibleTransaction(a,t){switch(a){case"NonFungibleESDT":this.data.nftTransaction=t,this.data.tokenTransaction=null,this.data.sftTransaction=null;break;case"SemiFungibleESDT":this.data.sftTransaction=t,this.data.nftTransaction=null,this.data.tokenTransaction=null;break;default:break}this.notifyDataUpdate()}get currentScreenIndex(){return this.data.commonData.currentIndex}get ppuMap(){return this._ppuMap}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_SIGN_TRANSACTIONS",this.closeUI.bind(this))}};export{o as a};
2
+ //# sourceMappingURL=chunk-SRHQKUXP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-SBOOJTIB.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
- //# sourceMappingURL=chunk-H2EFE4NU.mjs.map
1
+ import{a as r}from"./chunk-5HBNM4M2.mjs";import{a as o}from"./chunk-WE7YOBO7.mjs";async function p({loginToken:i,extraInfoData:n}){if(i==null||Object.keys(n).length===0)return null;let t=o(String(i)),{timestamp:e,...a}=t?.extraInfo||{};if(!(t&&e!=null))return null;let s={hash:String(t?.blockHash),timestamp:Number(e)};return await r({extraInfo:{...a,...n},expirySeconds:t?.ttl,origin:t?.origin}).initialize({latestBlockInfo:s})}export{p as a};
2
+ //# sourceMappingURL=chunk-TB2Y5M67.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-RYOUAM3L.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
2
- //# sourceMappingURL=chunk-34ZJZYMC.mjs.map
1
+ import{a as l}from"./chunk-LSHOMXXT.mjs";import{a as c}from"./chunk-I3MK6KZJ.mjs";var f=async({receiver:n,sender:i,tokenId:s})=>{let t=null,r=null;if(!s)return{senderLockedAccount:t,receiverLockedAccount:r};try{let o=(await l({tokenId:s}))?.assets?.lockedAccounts;if(!o)return{senderLockedAccount:t,receiverLockedAccount:r};for(let e in o)if(c(e)&&(i===e&&(t=e),n===e&&(r=e)),c(o[e])&&(i===o[e]&&(t=o[e]),n===o[e]&&(r=o[e])),t&&r)return{senderLockedAccount:t,receiverLockedAccount:r}}catch(a){console.error("Error getting token details",a)}return{senderLockedAccount:t,receiverLockedAccount:r}};export{f as a};
2
+ //# sourceMappingURL=chunk-TXRPUKQM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-JV4IJH7L.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
- //# sourceMappingURL=chunk-OHHNQ66F.mjs.map
1
+ import{a as t}from"./chunk-QIN2VFBM.mjs";var e=class n extends t{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE_PENDING_TRANSACTIONS",uiTag:"mvx-pending-transactions-panel"});this.initialData=null;this.data=this.initialData}static getInstance(){return n.instance||(n.instance=new n),n.instance}isPendingTransactionsOpen(){return this.isOpen}async setupEventListeners(){this.eventBus&&this.subscribeToEventBus("CLOSE_PENDING_TRANSACTIONS",this.closeUI.bind(this))}};export{e as a};
2
+ //# sourceMappingURL=chunk-UTU2EQJA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-K3OKY7NL.mjs";import{a as u}from"./chunk-5W77GYVQ.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-N2KEJEOD.mjs";var z=async({toastList:g,transactionsSessions:S,account:o,existingCompletedTransactions:y=[],skipFetchingTransactions:F=!1})=>{let n=[],a=[...y],e=l(),C=u();for(let t of g.transactionToasts){let r=S[t.toastId];if(!r?.status)continue;let{status:s,transactions:P,transactionsDisplayInfo:x}=r,A=await T({transactions:P,address:o.address,explorerAddress:e,egldLabel:C,skipFetchingTransactions:F}),E=f(s),L=d(s),b=p(s),i=E||L||b,h=m(s),{startTime:v,endTime:R}=t;if(i&&a.some(O=>O.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:A,transactionsDisplayInfo:x,explorerAddress:e,startTime:v,endTime:R});i&&a.push(c),h&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{z as a};
2
- //# sourceMappingURL=chunk-VNMU246H.mjs.map
1
+ import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-OQWBS4SC.mjs";import{a as u}from"./chunk-MRHKKGSJ.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-3XKIU7VA.mjs";var z=async({toastList:g,transactionsSessions:S,account:o,existingCompletedTransactions:y=[],skipFetchingTransactions:F=!1})=>{let n=[],a=[...y],e=l(),C=u();for(let t of g.transactionToasts){let r=S[t.toastId];if(!r?.status)continue;let{status:s,transactions:P,transactionsDisplayInfo:x}=r,A=await T({transactions:P,address:o.address,explorerAddress:e,egldLabel:C,skipFetchingTransactions:F}),E=f(s),L=d(s),b=p(s),i=E||L||b,h=m(s),{startTime:v,endTime:R}=t;if(i&&a.some(O=>O.toastId===t.toastId))continue;let c=I({toastId:t.toastId,address:o.address,status:s,transactions:A,transactionsDisplayInfo:x,explorerAddress:e,startTime:v,endTime:R});i&&a.push(c),h&&n.push(c)}return{pendingTransactionToasts:n,completedTransactionToasts:a}};export{z as a};
2
+ //# sourceMappingURL=chunk-VR7K4BBB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-4LTMFD6V.mjs";var y=({transactions:t,transactionsDisplayInfo:a,status:e,sessionInformation:s})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:t,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:s}},!1,"createTransactionsSession"),o},T=({sessionId:t,status:a,errorMessage:e})=>{i().setState(({transactions:s})=>{s[t]&&(s[t].status=a,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...s[t].transactionsDisplayInfo,errorMessage:e})},!1,"updateTransactionsSession")},g=({sessionId:t,transaction:a})=>{let e=null;return i().setState(({transactions:s})=>{let o=s[t]?.transactions;if(o!=null){s[t].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...s[t].transactions]);n&&(T({sessionId:t,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:t,toasts:a})=>{let s=Object.keys(t).filter(n=>{let r=t[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});s.forEach(n=>{delete t[n]});let o=a.transactionToasts.filter(n=>!s.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{y as a,T as b,g as c,h as d};
2
- //# sourceMappingURL=chunk-C3Y3ANFE.mjs.map
1
+ import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-X5C4JWTG.mjs";var y=({transactions:t,transactionsDisplayInfo:a,status:e,sessionInformation:s})=>{let o=Date.now().toString();return i().setState(({transactions:n})=>{n[o]={transactions:t,status:e,transactionsDisplayInfo:a,interpretedTransactions:{},sessionInformation:s}},!1,"createTransactionsSession"),o},T=({sessionId:t,status:a,errorMessage:e})=>{i().setState(({transactions:s})=>{s[t]&&(s[t].status=a,s[t].errorMessage=e,s[t].transactionsDisplayInfo={...s[t].transactionsDisplayInfo,errorMessage:e})},!1,"updateTransactionsSession")},g=({sessionId:t,transaction:a})=>{let e=null;return i().setState(({transactions:s})=>{let o=s[t]?.transactions;if(o!=null){s[t].transactions=o.map(r=>r.hash===a.hash?{...r,...a??{}}:r);let n=u([...s[t].transactions]);n&&(T({sessionId:t,status:n}),e=n)}},!1,"updateTransactionStatus"),e},h=()=>{i().setState(({transactions:t,toasts:a})=>{let s=Object.keys(t).filter(n=>{let r=t[n];if(!r)return!1;let{status:c}=r;return!(c==="pending"||c==="signed"||c==="sent")});s.forEach(n=>{delete t[n]});let o=a.transactionToasts.filter(n=>!s.includes(n.toastId));a.transactionToasts=o},!1,"clearCompletedTransactions")};export{y as a,T as b,g as c,h as d};
2
+ //# sourceMappingURL=chunk-VV7CPNPW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-JIKCHL57.mjs";import{a}from"./chunk-YUFPUG5O.mjs";import{a as c}from"./chunk-3JEK5A62.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
- //# sourceMappingURL=chunk-R6QKRGY5.mjs.map
1
+ import{a as l}from"./chunk-Z5RRBB6V.mjs";import{a}from"./chunk-YUFPUG5O.mjs";import{a as c}from"./chunk-G6PZFECX.mjs";var p="Check if the MultiversX App is open on Ledger";async function v({manager:e,resolve:n,reject:d,shouldInitProvider:s}){let i=!c(),t=()=>v({manager:e,resolve:n,reject:d,shouldInitProvider:s}),o=()=>d("Device unavailable");try{e?.updateAccountScreen({isLoading:!0}),e&&i&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o});let r=await l({shouldInitProvider:s});e&&i&&e.unsubscribeFromProviderInit({handleRetry:t,handleCancel:o}),n(r)}catch(r){if(!i)throw r;let{errorMessage:u,defaultErrorMessage:g}=a(r);e?.updateConnectScreen({error:u??g??p}),e&&e.subscribeToProviderInit({handleRetry:t,handleCancel:o})}}export{v as a};
2
+ //# sourceMappingURL=chunk-VVRC7ANW.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-AS7XXEHY.mjs";import{q as M}from"./chunk-4LTMFD6V.mjs";import{a as d}from"./chunk-UERJ6AKK.mjs";import{a as u,c as p,g as c}from"./chunk-NTEMINYA.mjs";import{a as l}from"./chunk-WVZRN2HX.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){l.addEventListener("message",this.handleMessage)}stopListening(){l.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=d(this.store.getState()),r=g(),n=`${t}${a}`,y=new c({address:new p(t),data:new Uint8Array(Buffer.from(n))}),f=(await r.signMessage(y))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=d(this.store.getState()),{message:t}=s;try{let r=new c({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>u.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
- //# sourceMappingURL=chunk-5JVY6GJC.mjs.map
1
+ import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-FSJ6P7DN.mjs";import{q as M}from"./chunk-X5C4JWTG.mjs";import{a as d}from"./chunk-UERJ6AKK.mjs";import{a as u,c as p,g as c}from"./chunk-NTEMINYA.mjs";import{a as l}from"./chunk-7BYCH7J2.mjs";var m=class{constructor({onLoginCancelled:e}){this.handlers=new Map;this.store=M();this.isLoginInitiated=!1;this.handleMessage=this.handleMessage.bind(this),this.handleLoginCancelled=e}startListening(){l.addEventListener("message",this.handleMessage)}stopListening(){l.removeEventListener("message",this.handleMessage)}registerEvent(e,s){this.handlers.set(e,s)}unregisterEvent(e){this.handlers.delete(e)}async handleMessage(e){let s=e.data?.type;if(typeof s=="string"&&this.handlers.has(s))return this.handlers.get(s)?.(e);switch(s){case o.finalizeHandshakeRequest:this.handshake({event:e});break;case o.signMessageRequest:this.signMessage({event:e,payload:e.data.payload});break;case o.loginRequest:this.isLoginInitiated=!0,this.login({event:e,payload:e.data.payload});break;case o.signTransactionsRequest:this.signTransactions({event:e});break;case i.cancelResponse:case"cancelAction":this.isLoginInitiated&&await this.handleLoginCancelled();break;default:break}}async login({event:e,payload:s}){let a=s?.token;if(a)try{let{address:t}=d(this.store.getState()),r=g(),n=`${t}${a}`,y=new c({address:new p(t),data:new Uint8Array(Buffer.from(n))}),f=(await r.signMessage(y))?.signature??"";e.source?.postMessage({type:i.loginResponse,payload:{data:{address:t,signature:Buffer.from(f).toString("hex")}}},{targetOrigin:e.origin})}catch{this.isLoginInitiated&&this.handleLoginCancelled()}finally{this.isLoginInitiated=!1}}handshake({event:e}){let s=Date.now().toString();e.source?.postMessage({type:i.finalizeHandshakeResponse,payload:{data:s}},{targetOrigin:e.origin})}async signMessage({event:e,payload:s}){let{address:a}=d(this.store.getState()),{message:t}=s;try{let r=new c({address:new p(a),data:new Uint8Array(Buffer.from(t))}),h=(await g().signMessage(r))?.signature??"";e.source?.postMessage({type:i.signMessageResponse,payload:{data:{signature:Buffer.from(h).toString("hex"),status:"signed"}}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign message")}}async signTransactions({event:e}){let s=g(),{payload:a}=e.data;if(Array.isArray(a))try{let t=a.map(n=>u.newFromPlainObject(n)),r=await s.signTransactions(t);e.source?.postMessage({type:i.signTransactionsResponse,payload:{data:r.map(n=>n.toPlainObject())}},{targetOrigin:e.origin})}catch{throw new Error("Could not sign transactions")}}};export{m as a};
2
+ //# sourceMappingURL=chunk-WNTY5HJN.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as e}from"./chunk-4LTMFD6V.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
- //# sourceMappingURL=chunk-5PGKBWB6.mjs.map
1
+ import{s as e}from"./chunk-X5C4JWTG.mjs";import{b as o}from"./chunk-SAAOQW7P.mjs";import{a as i}from"./chunk-CKTFPRJS.mjs";var n="https://api.multiversx.com",s=60*60*24,a=5*60,d=t=>{let r=o(e());return{origin:t?.origin||i().origin,apiAddress:t?.apiAddress||r.apiAddress||n,expirySeconds:t?.expirySeconds||s,tokenExpirationToastWarningSeconds:t?.tokenExpirationToastWarningSeconds||a}};export{d as a};
2
+ //# sourceMappingURL=chunk-X4KR5OSC.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-HSYMR5UW.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=c,e.loginInfo=m,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
2
- //# sourceMappingURL=chunk-4LTMFD6V.mjs.map
1
+ import{b as s,f as a}from"./chunk-UERJ6AKK.mjs";import{f as p}from"./chunk-VNLGNNIL.mjs";import{a as d,b as L}from"./chunk-NLRDRI7Q.mjs";import{a as k}from"./chunk-2WIGLKYG.mjs";import{a as v}from"./chunk-KRWR77QE.mjs";import{b as y}from"./chunk-A7FTKX2A.mjs";import{a as c,b as g}from"./chunk-WZGG2YKQ.mjs";import{a as m,b as f}from"./chunk-M7BM6QPB.mjs";import{a as T}from"./chunk-CYCS3K6Q.mjs";import{a as S,b as u}from"./chunk-VKEESSBI.mjs";import{a as x}from"./chunk-2DNGCNYM.mjs";import{a as I}from"./chunk-NB7A4C7L.mjs";import{c as l}from"./chunk-NTEMINYA.mjs";import{createJSONStorage as O,devtools as V,persist as h}from"zustand/middleware";import{immer as N}from"zustand/middleware/immer";import{createStore as J}from"zustand/vanilla";var A=e=>{e.account=c,e.loginInfo=m,e.transactions=d,e.toasts=S};function H(){return new Date().setHours(new Date().getHours()+24)}function w(e){if(e==null){E();return}b(e)}var C=e=>{let t=a(e),n=p(e),{address:i,publicKey:M}=s(e);if(i&&M!==new l(i).toHex()&&A(e),!t)return;if(n==null){w(H());return}let P=Date.now();n-P<0&&(w(null),o().setState(A))};var z=(e,t)=>{C(e)};var W=e=>{let t=J(V(h(N((...n)=>({network:x(...n),account:g(...n),loginInfo:f(...n),config:T(...n),transactions:L(...n),toasts:u(...n),cache:y(...n),ui:I(...n)})),{name:"sdk-dapp-store",storage:O(e)})));return t.subscribe(z),t},r,D=e=>{r=e},o=()=>(r||D(W(()=>new v)),r),pe=(e=k)=>{let t=W(e);return D(t),t},le=()=>o().getState();var me=e=>o().setState(({loginInfo:t})=>{t.providerType=e},!1,"setProviderType"),fe=e=>o().setState(({loginInfo:t})=>{t.tokenLogin=e},!1,"setTokenLogin"),Se=e=>o().setState(({loginInfo:t})=>{if(t.tokenLogin!=null){t.tokenLogin.loginToken=e;return}t.tokenLogin={loginToken:e}},!1,"setLoginToken"),ue=e=>o().setState(({loginInfo:t})=>{t?.tokenLogin!=null&&(t.tokenLogin.signature=e)},!1,"setTokenLoginSignature"),de=e=>o().setState(({loginInfo:t})=>{t.walletConnectLogin=e},!1,"setWalletConnectLogin"),Le=e=>o().setState(({loginInfo:t})=>{t.ledgerLogin=e},!1,"setLedgerLogin"),xe=e=>o().setState(({loginInfo:t})=>{t.isWalletConnectV2Initialized=e},!1,"setIsWalletConnectV2Initialized"),E=()=>o().setState(({loginInfo:e})=>{e.loginExpiresAt=null},!1,"removeLoginExpiresAt"),b=e=>o().setState(({loginInfo:t})=>{t.loginExpiresAt=e},!1,"addLoginExpiresAt");export{me as a,fe as b,Se as c,ue as d,de as e,Le as f,xe as g,E as h,b as i,A as j,H as k,w as l,C as m,z as n,W as o,D as p,o as q,pe as r,le as s};
2
+ //# sourceMappingURL=chunk-X5C4JWTG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-5VSKEHYA.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
2
- //# sourceMappingURL=chunk-OXPZVCKM.mjs.map
1
+ import{a as e}from"./chunk-QNT5Z55W.mjs";import o from"axios";var n="transactions/ppu";async function l(a,s){let r=`${e(s)}/${n}/${a}`;try{let{data:t}=await o.get(r);return t?{[a]:{lastBlock:t.lastBlock,fast:t.fast,faster:t.faster}}:null}catch(t){return console.error("Error fetching gas station metadata from:",r,t),null}}export{l as a};
2
+ //# sourceMappingURL=chunk-XHOY6ZTM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as h}from"./chunk-DE6O7BFR.mjs";import{a as s}from"./chunk-OLOOCCNU.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-K3OKY7NL.mjs";import{b as A}from"./chunk-HEA7NFOF.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-4LTMFD6V.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-LJX4MW7B.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
2
- //# sourceMappingURL=chunk-X5IHXBJ3.mjs.map
1
+ import{a as h}from"./chunk-NSW7SBHH.mjs";import{a as s}from"./chunk-ZEYX332S.mjs";import{a as k}from"./chunk-B2RDSGON.mjs";import{a as L}from"./chunk-OQWBS4SC.mjs";import{b as A}from"./chunk-756GEXZI.mjs";import{a as I}from"./chunk-BRJNX4JF.mjs";import{f as p}from"./chunk-X5C4JWTG.mjs";import{a as f}from"./chunk-KD2IQ32V.mjs";import{a as x}from"./chunk-ZONHCECO.mjs";import{BigNumber as C}from"bignumber.js";async function M({options:d,config:i,provider:a,login:c}){let e=h.getInstance(),T=L(),b=k({loginToken:d?.token,version:i.version}),o={manager:e,provider:a};await s(o);let t=await new Promise(async function(E,w){async function g(r){let n=e?e.addressesPerPage??1:1,l=new C(r-1).times(n);e?.updateStartIndex(Math.max(0,parseInt(l.toString()))),await s(o)}async function u(r){if(!(!a||!c)){e?.updateConfirmScreen({...b,selectedAddress:r.selectedAddress,explorerLink:I({to:`/${f}/${r.selectedAddress}`,explorerAddress:T})});try{let n=d?.token?await a.tokenLogin({token:Buffer.from(`${d?.token}{}`),addressIndex:r.addressIndex}):await c({addressIndex:r.addressIndex});E({address:n.address,signature:n.signature?n.signature.toString("hex"):"",addressIndex:r.addressIndex})}catch(n){console.error("User rejected login:",n),!!e?.getConfirmScreenData()&&await s(o)}}}async function m(){await s(o),e.unsubscribeFromAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g}),w("User cancelled login")}e.subscribeToAuthEvents({handleCancel:m,handleAccessWallet:u,handleGoToPage:g})}),{version:P,dataEnabled:v}=i;return p({index:t.addressIndex,loginType:x.ledger}),A({address:t.address,index:t.addressIndex,version:P,hasContractDataEnabled:v}),{address:t.address,signature:t.signature}}export{M as a};
2
+ //# sourceMappingURL=chunk-XJWZ6BDQ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WVZRN2HX.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
- //# sourceMappingURL=chunk-OPX7XWAC.mjs.map
1
+ import{a as t}from"./chunk-7BYCH7J2.mjs";var n=class{static get create(){return this.createComponent}static set create(e){this.createComponent=e}};n.createComponent=async({name:e,anchor:m})=>{if(!t?.customElements?.get(e))return null;let o=t.document.createElement(e);return(m||t.document.body).appendChild(o),await customElements.whenDefined(e),o};export{n as a};
2
+ //# sourceMappingURL=chunk-Y5UBM4II.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-ZEJRHV7U.mjs";import{a as o}from"./chunk-LJX4MW7B.mjs";import{a as e,b as t}from"./chunk-WVZRN2HX.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
2
- //# sourceMappingURL=chunk-EP4OBHW4.mjs.map
1
+ import{a as s}from"./chunk-NUUOYZJB.mjs";import{a as o}from"./chunk-ZONHCECO.mjs";import{a as e,b as t}from"./chunk-7BYCH7J2.mjs";import{WebviewProvider as a}from"@multiversx/sdk-webview-provider/out/WebviewProvider";var n=class extends s{constructor(r){super(r?.address);this.cancelAction=async()=>{this.provider.cancelAction()};this.signTransactions=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signTransactions(r)||[]}catch(i){throw this.cancelAction(),i}};this.signMessage=async r=>{if(!this.provider)throw new Error("Provider is not initialized.");try{return await this.provider.signMessage(r)}catch(i){throw this.cancelAction(),i}};this.provider=a.getInstance({resetStateCallback:()=>{e.localStorage?.clear?.(),e.sessionStorage?.clear?.()}}),this._login=this.provider.login.bind(this.provider)}async init(){return this.initializeAddress(),this.initializeProvider()}logout(){return this.provider.logout()}getType(){return o.webview}getAddress(){throw new Error("Method not implemented.")}setAccount(r){return this.provider.setAccount(r)}isInitialized(){return this.provider.isInitialized()}async initializeProvider(){let r=await this.provider.init(t);return this.address&&this.setAccount({address:this.address}),r}};export{n as a};
2
+ //# sourceMappingURL=chunk-YDK5V2BZ.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as n}from"./chunk-X5C4JWTG.mjs";import{b as t}from"./chunk-UTWIKUIK.mjs";var c=a=>t(`transaction-${a}`)(n().getState())??null;export{c as a};
2
+ //# sourceMappingURL=chunk-YL7WVJQO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-WVZRN2HX.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
- //# sourceMappingURL=chunk-AMS6KZTC.mjs.map
1
+ import{a as e}from"./chunk-7BYCH7J2.mjs";function r(t){try{if(!e)return;e.document.documentElement.dataset.mvxTheme=t}catch{console.log("Error switching the theme!")}}export{r as a};
2
+ //# sourceMappingURL=chunk-YOJ6MVBW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-AS7XXEHY.mjs";import{a as c}from"./chunk-3JEK5A62.mjs";import{s as n}from"./chunk-4LTMFD6V.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=c(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=g(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
2
- //# sourceMappingURL=chunk-JIKCHL57.mjs.map
1
+ import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-FSJ6P7DN.mjs";import{a as c}from"./chunk-G6PZFECX.mjs";import{s as n}from"./chunk-X5C4JWTG.mjs";import{g as a}from"./chunk-UERJ6AKK.mjs";import{e as l}from"./chunk-VNLGNNIL.mjs";import{HWProvider as m}from"@multiversx/sdk-hw-provider";async function A(u){let v=c(),d=u?.shouldInitProvider||!v,o=l(n()),t=a(n()),r=g(),i=new m,I=async()=>{let e=o?.index!=null;if(r instanceof m&&r.isInitialized())return e&&await r.setAddressIndex(o.index),r;if(d&&!await i.init())throw new Error("Failed to initialize Ledger Provider");return e&&await i.setAddressIndex(o.index),i};try{if(!d&&t)return{ledgerProvider:i,ledgerConfig:{version:t.version,dataEnabled:t.hasContractDataEnabled}};let e=await I(),s=await f(e);return{ledgerProvider:e,ledgerConfig:s}}catch(e){throw console.error("Could not initialize ledger app",e),e}}export{A as a};
2
+ //# sourceMappingURL=chunk-Z5RRBB6V.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-IYVM5B26.mjs";import{a as m}from"./chunk-NZYB675D.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
2
- //# sourceMappingURL=chunk-OLOOCCNU.mjs.map
1
+ import{a as w}from"./chunk-QXC4D3AC.mjs";import{a as g}from"./chunk-YGI3KXMZ.mjs";import{a as b}from"./chunk-MMG52PCY.mjs";import{a as m}from"./chunk-NZYB675D.mjs";import{f}from"./chunk-PJWJZHIS.mjs";import x from"bignumber.js";var F=async({manager:e,provider:d})=>{if(!e||!d)throw new Error("Provider is not initialized.");let{network:u}=b(),s=e.getAccountScreenData()?.startIndex||0,r=e.getAllAccounts(),a=await w({baseURL:u.apiAddress}),l=o=>o.index>=s&&o.index<s+e.addressesPerPage,I=r.reduce((o,n)=>Object.assign(o,{[n.index]:n}),{}),A=r.filter(l),y=!!I[s];if(e.updateAccountScreen({isLoading:!y}),A.length>0){e.updateAccountScreen({accounts:A});return}try{let o=Math.floor(s/e.addressesPerPage),n=await d.getAccounts(o,e.addressesPerPage),L=n.map((t,c)=>({address:t,balance:"...",index:c+s})),P=[...r,...L],h=n.map(t=>m({address:t,baseURL:u.apiAddress})),j=await Promise.all(h),i=P.reduce((t,c)=>Object.assign(t,{[c.address]:c}),{});j.forEach(t=>{if(!t||!a||!a.price)return;let c=new x(t.balance),S=c.dividedBy(x(10).pow(18)).toFormat(4).toString();if(c.isNaN())return;let U=g({amount:f({input:t.balance}),usd:a?.price});i[t.address].balance=S,i[t.address].usdValue=U});let p=Object.values(i).sort((t,c)=>t.index-c.index),O=p.filter(l);e.updateAllAccounts(p),e.updateAccountScreen({accounts:O,isLoading:!1})}catch(o){console.error("Failed to fetch accounts:",o)}};export{F as a};
2
+ //# sourceMappingURL=chunk-ZEYX332S.mjs.map
@@ -0,0 +1,2 @@
1
+ var e={extension:"extension",metamask:"metamask",walletConnect:"walletConnect",ledger:"ledger",crossWindow:"crossWindow",webview:"webview",none:""};export{e as a};
2
+ //# sourceMappingURL=chunk-ZONHCECO.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/providers/types/providerFactory.types.ts"],
4
+ "sourcesContent": ["import type { IDAppProviderBase } from '@multiversx/sdk-dapp-utils';\n\nexport interface IProvider<T extends ProviderType = ProviderType>\n extends IDAppProviderBase {\n init: () => Promise<boolean>;\n login: (options?: { callbackUrl?: string; token?: string }) => Promise<{\n address: string;\n signature: string;\n multisig?: string;\n impersonate?: string;\n accessToken?: string;\n [key: string]: unknown;\n }>;\n logout: () => Promise<boolean>;\n cancelLogin?: () => void;\n getType: () => T;\n getAddress(): Promise<string | undefined>;\n}\n\nexport interface IProviderConfig {\n account?: {\n address: string;\n };\n}\n\nexport const ProviderTypeEnum = {\n extension: 'extension',\n metamask: 'metamask',\n walletConnect: 'walletConnect',\n ledger: 'ledger',\n crossWindow: 'crossWindow',\n webview: 'webview',\n none: ''\n} as const;\n\nexport type ProviderBaseType =\n (typeof ProviderTypeEnum)[keyof typeof ProviderTypeEnum];\n\nexport type ProviderType = ProviderBaseType | (string & {}); // This allows custom providers to be used as a string\n\nexport interface IProviderFactory<T extends ProviderType = ProviderType> {\n type: T;\n anchor?: HTMLElement;\n}\n\nexport interface IProviderBase<T extends ProviderType = ProviderType> {\n name: string;\n type: T;\n iconUrl?: string;\n}\nexport interface ICustomProvider<T extends ProviderType = ProviderType>\n extends IProviderBase<T> {\n constructor: (options?: {\n address?: string;\n anchor?: HTMLElement;\n }) => Promise<IProvider>;\n}\n"],
5
+ "mappings": "AAyBO,IAAMA,EAAmB,CAC9B,UAAW,YACX,SAAU,WACV,cAAe,gBACf,OAAQ,SACR,YAAa,cACb,QAAS,UACT,KAAM,EACR",
6
+ "names": ["ProviderTypeEnum"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-ZONHCECO.mjs";var t={[e.crossWindow]:"MultiversX Web Wallet",[e.extension]:"MultiversX Wallet Extension",[e.walletConnect]:"xPortal App",[e.ledger]:"Ledger",[e.metamask]:"MetaMask Snap",[e.webview]:"Webview",[e.none]:""};export{t as a};
2
+ //# sourceMappingURL=chunk-ZVIKYGX5.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/constants/providerFactory.constants.ts"],
4
- "sourcesContent": ["import {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\n\nexport const providerLabels: Record<ProviderType, string> = {\n [ProviderTypeEnum.crossWindow]: 'MultiversX Web Wallet',\n [ProviderTypeEnum.extension]: 'MultiversX Wallet Extension',\n [ProviderTypeEnum.walletConnect]: 'xPortal App',\n [ProviderTypeEnum.ledger]: 'Ledger',\n [ProviderTypeEnum.metamask]: 'MetaMask Snap',\n [ProviderTypeEnum.passkey]: 'Passkey',\n [ProviderTypeEnum.webview]: 'Webview',\n [ProviderTypeEnum.none]: ''\n};\n"],
5
- "mappings": "yCAKO,IAAMA,EAA+C,CAC1D,CAACC,EAAiB,WAAW,EAAG,wBAChC,CAACA,EAAiB,SAAS,EAAG,8BAC9B,CAACA,EAAiB,aAAa,EAAG,cAClC,CAACA,EAAiB,MAAM,EAAG,SAC3B,CAACA,EAAiB,QAAQ,EAAG,gBAC7B,CAACA,EAAiB,OAAO,EAAG,UAC5B,CAACA,EAAiB,OAAO,EAAG,UAC5B,CAACA,EAAiB,IAAI,EAAG,EAC3B",
4
+ "sourcesContent": ["import {\n ProviderTypeEnum,\n ProviderType\n} from 'providers/types/providerFactory.types';\n\nexport const providerLabels: Record<ProviderType, string> = {\n [ProviderTypeEnum.crossWindow]: 'MultiversX Web Wallet',\n [ProviderTypeEnum.extension]: 'MultiversX Wallet Extension',\n [ProviderTypeEnum.walletConnect]: 'xPortal App',\n [ProviderTypeEnum.ledger]: 'Ledger',\n [ProviderTypeEnum.metamask]: 'MetaMask Snap',\n [ProviderTypeEnum.webview]: 'Webview',\n [ProviderTypeEnum.none]: ''\n};\n"],
5
+ "mappings": "yCAKO,IAAMA,EAA+C,CAC1D,CAACC,EAAiB,WAAW,EAAG,wBAChC,CAACA,EAAiB,SAAS,EAAG,8BAC9B,CAACA,EAAiB,aAAa,EAAG,cAClC,CAACA,EAAiB,MAAM,EAAG,SAC3B,CAACA,EAAiB,QAAQ,EAAG,gBAC7B,CAACA,EAAiB,OAAO,EAAG,UAC5B,CAACA,EAAiB,IAAI,EAAG,EAC3B",
6
6
  "names": ["providerLabels", "ProviderTypeEnum"]
7
7
  }
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-DHTRPE3R.mjs";import"../../__chunks__/chunk-6JSWL75O.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-IGTIIBN6.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-LJX4MW7B.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getScamAddressData};
1
+ import{a}from"../../__chunks__/chunk-AXUYY4T7.mjs";import"../../__chunks__/chunk-6ET5BDZH.mjs";import"../../__chunks__/chunk-D2JYGLAC.mjs";import"../../__chunks__/chunk-3GGBXXXJ.mjs";import"../../__chunks__/chunk-O7LCTC4K.mjs";import"../../__chunks__/chunk-KD2IQ32V.mjs";import"../../__chunks__/chunk-5Y2ZDPP6.mjs";import"../../__chunks__/chunk-LH7HQXQ7.mjs";import"../../__chunks__/chunk-ZVIKYGX5.mjs";import"../../__chunks__/chunk-LHEH7L4L.mjs";import"../../__chunks__/chunk-EJV4VNJG.mjs";import"../../__chunks__/chunk-LNYGKGJE.mjs";import"../../__chunks__/chunk-FI444OX3.mjs";import"../../__chunks__/chunk-ULUZWP2P.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-GLXG5BES.mjs";import"../../__chunks__/chunk-ZONHCECO.mjs";import"../../__chunks__/chunk-7BYCH7J2.mjs";export{a as getScamAddressData};
2
2
  //# sourceMappingURL=getScamAddressData.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-5VSKEHYA.mjs";import"../../__chunks__/chunk-4LTMFD6V.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HSYMR5UW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getCleanApiAddress};
1
+ import{a}from"../../__chunks__/chunk-QNT5Z55W.mjs";import"../../__chunks__/chunk-X5C4JWTG.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-2WIGLKYG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-7BYCH7J2.mjs";export{a as getCleanApiAddress};
2
2
  //# sourceMappingURL=getCleanApiAddress.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../__chunks__/chunk-OXPZVCKM.mjs";import"../../__chunks__/chunk-5VSKEHYA.mjs";import"../../__chunks__/chunk-4LTMFD6V.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-HSYMR5UW.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-WVZRN2HX.mjs";export{a as getGasStationMetadataFromApi};
1
+ import{a}from"../../__chunks__/chunk-XHOY6ZTM.mjs";import"../../__chunks__/chunk-QNT5Z55W.mjs";import"../../__chunks__/chunk-X5C4JWTG.mjs";import"../../__chunks__/chunk-T4FRQ4JG.mjs";import"../../__chunks__/chunk-UTWIKUIK.mjs";import"../../__chunks__/chunk-UERJ6AKK.mjs";import"../../__chunks__/chunk-KPK72MOE.mjs";import"../../__chunks__/chunk-SAAOQW7P.mjs";import"../../__chunks__/chunk-VNLGNNIL.mjs";import"../../__chunks__/chunk-6JM4DPOH.mjs";import"../../__chunks__/chunk-ZODTYAYF.mjs";import"../../__chunks__/chunk-NLRDRI7Q.mjs";import"../../__chunks__/chunk-DKX6JUT6.mjs";import"../../__chunks__/chunk-2WIGLKYG.mjs";import"../../__chunks__/chunk-KRWR77QE.mjs";import"../../__chunks__/chunk-B7YCKWDU.mjs";import"../../__chunks__/chunk-HDJOER66.mjs";import"../../__chunks__/chunk-A7FTKX2A.mjs";import"../../__chunks__/chunk-XKU5QBXG.mjs";import"../../__chunks__/chunk-WZGG2YKQ.mjs";import"../../__chunks__/chunk-JMC7CMTU.mjs";import"../../__chunks__/chunk-S2B2ZKIJ.mjs";import"../../__chunks__/chunk-T2YPFNVM.mjs";import"../../__chunks__/chunk-M7BM6QPB.mjs";import"../../__chunks__/chunk-5N4F5T5L.mjs";import"../../__chunks__/chunk-CYCS3K6Q.mjs";import"../../__chunks__/chunk-YMPZDHKF.mjs";import"../../__chunks__/chunk-VKEESSBI.mjs";import"../../__chunks__/chunk-2DNGCNYM.mjs";import"../../__chunks__/chunk-SQVKVA7X.mjs";import"../../__chunks__/chunk-I24YBVHK.mjs";import"../../__chunks__/chunk-NB7A4C7L.mjs";import"../../__chunks__/chunk-PJWJZHIS.mjs";import"../../__chunks__/chunk-NTEMINYA.mjs";import"../../__chunks__/chunk-MGFIOCA4.mjs";import"../../__chunks__/chunk-GGBMHKR4.mjs";import"../../__chunks__/chunk-7BYCH7J2.mjs";export{a as getGasStationMetadataFromApi};
2
2
  //# sourceMappingURL=getGasStationMetadata.mjs.map
@@ -1,2 +1,2 @@
1
- import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-K5MJ4FMD.mjs";import{a as F}from"../__chunks__/chunk-XI2BWIQP.mjs";import"../__chunks__/chunk-DXRSXWLQ.mjs";import"../__chunks__/chunk-INRKVOET.mjs";import"../__chunks__/chunk-6ET5BDZH.mjs";import{a as G}from"../__chunks__/chunk-D2JYGLAC.mjs";import"../__chunks__/chunk-ZFXAT6MD.mjs";import{a as H}from"../__chunks__/chunk-Q2Q4XN4M.mjs";import{a as D}from"../__chunks__/chunk-YK7T6MBD.mjs";import{a as E}from"../__chunks__/chunk-KMJMQEXI.mjs";import{a as B,b as C}from"../__chunks__/chunk-SLOQOCEU.mjs";import{a as A}from"../__chunks__/chunk-3GGBXXXJ.mjs";import{a as z}from"../__chunks__/chunk-O7LCTC4K.mjs";import"../__chunks__/chunk-4LTMFD6V.mjs";import"../__chunks__/chunk-T4FRQ4JG.mjs";import"../__chunks__/chunk-UTWIKUIK.mjs";import"../__chunks__/chunk-UERJ6AKK.mjs";import"../__chunks__/chunk-KPK72MOE.mjs";import"../__chunks__/chunk-SAAOQW7P.mjs";import"../__chunks__/chunk-VNLGNNIL.mjs";import"../__chunks__/chunk-6JM4DPOH.mjs";import"../__chunks__/chunk-ZODTYAYF.mjs";import"../__chunks__/chunk-NLRDRI7Q.mjs";import"../__chunks__/chunk-DKX6JUT6.mjs";import"../__chunks__/chunk-HSYMR5UW.mjs";import"../__chunks__/chunk-KRWR77QE.mjs";import"../__chunks__/chunk-B7YCKWDU.mjs";import"../__chunks__/chunk-HDJOER66.mjs";import"../__chunks__/chunk-A7FTKX2A.mjs";import"../__chunks__/chunk-XKU5QBXG.mjs";import"../__chunks__/chunk-WZGG2YKQ.mjs";import"../__chunks__/chunk-JMC7CMTU.mjs";import"../__chunks__/chunk-S2B2ZKIJ.mjs";import"../__chunks__/chunk-T2YPFNVM.mjs";import"../__chunks__/chunk-M7BM6QPB.mjs";import"../__chunks__/chunk-5N4F5T5L.mjs";import"../__chunks__/chunk-CYCS3K6Q.mjs";import"../__chunks__/chunk-YMPZDHKF.mjs";import"../__chunks__/chunk-VKEESSBI.mjs";import"../__chunks__/chunk-2DNGCNYM.mjs";import"../__chunks__/chunk-SQVKVA7X.mjs";import"../__chunks__/chunk-I24YBVHK.mjs";import"../__chunks__/chunk-NB7A4C7L.mjs";import"../__chunks__/chunk-PJWJZHIS.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../__chunks__/chunk-KD2IQ32V.mjs";import"../__chunks__/chunk-NTEMINYA.mjs";import"../__chunks__/chunk-3FXHIV6O.mjs";import"../__chunks__/chunk-ULUZWP2P.mjs";import"../__chunks__/chunk-MGFIOCA4.mjs";import"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-GLXG5BES.mjs";import"../__chunks__/chunk-WVZRN2HX.mjs";export{a as ACCOUNTS_ENDPOINT,b as ADDRESS_ENDPOINT,c as BLOCKS_ENDPOINT,d as CODE_ENDPOINT,e as COLLECTIONS_ENDPOINT,f as CONFIG_ENDPOINT,g as CONTRACTS_ENDPOINT,h as ECONOMICS_ENDPOINT,i as IDENTITIES_ENDPOINT,j as KEYS_ENDPOINT,k as LOCKED_ACCOUNTS_ENDPOINT,l as LOGS_ENDPOINT,m as MINIBLOCKS_ENDPOINT,n as NETWORK_CONFIG_ENDPOINT,o as NFTS_ENDPOINT,p as NODES_ENDPOINT,q as PROVIDERS_ENDPOINT,r as ROLES_ENDPOINT,s as SC_RESULTS_ENDPOINT,t as STAKE_ENDPOINT,u as TOKENS_ENDPOINT,w as TRANSACTIONS_BATCH,v as TRANSACTIONS_COUNT_ENDPOINT,x as TRANSACTIONS_ENDPOINT,y as TRANSFERS_ENDPOINT,B as accountFetcher,G as axiosFetcher,z as axiosInstance,C as getAccountFromApi,A as getCleanApiAddress,E as getNetworkConfigFromApi,D as getServerConfiguration,F as getTokenDetails,H as getWebsocketUrl};
1
+ import"../__chunks__/chunk-YV7ZJBAY.mjs";import"../__chunks__/chunk-K5MJ4FMD.mjs";import{a as F}from"../__chunks__/chunk-HBXJVW2D.mjs";import"../__chunks__/chunk-DXRSXWLQ.mjs";import"../__chunks__/chunk-INRKVOET.mjs";import"../__chunks__/chunk-6ET5BDZH.mjs";import{a as G}from"../__chunks__/chunk-D2JYGLAC.mjs";import"../__chunks__/chunk-ZFXAT6MD.mjs";import{a as H}from"../__chunks__/chunk-Q2Q4XN4M.mjs";import{a as D}from"../__chunks__/chunk-YK7T6MBD.mjs";import{a as E}from"../__chunks__/chunk-KMJMQEXI.mjs";import{a as B,b as C}from"../__chunks__/chunk-SLOQOCEU.mjs";import{a as A}from"../__chunks__/chunk-3GGBXXXJ.mjs";import{a as z}from"../__chunks__/chunk-O7LCTC4K.mjs";import"../__chunks__/chunk-X5C4JWTG.mjs";import"../__chunks__/chunk-T4FRQ4JG.mjs";import"../__chunks__/chunk-UTWIKUIK.mjs";import"../__chunks__/chunk-UERJ6AKK.mjs";import"../__chunks__/chunk-KPK72MOE.mjs";import"../__chunks__/chunk-SAAOQW7P.mjs";import"../__chunks__/chunk-VNLGNNIL.mjs";import"../__chunks__/chunk-6JM4DPOH.mjs";import"../__chunks__/chunk-ZODTYAYF.mjs";import"../__chunks__/chunk-NLRDRI7Q.mjs";import"../__chunks__/chunk-DKX6JUT6.mjs";import"../__chunks__/chunk-2WIGLKYG.mjs";import"../__chunks__/chunk-KRWR77QE.mjs";import"../__chunks__/chunk-B7YCKWDU.mjs";import"../__chunks__/chunk-HDJOER66.mjs";import"../__chunks__/chunk-A7FTKX2A.mjs";import"../__chunks__/chunk-XKU5QBXG.mjs";import"../__chunks__/chunk-WZGG2YKQ.mjs";import"../__chunks__/chunk-JMC7CMTU.mjs";import"../__chunks__/chunk-S2B2ZKIJ.mjs";import"../__chunks__/chunk-T2YPFNVM.mjs";import"../__chunks__/chunk-M7BM6QPB.mjs";import"../__chunks__/chunk-5N4F5T5L.mjs";import"../__chunks__/chunk-CYCS3K6Q.mjs";import"../__chunks__/chunk-YMPZDHKF.mjs";import"../__chunks__/chunk-VKEESSBI.mjs";import"../__chunks__/chunk-2DNGCNYM.mjs";import"../__chunks__/chunk-SQVKVA7X.mjs";import"../__chunks__/chunk-I24YBVHK.mjs";import"../__chunks__/chunk-NB7A4C7L.mjs";import"../__chunks__/chunk-PJWJZHIS.mjs";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y}from"../__chunks__/chunk-KD2IQ32V.mjs";import"../__chunks__/chunk-NTEMINYA.mjs";import"../__chunks__/chunk-3FXHIV6O.mjs";import"../__chunks__/chunk-ULUZWP2P.mjs";import"../__chunks__/chunk-MGFIOCA4.mjs";import"../__chunks__/chunk-GGBMHKR4.mjs";import"../__chunks__/chunk-GLXG5BES.mjs";import"../__chunks__/chunk-7BYCH7J2.mjs";export{a as ACCOUNTS_ENDPOINT,b as ADDRESS_ENDPOINT,c as BLOCKS_ENDPOINT,d as CODE_ENDPOINT,e as COLLECTIONS_ENDPOINT,f as CONFIG_ENDPOINT,g as CONTRACTS_ENDPOINT,h as ECONOMICS_ENDPOINT,i as IDENTITIES_ENDPOINT,j as KEYS_ENDPOINT,k as LOCKED_ACCOUNTS_ENDPOINT,l as LOGS_ENDPOINT,m as MINIBLOCKS_ENDPOINT,n as NETWORK_CONFIG_ENDPOINT,o as NFTS_ENDPOINT,p as NODES_ENDPOINT,q as PROVIDERS_ENDPOINT,r as ROLES_ENDPOINT,s as SC_RESULTS_ENDPOINT,t as STAKE_ENDPOINT,u as TOKENS_ENDPOINT,w as TRANSACTIONS_BATCH,v as TRANSACTIONS_COUNT_ENDPOINT,x as TRANSACTIONS_ENDPOINT,y as TRANSFERS_ENDPOINT,B as accountFetcher,G as axiosFetcher,z as axiosInstance,C as getAccountFromApi,A as getCleanApiAddress,E as getNetworkConfigFromApi,D as getServerConfiguration,F as getTokenDetails,H as getWebsocketUrl};
2
2
  //# sourceMappingURL=index.mjs.map