@multiversx/sdk-dapp 5.2.3 → 5.2.5

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 (405) hide show
  1. package/out/__chunks__/{chunk-K4VQ6UWP.mjs → chunk-2FU37PY5.mjs} +2 -2
  2. package/out/__chunks__/{chunk-7RM2765V.mjs → chunk-2JGSMQ3T.mjs} +2 -2
  3. package/out/__chunks__/{chunk-GJJZZWVD.mjs → chunk-3BVKYYHT.mjs} +2 -2
  4. package/out/__chunks__/{chunk-SN3EZ6GY.mjs → chunk-3D7VMEVL.mjs} +2 -2
  5. package/out/__chunks__/{chunk-LGAWIVRO.mjs → chunk-3QWTD55I.mjs} +2 -2
  6. package/out/__chunks__/chunk-3TJTXI66.mjs +2 -0
  7. package/out/__chunks__/chunk-3TJTXI66.mjs.map +7 -0
  8. package/out/__chunks__/{chunk-DR66NBJB.mjs → chunk-3WHS4QZZ.mjs} +2 -2
  9. package/out/__chunks__/{chunk-HDRB2QL6.mjs → chunk-4VUMAG4J.mjs} +2 -2
  10. package/out/__chunks__/{chunk-DWKNS2L6.mjs → chunk-5YDUSQUN.mjs} +2 -2
  11. package/out/__chunks__/chunk-62XXIXTE.mjs +2 -0
  12. package/out/__chunks__/{chunk-DWVQFEQG.mjs → chunk-6IDZ52FJ.mjs} +2 -2
  13. package/out/__chunks__/{chunk-F4B56PJO.mjs → chunk-6ST4KZLT.mjs} +2 -2
  14. package/out/__chunks__/{chunk-SLOQOCEU.mjs → chunk-72VXBZOB.mjs} +2 -2
  15. package/out/__chunks__/chunk-7YKKU6UM.mjs +2 -0
  16. package/out/__chunks__/{chunk-OW6TI77R.mjs → chunk-ARY5QEDY.mjs} +2 -2
  17. package/out/__chunks__/chunk-B6KBOAFE.mjs +2 -0
  18. package/out/__chunks__/chunk-BJEPGGTR.mjs +2 -0
  19. package/out/__chunks__/{chunk-AQHQWVF7.mjs → chunk-BUAVB6CL.mjs} +2 -2
  20. package/out/__chunks__/{chunk-WO6VWFRK.mjs → chunk-BZQSEPTC.mjs} +2 -2
  21. package/out/__chunks__/{chunk-PYDEFY6F.mjs → chunk-C3LAZHGD.mjs} +2 -2
  22. package/out/__chunks__/{chunk-OU4PEXX6.mjs → chunk-CANC2FCH.mjs} +2 -2
  23. package/out/__chunks__/{chunk-DDOXD4IN.mjs → chunk-CECXI5ZJ.mjs} +2 -2
  24. package/out/__chunks__/{chunk-Y4QU4QCG.mjs → chunk-CFJZFKIS.mjs} +2 -2
  25. package/out/__chunks__/chunk-CUTW32BD.mjs +2 -0
  26. package/out/__chunks__/{chunk-QP6RME6L.mjs → chunk-E5RLJTLP.mjs} +2 -2
  27. package/out/__chunks__/{chunk-TWPRIAIS.mjs → chunk-EFD2PMLA.mjs} +2 -2
  28. package/out/__chunks__/{chunk-BQX7MJR6.mjs → chunk-ELQR4QMU.mjs} +2 -2
  29. package/out/__chunks__/{chunk-PC6HDNCW.mjs → chunk-EYUQF6VD.mjs} +2 -2
  30. package/out/__chunks__/{chunk-UUCM2B5J.mjs → chunk-F6QODHDC.mjs} +2 -2
  31. package/out/__chunks__/{chunk-C7FCKWVR.mjs → chunk-FRIE2JPN.mjs} +2 -2
  32. package/out/__chunks__/chunk-G7GU37XI.mjs +2 -0
  33. package/out/__chunks__/{chunk-476M52X7.mjs → chunk-GR362QNP.mjs} +2 -2
  34. package/out/__chunks__/{chunk-7OUDTQCF.mjs → chunk-GV2STE7J.mjs} +2 -2
  35. package/out/__chunks__/{chunk-XZ52KQTC.mjs → chunk-GWUYYSBN.mjs} +2 -2
  36. package/out/__chunks__/{chunk-WKAAF3SF.mjs → chunk-GY6MHIOO.mjs} +2 -2
  37. package/out/__chunks__/{chunk-PMMHNOCU.mjs → chunk-GZL6GF6Z.mjs} +2 -2
  38. package/out/__chunks__/{chunk-BDAAMNBN.mjs → chunk-HJGZQFKX.mjs} +2 -2
  39. package/out/__chunks__/{chunk-OGZTCDLF.mjs → chunk-HKKKOC5V.mjs} +2 -2
  40. package/out/__chunks__/{chunk-XZIUMXWJ.mjs → chunk-I4QHHCK6.mjs} +2 -2
  41. package/out/__chunks__/chunk-I6WKWOAM.mjs +2 -0
  42. package/out/__chunks__/chunk-I7L5LOHR.mjs +2 -0
  43. package/out/__chunks__/chunk-IDJ7NXCI.mjs +2 -0
  44. package/out/__chunks__/{chunk-EOIEYWZV.mjs → chunk-IQ6JB5QS.mjs} +2 -2
  45. package/out/__chunks__/chunk-IR4Y2GE5.mjs +2 -0
  46. package/out/__chunks__/{chunk-WDIKEQ4G.mjs → chunk-JIBYUZL4.mjs} +2 -2
  47. package/out/__chunks__/{chunk-LSRKINNP.mjs → chunk-JSKOWAZU.mjs} +2 -2
  48. package/out/__chunks__/{chunk-OFSRI5RR.mjs → chunk-JSTWLAYX.mjs} +2 -2
  49. package/out/__chunks__/{chunk-ORJELHOZ.mjs → chunk-JVI373HI.mjs} +2 -2
  50. package/out/__chunks__/{chunk-DJX43EJZ.mjs → chunk-K7FDXJZD.mjs} +2 -2
  51. package/out/__chunks__/{chunk-S3KFVBK5.mjs → chunk-KD2K7HNK.mjs} +2 -2
  52. package/out/__chunks__/chunk-KRJLYFVI.mjs +2 -0
  53. package/out/__chunks__/{chunk-2DOX4XMK.mjs → chunk-LDTECGMM.mjs} +2 -2
  54. package/out/__chunks__/{chunk-JNYQYPLX.mjs → chunk-LWCNB4VP.mjs} +2 -2
  55. package/out/__chunks__/{chunk-4PMRBZVR.mjs → chunk-LYNRBQNO.mjs} +2 -2
  56. package/out/__chunks__/{chunk-YV26DNK5.mjs → chunk-LZPMMMJZ.mjs} +2 -2
  57. package/out/__chunks__/{chunk-MVTZTMVB.mjs → chunk-N4XWVRRE.mjs} +2 -2
  58. package/out/__chunks__/{chunk-WWL53TSG.mjs → chunk-NBQ7F24V.mjs} +2 -2
  59. package/out/__chunks__/{chunk-WWL53TSG.mjs.map → chunk-NBQ7F24V.mjs.map} +3 -3
  60. package/out/__chunks__/{chunk-FHLON6CU.mjs → chunk-NIP6EFXI.mjs} +2 -2
  61. package/out/__chunks__/chunk-NWQY6WSD.mjs +2 -0
  62. package/out/__chunks__/{chunk-PUFX36NA.mjs → chunk-OF4WULEW.mjs} +2 -2
  63. package/out/__chunks__/{chunk-OXQS44QJ.mjs → chunk-OTJAWUCX.mjs} +2 -2
  64. package/out/__chunks__/chunk-OXMMRCSH.mjs +2 -0
  65. package/out/__chunks__/{chunk-RVQLK36O.mjs → chunk-P72TQUGN.mjs} +2 -2
  66. package/out/__chunks__/chunk-PBFDXHTQ.mjs +2 -0
  67. package/out/__chunks__/chunk-PKDR5ERF.mjs +2 -0
  68. package/out/__chunks__/chunk-PKDR5ERF.mjs.map +7 -0
  69. package/out/__chunks__/{chunk-EGBOHDEU.mjs → chunk-PNVMS2VO.mjs} +2 -2
  70. package/out/__chunks__/{chunk-SI4DRNUN.mjs → chunk-QEE4T6UM.mjs} +2 -2
  71. package/out/__chunks__/{chunk-COBXCFVC.mjs → chunk-RB6NB2UN.mjs} +2 -2
  72. package/out/__chunks__/{chunk-B3VUBSL4.mjs → chunk-S22V4GGF.mjs} +2 -2
  73. package/out/__chunks__/chunk-SJN2CPGB.mjs +2 -0
  74. package/out/__chunks__/{chunk-EPTFZ77Y.mjs → chunk-SK2W4LXI.mjs} +2 -2
  75. package/out/__chunks__/{chunk-53YTBT65.mjs → chunk-UPHBWFSY.mjs} +2 -2
  76. package/out/__chunks__/{chunk-VM7SOWPA.mjs → chunk-UWGZQ6WZ.mjs} +2 -2
  77. package/out/__chunks__/{chunk-AXUYY4T7.mjs → chunk-VJGOUAZ2.mjs} +2 -2
  78. package/out/__chunks__/chunk-WKPW72IW.mjs +2 -0
  79. package/out/__chunks__/{chunk-4MBPMZP7.mjs → chunk-WOZIHP5Q.mjs} +2 -2
  80. package/out/__chunks__/chunk-X5QIDX7Z.mjs +2 -0
  81. package/out/__chunks__/{chunk-FZCVPUJU.mjs → chunk-X6SYH5RO.mjs} +2 -2
  82. package/out/__chunks__/{chunk-I5YANLWR.mjs → chunk-X74ZW4SP.mjs} +2 -2
  83. package/out/__chunks__/{chunk-TYWA6773.mjs → chunk-XADBXKX5.mjs} +2 -2
  84. package/out/__chunks__/{chunk-XU34NXIS.mjs → chunk-YFUI3MRL.mjs} +2 -2
  85. package/out/__chunks__/{chunk-4KTAXWHS.mjs → chunk-YNHWN4KZ.mjs} +2 -2
  86. package/out/__chunks__/{chunk-4XZ2LJKD.mjs → chunk-ZBJRLPCR.mjs} +2 -2
  87. package/out/__chunks__/{chunk-FNVS326O.mjs → chunk-ZNSKART2.mjs} +2 -2
  88. package/out/__chunks__/{chunk-NBY6GGN5.mjs → chunk-ZXHMD677.mjs} +2 -2
  89. package/out/__chunks__/{chunk-SIXE5BNQ.mjs → chunk-ZXNJFXKB.mjs} +2 -2
  90. package/out/__chunks__/chunk-ZZNPJF24.mjs +2 -0
  91. package/out/__chunks__/{chunk-KY32AS5A.mjs.map → chunk-ZZNPJF24.mjs.map} +1 -1
  92. package/out/apiCalls/account/getAccountFromApi.mjs +1 -1
  93. package/out/apiCalls/account/getScamAddressData.mjs +1 -1
  94. package/out/apiCalls/account/index.mjs +1 -1
  95. package/out/apiCalls/configuration/getCleanApiAddress.mjs +1 -1
  96. package/out/apiCalls/configuration/getGasStationMetadata.mjs +1 -1
  97. package/out/apiCalls/index.mjs +1 -1
  98. package/out/apiCalls/tokens/getPersistedToken.mjs +1 -1
  99. package/out/apiCalls/tokens/getPersistedTokenDetails.mjs +1 -1
  100. package/out/apiCalls/tokens/getTokenDetails.mjs +1 -1
  101. package/out/apiCalls/tokens/index.mjs +1 -1
  102. package/out/apiCalls/transactions/getServerTransactionsByHashes.mjs +1 -1
  103. package/out/apiCalls/transactions/getTransactionByHash.mjs +1 -1
  104. package/out/apiCalls/transactions/getTransactionsByHashes.mjs +1 -1
  105. package/out/constants/browser.constants.mjs +1 -1
  106. package/out/constants/index.mjs +1 -1
  107. package/out/constants/network.constants.cjs +3 -3
  108. package/out/constants/network.constants.cjs.map +1 -1
  109. package/out/constants/network.constants.mjs +1 -1
  110. package/out/constants/storage.constants.mjs +1 -1
  111. package/out/constants/window.constants.cjs +1 -1
  112. package/out/constants/window.constants.cjs.map +1 -1
  113. package/out/constants/window.constants.mjs +1 -1
  114. package/out/controllers/TransactionsHistoryController/TransactionsHistoryController.mjs +1 -1
  115. package/out/controllers/TransactionsHistoryController/index.mjs +1 -1
  116. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs +5 -2
  117. package/out/controllers/TransactionsTableController/TransactionsTableController.cjs.map +2 -2
  118. package/out/controllers/TransactionsTableController/TransactionsTableController.mjs +1 -1
  119. package/out/controllers/TransactionsTableController/index.mjs +1 -1
  120. package/out/index.mjs +1 -1
  121. package/out/lib/sdkDappUi.mjs +1 -1
  122. package/out/managers/LogoutManager/LogoutManager.mjs +1 -1
  123. package/out/managers/NotificationsFeedManager/NotificationsFeedManager.mjs +1 -1
  124. package/out/managers/NotificationsFeedManager/index.mjs +1 -1
  125. package/out/managers/ToastManager/ToastManager.mjs +1 -1
  126. package/out/managers/ToastManager/helpers/LifetimeManager.mjs +1 -1
  127. package/out/managers/ToastManager/helpers/createToastsFromTransactions.mjs +1 -1
  128. package/out/managers/ToastManager/index.mjs +1 -1
  129. package/out/managers/TransactionManager/TransactionManager.mjs +1 -1
  130. package/out/managers/TransactionManager/helpers/getAreTransactionsCorssShards.mjs +1 -1
  131. package/out/managers/TransactionManager/helpers/getToastDuration.mjs +1 -1
  132. package/out/managers/TransactionManager/index.mjs +1 -1
  133. package/out/managers/UnlockPanelManager/UnlockPanelManager.mjs +1 -1
  134. package/out/managers/UnlockPanelManager/index.mjs +1 -1
  135. package/out/managers/index.mjs +1 -1
  136. package/out/managers/internal/LedgerConnectStateManager/LedgerConnectStateManager.mjs +1 -1
  137. package/out/managers/internal/LedgerConnectStateManager/index.mjs +1 -1
  138. package/out/managers/internal/LedgerIdleStateManager/LedgerIdleStateManager.mjs +1 -1
  139. package/out/managers/internal/PendingTransactionsStateManager/PendingTransactionsStateManager.mjs +1 -1
  140. package/out/managers/internal/PendingTransactionsStateManager/index.mjs +1 -1
  141. package/out/managers/internal/SidePanelBaseManager/SidePanelBaseManager.mjs +1 -1
  142. package/out/managers/internal/SidePanelBaseManager/index.mjs +1 -1
  143. package/out/managers/internal/SignTransactionsStateManager/SignTransactionsStateManager.mjs +1 -1
  144. package/out/managers/internal/SignTransactionsStateManager/index.mjs +1 -1
  145. package/out/managers/internal/UIBaseManager/UIBaseManager.mjs +1 -1
  146. package/out/managers/internal/WalletConnectStateManager/WalletConnectStateManager.mjs +1 -1
  147. package/out/managers/internal/WalletConnectStateManager/index.mjs +1 -1
  148. package/out/managers/internal/index.mjs +1 -1
  149. package/out/methods/account/getAccount.mjs +1 -1
  150. package/out/methods/account/getAccountInfo.mjs +1 -1
  151. package/out/methods/account/getAddress.mjs +1 -1
  152. package/out/methods/account/getIsLoggedIn.mjs +1 -1
  153. package/out/methods/account/getLatestNonce.mjs +1 -1
  154. package/out/methods/initApp/gastStationMetadata/setGasStationMetadata.mjs +1 -1
  155. package/out/methods/initApp/initApp.mjs +1 -1
  156. package/out/methods/initApp/websocket/initializeWebsocketConnection.mjs +1 -1
  157. package/out/methods/initApp/websocket/registerWebsocket.mjs +1 -1
  158. package/out/methods/loginInfo/getLoginInfo.mjs +1 -1
  159. package/out/methods/network/getEgldLabel.mjs +1 -1
  160. package/out/methods/network/getExplorerAddress.mjs +1 -1
  161. package/out/methods/network/getNetworkConfig.mjs +1 -1
  162. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkBatch.mjs +1 -1
  163. package/out/methods/trackTransactions/helpers/checkTransactionStatus/checkTransactionStatus.mjs +1 -1
  164. package/out/methods/trackTransactions/helpers/checkTransactionStatus/index.mjs +1 -1
  165. package/out/methods/trackTransactions/helpers/checkTransactionStatus/manageFailedTransactions.mjs +1 -1
  166. package/out/methods/trackTransactions/helpers/getPollingInterval.mjs +1 -1
  167. package/out/methods/trackTransactions/trackTransactions.mjs +1 -1
  168. package/out/methods/transactions/getFailedTransactions.mjs +1 -1
  169. package/out/methods/transactions/getFailedTransactionsSessions.mjs +1 -1
  170. package/out/methods/transactions/getPendingTransactions.mjs +1 -1
  171. package/out/methods/transactions/getPendingTransactionsSessions.mjs +1 -1
  172. package/out/methods/transactions/getSuccessfulTransactions.mjs +1 -1
  173. package/out/methods/transactions/getSuccessfulTransactionsSessions.mjs +1 -1
  174. package/out/methods/transactions/getTransactionSessions.mjs +1 -1
  175. package/out/providers/DappProvider/DappProvider.mjs +1 -1
  176. package/out/providers/DappProvider/helpers/login/helpers/accountLogin.mjs +1 -1
  177. package/out/providers/DappProvider/helpers/login/helpers/extractAddressFromToken.mjs +1 -1
  178. package/out/providers/DappProvider/helpers/login/helpers/getAccountFromToken.mjs +1 -1
  179. package/out/providers/DappProvider/helpers/login/helpers/getModifiedLoginToken.mjs +1 -1
  180. package/out/providers/DappProvider/helpers/login/login.mjs +1 -1
  181. package/out/providers/DappProvider/helpers/logout/logout.mjs +1 -1
  182. package/out/providers/DappProvider/helpers/signErrors/handleSignError.mjs +1 -1
  183. package/out/providers/DappProvider/helpers/signMessage/signMessageWithProvider.mjs +1 -1
  184. package/out/providers/DappProvider/helpers/signTransactions/signTransactionsWithProvider.mjs +1 -1
  185. package/out/providers/DappProvider/index.mjs +1 -1
  186. package/out/providers/ProviderFactory.cjs +3 -2
  187. package/out/providers/ProviderFactory.cjs.map +2 -2
  188. package/out/providers/ProviderFactory.mjs +1 -1
  189. package/out/providers/helpers/accountProvider.mjs +1 -1
  190. package/out/providers/helpers/cancelCrossWindowAction.mjs +1 -1
  191. package/out/providers/helpers/restoreProvider.mjs +1 -1
  192. package/out/providers/index.mjs +1 -1
  193. package/out/providers/strategies/BaseProviderStrategy/BaseProviderStrategy.mjs +1 -1
  194. package/out/providers/strategies/CrossWindowProviderStrategy/CrossWindowProviderStrategy.mjs +1 -1
  195. package/out/providers/strategies/CrossWindowProviderStrategy/index.mjs +1 -1
  196. package/out/providers/strategies/ExtensionProviderStrategy/ExtensionProviderStrategy.mjs +1 -1
  197. package/out/providers/strategies/ExtensionProviderStrategy/index.mjs +1 -1
  198. package/out/providers/strategies/IframeProviderStrategy/IframeProviderStrategy.mjs +1 -1
  199. package/out/providers/strategies/IframeProviderStrategy/index.mjs +1 -1
  200. package/out/providers/strategies/LedgerProviderStrategy/LedgerProviderStrategy.mjs +1 -1
  201. package/out/providers/strategies/LedgerProviderStrategy/helpers/authenticateLedgerAccount.mjs +1 -1
  202. package/out/providers/strategies/LedgerProviderStrategy/helpers/getAuthTokenText.mjs +1 -1
  203. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerConfiguration.mjs +1 -1
  204. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerProvider.mjs +1 -1
  205. package/out/providers/strategies/LedgerProviderStrategy/helpers/getLedgerVersionOptions.mjs +1 -1
  206. package/out/providers/strategies/LedgerProviderStrategy/helpers/index.mjs +1 -1
  207. package/out/providers/strategies/LedgerProviderStrategy/helpers/initializeLedgerProvider.mjs +1 -1
  208. package/out/providers/strategies/LedgerProviderStrategy/helpers/signLedgerMessage.mjs +1 -1
  209. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/index.mjs +1 -1
  210. package/out/providers/strategies/LedgerProviderStrategy/helpers/updateAccountsList/updateAccountsList.mjs +1 -1
  211. package/out/providers/strategies/LedgerProviderStrategy/index.mjs +1 -1
  212. package/out/providers/strategies/WalletConnectProviderStrategy/WalletConnectProviderStrategy.mjs +1 -1
  213. package/out/providers/strategies/WalletConnectProviderStrategy/index.mjs +1 -1
  214. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/WebviewClient.mjs +1 -1
  215. package/out/providers/strategies/WebviewProviderStrategy/WebviewClient/index.mjs +1 -1
  216. package/out/providers/strategies/WebviewProviderStrategy/WebviewProviderStrategy.mjs +1 -1
  217. package/out/providers/strategies/WebviewProviderStrategy/index.mjs +1 -1
  218. package/out/providers/strategies/helpers/getPendingTransactionsHandlers.mjs +1 -1
  219. package/out/providers/strategies/helpers/index.mjs +1 -1
  220. package/out/providers/strategies/helpers/signMessage/signMessage.mjs +1 -1
  221. package/out/providers/strategies/helpers/signTransactions/helpers/calculateFeeLimit.mjs +1 -1
  222. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/getCommonData.mjs +1 -1
  223. package/out/providers/strategies/helpers/signTransactions/helpers/getCommonData/helpers/getExtractTransactionsInfo.mjs +1 -1
  224. package/out/providers/strategies/helpers/signTransactions/helpers/getFeeData.mjs +1 -1
  225. package/out/providers/strategies/helpers/signTransactions/helpers/guardTransactions/guardTransactions.mjs +1 -1
  226. package/out/providers/strategies/helpers/signTransactions/signTransactions.mjs +1 -1
  227. package/out/providers/strategies/index.mjs +1 -1
  228. package/out/react/account/useGetAccount.mjs +1 -1
  229. package/out/react/account/useGetAccountInfo.mjs +1 -1
  230. package/out/react/account/useGetIsLoggedIn.mjs +1 -1
  231. package/out/react/account/useGetLatestNonce.mjs +1 -1
  232. package/out/react/index.mjs +1 -1
  233. package/out/react/loginInfo/useGetLoginInfo.mjs +1 -1
  234. package/out/react/network/useGetNetworkConfig.mjs +1 -1
  235. package/out/react/store/getReactStore.mjs +1 -1
  236. package/out/react/store/useSelector.mjs +1 -1
  237. package/out/react/transactions/useGetFailedTransactions.mjs +1 -1
  238. package/out/react/transactions/useGetFailedTransactionsSessions.mjs +1 -1
  239. package/out/react/transactions/useGetPendingTransactions.mjs +1 -1
  240. package/out/react/transactions/useGetPendingTransactionsSessions.mjs +1 -1
  241. package/out/react/transactions/useGetSuccessfulTransactions.mjs +1 -1
  242. package/out/react/transactions/useGetSuccessfulTransactionsSessions.mjs +1 -1
  243. package/out/react/transactions/useGetTransactionSessions.mjs +1 -1
  244. package/out/services/index.mjs +1 -1
  245. package/out/services/nativeAuth/index.mjs +1 -1
  246. package/out/services/nativeAuth/methods/buildNativeAuthConfig.mjs +1 -1
  247. package/out/services/nativeAuth/methods/getDefaultNativeAuthConfig.mjs +1 -1
  248. package/out/services/nativeAuth/methods/index.mjs +1 -1
  249. package/out/services/nativeAuth/nativeAuth.mjs +1 -1
  250. package/out/store/actions/account/accountActions.mjs +1 -1
  251. package/out/store/actions/account/index.mjs +1 -1
  252. package/out/store/actions/cache/cacheActions.mjs +1 -1
  253. package/out/store/actions/cache/index.mjs +1 -1
  254. package/out/store/actions/config/configActions.mjs +1 -1
  255. package/out/store/actions/config/index.mjs +1 -1
  256. package/out/store/actions/index.mjs +1 -1
  257. package/out/store/actions/loginInfo/loginInfoActions.mjs +1 -1
  258. package/out/store/actions/network/index.mjs +1 -1
  259. package/out/store/actions/network/initializeNetwork.mjs +1 -1
  260. package/out/store/actions/network/networkActions.mjs +1 -1
  261. package/out/store/actions/sharedActions/index.mjs +1 -1
  262. package/out/store/actions/sharedActions/sharedActions.mjs +1 -1
  263. package/out/store/actions/toasts/index.mjs +1 -1
  264. package/out/store/actions/toasts/toastsActions.mjs +1 -1
  265. package/out/store/actions/transactions/transactionsActions.mjs +1 -1
  266. package/out/store/actions/ui/index.mjs +1 -1
  267. package/out/store/actions/ui/uiActions.mjs +1 -1
  268. package/out/store/middleware/applyMiddlewares.mjs +1 -1
  269. package/out/store/middleware/index.mjs +1 -1
  270. package/out/store/middleware/logoutMiddleware.mjs +1 -1
  271. package/out/store/storage/index.mjs +1 -1
  272. package/out/store/storage/storageCallback.mjs +1 -1
  273. package/out/store/store.mjs +1 -1
  274. package/out/utils/ComponentFactory.mjs +1 -1
  275. package/out/utils/account/fetchAccount.mjs +1 -1
  276. package/out/utils/account/index.mjs +1 -1
  277. package/out/utils/account/refreshAccount.mjs +1 -1
  278. package/out/utils/account/refreshNativeAuthTokenLogin.mjs +1 -1
  279. package/out/utils/index.mjs +1 -1
  280. package/out/utils/transactions/getActiveTransactionsStatus.mjs +1 -1
  281. package/out/utils/transactions/getInterpretedTransaction/getInterpretedTransaction.mjs +1 -1
  282. package/out/utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName.mjs +1 -1
  283. package/out/utils/transactions/getInterpretedTransaction/helpers/getReceiptMessage.mjs +1 -1
  284. package/out/utils/transactions/getInterpretedTransaction/helpers/getShardText.mjs +1 -1
  285. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionIconInfo.mjs +1 -1
  286. package/out/utils/transactions/getInterpretedTransaction/helpers/getTransactionMessages.mjs +1 -1
  287. package/out/utils/transactions/getInterpretedTransaction/helpers/index.mjs +1 -1
  288. package/out/utils/transactions/getInterpretedTransaction/index.mjs +1 -1
  289. package/out/utils/transactions/getTransactionsHistory/getTransactionsHistory.mjs +1 -1
  290. package/out/utils/transactions/getTransactionsHistory/helpers/getCachedTransactionListItem.mjs +1 -1
  291. package/out/utils/transactions/getTransactionsHistory/helpers/index.mjs +1 -1
  292. package/out/utils/transactions/getTransactionsHistory/helpers/mapServerTransactionsToListItems.mjs +1 -1
  293. package/out/utils/transactions/getTransactionsHistory/index.mjs +1 -1
  294. package/out/utils/transactions/index.mjs +1 -1
  295. package/out/utils/visual/index.mjs +1 -1
  296. package/out/utils/visual/switchTheme.mjs +1 -1
  297. package/out/utils/window/getIsInIframe.mjs +1 -1
  298. package/out/utils/window/getWindowParentOrigin.mjs +1 -1
  299. package/out/utils/window/index.mjs +1 -1
  300. package/package.json +1 -1
  301. package/out/__chunks__/chunk-24C5LP2A.mjs +0 -2
  302. package/out/__chunks__/chunk-2GGIYSMR.mjs +0 -2
  303. package/out/__chunks__/chunk-4FVVKVQH.mjs +0 -2
  304. package/out/__chunks__/chunk-B5EFA3UI.mjs +0 -2
  305. package/out/__chunks__/chunk-EINZFJLE.mjs +0 -2
  306. package/out/__chunks__/chunk-F7LAL7TT.mjs +0 -2
  307. package/out/__chunks__/chunk-J3N3E7IG.mjs +0 -2
  308. package/out/__chunks__/chunk-JSDC7MZY.mjs +0 -2
  309. package/out/__chunks__/chunk-JSDC7MZY.mjs.map +0 -7
  310. package/out/__chunks__/chunk-KBHVNJKO.mjs +0 -2
  311. package/out/__chunks__/chunk-KY32AS5A.mjs +0 -2
  312. package/out/__chunks__/chunk-NZYB675D.mjs +0 -2
  313. package/out/__chunks__/chunk-OZIFKO5Z.mjs +0 -2
  314. package/out/__chunks__/chunk-P3UF6ZIP.mjs +0 -2
  315. package/out/__chunks__/chunk-RICEXBPH.mjs +0 -2
  316. package/out/__chunks__/chunk-RNST72DL.mjs +0 -2
  317. package/out/__chunks__/chunk-SJM4QVVT.mjs +0 -2
  318. package/out/__chunks__/chunk-UIXNOVHP.mjs +0 -2
  319. package/out/__chunks__/chunk-ULUZWP2P.mjs +0 -2
  320. package/out/__chunks__/chunk-ULUZWP2P.mjs.map +0 -7
  321. package/out/__chunks__/chunk-UPQEWATF.mjs +0 -2
  322. package/out/__chunks__/chunk-WMLOH6TA.mjs +0 -2
  323. /package/out/__chunks__/{chunk-K4VQ6UWP.mjs.map → chunk-2FU37PY5.mjs.map} +0 -0
  324. /package/out/__chunks__/{chunk-7RM2765V.mjs.map → chunk-2JGSMQ3T.mjs.map} +0 -0
  325. /package/out/__chunks__/{chunk-GJJZZWVD.mjs.map → chunk-3BVKYYHT.mjs.map} +0 -0
  326. /package/out/__chunks__/{chunk-SN3EZ6GY.mjs.map → chunk-3D7VMEVL.mjs.map} +0 -0
  327. /package/out/__chunks__/{chunk-LGAWIVRO.mjs.map → chunk-3QWTD55I.mjs.map} +0 -0
  328. /package/out/__chunks__/{chunk-DR66NBJB.mjs.map → chunk-3WHS4QZZ.mjs.map} +0 -0
  329. /package/out/__chunks__/{chunk-HDRB2QL6.mjs.map → chunk-4VUMAG4J.mjs.map} +0 -0
  330. /package/out/__chunks__/{chunk-DWKNS2L6.mjs.map → chunk-5YDUSQUN.mjs.map} +0 -0
  331. /package/out/__chunks__/{chunk-24C5LP2A.mjs.map → chunk-62XXIXTE.mjs.map} +0 -0
  332. /package/out/__chunks__/{chunk-DWVQFEQG.mjs.map → chunk-6IDZ52FJ.mjs.map} +0 -0
  333. /package/out/__chunks__/{chunk-F4B56PJO.mjs.map → chunk-6ST4KZLT.mjs.map} +0 -0
  334. /package/out/__chunks__/{chunk-SLOQOCEU.mjs.map → chunk-72VXBZOB.mjs.map} +0 -0
  335. /package/out/__chunks__/{chunk-EINZFJLE.mjs.map → chunk-7YKKU6UM.mjs.map} +0 -0
  336. /package/out/__chunks__/{chunk-OW6TI77R.mjs.map → chunk-ARY5QEDY.mjs.map} +0 -0
  337. /package/out/__chunks__/{chunk-WMLOH6TA.mjs.map → chunk-B6KBOAFE.mjs.map} +0 -0
  338. /package/out/__chunks__/{chunk-KBHVNJKO.mjs.map → chunk-BJEPGGTR.mjs.map} +0 -0
  339. /package/out/__chunks__/{chunk-AQHQWVF7.mjs.map → chunk-BUAVB6CL.mjs.map} +0 -0
  340. /package/out/__chunks__/{chunk-WO6VWFRK.mjs.map → chunk-BZQSEPTC.mjs.map} +0 -0
  341. /package/out/__chunks__/{chunk-PYDEFY6F.mjs.map → chunk-C3LAZHGD.mjs.map} +0 -0
  342. /package/out/__chunks__/{chunk-OU4PEXX6.mjs.map → chunk-CANC2FCH.mjs.map} +0 -0
  343. /package/out/__chunks__/{chunk-DDOXD4IN.mjs.map → chunk-CECXI5ZJ.mjs.map} +0 -0
  344. /package/out/__chunks__/{chunk-Y4QU4QCG.mjs.map → chunk-CFJZFKIS.mjs.map} +0 -0
  345. /package/out/__chunks__/{chunk-J3N3E7IG.mjs.map → chunk-CUTW32BD.mjs.map} +0 -0
  346. /package/out/__chunks__/{chunk-QP6RME6L.mjs.map → chunk-E5RLJTLP.mjs.map} +0 -0
  347. /package/out/__chunks__/{chunk-TWPRIAIS.mjs.map → chunk-EFD2PMLA.mjs.map} +0 -0
  348. /package/out/__chunks__/{chunk-BQX7MJR6.mjs.map → chunk-ELQR4QMU.mjs.map} +0 -0
  349. /package/out/__chunks__/{chunk-PC6HDNCW.mjs.map → chunk-EYUQF6VD.mjs.map} +0 -0
  350. /package/out/__chunks__/{chunk-UUCM2B5J.mjs.map → chunk-F6QODHDC.mjs.map} +0 -0
  351. /package/out/__chunks__/{chunk-C7FCKWVR.mjs.map → chunk-FRIE2JPN.mjs.map} +0 -0
  352. /package/out/__chunks__/{chunk-NZYB675D.mjs.map → chunk-G7GU37XI.mjs.map} +0 -0
  353. /package/out/__chunks__/{chunk-476M52X7.mjs.map → chunk-GR362QNP.mjs.map} +0 -0
  354. /package/out/__chunks__/{chunk-7OUDTQCF.mjs.map → chunk-GV2STE7J.mjs.map} +0 -0
  355. /package/out/__chunks__/{chunk-XZ52KQTC.mjs.map → chunk-GWUYYSBN.mjs.map} +0 -0
  356. /package/out/__chunks__/{chunk-WKAAF3SF.mjs.map → chunk-GY6MHIOO.mjs.map} +0 -0
  357. /package/out/__chunks__/{chunk-PMMHNOCU.mjs.map → chunk-GZL6GF6Z.mjs.map} +0 -0
  358. /package/out/__chunks__/{chunk-BDAAMNBN.mjs.map → chunk-HJGZQFKX.mjs.map} +0 -0
  359. /package/out/__chunks__/{chunk-OGZTCDLF.mjs.map → chunk-HKKKOC5V.mjs.map} +0 -0
  360. /package/out/__chunks__/{chunk-XZIUMXWJ.mjs.map → chunk-I4QHHCK6.mjs.map} +0 -0
  361. /package/out/__chunks__/{chunk-OZIFKO5Z.mjs.map → chunk-I6WKWOAM.mjs.map} +0 -0
  362. /package/out/__chunks__/{chunk-UIXNOVHP.mjs.map → chunk-I7L5LOHR.mjs.map} +0 -0
  363. /package/out/__chunks__/{chunk-2GGIYSMR.mjs.map → chunk-IDJ7NXCI.mjs.map} +0 -0
  364. /package/out/__chunks__/{chunk-EOIEYWZV.mjs.map → chunk-IQ6JB5QS.mjs.map} +0 -0
  365. /package/out/__chunks__/{chunk-B5EFA3UI.mjs.map → chunk-IR4Y2GE5.mjs.map} +0 -0
  366. /package/out/__chunks__/{chunk-WDIKEQ4G.mjs.map → chunk-JIBYUZL4.mjs.map} +0 -0
  367. /package/out/__chunks__/{chunk-LSRKINNP.mjs.map → chunk-JSKOWAZU.mjs.map} +0 -0
  368. /package/out/__chunks__/{chunk-OFSRI5RR.mjs.map → chunk-JSTWLAYX.mjs.map} +0 -0
  369. /package/out/__chunks__/{chunk-ORJELHOZ.mjs.map → chunk-JVI373HI.mjs.map} +0 -0
  370. /package/out/__chunks__/{chunk-DJX43EJZ.mjs.map → chunk-K7FDXJZD.mjs.map} +0 -0
  371. /package/out/__chunks__/{chunk-S3KFVBK5.mjs.map → chunk-KD2K7HNK.mjs.map} +0 -0
  372. /package/out/__chunks__/{chunk-UPQEWATF.mjs.map → chunk-KRJLYFVI.mjs.map} +0 -0
  373. /package/out/__chunks__/{chunk-2DOX4XMK.mjs.map → chunk-LDTECGMM.mjs.map} +0 -0
  374. /package/out/__chunks__/{chunk-JNYQYPLX.mjs.map → chunk-LWCNB4VP.mjs.map} +0 -0
  375. /package/out/__chunks__/{chunk-4PMRBZVR.mjs.map → chunk-LYNRBQNO.mjs.map} +0 -0
  376. /package/out/__chunks__/{chunk-YV26DNK5.mjs.map → chunk-LZPMMMJZ.mjs.map} +0 -0
  377. /package/out/__chunks__/{chunk-MVTZTMVB.mjs.map → chunk-N4XWVRRE.mjs.map} +0 -0
  378. /package/out/__chunks__/{chunk-FHLON6CU.mjs.map → chunk-NIP6EFXI.mjs.map} +0 -0
  379. /package/out/__chunks__/{chunk-RICEXBPH.mjs.map → chunk-NWQY6WSD.mjs.map} +0 -0
  380. /package/out/__chunks__/{chunk-PUFX36NA.mjs.map → chunk-OF4WULEW.mjs.map} +0 -0
  381. /package/out/__chunks__/{chunk-OXQS44QJ.mjs.map → chunk-OTJAWUCX.mjs.map} +0 -0
  382. /package/out/__chunks__/{chunk-SJM4QVVT.mjs.map → chunk-OXMMRCSH.mjs.map} +0 -0
  383. /package/out/__chunks__/{chunk-RVQLK36O.mjs.map → chunk-P72TQUGN.mjs.map} +0 -0
  384. /package/out/__chunks__/{chunk-P3UF6ZIP.mjs.map → chunk-PBFDXHTQ.mjs.map} +0 -0
  385. /package/out/__chunks__/{chunk-EGBOHDEU.mjs.map → chunk-PNVMS2VO.mjs.map} +0 -0
  386. /package/out/__chunks__/{chunk-SI4DRNUN.mjs.map → chunk-QEE4T6UM.mjs.map} +0 -0
  387. /package/out/__chunks__/{chunk-COBXCFVC.mjs.map → chunk-RB6NB2UN.mjs.map} +0 -0
  388. /package/out/__chunks__/{chunk-B3VUBSL4.mjs.map → chunk-S22V4GGF.mjs.map} +0 -0
  389. /package/out/__chunks__/{chunk-RNST72DL.mjs.map → chunk-SJN2CPGB.mjs.map} +0 -0
  390. /package/out/__chunks__/{chunk-EPTFZ77Y.mjs.map → chunk-SK2W4LXI.mjs.map} +0 -0
  391. /package/out/__chunks__/{chunk-53YTBT65.mjs.map → chunk-UPHBWFSY.mjs.map} +0 -0
  392. /package/out/__chunks__/{chunk-VM7SOWPA.mjs.map → chunk-UWGZQ6WZ.mjs.map} +0 -0
  393. /package/out/__chunks__/{chunk-AXUYY4T7.mjs.map → chunk-VJGOUAZ2.mjs.map} +0 -0
  394. /package/out/__chunks__/{chunk-F7LAL7TT.mjs.map → chunk-WKPW72IW.mjs.map} +0 -0
  395. /package/out/__chunks__/{chunk-4MBPMZP7.mjs.map → chunk-WOZIHP5Q.mjs.map} +0 -0
  396. /package/out/__chunks__/{chunk-4FVVKVQH.mjs.map → chunk-X5QIDX7Z.mjs.map} +0 -0
  397. /package/out/__chunks__/{chunk-FZCVPUJU.mjs.map → chunk-X6SYH5RO.mjs.map} +0 -0
  398. /package/out/__chunks__/{chunk-I5YANLWR.mjs.map → chunk-X74ZW4SP.mjs.map} +0 -0
  399. /package/out/__chunks__/{chunk-TYWA6773.mjs.map → chunk-XADBXKX5.mjs.map} +0 -0
  400. /package/out/__chunks__/{chunk-XU34NXIS.mjs.map → chunk-YFUI3MRL.mjs.map} +0 -0
  401. /package/out/__chunks__/{chunk-4KTAXWHS.mjs.map → chunk-YNHWN4KZ.mjs.map} +0 -0
  402. /package/out/__chunks__/{chunk-4XZ2LJKD.mjs.map → chunk-ZBJRLPCR.mjs.map} +0 -0
  403. /package/out/__chunks__/{chunk-FNVS326O.mjs.map → chunk-ZNSKART2.mjs.map} +0 -0
  404. /package/out/__chunks__/{chunk-NBY6GGN5.mjs.map → chunk-ZXHMD677.mjs.map} +0 -0
  405. /package/out/__chunks__/{chunk-SIXE5BNQ.mjs.map → chunk-ZXNJFXKB.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-XZ52KQTC.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-K4VQ6UWP.mjs.map
1
+ import{a as e}from"./chunk-GWUYYSBN.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-2FU37PY5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as A}from"./chunk-WKAAF3SF.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as S}from"./chunk-OXQS44QJ.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as y}from"./chunk-7OUDTQCF.mjs";import{a as f}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-UPQEWATF.mjs";import{h as g}from"./chunk-2IUBMLF4.mjs";import{s as l}from"./chunk-SI4DRNUN.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-7RM2765V.mjs.map
1
+ import{a as A}from"./chunk-GY6MHIOO.mjs";import{a as I}from"./chunk-EAJBSX6Y.mjs";import{a as b}from"./chunk-Y3BNMQFP.mjs";import{h as S}from"./chunk-OTJAWUCX.mjs";import{b as T}from"./chunk-2VG3V3VD.mjs";import{a as y}from"./chunk-GV2STE7J.mjs";import{a as f}from"./chunk-L3MWDI6J.mjs";import{a as h}from"./chunk-KRJLYFVI.mjs";import{h as g}from"./chunk-2IUBMLF4.mjs";import{s as l}from"./chunk-QEE4T6UM.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-2JGSMQ3T.mjs.map
@@ -1,2 +1,2 @@
1
- import{j as p,q as e}from"./chunk-SI4DRNUN.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),a=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).toHex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,a as b};
2
- //# sourceMappingURL=chunk-GJJZZWVD.mjs.map
1
+ import{j as p,q as e}from"./chunk-QEE4T6UM.mjs";import{c as i}from"./chunk-NTEMINYA.mjs";var T=()=>e().setState(p),a=({address:o,providerType:d})=>{e().setState(({account:r,loginInfo:t})=>{r.address=o,r.publicKey=new i(o).toHex(),t&&(t.providerType=d)},!1,"loginAction")};export{T as a,a as b};
2
+ //# sourceMappingURL=chunk-3BVKYYHT.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-OXQS44QJ.mjs";import{q as M}from"./chunk-SI4DRNUN.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-KY32AS5A.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-SN3EZ6GY.mjs.map
1
+ import{b as o,c as i}from"./chunk-QJGFIK7H.mjs";import{w as g}from"./chunk-OTJAWUCX.mjs";import{q as M}from"./chunk-QEE4T6UM.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-ZZNPJF24.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-3D7VMEVL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-C4TBDJVT.mjs";import{a as n}from"./chunk-O7LCTC4K.mjs";import{k as i}from"./chunk-ULUZWP2P.mjs";async function T(t){let r={timeout:i},o=await e.getItem(t);if(o)return o;let a=await n.get(t,r);return await e.setItem(t,a.data),a.data}export{T as a};
2
- //# sourceMappingURL=chunk-LGAWIVRO.mjs.map
1
+ import{a as e}from"./chunk-C4TBDJVT.mjs";import{a as n}from"./chunk-O7LCTC4K.mjs";import{k as i}from"./chunk-PKDR5ERF.mjs";async function T(t){let r={timeout:i},o=await e.getItem(t);if(o)return o;let a=await n.get(t,r);return await e.setItem(t,a.data),a.data}export{T as a};
2
+ //# sourceMappingURL=chunk-3QWTD55I.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as p}from"./chunk-ZXNJFXKB.mjs";import{a as u}from"./chunk-XCVEFI4B.mjs";import{a as i}from"./chunk-W5MTQBQF.mjs";import{a as T}from"./chunk-UNBTFF6K.mjs";import{a as m}from"./chunk-U3UMCTU6.mjs";import{a as k}from"./chunk-BRJNX4JF.mjs";import{c as l}from"./chunk-PJWJZHIS.mjs";import{a as o}from"./chunk-7CELSV4S.mjs";var g=class{static async processTransactions({address:v,egldLabel:L,explorerAddress:a,transactions:h}){let f=h.map(e=>T({address:v,explorerAddress:a,transaction:e}));return await Promise.all(f.map(async e=>{let s=e.receiverAssets?.name.replace(/\p{Emoji}/gu,""),c=e.senderAssets?.name.replace(/\p{Emoji}/gu,""),{senderLockedAccount:D,receiverLockedAccount:x}=await p({receiver:e.receiver,sender:e.sender,tokenId:e.tokenIdentifier}),{egldValueData:t,tokenValueData:n,nftValueData:r}=u({transaction:e}),y=r?.token.type==="MetaESDT"?void 0:r?.badgeText,d=m.getData({input:t?.value??n?.value??r?.value??"",decimals:t?.decimals??n?.decimals??r?.decimals??l,digits:2}),S={badge:y??void 0,collection:n?.token.collection??r?.token.collection,egldLabel:t?L:"",link:k({explorerAddress:a,to:n?.tokenExplorerLink??r?.tokenExplorerLink??""}),linkText:n?.tokenLinkText??r?.tokenLinkText,name:n?.token.name??r?.token.name,showFormattedAmount:!!(t||n?.tokenFormattedAmount||r?.tokenFormattedAmount),svgUrl:n?.token.svgUrl??r?.token.svgUrl,ticker:n?.token.ticker??r?.token.ticker,titleText:n?.titleText??r?.titleText,valueDecimal:d.valueDecimal,valueInteger:d.valueInteger},w=i(e.receiverShard),A=i(e.senderShard);return{age:e.transactionDetails.age,direction:e.transactionDetails.direction,method:e.transactionDetails.method,iconInfo:e.transactionDetails.iconInfo,link:e.links.transactionLink??"",txHash:e.txHash,receiver:{address:e.receiver,name:s??"",description:`${s??e.receiver} (${e.receiver})`,isContract:o(e.receiver),isTokenLocked:!!x,link:e.links.receiverLink??"",shard:w,shardLink:e.links.receiverShardLink,showLink:e.transactionDetails.direction!=="In"},sender:{address:e.sender,name:c??"",description:`${c??e.sender} (${e.sender})`,isContract:o(e.sender),isTokenLocked:!!D,link:e.links.senderLink??"",shard:A,shardLink:e.links.senderShardLink,showLink:e.transactionDetails.direction!=="Out"},value:S}}))}};export{g as a};
2
+ //# sourceMappingURL=chunk-3TJTXI66.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/controllers/TransactionsTableController/TransactionsTableController.ts"],
4
+ "sourcesContent": ["import { DECIMALS } from 'lib/sdkDappUtils';\nimport {\n ServerTransactionType,\n TransactionDirectionEnum\n} from 'types/serverTransactions.types';\nimport { NftEnumType } from 'types/tokens.types';\nimport { getExplorerLink, getInterpretedTransaction } from 'utils/transactions/getInterpretedTransaction';\nimport { getTransactionValue } from 'utils/transactions/getInterpretedTransaction/getTransactionValue/getTransactionValue';\nimport { getLockedAccountName } from 'utils/transactions/getInterpretedTransaction/helpers/getLockedAccountName';\nimport { getShardText } from 'utils/transactions/getInterpretedTransaction/helpers/getShardText';\nimport { isContract } from 'utils/validation/isContract';\nimport {\n TransactionsRowType,\n TransactionValueType\n} from './transactionsTableController.types';\nimport { FormatAmountController } from '../FormatAmountController';\n\ninterface TransactionsTableProcessTransactionsParamsType {\n address: string;\n egldLabel: string;\n explorerAddress: string;\n transactions: ServerTransactionType[];\n}\n\nexport class TransactionsTableController {\n public static async processTransactions({\n address,\n egldLabel,\n explorerAddress,\n transactions\n }: TransactionsTableProcessTransactionsParamsType): Promise<\n TransactionsRowType[]\n > {\n const interpretedTransactions = transactions.map((transaction) =>\n getInterpretedTransaction({\n address,\n explorerAddress,\n transaction\n })\n );\n\n const transactionRows = await Promise.all(\n interpretedTransactions.map(async (transaction) => {\n const receiverName = transaction.receiverAssets?.name.replace(\n /\\p{Emoji}/gu,\n ''\n );\n\n const senderName = transaction.senderAssets?.name.replace(\n /\\p{Emoji}/gu,\n ''\n );\n\n const { senderLockedAccount, receiverLockedAccount } =\n await getLockedAccountName({\n receiver: transaction.receiver,\n sender: transaction.sender,\n tokenId: transaction.tokenIdentifier\n });\n\n const { egldValueData, tokenValueData, nftValueData } =\n getTransactionValue({\n transaction\n });\n\n const hideBadgeForMetaESDT =\n nftValueData?.token.type === NftEnumType.MetaESDT;\n\n const badge = hideBadgeForMetaESDT\n ? undefined\n : nftValueData?.badgeText;\n\n const formattedAmount = FormatAmountController.getData({\n input:\n egldValueData?.value ??\n tokenValueData?.value ??\n nftValueData?.value ??\n '',\n decimals:\n egldValueData?.decimals ??\n tokenValueData?.decimals ??\n nftValueData?.decimals ??\n DECIMALS,\n digits: 2\n });\n\n const transactionValue: TransactionValueType = {\n badge: badge ?? undefined,\n collection:\n tokenValueData?.token.collection ?? nftValueData?.token.collection,\n egldLabel: egldValueData ? egldLabel : '',\n link:\n getExplorerLink({\n explorerAddress, to: tokenValueData?.tokenExplorerLink ??\n nftValueData?.tokenExplorerLink ?? ''\n }),\n linkText:\n tokenValueData?.tokenLinkText ?? nftValueData?.tokenLinkText,\n name: tokenValueData?.token.name ?? nftValueData?.token.name,\n showFormattedAmount: Boolean(\n egldValueData ||\n tokenValueData?.tokenFormattedAmount ||\n nftValueData?.tokenFormattedAmount\n ),\n svgUrl: tokenValueData?.token.svgUrl ?? nftValueData?.token.svgUrl,\n ticker: tokenValueData?.token.ticker ?? nftValueData?.token.ticker,\n titleText: tokenValueData?.titleText ?? nftValueData?.titleText,\n valueDecimal: formattedAmount.valueDecimal,\n valueInteger: formattedAmount.valueInteger\n };\n\n const receiverShard = getShardText(transaction.receiverShard);\n const senderShard = getShardText(transaction.senderShard);\n\n const transactionRow: TransactionsRowType = {\n age: transaction.transactionDetails.age,\n direction: transaction.transactionDetails.direction,\n method: transaction.transactionDetails.method,\n iconInfo: transaction.transactionDetails.iconInfo,\n link: transaction.links.transactionLink ?? '',\n txHash: transaction.txHash,\n receiver: {\n address: transaction.receiver,\n name: receiverName ?? '',\n description: `${receiverName ?? transaction.receiver} (${transaction.receiver\n })`,\n isContract: isContract(transaction.receiver),\n isTokenLocked: Boolean(receiverLockedAccount),\n link: transaction.links.receiverLink ?? '',\n shard: receiverShard,\n shardLink: transaction.links.receiverShardLink,\n showLink:\n transaction.transactionDetails.direction !==\n TransactionDirectionEnum.IN\n },\n sender: {\n address: transaction.sender,\n name: senderName ?? '',\n description: `${senderName ?? transaction.sender} (${transaction.sender\n })`,\n isContract: isContract(transaction.sender),\n isTokenLocked: Boolean(senderLockedAccount),\n link: transaction.links.senderLink ?? '',\n shard: senderShard,\n shardLink: transaction.links.senderShardLink,\n showLink:\n transaction.transactionDetails.direction !==\n TransactionDirectionEnum.OUT\n },\n value: transactionValue\n };\n\n return transactionRow;\n })\n );\n\n return transactionRows;\n }\n}\n"],
5
+ "mappings": "wUAwBO,IAAMA,EAAN,KAAkC,CACvC,aAAoB,oBAAoB,CACtC,QAAAC,EACA,UAAAC,EACA,gBAAAC,EACA,aAAAC,CACF,EAEE,CACA,IAAMC,EAA0BD,EAAa,IAAKE,GAChDC,EAA0B,CACxB,QAAAN,EACA,gBAAAE,EACA,YAAAG,CACF,CAAC,CACH,EAqHA,OAnHwB,MAAM,QAAQ,IACpCD,EAAwB,IAAI,MAAOC,GAAgB,CACjD,IAAME,EAAeF,EAAY,gBAAgB,KAAK,QACpD,cACA,EACF,EAEMG,EAAaH,EAAY,cAAc,KAAK,QAChD,cACA,EACF,EAEM,CAAE,oBAAAI,EAAqB,sBAAAC,CAAsB,EACjD,MAAMC,EAAqB,CACzB,SAAUN,EAAY,SACtB,OAAQA,EAAY,OACpB,QAASA,EAAY,eACvB,CAAC,EAEG,CAAE,cAAAO,EAAe,eAAAC,EAAgB,aAAAC,CAAa,EAClDC,EAAoB,CAClB,YAAAV,CACF,CAAC,EAKGW,EAFJF,GAAc,MAAM,kBAGlB,OACAA,GAAc,UAEZG,EAAkBC,EAAuB,QAAQ,CACrD,MACEN,GAAe,OACfC,GAAgB,OAChBC,GAAc,OACd,GACF,SACEF,GAAe,UACfC,GAAgB,UAChBC,GAAc,UACdK,EACF,OAAQ,CACV,CAAC,EAEKC,EAAyC,CAC7C,MAAOJ,GAAS,OAChB,WACEH,GAAgB,MAAM,YAAcC,GAAc,MAAM,WAC1D,UAAWF,EAAgBX,EAAY,GACvC,KACEoB,EAAgB,CACd,gBAAAnB,EAAiB,GAAIW,GAAgB,mBACnCC,GAAc,mBAAqB,EACvC,CAAC,EACH,SACED,GAAgB,eAAiBC,GAAc,cACjD,KAAMD,GAAgB,MAAM,MAAQC,GAAc,MAAM,KACxD,oBAAqB,GACnBF,GACAC,GAAgB,sBAChBC,GAAc,sBAEhB,OAAQD,GAAgB,MAAM,QAAUC,GAAc,MAAM,OAC5D,OAAQD,GAAgB,MAAM,QAAUC,GAAc,MAAM,OAC5D,UAAWD,GAAgB,WAAaC,GAAc,UACtD,aAAcG,EAAgB,aAC9B,aAAcA,EAAgB,YAChC,EAEMK,EAAgBC,EAAalB,EAAY,aAAa,EACtDmB,EAAcD,EAAalB,EAAY,WAAW,EAwCxD,MAtC4C,CAC1C,IAAKA,EAAY,mBAAmB,IACpC,UAAWA,EAAY,mBAAmB,UAC1C,OAAQA,EAAY,mBAAmB,OACvC,SAAUA,EAAY,mBAAmB,SACzC,KAAMA,EAAY,MAAM,iBAAmB,GAC3C,OAAQA,EAAY,OACpB,SAAU,CACR,QAASA,EAAY,SACrB,KAAME,GAAgB,GACtB,YAAa,GAAGA,GAAgBF,EAAY,QAAQ,KAAKA,EAAY,QACnE,IACF,WAAYoB,EAAWpB,EAAY,QAAQ,EAC3C,cAAe,EAAQK,EACvB,KAAML,EAAY,MAAM,cAAgB,GACxC,MAAOiB,EACP,UAAWjB,EAAY,MAAM,kBAC7B,SACEA,EAAY,mBAAmB,gBAEnC,EACA,OAAQ,CACN,QAASA,EAAY,OACrB,KAAMG,GAAc,GACpB,YAAa,GAAGA,GAAcH,EAAY,MAAM,KAAKA,EAAY,MAC/D,IACF,WAAYoB,EAAWpB,EAAY,MAAM,EACzC,cAAe,EAAQI,EACvB,KAAMJ,EAAY,MAAM,YAAc,GACtC,MAAOmB,EACP,UAAWnB,EAAY,MAAM,gBAC7B,SACEA,EAAY,mBAAmB,iBAEnC,EACA,MAAOe,CACT,CAGF,CAAC,CACH,CAGF,CACF",
6
+ "names": ["TransactionsTableController", "address", "egldLabel", "explorerAddress", "transactions", "interpretedTransactions", "transaction", "getInterpretedTransaction", "receiverName", "senderName", "senderLockedAccount", "receiverLockedAccount", "getLockedAccountName", "egldValueData", "tokenValueData", "nftValueData", "getTransactionValue", "badge", "formattedAmount", "FormatAmountController", "DECIMALS", "transactionValue", "getExplorerLink", "receiverShard", "getShardText", "senderShard", "isContract"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-4XZ2LJKD.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-DR66NBJB.mjs.map
1
+ import{a as t}from"./chunk-ZBJRLPCR.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-3WHS4QZZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as q}from"./chunk-ULUZWP2P.mjs";var o="erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3",n=q.devnet,s="erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx";export{o as a,n as b,s as c};
2
- //# sourceMappingURL=chunk-HDRB2QL6.mjs.map
1
+ import{a as q}from"./chunk-PKDR5ERF.mjs";var o="erd1dm9uxpf5awkn7uhju7zjn9lde0dhahy0qaxqqlu26xcuuw27qqrsqfmej3",n=q.devnet,s="erd1qqqqqqqqqqqqqpgqp699jngundfqw07d8jzkepucvpzush6k3wvqyc44rx";export{o as a,n as b,s as c};
2
+ //# sourceMappingURL=chunk-4VUMAG4J.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-TWPRIAIS.mjs";import{d as m,e as l}from"./chunk-ORJELHOZ.mjs";import{q as a}from"./chunk-SI4DRNUN.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=1e3,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
2
- //# sourceMappingURL=chunk-DWKNS2L6.mjs.map
1
+ import{a as T}from"./chunk-Q2Q4XN4M.mjs";import{b as u}from"./chunk-EFD2PMLA.mjs";import{d as m,e as l}from"./chunk-JVI373HI.mjs";import{q as a}from"./chunk-QEE4T6UM.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";import{b as t}from"./chunk-GGBMHKR4.mjs";import{io as y}from"socket.io-client";var A=3e3,g=3,w=500,E=1e3,f="batchUpdated",p="connect",N="connect_error",b="disconnect";async function M(i){let{apiAddress:k,websocketUrl:I}=r(a().getState());if(!i)throw new Error("Websocket could not be initialized: address missing");let o=null,n=null,c=e=>{t.status=e,u(e)},d=e=>{o&&clearTimeout(o),o=setTimeout(()=>{m(e)},E)},C=e=>{n&&clearTimeout(n),n=setTimeout(()=>{l(e)},E)},W=()=>{let e=t.instance;e&&(e.off(N),e.off(p),e.off(f),e.off(b),e.close(),console.log("Websocket disconnected.")),c("not_initialized"),t.instance=null,o&&clearTimeout(o),n&&clearTimeout(n)},S=async()=>{c("pending");let e=I??await T(k);if(!e){c("not_initialized");return}t.instance=y(e,{forceNew:!0,reconnection:!0,reconnectionAttempts:g,reconnectionDelay:w,timeout:A,query:{address:i}}),t.instance.onAny(d),t.instance.on(f,C),t.instance.on(p,()=>{console.log("Websocket connected."),c("completed")}),t.instance.on(N,s=>{console.warn("Websocket connect error: ",s.message)}),t.instance.on(b,s=>{console.warn("Websocket disconnected: ",s),c("pending")})};return t.status==="not_initialized"&&!t.instance?.active&&await S(),{closeConnection:W}}export{M as a};
2
+ //# sourceMappingURL=chunk-5YDUSQUN.mjs.map
@@ -0,0 +1,2 @@
1
+ import{e}from"./chunk-2IUBMLF4.mjs";import{s as o}from"./chunk-QEE4T6UM.mjs";import{e as t}from"./chunk-SAAOQW7P.mjs";function m(){let r=t(o());return r?Math.max(1e3,r/2):9e4}export{m as a};
2
+ //# sourceMappingURL=chunk-62XXIXTE.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as s}from"./chunk-WWL53TSG.mjs";import{a as u}from"./chunk-4XZ2LJKD.mjs";import{s as c}from"./chunk-SI4DRNUN.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-DWVQFEQG.mjs.map
1
+ import{d as s}from"./chunk-NBQ7F24V.mjs";import{a as u}from"./chunk-ZBJRLPCR.mjs";import{s as c}from"./chunk-QEE4T6UM.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-6IDZ52FJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-KY32AS5A.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-F4B56PJO.mjs.map
1
+ import{a as o}from"./chunk-ZZNPJF24.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-6ST4KZLT.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-3GGBXXXJ.mjs";import{a as e}from"./chunk-O7LCTC4K.mjs";import{a as n}from"./chunk-KD2IQ32V.mjs";import{k as i}from"./chunk-ULUZWP2P.mjs";var a=({address:r,baseURL:o})=>{let t=c(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:i})},g=async({address:r,baseURL:o})=>{if(!r)return null;try{let{data:t}=await a({address:r,baseURL:o});return t}catch{console.error("error fetching configuration for ",r)}return null};export{a,g as b};
2
- //# sourceMappingURL=chunk-SLOQOCEU.mjs.map
1
+ import{a as c}from"./chunk-3GGBXXXJ.mjs";import{a as e}from"./chunk-O7LCTC4K.mjs";import{a as n}from"./chunk-KD2IQ32V.mjs";import{k as i}from"./chunk-PKDR5ERF.mjs";var a=({address:r,baseURL:o})=>{let t=c(o),s=`${t}/${n}/${r}?withGuardianInfo=true`;return e.get(s,{baseURL:t,timeout:i})},g=async({address:r,baseURL:o})=>{if(!r)return null;try{let{data:t}=await a({address:r,baseURL:o});return t}catch{console.error("error fetching configuration for ",r)}return null};export{a,g as b};
2
+ //# sourceMappingURL=chunk-72VXBZOB.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-BZQSEPTC.mjs";import{c as n}from"./chunk-QEE4T6UM.mjs";async function c({loginToken:r,extraInfoData:i,address:e}){let o=await t({originalLoginToken:r,extraInfoData:i,address:e});return o.modifiedLoginToken&&n(o.modifiedLoginToken),o.address}export{c as a};
2
+ //# sourceMappingURL=chunk-7YKKU6UM.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-RICEXBPH.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-OW6TI77R.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-NWQY6WSD.mjs";import{a as m}from"./chunk-G7GU37XI.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-ARY5QEDY.mjs.map
@@ -0,0 +1,2 @@
1
+ import{q as e}from"./chunk-QEE4T6UM.mjs";var o=t=>e().setState(({ui:n})=>{n.isSidePanelOpen=t},!1,"setIsSidePanelOpen");export{o as a};
2
+ //# sourceMappingURL=chunk-B6KBOAFE.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-ZZNPJF24.mjs";var o=()=>a.localStorage;export{o as a};
2
+ //# sourceMappingURL=chunk-BJEPGGTR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-Y4QU4QCG.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
2
- //# sourceMappingURL=chunk-AQHQWVF7.mjs.map
1
+ import{a as g}from"./chunk-3S57OP4Z.mjs";import{a as l}from"./chunk-QTKK6OSJ.mjs";import{a as h}from"./chunk-CFJZFKIS.mjs";import{NativeAuthClient as y}from"@multiversx/sdk-native-auth-client";var H=f=>{let{origin:o,apiAddress:i,expirySeconds:r,blockHashShard:s,extraInfo:u,gatewayUrl:d,extraRequestHeaders:k}=h(f),e=new y({origin:o,apiUrl:i,expirySeconds:r,blockHashShard:s,gatewayUrl:d,extraRequestHeaders:k});return{initialize:async t=>{if(!i||!o)return"";let a=()=>e.getCurrentBlockHash(),n=t?.latestBlockInfo;n??=await g({apiAddress:i,blockHashShard:s,getBlockHash:a,noCache:t?.noCache});let{hash:p,timestamp:c}=n,m=e.encodeValue(JSON.stringify({...t?.extraInfo??u,...c?{timestamp:c}:{}}));return`${e.encodeValue(o)}.${p}.${r}.${m}`},getToken:({address:t,token:a,signature:n})=>e.getToken(t,a,n),getTokenExpiration:l}};export{H as a};
2
+ //# sourceMappingURL=chunk-BUAVB6CL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-COBXCFVC.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-WO6VWFRK.mjs.map
1
+ import{a as t}from"./chunk-RB6NB2UN.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-BZQSEPTC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-FNVS326O.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
2
- //# sourceMappingURL=chunk-PYDEFY6F.mjs.map
1
+ import{a as e}from"./chunk-ZNSKART2.mjs";var i=async a=>{let r=a.map(s=>s.hash),n=await e(r);return a.map(s=>{let t=n.find(o=>o?.txHash===s.hash);return{...s,status:t?.status,invalidTransaction:t==null,results:t?.results??[],previousStatus:s.status?.toString()||"",hasStatusChanged:!!(t&&t.status!==s.status)}})};export{i as a};
2
+ //# sourceMappingURL=chunk-C3LAZHGD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-SI4DRNUN.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
2
- //# sourceMappingURL=chunk-OU4PEXX6.mjs.map
1
+ import{a as s}from"./chunk-O7LCTC4K.mjs";import{s as m}from"./chunk-QEE4T6UM.mjs";import{b as a}from"./chunk-SAAOQW7P.mjs";import{o as r,u as i}from"./chunk-KD2IQ32V.mjs";import{a as c}from"./chunk-3FXHIV6O.mjs";async function b({tokenId:o}){let t=a(m()),{isNft:k}=c(o),n=o,p=k?r:i;if(!n)return{tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:""};try{let{data:e}=await s.get(`${t.apiAddress}/${p}/${n}`),f=e?e?.decimals:Number(t.decimals),l=e?e?.name:"",d=e?e?.assets?.svgUrl??e?.media?.[0]?.thumbnailUrl:"";return{tokenDecimals:f,tokenLabel:l,type:e?.type,tokenAvatar:d,identifier:e?.identifier,assets:e?.assets,esdtPrice:e?.price,ticker:e?.ticker,name:e?.name}}catch(e){return{error:`Error fetching token ${n}: ${e.toString()}`,tokenDecimals:Number(t.decimals),tokenLabel:"",tokenAvatar:"",identifier:n}}}export{b as a};
2
+ //# sourceMappingURL=chunk-CANC2FCH.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-DR66NBJB.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-DDOXD4IN.mjs.map
1
+ import{a as e}from"./chunk-3WHS4QZZ.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-CECXI5ZJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-YV26DNK5.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
- //# sourceMappingURL=chunk-Y4QU4QCG.mjs.map
1
+ import{a}from"./chunk-LZPMMMJZ.mjs";var i=e=>{let t=a();return{origin:e?.origin??t.origin,blockHashShard:e?.blockHashShard,expirySeconds:e?.expirySeconds??t.expirySeconds,apiAddress:e?.apiAddress??t.apiAddress,tokenExpirationToastWarningSeconds:e?.tokenExpirationToastWarningSeconds??t.tokenExpirationToastWarningSeconds,extraInfo:e?.extraInfo??{},gatewayUrl:e?.gatewayUrl,extraRequestHeaders:e?.extraRequestHeaders??{}}};export{i as a};
2
+ //# sourceMappingURL=chunk-CFJZFKIS.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as t}from"./chunk-QEE4T6UM.mjs";import{c as r}from"./chunk-UERJ6AKK.mjs";function m(e=t()){return r(e)}export{m as a};
2
+ //# sourceMappingURL=chunk-CUTW32BD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-LGAWIVRO.mjs";import{s as m}from"./chunk-SI4DRNUN.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-QP6RME6L.mjs.map
1
+ import{a as g}from"./chunk-3QWTD55I.mjs";import{s as m}from"./chunk-QEE4T6UM.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-E5RLJTLP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-SI4DRNUN.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
2
- //# sourceMappingURL=chunk-TWPRIAIS.mjs.map
1
+ import{a as o}from"./chunk-4TBVQD27.mjs";import{q as n}from"./chunk-QEE4T6UM.mjs";var c=t=>n().setState(({config:e})=>{e.nativeAuthConfig=t},!1,"setNativeAuthConfig"),C=t=>n().setState(({config:e})=>{e.websocketStatus=t},!1,"setWebsocketStatus"),f=t=>n().setState(({config:e})=>{let a=t.walletConnectV2RelayAddress||o.walletConnectV2RelayAddress,s=t.walletConnectDeepLink||o.walletConnectDeepLink;e.walletConnectConfig={...t,walletConnectDeepLink:s,walletConnectV2RelayAddress:a}},!1,"setWalletConnectConfig");export{c as a,C as b,f as c};
2
+ //# sourceMappingURL=chunk-EFD2PMLA.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-AXUYY4T7.mjs";import{a as l}from"./chunk-3KUTPB2M.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as T}from"./chunk-SLOQOCEU.mjs";import{c as g}from"./chunk-TI37DKBT.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await T({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=g(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
2
- //# sourceMappingURL=chunk-BQX7MJR6.mjs.map
1
+ import{a as m}from"./chunk-VJGOUAZ2.mjs";import{a as l}from"./chunk-3KUTPB2M.mjs";import{a as p}from"./chunk-OMT62YRR.mjs";import{a as I}from"./chunk-S5XV2COC.mjs";import{b as T}from"./chunk-72VXBZOB.mjs";import{c as g}from"./chunk-TI37DKBT.mjs";var r={};function M({egldLabel:y,apiAddress:s,sender:t,address:e,parsedTransactionsByDataField:u}){return async o=>{if(o==null)return;let S=!t||t===e?null:await T({address:t,baseURL:s}),{transaction:a,multiTxData:A,transactionIndex:D}=o,c=g(a.data.toString()??""),d=p({data:c,multiTransactionData:A,parsedTransactionsByDataField:u}),{tokenId:f}=d,n=a.receiver.toBech32();if(t&&t!==e&&!l(S,e))throw console.error("You cannot sign transactions from a different account"),"You cannot sign transactions from a different account";let k=e!==n,x=n in r;if(n&&k&&!x){let i=await m({addressToVerify:n,baseURL:s});r={...r,...i?.scamInfo?{[n]:i.scamInfo}:{}}}let V=!!(f&&I({tokenId:f,egldLabel:y}));return{transaction:a,receiverScamInfo:r[n]?.info||null,transactionTokenInfo:d,isTokenTransaction:V,dataField:c,transactionIndex:D,needsSigning:o.needsSigning}}}export{M as a};
2
+ //# sourceMappingURL=chunk-ELQR4QMU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-KY32AS5A.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-PC6HDNCW.mjs.map
1
+ import{a as t}from"./chunk-ZZNPJF24.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-EYUQF6VD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-4XZ2LJKD.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-UUCM2B5J.mjs.map
1
+ import{a as s}from"./chunk-ZBJRLPCR.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-F6QODHDC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-OXQS44QJ.mjs";import{a as c}from"./chunk-4FVVKVQH.mjs";import{s as n}from"./chunk-SI4DRNUN.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-C7FCKWVR.mjs.map
1
+ import{a as f}from"./chunk-FRDR4A7Z.mjs";import{w as g}from"./chunk-OTJAWUCX.mjs";import{a as c}from"./chunk-X5QIDX7Z.mjs";import{s as n}from"./chunk-QEE4T6UM.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-FRIE2JPN.mjs.map
@@ -0,0 +1,2 @@
1
+ import{b as t}from"./chunk-72VXBZOB.mjs";var c=o=>t(o);export{c as a};
2
+ //# sourceMappingURL=chunk-G7GU37XI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-OGZTCDLF.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-476M52X7.mjs.map
1
+ import{a as i}from"./chunk-HKKKOC5V.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-GR362QNP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-SI4DRNUN.mjs";import{current as p}from"immer";var h=({transactions:s,transactionsDisplayInfo:r,status:e,sessionInformation:t})=>{let a=Date.now().toString();return i().setState(({transactions:n})=>{n[a]={transactions:s,status:e,transactionsDisplayInfo:r,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),a},T=({sessionId:s,status:r,errorMessage:e})=>{i().setState(({transactions:t})=>{if(!t[s])return;let a=p(t[s]).transactionsDisplayInfo,n=e||a?.errorMessage;t[s].status=r,t[s].errorMessage=n,t[s].transactionsDisplayInfo={...a,errorMessage:n}},!1,"updateTransactionsSession")},E=({sessionId:s,transaction:r})=>{let e=null;return i().setState(({transactions:t})=>{let a=t[s]?.transactions;if(a!=null){t[s].transactions=a.map(o=>o.hash===r.hash?{...o,...r??{}}:o);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},D=()=>{i().setState(({transactions:s,toasts:r})=>{let t=Object.keys(s).filter(n=>{let o=s[n];if(!o)return!1;let{status:c}=o;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let a=r.transactionToasts.filter(n=>!t.includes(n.toastId));r.transactionToasts=a},!1,"clearCompletedTransactions")};export{h as a,T as b,E as c,D as d};
2
- //# sourceMappingURL=chunk-7OUDTQCF.mjs.map
1
+ import{a as u}from"./chunk-L3MWDI6J.mjs";import{q as i}from"./chunk-QEE4T6UM.mjs";import{current as p}from"immer";var h=({transactions:s,transactionsDisplayInfo:r,status:e,sessionInformation:t})=>{let a=Date.now().toString();return i().setState(({transactions:n})=>{n[a]={transactions:s,status:e,transactionsDisplayInfo:r,interpretedTransactions:{},sessionInformation:t}},!1,"createTransactionsSession"),a},T=({sessionId:s,status:r,errorMessage:e})=>{i().setState(({transactions:t})=>{if(!t[s])return;let a=p(t[s]).transactionsDisplayInfo,n=e||a?.errorMessage;t[s].status=r,t[s].errorMessage=n,t[s].transactionsDisplayInfo={...a,errorMessage:n}},!1,"updateTransactionsSession")},E=({sessionId:s,transaction:r})=>{let e=null;return i().setState(({transactions:t})=>{let a=t[s]?.transactions;if(a!=null){t[s].transactions=a.map(o=>o.hash===r.hash?{...o,...r??{}}:o);let n=u([...t[s].transactions]);n&&(T({sessionId:s,status:n}),e=n)}},!1,"updateTransactionStatus"),e},D=()=>{i().setState(({transactions:s,toasts:r})=>{let t=Object.keys(s).filter(n=>{let o=s[n];if(!o)return!1;let{status:c}=o;return!(c==="pending"||c==="signed"||c==="sent")});t.forEach(n=>{delete s[n]});let a=r.transactionToasts.filter(n=>!t.includes(n.toastId));r.transactionToasts=a},!1,"clearCompletedTransactions")};export{h as a,T as b,E as c,D as d};
2
+ //# sourceMappingURL=chunk-GV2STE7J.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as r}from"./chunk-SI4DRNUN.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-XZ52KQTC.mjs.map
1
+ import{s as r}from"./chunk-QEE4T6UM.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-GWUYYSBN.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-SI4DRNUN.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-WKAAF3SF.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-QEE4T6UM.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-GY6MHIOO.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-UPQEWATF.mjs";import{a as f}from"./chunk-AQHQWVF7.mjs";import{a as g}from"./chunk-YV26DNK5.mjs";import{b as a}from"./chunk-SI4DRNUN.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
2
- //# sourceMappingURL=chunk-PMMHNOCU.mjs.map
1
+ import{a as u}from"./chunk-KRJLYFVI.mjs";import{a as f}from"./chunk-BUAVB6CL.mjs";import{a as g}from"./chunk-LZPMMMJZ.mjs";import{b as a}from"./chunk-QEE4T6UM.mjs";import{c as s,g as r}from"./chunk-NTEMINYA.mjs";var v=async({signMessageCallback:m,nativeAuthClientConfig:o})=>{let{address:t}=u(),c=g(),i=f(o||c),e=await i.initialize({noCache:!!o});if(!e)return null;let h=new r({address:new s(t),data:Buffer.from(`${t}${e}`)}),n=await m(h,{});if(!n?.signature)throw"Message not signed";return a({loginToken:e,signature:Buffer.from(n.signature).toString("hex")}),i.getToken({address:t,token:e,signature:Buffer.from(n.signature).toString("hex")})};export{v as a};
2
+ //# sourceMappingURL=chunk-GZL6GF6Z.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-4PMRBZVR.mjs";import{a}from"./chunk-J3N3E7IG.mjs";import{a as u}from"./chunk-GJJZZWVD.mjs";import{c as n}from"./chunk-XZIUMXWJ.mjs";import{a as s}from"./chunk-KY32AS5A.mjs";var c=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
2
- //# sourceMappingURL=chunk-BDAAMNBN.mjs.map
1
+ import{a as i}from"./chunk-LYNRBQNO.mjs";import{a}from"./chunk-CUTW32BD.mjs";import{a as u}from"./chunk-3BVKYYHT.mjs";import{c as n}from"./chunk-I4QHHCK6.mjs";import{a as s}from"./chunk-ZZNPJF24.mjs";var c=(o,t)=>{let r=`sdk-dapp-logout-event-${o}`,e=t.getItem(r);e&&o!==e||(t.setItem(r,o),t.removeItem(r))};async function L({provider:o,options:t={shouldBroadcastLogoutAcrossTabs:!0}}){let r=a();t.shouldBroadcastLogoutAcrossTabs&&s.localStorage&&c(r,s.localStorage);try{return u(),n.forEach(g=>g()),n.clear(),i.closeConnectionRef?.(),await o.logout()}catch(e){return console.error("Logging out error:",e),!1}}export{L as a};
2
+ //# sourceMappingURL=chunk-HJGZQFKX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-EPTFZ77Y.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-OGZTCDLF.mjs.map
1
+ import{a as s}from"./chunk-SK2W4LXI.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-HKKKOC5V.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-KY32AS5A.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-XZIUMXWJ.mjs.map
1
+ import{a as e}from"./chunk-ZZNPJF24.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-I4QHHCK6.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-IQ6JB5QS.mjs";var o={async getTransactionsHistory(s){return await t(s)}};export{o as a};
2
+ //# sourceMappingURL=chunk-I6WKWOAM.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as e}from"./chunk-QEE4T6UM.mjs";import{b as r}from"./chunk-SAAOQW7P.mjs";function d(t=e()){return r(t).explorerAddress}export{d as a};
2
+ //# sourceMappingURL=chunk-I7L5LOHR.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-EMIDMARK.mjs";import{q as e}from"./chunk-QEE4T6UM.mjs";var m=()=>t(e());export{m as a};
2
+ //# sourceMappingURL=chunk-IDJ7NXCI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-RVQLK36O.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
2
- //# sourceMappingURL=chunk-EOIEYWZV.mjs.map
1
+ import{a as s}from"./chunk-55W25Q35.mjs";import{a as r}from"./chunk-P72TQUGN.mjs";import e from"lodash.isempty";var p=async({transactionsSessions:t,address:i,explorerAddress:a,egldLabel:o})=>{if(e(t))return[];let n=s(t);return r({transactions:n,address:i,explorerAddress:a,egldLabel:o})};export{p as a};
2
+ //# sourceMappingURL=chunk-IQ6JB5QS.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as t}from"./chunk-IDJ7NXCI.mjs";function S(e){return t()(e)}export{S as a};
2
+ //# sourceMappingURL=chunk-IR4Y2GE5.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-OGZTCDLF.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
- //# sourceMappingURL=chunk-WDIKEQ4G.mjs.map
1
+ import{a as e}from"./chunk-HKKKOC5V.mjs";var n=class t extends e{constructor(){super({uiDataUpdateEvent:"DATA_UPDATE",uiTag:"mvx-wallet-connect"});this.initialData={wcURI:"",walletConnectDeepLink:""};this.data={...this.initialData}}static getInstance(){return t.instance||(t.instance=new t),t.instance}handleClose(a){a?.isLoginFinished||(this.anchor?this.anchor.dispatchEvent(new CustomEvent("ANCHOR_CLOSE",{composed:!1,bubbles:!1})):this.destroy())}async setupEventListeners(){this.eventBus&&(this.eventBus.subscribe("CLOSE",this.handleClose.bind(this)),this.eventBus.subscribe("UI_DISCONNECTED",this.destroy.bind(this)))}};export{n as a};
2
+ //# sourceMappingURL=chunk-JIBYUZL4.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-KDWLSBQB.mjs";import{b as e,c as i}from"./chunk-7OUDTQCF.mjs";import{j as r}from"./chunk-65L5EBBL.mjs";import{q as n}from"./chunk-SI4DRNUN.mjs";async function E({results:u,hash:c,sessionId:s}){let a=u?.find(t=>t?.returnMessage!=="");i({sessionId:s,transaction:{...a,hash:c,status:"fail",inTransit:!1}});let{transactions:m}=n().getState();m[s].transactions.some(t=>r(t.status))||(e({sessionId:s,status:"fail",errorMessage:a?.returnMessage}),await o({sessionId:s,status:"fail"}))}export{E as a};
2
- //# sourceMappingURL=chunk-LSRKINNP.mjs.map
1
+ import{a as o}from"./chunk-KDWLSBQB.mjs";import{b as e,c as i}from"./chunk-GV2STE7J.mjs";import{j as r}from"./chunk-65L5EBBL.mjs";import{q as n}from"./chunk-QEE4T6UM.mjs";async function E({results:u,hash:c,sessionId:s}){let a=u?.find(t=>t?.returnMessage!=="");i({sessionId:s,transaction:{...a,hash:c,status:"fail",inTransit:!1}});let{transactions:m}=n().getState();m[s].transactions.some(t=>r(t.status))||(e({sessionId:s,status:"fail",errorMessage:a?.returnMessage}),await o({sessionId:s,status:"fail"}))}export{E as a};
2
+ //# sourceMappingURL=chunk-JSKOWAZU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk-DDOXD4IN.mjs";import{a as e}from"./chunk-J3N3E7IG.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-OFSRI5RR.mjs.map
1
+ import{a as s}from"./chunk-CECXI5ZJ.mjs";import{a as e}from"./chunk-CUTW32BD.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-JSTWLAYX.mjs.map
@@ -1,2 +1,2 @@
1
- import{q as c}from"./chunk-SI4DRNUN.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
2
- //# sourceMappingURL=chunk-ORJELHOZ.mjs.map
1
+ import{q as c}from"./chunk-QEE4T6UM.mjs";import{a as o}from"./chunk-JMC7CMTU.mjs";var r=e=>{c().setState(({account:t})=>{let s=t.address===e.address;t.accounts={[t.address]:s?e:o}},!1,"setAccount")},u=e=>c().setState(({account:t})=>{t.ledgerAccount=e},!1,"setLedgerAccount"),p=e=>c().setState(({account:t})=>{t.walletConnectAccount=e},!1,"setWalletConnectAccount"),l=e=>c().setState(({account:t})=>{t.websocketEvent={timestamp:Date.now(),message:e}},!1,"setWebsocketEvent"),m=e=>c().setState(({account:t})=>{t.websocketBatchEvent={timestamp:Date.now(),data:e}},!1,"setWebsocketBatchEvent"),A=e=>{c().setState(({account:t})=>{t.accounts[t.address].nonce=e},!1,"setAccountNonce")};export{r as a,u as b,p as c,l as d,m as e,A as f};
2
+ //# sourceMappingURL=chunk-JVI373HI.mjs.map
@@ -1,2 +1,2 @@
1
- import{w as n}from"./chunk-OXQS44QJ.mjs";import{a as i}from"./chunk-ZONHCECO.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
- //# sourceMappingURL=chunk-DJX43EJZ.mjs.map
1
+ import{w as n}from"./chunk-OTJAWUCX.mjs";import{a as i}from"./chunk-ZONHCECO.mjs";var e=async()=>{let o=n();if(o.getType()===i.crossWindow){let r=o;await r.cancelAction(),await r.dispose()}};export{e as a};
2
+ //# sourceMappingURL=chunk-K7FDXJZD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-KY32AS5A.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-S3KFVBK5.mjs.map
1
+ import{a as e}from"./chunk-ZZNPJF24.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-KD2K7HNK.mjs.map
@@ -0,0 +1,2 @@
1
+ import{s as o}from"./chunk-QEE4T6UM.mjs";import{a as t}from"./chunk-UERJ6AKK.mjs";function n(r=o()){return t(r)}export{n as a};
2
+ //# sourceMappingURL=chunk-KRJLYFVI.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-SI4DRNUN.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-ULUZWP2P.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
2
- //# sourceMappingURL=chunk-2DOX4XMK.mjs.map
1
+ import{a as w}from"./chunk-YK7T6MBD.mjs";import{a as l}from"./chunk-KMJMQEXI.mjs";import{q as u}from"./chunk-QEE4T6UM.mjs";import{a as c}from"./chunk-SQVKVA7X.mjs";import{a as i}from"./chunk-PKDR5ERF.mjs";var e=o=>u().setState(({network:r})=>{r.network={...r.network,...o}},!1,"initializeNetworkConfig");var y=async({customNetworkConfig:o={},environment:r})=>{let d=!o?.skipFetchFromServer,g=o?.apiAddress,n=r&&r in i,p=n?i[r]:{},s={...c,...p,...o},t={...s,apiTimeout:String(s.apiTimeout)},N=p?.apiAddress;if(!n&&d){let a=g||N,m=await w(a),f=t.roundDuration?null:await l(a);if(f!=null&&(t.roundDuration=f.erd_round_duration),m!=null){let k={...t,...m,...o};return e(k),k}}return e(t),t};export{y as a,e as b};
2
+ //# sourceMappingURL=chunk-LDTECGMM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-TQA3JDNV.mjs";import{s}from"./chunk-SI4DRNUN.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
2
- //# sourceMappingURL=chunk-JNYQYPLX.mjs.map
1
+ import{a as u}from"./chunk-TQA3JDNV.mjs";import{s}from"./chunk-QEE4T6UM.mjs";import{e as a}from"./chunk-UERJ6AKK.mjs";function x(n){let e=s(),o=u(e),c=a(e),t=Object.keys(o).map(Number).reduce((r,m)=>{let i=o[m]?.transactions||[];return Math.max(r,...i.map(l=>l.nonce),0)},0);return t>0&&(t+=1),n==null?Math.max(t,c):Math.max(t,n.nonce,c)}export{x as a};
2
+ //# sourceMappingURL=chunk-LWCNB4VP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-DWKNS2L6.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
2
- //# sourceMappingURL=chunk-4PMRBZVR.mjs.map
1
+ import{a as e}from"./chunk-5YDUSQUN.mjs";var t={closeConnectionRef:void 0};async function c(n){let{closeConnection:o}=await e(n);t.closeConnectionRef=o}export{t as a,c as b};
2
+ //# sourceMappingURL=chunk-LYNRBQNO.mjs.map
@@ -1,2 +1,2 @@
1
- import{s as e}from"./chunk-SI4DRNUN.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-YV26DNK5.mjs.map
1
+ import{s as e}from"./chunk-QEE4T6UM.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-LZPMMMJZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-UIXNOVHP.mjs";import{a as u}from"./chunk-F7LAL7TT.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-RVQLK36O.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-MVTZTMVB.mjs.map
1
+ import{a as I}from"./chunk-3MW2H273.mjs";import{a as l}from"./chunk-I7L5LOHR.mjs";import{a as u}from"./chunk-WKPW72IW.mjs";import{j as m,k as p,l as d,n as f}from"./chunk-65L5EBBL.mjs";import{a as T}from"./chunk-P72TQUGN.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-N4XWVRRE.mjs.map